maint: spell file systems with two words, not one
[gnulib.git] / ChangeLog
1 2012-01-17  Jim Meyering  <meyering@redhat.com>
2
3         maint: spell file systems with two words, not one
4         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
5         two words, not one.
6
7 2012-01-16  Jim Meyering  <meyering@redhat.com>
8
9         bootstrap: add a FIXME comment to ensure we eventually remove the hack
10         * build-aux/bootstrap (gnulib_tool_options): Add comment.
11
12 2012-01-16  Eric Blake  <eblake@redhat.com>
13
14         bootstrap: cater to autoconf 2.59
15         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
16         is not available.
17
18         bootstrap: properly check for libtool
19         * build-aux/bootstrap (libtoolize): Also run libtool when older
20         usage is detected.
21
22 2012-01-15  Bruno Haible  <bruno@clisp.org>
23
24         Improve support for MSVC 9.
25         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
26         clashes on MSVC.
27         * lib/fcntl.in.h: Likewise.
28         * lib/stdlib.in.h: Likewise.
29         * lib/sys_stat.in.h: Likewise.
30
31 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
32
33         gnupload: we hold the master copy of this script now
34         For motivation and more information, see:
35         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
36         * build-aux/gnupload: Make it clear in the heading comments that the
37         master copy of this file is maintained by gnulib.  Since we are at
38         it, bump its copyright year and ...
39         ($scriptversion): ... the date in its version.
40         ($usage): Patches and bug reports should be sent to the gnulib list,
41         not the automake one.
42         * config/srclist.txt: Don't try to sync 'gnupload' from automake
43         anymore.
44
45 2012-01-15  Bruno Haible  <bruno@clisp.org>
46
47         Fix module 'random'.
48         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
49         initstate, setstate are declared.
50
51 2012-01-14  Bruno Haible  <bruno@clisp.org>
52
53         Tests for module 'random'.
54         * modules/random-tests: New file.
55         * tests/test-random.c: New file, based on tests/test-random_r.c.
56
57         New module 'random'.
58         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
59         declarations.
60         * lib/random.c: New file, based on glibc/stdlib/random.c.
61         * m4/random.m4: New file.
62         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
63         HAVE_RANDOM.
64         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
65         * modules/random: New file.
66         * config/srclist.txt: Add an entry for random.c.
67         * doc/posix-functions/random.texi: Mention the 'random' module.
68         * doc/posix-functions/initstate.texi: Likewise.
69         * doc/posix-functions/setstate.texi: Likewise.
70         * doc/posix-functions/srandom.texi: Likewise.
71
72 2012-01-12  Bruno Haible  <bruno@clisp.org>
73
74         random_r: Use common idioms.
75         * lib/random_r.c: Include <stdlib.h> first.
76
77         random_r: Override incompatible API on AIX, OSF/1.
78         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
79         Override the system function if REPLACE_RANDOM_R is 1.
80         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
81         and OSF/1, set REPLACE_RANDOM_R.
82         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
83         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
84         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
85         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
86         * doc/glibc-functions/random_r.texi: Likewise.
87         * doc/glibc-functions/setstate_r.texi: Likewise.
88
89         random_r: Support for MSVC 9.
90         * lib/random_r.c: Include stdint.h, not inttypes.h.
91
92 2012-01-12  Eric Blake  <eblake@redhat.com>
93
94         inet_ntop: guard extra work by IF_LINT
95         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
96         better code generation when not checking for warnings.
97         Suggested by Paul Eggert and Jim Meyering.
98
99         strptime: fix regression on mingw
100         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
101         Fix regression.  Reported by Bruno Haible.
102
103 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
104             Bruno Haible  <bruno@clisp.org>
105
106         copy-file: add error-code-returning variant.
107         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
108         (qcopy_file_preserving): New declaration.
109         * lib/copy-file.c (qcopy_file_preserving): Renamed from
110         copy_file_preserving. Change return type to 'int'. Don't emit an error
111         message here.
112         (copy_file_preserving): New function.
113         * tests/test-copy-file.c: Include <stdlib.h>.
114         (main): Test qcopy_file_preserving if the environment variable
115         NO_STDERR_OUTPUT is set.
116         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
117         with NO_STDERR_OUTPUT
118         * tests/test-copy-file-2.sh: Likewise.
119
120 2012-01-10  Bruno Haible  <bruno@clisp.org>
121
122         copy-file: Use 'quote' module consistently.
123         * lib/copy-file.c (copy_file_preserving): Use quote().
124
125         copy-file: Refactor.
126         * lib/copy-file.c: Include quote.h.
127         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
128         message here.
129         * modules/copy-file (Depends-on): Add quote.
130
131         acl: Export qcopy_acl.
132         * lib/acl.h (qcopy_acl): New declaration.
133         * lib/copy-acl.c (qcopy_acl): Make non-static.
134
135         acl: Rename a local variable.
136         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
137
138         acl: Align return values of copy_acl and qcopy_acl.
139         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
140         maybe < -1.
141
142 2012-01-11  Eric Blake  <eblake@redhat.com>
143
144         strptime: silence gcc warnings
145         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
146         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
147         Reported by Daniel P. Berrange.
148
149         inet_ntop: silence gcc warning
150         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
151         Reported by Daniel P. Berrange.
152
153 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
154
155         getloadavg test: skip the test on GNU/Linux without /proc mounted
156         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
157         file.  When /proc is not mounted, it always fails with ENOENT.
158         * tests/test-getloadavg.c (main): Treat ENOENT return code from
159         getloadavg(3) the same way as ENOSYS and ENOTSUP.
160
161 2012-01-10  Bruno Haible  <bruno@clisp.org>
162
163         regex: Avoid link error on MSVC 9.
164         * modules/regex (Depends-on): Add wctype.
165
166 2012-01-10  Bruno Haible  <bruno@clisp.org>
167
168         doc: Mention --with-tests option.
169         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
170         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
171         --with-tests.
172         Reported by Reuben Thomas.
173
174 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
175
176         users.txt: order package names lexicographically.
177         * users.txt: Order package names lexicographically.
178
179 2012-01-10  Jim Meyering  <meyering@redhat.com>
180
181         maint.mk: fix description in comment
182         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
183
184         ignore-value: remove deprecated ignore_ptr function
185         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
186         * NEWS: Note this.
187
188 2012-01-09  Jim Meyering  <meyering@redhat.com>
189
190         test-init.sh: avoid a subshell
191         * tests/test-init.sh: Remove protective subshell.
192         Suggested by Bernhard Voelker.  While a subshell is normally
193         required to protect against older shells (Solaris, FreeBSD) that
194         warn about a missing program before performing redirection, the
195         shell-selection tests performed by init.sh probably exclude any
196         offending shell.
197
198 2012-01-08  Bruno Haible  <bruno@clisp.org>
199
200         setlocale tests: Avoid test failure on Solaris 11 2011-11.
201         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
202         variable.
203
204 2012-01-08  Bruno Haible  <bruno@clisp.org>
205
206         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
207         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
208         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
209         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
210         macro.
211         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
212         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
213         * lib/spawn_faction_addopen.c: Add workaround implementation if
214         HAVE_WORKING_POSIX_SPAWN.
215         * modules/spawn (Makefile): Substitute
216         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
217         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
218         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
219         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
220         (Depends-on): Update conditions.
221         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
222         the Solaris 11 bug.
223
224 2012-01-08  Bruno Haible  <bruno@clisp.org>
225
226         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
227         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
228         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
229         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
230         macro.
231         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
232         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
233         * lib/spawn_faction_adddup2.c: Add workaround implementation if
234         HAVE_WORKING_POSIX_SPAWN.
235         * modules/spawn (Makefile): Substitute
236         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
237         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
238         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
239         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
240         (Depends-on): Update conditions.
241         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
242         the Solaris 11 bug.
243
244 2012-01-08  Bruno Haible  <bruno@clisp.org>
245
246         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
247         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
248         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
249         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
250         HAVE_WORKING_POSIX_SPAWN.
251         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
252         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
253         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
254         * lib/spawn_faction_addclose.c: Add workaround implementation if
255         HAVE_WORKING_POSIX_SPAWN.
256         * modules/spawn (Makefile): Substitute
257         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
258         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
259         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
260         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
261         (Depends-on): Update conditions.
262         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
263         the Solaris 11 bug.
264
265 2012-01-08  Bruno Haible  <bruno@clisp.org>
266
267         doc: Update for Solaris 11 2011-11.
268         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
269         * m4/printf.m4: Update comments.
270
271 2012-01-08  Bruno Haible  <bruno@clisp.org>
272
273         mktime: Avoid compilation error on Solaris 11.
274         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
275
276 2012-01-08  Bruno Haible  <bruno@clisp.org>
277
278         doc: Small fix.
279         * doc/posix-headers/nl_types.texi: Correct platforms list.
280
281 2012-01-08  Simon Josefsson  <simon@josefsson.org>
282
283         Add lgpl-3.0 module.
284         * MODULES.html.sh (Support for building documentation): Add
285         lgpl-3.0.
286         * modules/lgpl-3.0: New file.
287
288 2012-01-08  Jim Meyering  <meyering@redhat.com>
289
290         select.c: indent with spaces, not TABs
291         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
292
293 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
294
295         quotearg: do not use grave accent for left quote
296         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
297         locale_quoting_style.
298         (quotearg_buffer_restyled): Fix example.
299         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
300
301 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
302
303         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
304         Most programs do not have translation catalogs for English and much
305         less separate catalogs for British and American English.  Drop the
306         suggestion to translators about these two, and provide it
307         automatically for Unicode locales.  Like most programs, even those
308         using American English, we use single quotation marks.  This conflicts
309         with the American typographic convention, but works better when you
310         cite the entire error message within double quotes.  It also tries not
311         to clash with established practice and with what non-gnulib programs
312         will usually do.
313         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
314         using an UTF-8 or GB-18030 locale.  The list of other locales with
315         quotes was provided by Bruno Haible.
316         (quotearg_buffer_restyled): Adjust instructions to translators.
317         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
318         text, since this would be wrong when using Unicode.
319         * modules/quotearg: Depend on c-strcaseeq.
320
321 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
322
323         quotearg: fix Wikipedia link
324         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
325
326 2012-01-07  Simon Josefsson  <simon@josefsson.org>
327
328         Fix for mingw with MSVC9.
329         * m4/ld-version-script.m4: Check that compiler rejects version
330         scripts with syntax errors.  Reported by Bruno Haible
331         <bruno@clisp.org>.
332
333 2012-01-06  Bruno Haible  <bruno@clisp.org>
334
335         Talk about "native Windows API", not "Woe32".
336         * lib/accept4.c: Update comments to mention native Windows.
337         * lib/execute.c: Likewise.
338         * lib/fatal-signal.c: Likewise.
339         * lib/localcharset.c: Likewise.
340         * lib/nanosleep.c: Likewise.
341         * lib/nl_langinfo.c: Likewise.
342         * lib/pclose.c: Likewise.
343         * lib/pipe-filter-gi.c: Likewise.
344         * lib/pipe-filter-ii.c: Likewise.
345         * lib/pipe.c: Likewise.
346         * lib/pipe2.c: Likewise.
347         * lib/popen.c: Likewise.
348         * lib/progreloc.c: Likewise.
349         * lib/relocatable.c: Likewise.
350         * lib/sigaction.c: Likewise.
351         * lib/sigprocmask.c: Likewise.
352         * lib/spawn-pipe.h: Likewise.
353         * lib/spawn-pipe.c: Likewise.
354         * lib/spawni.c: Likewise.
355         * lib/stat-time.h: Likewise.
356         * lib/w32spawn.h: Likewise.
357         * tests/test-isatty.c: Likewise.
358         * lib/config.charset: More comments.
359         * doc/gnulib-intro.texi: Mention native Windows.
360         * doc/posix-functions/_Exit_C99.texi: Likewise.
361         * doc/posix-headers/fcntl.texi: Likewise.
362
363 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
364
365         argp: Avoid crash if translator uses % characters in a translation.
366         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
367         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
368
369 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
370
371         doc: C11 and C++11 are now official
372         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
373         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
374         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
375         * modules/stdalign:
376         Replace references to draft C1X to C11, and to draft C++0X to C++11.
377
378 2012-01-06  Bruno Haible  <bruno@clisp.org>
379
380         uc-is-grapheme-break tests: Tweak.
381         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
382         message.
383
384 2012-01-06  Bruno Haible  <bruno@clisp.org>
385
386         test-init.sh: correct the test for diff -u
387         * tests/test-init.sh: Also redirect stdout to /dev/null.
388
389 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
390
391         Use ', not `, for quoting output.
392         * build-aux/announce-gen (usage, sizes, print_news_deltas)
393         (print_changelog_deltas, get_tool_versions, main program):
394         * build-aux/git-version-gen:
395         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
396         * build-aux/move-if-change (help):
397         * build-aux/useless-if-before-free (usage, main program):
398         * check-module (parse_module_file, usage)
399         (find_included_lib_files, check_module):
400         * lib/argmatch.c (main) [TEST]:
401         * lib/argp-help.c (_help):
402         * lib/getopt1.c (main) [TEST]:
403         * lib/git-merge-changelog.c (usage):
404         * lib/xstrtol-error.c (xstrtol_error):
405         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
406         * m4/argz.m4 (gl_FUNC_ARGZ):
407         * m4/bison.m4 (gl_BISON):
408         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
409         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
410         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
411         * m4/fpending.m4 (gl_PREREQ_FPENDING):
412         * m4/gc-random.m4 (gl_GC_RANDOM):
413         * m4/intl.m4 (gt_CHECK_DECL):
414         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
415         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
416         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
417         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
418         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
419         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
420         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
421         * tests/test-dirname.c (main):
422         * tests/test-getpass.c (main):
423         * tests/test-iconvme.c (main):
424         * tests/test-parse-datetime.c (LOG):
425         * tests/test-xstrtoimax.sh:
426         * tests/test-xstrtol.sh:
427         * tests/test-xstrtoll.sh:
428         * tests/test-xstrtoumax.sh:
429         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
430         * top/GNUmakefile (abort-due-to-no-makefile):
431         Quote 'like this', not `like this', as per the recent change to
432         the GNU coding standards.
433
434 2012-01-05  Bruno Haible  <bruno@clisp.org>
435
436         strtoimax: Don't force a replacement on systems where intmax_t is int.
437         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
438         'intmax_t' is not larger than 'int'.
439         Reported by Pádraig Brady <P@draigBrady.com>.
440
441 2012-01-05  Bruno Haible  <bruno@clisp.org>
442
443         doc: Mention NetBSD bugs.
444         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
445         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
446
447 2012-01-05  Bruno Haible  <bruno@clisp.org>
448
449         strtoumax tests: Enhance tests.
450         * tests/test-strtoumax.c (main): Add tests for large values.
451
452 2012-01-05  Bruno Haible  <bruno@clisp.org>
453
454         strtoimax: Work around AIX 5.1 bug.
455         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
456         definition.
457         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
458         Set HAVE_STRTOIMAX.
459         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
460         REPLACE_STRTOIMAX.
461         * modules/inttypes-incomplete (Makefile.am): Substitute
462         REPLACE_STRTOIMAX.
463         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
464         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
465         (Depends-on): Update conditions.
466         * tests/test-strtoimax.c (main): Add tests for large values.
467         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
468
469 2012-01-05  Bruno Haible  <bruno@clisp.org>
470
471         inttypes: Modernize.
472         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
473         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
474         (Makefile.am): Update inttypes.h rule.
475
476 2012-01-05  Jim Meyering  <meyering@redhat.com>
477
478         init.sh: don't waste a subshell just to redirect stderr
479         * tests/init.sh: In testing for diff -u and diff -c, use a
480         stderr-redirecting exec inside `...` rather than a subshell.
481
482         test-init.sh: avoid failure on HP-UX 11.00
483         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
484         resolves to diff -c or cmp.  Reported by Bruno Haible.
485
486 2012-01-05  Bruno Haible  <bruno@clisp.org>
487
488         Tests for module 'strtoull'.
489         * modules/strtoull-tests: New file.
490         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
491
492 2012-01-05  Bruno Haible  <bruno@clisp.org>
493
494         Tests for module 'strtoll'.
495         * modules/strtoll-tests: New file.
496         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
497
498 2012-01-05  Bruno Haible  <bruno@clisp.org>
499
500         Tests for module 'strtoul'.
501         * modules/strtoul-tests: New file.
502         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
503
504 2012-01-05  Bruno Haible  <bruno@clisp.org>
505
506         Tests for module 'strtol'.
507         * modules/strtol-tests: New file.
508         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
509
510 2012-01-04  Jim Meyering  <meyering@redhat.com>
511
512         test-init.sh: accommodate Solaris 5.10's different diff -u output
513         * tests/test-init.sh: Also exempt @@ lines from the comparison
514         of diff output, since Solaris 5.10 and GNU diff formats differ.
515         Reported by Stefano Lattarini.
516
517 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
518
519         test-posixtm: don't assume signed integer wraparound
520         * tests/test-posixtm.c (main): Don't assume wraparound semantics
521         after signed integer overflow.  Inspired by (though it may not
522         fix) Bruno Haible's bug report in
523         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
524
525         Spell out "Windows 9x" and "Windows XP".
526         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
527         "Windows 9x" and "WinXP" with "Windows XP".
528
529 2012-01-04  Jim Meyering  <meyering@redhat.com>
530
531         test-vc-list-files-cvs.sh: remove obsolete comment
532         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
533         double exit.  Now that's all encapsulated via skip_ and Exit.
534
535 2012-01-04  Bruno Haible  <bruno@clisp.org>
536
537         Talk about "native Windows API", not "Win32".
538         * lib/classpath.c: Update comments to mention native Windows.
539         * lib/csharpexec.c: Likewise.
540         * lib/dup2.c: Likewise.
541         * lib/error.c: Likewise.
542         * lib/fcntl.c: Likewise.
543         * lib/filename.h: Likewise.
544         * lib/findprog.c: Likewise.
545         * lib/get-rusage-as.c: Likewise.
546         * lib/get-rusage-data.c: Likewise.
547         * lib/getpagesize.c: Likewise.
548         * lib/javaexec.c: Likewise.
549         * lib/msvc-inval.c: Likewise.
550         * lib/msvc-nothrow.c: Likewise.
551         * lib/nanosleep.c: Likewise.
552         * lib/nonblocking.c: Likewise.
553         * lib/printf-parse.c: Likewise.
554         * lib/setlocale.c: Likewise.
555         * lib/sigaction.c: Likewise.
556         * lib/strerror_r.c: Likewise.
557         * lib/tmpdir.c: Likewise.
558         * lib/vasnprintf.c: Likewise.
559         * lib/w32spawn.h: Likewise.
560         * lib/waitpid.c: Likewise.
561         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
562         * m4/locale-ar.m4: Likewise.
563         * m4/locale-fr.m4: Likewise.
564         * m4/locale-ja.m4: Likewise.
565         * m4/locale-tr.m4: Likewise.
566         * m4/locale-zh.m4: Likewise.
567         * m4/printf.m4: Likewise.
568         * tests/test-cloexec.c: Likewise.
569         * tests/test-copy-acl.sh: Likewise.
570         * tests/test-copy-file.sh: Likewise.
571         * tests/test-file-has-acl.sh: Likewise.
572         * tests/test-set-mode-acl.sh: Likewise.
573         * tests/test-dup-safer.c: Likewise.
574         * tests/test-dup2.c: Likewise.
575         * tests/test-dup3.c: Likewise.
576         * tests/test-fcntl.c: Likewise.
577         * tests/test-nonblocking-pipe.h: Likewise.
578         * tests/test-nonblocking-socket.h: Likewise.
579         * tests/test-pipe.c: Likewise.
580         * tests/test-pipe2.c: Likewise.
581         * tests/test-spawn-pipe-child.c: Likewise.
582         * doc/acl-resources.txt: Likewise.
583         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
584         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
585         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
586         * lib/localcharset.c: Update comments to mention native Windows.
587         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
588         * lib/localename.c: Likewise.
589         * lib/progreloc.c: Likewise.
590         * lib/relocatable.c: Likewise.
591         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
592         (windows_compute_revents): Renamed from win32_compute_revents.
593         (windows_compute_revents_socket): Renamed from
594         win32_compute_revents_socket.
595         * lib/select.c: Update comments to mention native Windows.
596         (windows_poll_handle): Renamed from win32_poll_handle.
597         * m4/threadlib.m4: Update comments to mention native Windows.
598         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
599         --enable-threads=windows instead of --enable-threads=win32. Set
600         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
601         * lib/glthread/lock.h: Update comments to mention native Windows.
602         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
603         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
604         USE_WIN32_THREADS.
605         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
606         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
607         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
608         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
609         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
610         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
611         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
612         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
613         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
614         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
615         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
616         * tests/test-tls.c: Likewise.
617         Rationale:
618         Microsoft renamed the "Win32 API" to "Windows API", as it is available
619         on both 32-bit and 64-bit Windows systems.
620         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
621         line of distinction is between "native Windows" on one side and Unix/
622         POSIX systems on the other side. More details in
623         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
624         Suggested by Paul Eggert.
625
626 2012-01-03  Bruno Haible  <bruno@clisp.org>
627
628         isatty: Support for MSVC 9.
629         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
630         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
631         (_isatty_nothrow): New function.
632         (isatty): Use it instead of _isatty.
633         (IsConsoleHandle): Add comment, from Paolo Bonzini.
634         * lib/poll.c (IsConsoleHandle): Likewise.
635         * lib/select.c (IsConsoleHandle): Likewise.
636         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
637         (gl_PREREQ_ISATTY): New macro.
638         * modules/isatty (Depends-on): Add msvc-inval.
639         (configure.ac): Invoke gl_PREREQ_ISATTY.
640
641 2012-01-03  Jim Meyering  <meyering@redhat.com>
642
643         maint.mk: remove temporary transition aid from over 1.5 years ago
644         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
645         purpose was to aid in the transition (avoiding silent malfunction)
646         from that old name to the new _sc_search_regexp.  This shim was
647         added by commit 219c504b.
648
649         init.sh: do not try to accommodate compare arguments starting with "-"
650         * tests/init.sh (compare_dev_null_): Do not try to accommodate
651         compare arguments that start with "-".  Besides, we do not worry
652         about this when invoking diff or cmp; why start now with sed?
653         Using "--" to separate options from argument would trigger sed
654         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
655         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
656
657 2012-01-02  Bruno Haible  <bruno@clisp.org>
658
659         Enhance tests for module 'isatty'.
660         * modules/isatty-tests (Depends-on): Add pipe-posix.
661         * tests/test-isatty.c: Include <fcntl.h>.
662         (DEV_NULL): New macro.
663         (main): Test the resut of isatty() also on regular files, pipes, and
664         /dev/null.
665
666         New module 'isatty'.
667         * lib/unistd.in.h (isatty): New declaration.
668         * lib/isatty.c: New file, based on an idea of
669         Bastien Roucariès <roucaries.bastien@gmail.com>.
670         * m4/isatty.m4: New file.
671         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
672         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
673         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
674         REPLACE_ISATTY.
675         * modules/isatty: New file.
676         * doc/posix-functions/isatty.texi: Mention the new module.
677         Suggested by Paolo Bonzini.
678
679 2012-01-02  Bruno Haible  <bruno@clisp.org>
680
681         canonicalize: Tweak 2011-12-29 commit.
682         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
683         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
684
685 2012-01-02  Jim Meyering  <meyering@redhat.com>
686
687         gitlog-to-changelog: describe input syntax in --help output
688         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
689
690         gitlog-to-changelog: fix typo in --help: show backslash before email @
691         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
692         in sources, but not in actual output.
693
694 2011-12-30  Jim Meyering  <meyering@redhat.com>
695
696         gitlog-to-changelog: don't malfunction when name contains %-directive
697         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
698         in a name string cause trouble.  E.g., with a user name of "%s",
699         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
700
701 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
702
703         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
704         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
705         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
706         the "  (tiny change)" notation that is appended to the standard
707         ChangeLog "date  name  email" header line.
708
709 2012-01-01  Jim Meyering  <meyering@redhat.com>
710
711         test-framework-sh: init.sh: fix "make dist" failure
712         When using gnulib-tool's --with-tests option and any module that
713         depends on test-framework-sh, "make dist" would fail due to the
714         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
715         in the gltests directory, and not in the gllib/ directory.
716         One way to work around that is to move the EXTRA_DIST += init.sh
717         from the primary module to the -tests one:
718         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
719         * modules/test-framework-sh (Makefile.am): ...not here.
720         Reported by Tom G. Christensen in
721         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
722
723         version-etc: update copyright year reported by --version
724         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
725
726 2011-12-31  Pádraig Brady  <P@draigBrady.com>
727
728         canonicalize: only stat() if required
729         * lib/canonicalize.c (canonicalize_filename_mode):
730         Avoid calling l?stat() when both CAN_MISSING,
731         and CAN_NOLINKS are set, as we neither need
732         to resolve symlinks or test component existence.
733
734 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
735
736         doc: cover st_ino issues once; add OpenVMS etc.
737         * doc/posix-functions/stat.texi (stat):
738         * doc/posix-functions/lstat.texi (lstat):
739         * doc/posix-functions/fstatat.texi (fstatat):
740         * doc/posix-functions/fstat.texi (fstat):
741         Move general 'struct stat' stuff to sys_stat.texi,
742         leaving behind a pointer.
743         * doc/posix-headers/sys_stat.texi (sys/stat.h):
744         Merge duplicate info about 'struct stat' problems into here.
745         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
746         and suggest partial workarounds.
747
748         same-inode: port to OpenVMS
749         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
750         three st_ino values.
751
752 2011-12-30  Pádraig Brady  <P@draigBrady.com>
753
754         canonicalize: fix references to stat() and lstat()
755         * lib/canonicalize.c (canonicalize_filename_mode):
756         Ensure references always resolve to a replacement
757         function if required (even via a macro).
758
759 2011-12-30  Jim Meyering  <meyering@redhat.com>
760
761         gitlog-to-changelog: remove a little duplication
762         * build-aux/gitlog-to-changelog (main): Grep @lines once,
763         rather than twice.
764
765 2011-12-29  Pádraig Brady  <P@draigBrady.com>
766
767         canonicalize: add support for not resolving symlinks
768         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
769         indicate we don't want to follow symlinks.  Also
770         provide CAN_MODE_MASK to aid setting these existing
771         mutually exclusive values.
772         * lib/canonicalize.c (canonicalize_filename_mode):
773         Extract the flags from can_mode parameter, which
774         are currently just used to select between stat()
775         and lstat().  Also ensure that mutually exclusive
776         values are flagged immediately as invalid.
777         * tests/test-canonicalize.c: Verify symlinks are
778         not followed, and that invalid flag combinations
779         are diagnosed.
780
781 2011-12-25  Jim Meyering  <meyering@redhat.com>
782
783         gitlog-to-changelog: do not clump multi-paragraph entries
784         Identical header lines (date,name,email+coauthors) are suppressed,
785         thus putting all entries with those same characteristics under
786         a single header.  However, when a log entry consists of two or
787         more paragraphs, it may not be clear where it starts and ends.
788         This change makes it so that such an entry is always separated
789         from others by a header line, even when that header would
790         otherwise be suppressed.
791         * build-aux/gitlog-to-changelog: Implement the above.
792         Inspired by a related request from Stefano Lattarini in
793         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
794
795 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
796
797         announce-gen: fix `cmd' typo in diagnostic
798         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
799         diagnostic: a missing '$' meant that the command was not output.
800
801 2011-12-23  Jim Meyering  <meyering@redhat.com>
802
803         test-framework-sh: distribute init.sh
804         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
805         Otherwise, "make -C gnulib-tests check" (at least in grep) would
806         fail due to the lack of init.sh.
807
808         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
809         * modules/atexit-tests: Rather than listing tests/init.sh,
810         now that there's a module for it, simply depend on that new module.
811         * modules/closein-tests: Likewise.
812         * modules/exclude-tests: Likewise.
813         * modules/getcwd-tests: Likewise.
814         * modules/perror-tests: Likewise.
815         * modules/pread-tests: Likewise.
816         * modules/pwrite-tests: Likewise.
817         * modules/vc-list-files-tests: Likewise.
818         * modules/verify-tests: Likewise.
819         * modules/xalloc-die-tests: Likewise.
820         * modules/xstrtoimax-tests: Likewise.
821         * modules/xstrtol-tests: Likewise.
822         * modules/xstrtoll-tests: Likewise.
823         * modules/xstrtoumax-tests: Likewise.
824         * modules/yesno-tests: Likewise.
825
826 2011-12-22  Jim Meyering  <meyering@redhat.com>
827
828         test-framework-sh: add minimal tests of init.sh's compare function
829         * modules/test-framework-sh-tests: New file.
830         * tests/test-init.sh: New file.
831
832         test-framework-sh: new module
833         * modules/test-framework-sh: New file.
834         * MODULES.html.sh (Support for maintaining and releasing projects):
835         List it.
836
837         init.sh: do not emit simulated diff output to stderr
838         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
839
840 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
841
842         .gitignore: ignore gnulib.dvi and regex.info
843         * doc/.gitignore:add gnulib.dvi and regex.info
844
845 2011-12-22  Jim Meyering  <meyering@redhat.com>
846
847         init.sh: correct previous change
848         * tests/init.sh (compare): My previous change was wrong.
849         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
850
851         init.sh: avoid unwarranted test failure when using "set -e"
852         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
853         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
854         a use like "compare exp out" would get evoke an unconditional failure.
855
856 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
857
858         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
859         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
860         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
861         autoreconf that did not.
862         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
863         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
864
865 2011-12-17  Jim Meyering  <meyering@redhat.com>
866
867         bootstrap: remove some now-unneeded code
868         This script arose back when gnulib-tool was young.
869         Since then, it has seen improvements that render much of this
870         script unnecessary.  In particular, it can now make symlinks
871         to the files it uses.  Also, I no longer see as much value in
872         marking files as read-only via comments.
873         If you relied on the symlink-creation feature of the preceding
874         version of this script, you can get most of that functionality
875         by adding the --symlink option to the definition of
876         gnulib_tool_option_extras in your bootstrap.conf file.
877         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
878         Run autopoint and libtoolize *before* gnulib-tool.
879         After it, run an abbreviated autoreconf, rather than a loop around
880         all tools.
881         (slirp, bt_mark_as_generated): Remove functions.
882
883 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
884
885         ftoastr: fix typo
886         * lib/ftoastr.h: Fix misspelling in comment.
887
888 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
889
890         * top/README-release: fix punctuation.
891
892 2011-12-17  Jim Meyering  <meyering@redhat.com>
893
894         bootstrap: correct the recent buildreq change
895         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
896         had no effect.
897         * build-aux/bootstrap (buildreq): Bracket each search term with
898         "*...*", so that the shell "case" statement works as intended.
899         Add comments.
900
901 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
902
903         build: let bootstrap resort to wget when downloading .po files
904         * build-aux/bootstrap (download_po_files): Fallback to wget when
905         downloading the .po files via rsync fails.  This is necessary to
906         bootstrap from behind a strict firewall.
907
908 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
909
910         stdint: don't assume C++11 when compiling with g++
911         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
912         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
913         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
914         work also in C++ before C++11, as that improperly inhibits
915         generating a substitute stdint.h for that case.
916
917 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
918
919         alloca: protect comment from gnulib-tool
920         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
921         that gnulib-tool doesn't think it's a license, and munge it to
922         say "GCC version 3".
923
924 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
925
926         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
927         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
928         $(abs_top_builddir) instead of $(top_builddir).
929
930 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
931
932         strftime-tests: also test nanoseconds
933         * tests/test-strftime.c (T): Add a test of %N.
934
935 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
936
937         inttypes, stdint: add C++11 support
938         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
939         when including inttypes.h and stdint.h.  Support this change to
940         the standard.
941         * doc/posix-headers/inttypes.texi (inttypes.h):
942         * doc/posix-headers/stdint.texi (stdint.h): Document this.
943         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
944         Define if not defined already, for the benefit of pre-C++11 hosts.
945         Define the standard format macros (e.g., PRId8) always.
946         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
947         Likewise, if __cpluspus.  Define the standard constant and limit
948         macros (e.g., INT8_C, INT8_MAX) always.
949         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
950         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
951         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
952         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
953         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
954         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
955         Likewise.
956
957 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
958
959         nonblocking tests: Fix test failure on Linux/PPC.
960         Suggested by Prerna Saxena in
961         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
962         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
963         Set to 1100000.
964
965 2011-12-12  Jim Meyering  <meyering@redhat.com>
966
967         argmatch: don't hard-code `' when listing valid option arguments
968         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
969         use the quote function to add quotes.  Use fputs rather than
970         fprintf for the format string with no format directive.
971
972 2011-12-07  Eric Blake  <eblake@redhat.com>
973
974         bootstrap: detect tools required by gnulib-tool
975         * build-aux/bootstrap (buildreq): Provide minimum implicit
976         dependencies.
977         * DEPENDENCIES: Mention patch as a prereq.
978
979 2011-12-04  Bruno Haible  <bruno@clisp.org>
980
981         sethostname: Port to Windows platforms.
982         * lib/sethostname.c: Provide an alternate implementation for Windows
983         platforms.
984         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
985         (main): Skip the test if sethostname() fails with EPERM. On Windows
986         platforms, don't check the result of gethostname().
987
988 2011-12-04  Bruno Haible  <bruno@clisp.org>
989             Jim Meyering  <meyering@redhat.com>
990
991         tests: Avoid spurious error message on platforms without mktemp program.
992         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
993
994 2011-12-04  Bruno Haible  <bruno@clisp.org>
995
996         sethostname: Fix documentation.
997         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
998         "not fixed" section.
999
1000 2011-12-03  Bruno Haible  <bruno@clisp.org>
1001
1002         gnulib-tool: Verify that the License field is present and non-empty.
1003         * gnulib-tool (func_get_license_raw): New function, extracted from
1004         func_get_license.
1005         (func_get_license): Use it. Warn if the module is not a test module and
1006         has no license.
1007         Suggested by Jim Meyering.
1008
1009 2011-12-03  Bruno Haible  <bruno@clisp.org>
1010
1011         sethostname tests: Fix link error on mingw.
1012         * tests/test-sethostname1.c: New file, extracted from
1013         tests/test-sethostname.c.
1014         * tests/test-sethostname2.c: New file, extracted from
1015         tests/test-sethostname.c.
1016         * tests/test-sethostname.c: Remove file.
1017         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
1018         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
1019         (Depends-on): Add gethostname.
1020         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
1021         Link the latter with $(GETHOSTNAME_LIB).
1022
1023         sethostname tests: Fix compilation error on mingw.
1024         * tests/test-sethostname.c: Don't include <sys/types.h>.
1025         (geteuid): Use a dummy value without uid_t.
1026         * modules/sethostname-tests (Depends-on): Remove sys_types.
1027
1028         sethostname tests: Avoid a gcc warning.
1029         * tests/test-sethostname.c (main): Remove an unused variable.
1030
1031         Tweak last commit.
1032         * modules/sethostname-tests (Files): Sort by decreasing importance.
1033         (configure.ac): Check for geteuid.
1034         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
1035         the test when there's nothing to test. Drop an unnecessary cast.
1036         Improve an error message. Verify that the final sethostname() call
1037         succeeds.
1038
1039 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1040
1041         Add a test suite for the sethostname module.
1042         * modules/sethostname-tests: New file.  A test program
1043         for the sethostname module.
1044         * tests/test-sethostname.c: Likewise.
1045
1046 2011-12-03  Bruno Haible  <bruno@clisp.org>
1047
1048         Tweak last commit.
1049         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
1050         Fix preprocessor directives indentation. Fix typos.
1051         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
1052         * modules/unistd (Makefile): Likewise.
1053
1054 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1055
1056         Integrate the sethostname module into unistd.
1057         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
1058         into the unistd.h header.
1059         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
1060         preprocessor directives.
1061         * modules/unistd: Setup the Makefile substitutions of the
1062         SETHOSTNAME preprocessor directives.
1063
1064 2011-12-03  Bruno Haible  <bruno@clisp.org>
1065
1066         Tweak last commit.
1067         * lib/sethostname.c: Don't include <string.h>.
1068         (sethostname): No need to copy the argument string to the stack. Don't
1069         call clearerr. Preserve errno when fprintf failed.
1070         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
1071         Don't invoke AC_REPLACE_FUNCS.
1072         * modules/sethostname (Link): Remove empty section.
1073         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
1074         failure problem.
1075
1076 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1077
1078         New module 'sethostname'.
1079         * lib/sethostname.c (sethostname): New file.  Provide sethostname
1080         for systems that lack it.
1081         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
1082         sethostname declaration and function.
1083         * modules/sethostname: New file.  Define the sethostname module.
1084
1085 2011-12-03  Bruno Haible  <bruno@clisp.org>
1086
1087         Tweak last commit.
1088         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
1089
1090 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1091
1092         Split the HOST_NAME_MAX detection into a separate m4 macro.
1093         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
1094         macro so it can be used by the pending sethostname module.
1095
1096 2011-12-03  Bruno Haible  <bruno@clisp.org>
1097
1098         Fix module descriptions syntax.
1099         * modules/argv-iter (License): Fix syntax.
1100         * modules/di-set (License): Likewise.
1101         * modules/ino-map (License): Likewise.
1102         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
1103
1104 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
1105
1106         stdalign: port to Clang 3.0
1107         Problem reported by Simon Josefsson in
1108         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
1109         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
1110         which has <stdalign.h> but which does not define alignof.
1111         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
1112
1113 2011-12-01  Eric Blake  <eblake@redhat.com>
1114
1115         mktempd: silence dd usage
1116         * build-aux/mktempd (rand_bytes): Silence dd.
1117
1118 2011-11-30  Simon Josefsson  <simon@josefsson.org>
1119
1120         manywarnings: Don't mention gcc version in docstring.
1121         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
1122         Jim Meyering <meyering@redhat.com>.
1123
1124 2011-11-30  Jim Meyering  <meyering@redhat.com>
1125
1126         hash: mark a few floating point constants with "f" suffix
1127         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
1128         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
1129         floating point constants with "f", since they're destined to be
1130         saved/used as "float"s.
1131
1132 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
1133
1134         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
1135         * tests/test-float.c (test_long_double): Correct and re-enable the
1136         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
1137
1138 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
1139
1140         Avoid subtracting two pointers that don't point into the same block.
1141         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
1142         only pointers into the same memory block are subtracted. We cannot
1143         assume that sizeof (ptrdiff_t) == sizeof (void *).
1144
1145 2011-11-29  Eric Blake  <eblake@redhat.com>
1146
1147         maint.mk: add syntax check for use of compare from init.sh
1148         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
1149         moved here from coreutils.
1150
1151         manywarnings: drop -Wunsuffixed-float-constants
1152         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
1153         '1.0D', which is the only way to silence this warning for 'double'.
1154
1155 2011-11-29  Jim Meyering  <meyering@redhat.com>
1156
1157         hash: mark compute_bucket_size with the pure attribute
1158         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
1159
1160         quotearg, propername: correct pragma guard expression
1161         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
1162         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
1163
1164 2011-11-28  Jim Meyering  <meyering@redhat.com>
1165
1166         propername: do not mark proper_name with the const attribute
1167         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
1168         since it examines data pointed to by its parameter.
1169         * lib/propername.c (proper_name): Instead, add a pragma to suppress
1170         the suggestion from -Wsuggest-attribute=const.
1171
1172         propername: mark one more function as const
1173         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
1174
1175 2011-11-27  Jim Meyering  <meyering@redhat.com>
1176
1177         mark functions with const and pure attributes
1178
1179         Mark functions per suggestions from gcc-4.6 when using these options:
1180         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
1181         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
1182         Follow these guidelines: when possible, apply the attribute to
1183         an extern declaration, not to its definition.  Apply it to the
1184         definition only when the definition is static.
1185         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
1186         * lib/argv-iter.h (argv_iter_n_args): Likewise.
1187         * lib/base64.h (isbase64): Likewise.
1188         * lib/basename-lgpl.c (last_component, base_len): Likewise.
1189         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
1190         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
1191         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
1192         (c_tolower, c_toupper): Likewise.
1193         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
1194         * lib/chdir-long.c (find_non_slash): Likewise.
1195         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
1196         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
1197         * lib/file-type.h (file_type): Likewise.
1198         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
1199         * lib/filevercmp.c (verrevcmp): Likewise.
1200         * lib/freadahead.h (freadahead): Likewise.
1201         * lib/fts.c (fts_maxarglen): Likewise.
1202         * lib/hash-pjw.h (hash_pjw): Likewise.
1203         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
1204         * lib/hash.c (is_prime, next_prime): Likewise.
1205         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
1206         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
1207         (hash_table_ok, hash_get_first, hash_string): Likewise.
1208         (compute_bucket_size): Likewise.
1209         * lib/i-ring.h (i_ring_empty): Likewise.
1210         * lib/isnan.c (isnanl): Likewise.
1211         * lib/math.h (isnanl, rpl_isnanl): Likewise.
1212         * lib/memcasecmp.h (memcasecmp): Likewise.
1213         * lib/memchr2.h (memchr2): Likewise.
1214         * lib/memcmp2.h (memcmp2): Likewise.
1215         * lib/parse-datetime.y (lookup_zone): Likewise.
1216         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
1217         [!WINDOWS_SOCKETS]: Likewise.
1218         * lib/strnlen1.h (strnlen1): Likewise.
1219         * lib/uniwidth.in.h (uc_width): Likewise.
1220         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
1221         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
1222         (quoting_options_from_style): Add a comment.
1223         * lib/propername.h (proper_name): Add a comment.
1224
1225 2011-11-27  Bruno Haible  <bruno@clisp.org>
1226
1227         Remove unused macros from !_LIBC code in glibc-borrowed files.
1228         * lib/fnmatch.c (STRCOLL): Remove macro.
1229         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
1230         * lib/glob.c (__stat, __readdir64): Remove macros.
1231         * lib/tempname.c (__open64, __xstat64): Remove macros.
1232         Suggested by Paul Eggert.
1233
1234 2011-11-27  Bruno Haible  <bruno@clisp.org>
1235
1236         getcwd: Fix link error on MSVC 9.
1237         * modules/getcwd (Depends-on): Add readdir, rewinddir.
1238
1239 2011-11-27  Bruno Haible  <bruno@clisp.org>
1240
1241         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
1242         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
1243         HAVE_OPENDIR is 0.
1244         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
1245         HAVE_CLOSEDIR is 0.
1246         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
1247         is 0.
1248         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
1249
1250 2011-11-27  Bruno Haible  <bruno@clisp.org>
1251
1252         getcwd: Fix bug from 2011-08-17.
1253         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
1254         platforms that need it.
1255         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
1256         code of 4 to be a failure, not a success. This ensures that
1257         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
1258
1259 2011-11-27  Bruno Haible  <bruno@clisp.org>
1260
1261         binary-io tests: Avoid test failure on mingw when libtool is used.
1262         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
1263         Don't verify the size of t-bin-out1.tmp here.
1264         * tests/test-binary-io.sh: Verify it here.
1265         Reported by Simon Josefsson.
1266
1267 2011-11-26  Bruno Haible  <bruno@clisp.org>
1268
1269         Fix conflict between two instantiations of module 'unistd'.
1270         * gnulib-tool (func_emit_autoconf_snippet): Substitute
1271         ${include_guard_prefix} also in the autoconf snippet.
1272         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
1273         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
1274         GNULIB_UNISTD_H_GETOPT.
1275         * modules/getopt-posix (configure.ac): Set the
1276         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
1277         * modules/getopt-gnu (configure.ac): Likewise.
1278         * modules/unistd (Makefile.am): Change the substitution value of
1279         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
1280         Reported by Simon Josefsson.
1281
1282 2011-11-25  Bruno Haible  <bruno@clisp.org>
1283
1284         pagealign_alloc: Doc and comments.
1285         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
1286         module.
1287         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
1288
1289 2011-11-25  Jim Meyering  <meyering@redhat.com>
1290
1291         test-update-copyright.sh: avoid false-positive failure
1292         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
1293         around false positive failure on Cygwin/Windows.  The latter was
1294         matching erroneously-created files with names like
1295         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
1296
1297 2011-11-25  Simon Josefsson  <simon@josefsson.org>
1298
1299         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
1300         * m4/valgrind-tests.m4: Check that the parameters that will be
1301         used works, not just a subset of them.  Reported by Bruno Haible
1302         <bruno@clisp.org>.
1303
1304 2011-11-24  Jim Meyering  <meyering@redhat.com>
1305
1306         test-stdalign.c: comment out long double tests
1307         * tests/test-stdalign.c: Don't try to reduce alignment of long double
1308         variables.  That provokes errors like this from gcc-4.7.0 20111124:
1309         error: '_Alignas' specifiers cannot reduce alignment of \
1310         'static_longdouble_alignas'.
1311
1312 2011-11-22  Jim Meyering  <meyering@redhat.com>
1313
1314         init.sh: make "compare /dev/null FILE" output more readable
1315         * tests/init.sh (compare_): Document the preferred order of arguments.
1316         (emit_diff_u_header_): New function.
1317         (compare_dev_null_): Emit a simulated diff, rather than just the
1318         contents of the unexpected file.  Suggestion from Bruno Haible.
1319
1320 2011-11-21  Jim Meyering  <meyering@redhat.com>
1321             Eric Blake  <eblake@redhat.com>
1322
1323         init.sh: work around OSF/1 5.1's mishandling of /dev/null
1324         * tests/init.sh: Make our compare function slightly more portable.
1325         Reported by Bruno Haible in
1326         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
1327
1328 2011-11-21  Simon Josefsson  <simon@josefsson.org>
1329
1330         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
1331         before using it, in code that ends up in config.h.
1332
1333 2011-11-20  Bruno Haible  <bruno@clisp.org>
1334
1335         getcwd: Work around getcwd bug on AIX 5..7.
1336         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
1337         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
1338         Use a different value for gl_cv_func_getcwd_path_max. Move the
1339         definition of HAVE_PARTLY_WORKING_GETCWD from here...
1340         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
1341         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
1342         Define HAVE_MINIMALLY_WORKING_GETCWD.
1343         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
1344         where it is not even minimally working, that is, on AIX.
1345         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
1346         m4/getcwd-path-max.m4.
1347         (main): Update exit code computation.
1348         * doc/posix-functions/getcwd.texi: Mention list of platforms where
1349         getcwd does not handle long file names.
1350
1351 2011-11-20  Bruno Haible  <bruno@clisp.org>
1352
1353         getcwd: Fix bug from 2009-09-10.
1354         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
1355         like "no".
1356
1357 2011-11-20  Simon Josefsson  <simon@josefsson.org>
1358
1359         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
1360
1361 2011-11-20  Bruno Haible  <bruno@clisp.org>
1362
1363         fma tests: Avoid shadowing local variables.
1364         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
1365         expected.
1366
1367 2011-11-20  Bruno Haible  <bruno@clisp.org>
1368
1369         copysignf tests: Fix.
1370         * tests/test-copysignf.c: Fix signature check.
1371
1372 2011-11-20  Bruno Haible  <bruno@clisp.org>
1373
1374         fma: Remove unused code.
1375         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
1376         unused macros.
1377
1378 2011-11-20  Bruno Haible  <bruno@clisp.org>
1379
1380         sethostname: Fix doc about AIX.
1381         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
1382         sethostname; it has it.
1383
1384         sethostname: Mention more portability problems.
1385         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
1386         problem.
1387         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
1388
1389 2011-11-19  Bruno Haible  <bruno@clisp.org>
1390
1391         Depend on module fcntl-h when AT_FDCWD is used.
1392         * modules/utimens (Depends-on): Add fcntl-h.
1393         * modules/areadlinkat (Depends-on): Likewise.
1394         * modules/areadlinkat-with-size (Depends-on): Likewise.
1395         * modules/faccessat (Depends-on): Likewise.
1396         * modules/fchmodat (Depends-on): Likewise.
1397         * modules/fchownat (Depends-on): Likewise.
1398         * modules/getcwd (Depends-on): Likewise.
1399         * modules/mkdirat (Depends-on): Likewise.
1400         * modules/mkfifoat (Depends-on): Likewise.
1401         * modules/readlinkat (Depends-on): Likewise.
1402         * modules/symlinkat (Depends-on): Likewise.
1403         * modules/dup2-tests (Depends-on): Likewise.
1404         * modules/fdutimensat-tests (Depends-on): Likewise.
1405         * modules/futimens-tests (Depends-on): Likewise.
1406
1407 2011-11-19  Bruno Haible  <bruno@clisp.org>
1408
1409         euidaccess: Update a comment.
1410         * lib/euidaccess.c: Update comment about platforms with faccessat.
1411
1412 2011-11-19  Bruno Haible  <bruno@clisp.org>
1413
1414         openat: Fix file list.
1415         * modules/openat (Files): Remove lib/at-func.c.
1416
1417 2011-11-19  Bruno Haible  <bruno@clisp.org>
1418
1419         fstatat: Simplify.
1420         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
1421         gnulib should define rpl_fstatat, there is a
1422         "#define fstatat rpl_fstatat" in <sys/stat.h>.
1423
1424 2011-11-19  Bruno Haible  <bruno@clisp.org>
1425
1426         Ensure 'inline' can be used in tests/test-utimens-common.h.
1427         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
1428         * modules/futimens-tests (configure.ac): Likewise.
1429         * modules/utimens-tests (configure.ac): Likewise.
1430         * modules/utimensat-tests (configure.ac): Likewise.
1431
1432 2011-11-19  Simon Josefsson  <simon@josefsson.org>
1433
1434         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
1435         not hash_insert0.
1436         (hash_insert_if_absent): Doc fix.
1437
1438 2011-11-19  Simon Josefsson  <simon@josefsson.org>
1439
1440         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
1441
1442 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
1443
1444         test-getcwd: disambiguate exit status
1445         * tests/test-getcwd.c (test_long_name): Return 0..7.
1446         (main): Exit with an unambiguous exit status.  The old
1447         code yielded a mysterious mixture of two failure codes.
1448
1449         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
1450         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
1451         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
1452         rpl_fstatat or fstatat.  This should fix the other problem
1453         reported by Kai Habel in
1454         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
1455         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
1456         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
1457         and I reproduced it on a Solaris 8 host we still have in production.
1458
1459 2011-11-18  Jim Meyering  <meyering@redhat.com>
1460
1461         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
1462         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
1463         Add a sentence to the comment.
1464         (hash_insert0): New function that simply calls hash_insert_if_absent.
1465         * lib/hash.h (hash_insert_if_absent): Declare it.
1466         (hash_insert0): Add deprecation attribute.
1467         (_GL_ATTRIBUTE_DEPRECATED): Define.
1468         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
1469         not hash_insert0.
1470         * NEWS: Mention it, even though it's not really an incompatible change.
1471
1472 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
1473
1474         openat: avoid compilation failure due to lack of <errno.h> inclusion
1475         * lib/openat.c: Include <errno.h>.
1476
1477 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
1478
1479         * modules/getcwd (Depends-on): Add fdopendir.
1480         This fixes one of the two problems reported by Kai Habel in
1481         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
1482
1483         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
1484         stdalign problem reported by Ian Beckwith in
1485         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
1486         * modules/crypto/gc-arcfour (Depends-on):
1487         Depend conditionally on crypto/arcfour.
1488         * modules/crypto/gc-arctwo (Depends-on):
1489         Depend conditionally on crypto/arctwo.
1490         * modules/crypto/gc-des (Depends-on):
1491         Depend conditionally on crypto/des.
1492         * modules/crypto/gc-hmac-md5 (Depends-on):
1493         Depend conditionally on crypto/hmac-md5.
1494         * modules/crypto/gc-hmac-sha1 (Depends-on):
1495         Depend conditionally on crypto/hmac-sha1.
1496         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
1497         * modules/crypto/gc-md4 (Depends-on):
1498         Depend conditionally on crypto/md4.
1499         * modules/crypto/gc-md5 (Depends-on):
1500         Depend conditionally on crypto/md5.
1501         * modules/crypto/gc-rijndael (Depends-on):
1502         Depend conditionally on crypto/rijndael.
1503         * modules/crypto/gc-sha1 (Depends-on):
1504         Depend conditionally on crypto/sha1.
1505         * modules/crypto/gc-arcfour:
1506         * modules/crypto/gc-arctwo:
1507         * modules/crypto/gc-des:
1508         * modules/crypto/gc-hmac-md5:
1509         * modules/crypto/gc-hmac-sha1:
1510         * modules/crypto/gc-md2:
1511         * modules/crypto/gc-md4:
1512         * modules/crypto/gc-md5:
1513         * modules/crypto/gc-rijndael:
1514         * modules/crypto/gc-sha1:
1515         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
1516         now that the conditional dependencies do the work for us.
1517
1518 2011-11-17  Jim Meyering  <meyering@redhat.com>
1519
1520         tests: factor st_ctime-comparison out of two headers
1521         * tests/test-utimens-common.h (ctime_compare): Define.
1522         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
1523         * tests/test-lutimens.h (test_lutimens): Likewise.
1524         * tests/test-utimens.h (test_utimens): Likewise.
1525
1526         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
1527         Invoke the test program via an init.sh-using wrapper.
1528         * tests/test-getcwd.sh: New file.
1529         * modules/getcwd-tests (Files): Add it.
1530         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
1531
1532 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
1533
1534         gitlog-to-changelog: support multi-author commits.
1535         The FSF cares about keeping track of all authors of patches to its
1536         projects, but Git doesn't provide obvious support for multi-author
1537         changesets. Consensus seems to be forming around the use of extra
1538         Signed-off-by inspired lines in the log message formatted as
1539         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
1540         multi-author commits between version control systems.
1541         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
1542         log message and output in standard ChangeLog multi-author format.
1543         Reported by Peter Rosin <peda@lysator.liu.se>
1544
1545 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
1546             Bruno Haible  <bruno@clisp.org>
1547
1548         Fix some modules' file list.
1549         * modules/fstatat (Files): Add m4/lstat.m4.
1550         * modules/openat (Files): Likewise.
1551         * modules/unlinkat (Files): Likewise.
1552
1553 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
1554
1555         maint.mk: fix tight-scope.mk generation in VPATH builds.
1556         * top/maint.mk (tight-scope.mk): Make sure to prefix file
1557         reference with $(srcdir) so that the file is found correctly even
1558         when running `make syntax-check' in a VPATH build.
1559
1560 2011-11-13  Bruno Haible  <bruno@clisp.org>
1561             Jim Meyering  <meyering@redhat.com>
1562
1563         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
1564         * tests/init.sh (compare): Remove "No differences encountered" or
1565         synonymous output from the 'diff' program.
1566
1567 2011-11-13  Bruno Haible  <bruno@clisp.org>
1568
1569         Makefile: Tweak indentation.
1570         * Makefile: Use tab as first character in every line that contains rule
1571         commands.
1572
1573 2011-11-13  Bruno Haible  <bruno@clisp.org>
1574
1575         Syntax check for copyright statements.
1576         * check-copyright: New file.
1577         * Makefile (sc_check_copyright): New rule.
1578
1579 2011-11-13  Simon Josefsson  <simon@josefsson.org>
1580
1581         * build-aux/git-version-gen: Add --prefix to configure the tag
1582         match string.
1583
1584 2011-11-13  Simon Josefsson  <simon@josefsson.org>
1585
1586         * build-aux/git-version-gen: Add --help and --version.
1587
1588 2011-11-12  Jim Meyering  <meyering@redhat.com>
1589
1590         revamp the other test-exclude?.sh scripts to use init.sh, too
1591         * tests/test-exclude1.sh: Use init.sh.
1592         * tests/test-exclude2.sh: Likewise.
1593         * tests/test-exclude3.sh: Likewise.
1594         * tests/test-exclude4.sh: Likewise.
1595         * tests/test-exclude5.sh: Likewise.
1596         * tests/test-exclude6.sh: Likewise.
1597         * tests/test-exclude7.sh: Likewise.
1598         * tests/test-exclude8.sh: Likewise.
1599         * modules/exclude-tests (Files): List init.sh.
1600
1601         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
1602         These shell scripts ignored failure of the binary test-exclude,
1603         so making the latter return 77 didn't cause them to be skipped.
1604         * tests/test-exclude5.sh: Exit with test-exclude's error status
1605         when that program fails.  Revamp to use init.sh.
1606         * tests/test-exclude2.sh: Likewise.
1607
1608         test-exclude: fix a typo
1609         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
1610
1611 2011-11-11  Bruno Haible  <bruno@clisp.org>
1612
1613         obstack: Fix compilation error on MSVC 9.
1614         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
1615
1616 2011-11-11  Jim Meyering  <meyering@redhat.com>
1617
1618         test-exclude: skip tests rather than failing on deficient systems
1619         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
1620         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
1621         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
1622         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
1623
1624 2011-11-10  Bruno Haible  <bruno@clisp.org>
1625
1626         ptsname_r test: Avoid gcc warning on glibc systems.
1627         * tests/test-ptsname_r.c (null_ptr): New function.
1628         (test_errors): Use it.
1629
1630 2011-11-10  Bruno Haible  <bruno@clisp.org>
1631
1632         ptsname_r: Avoid compilation error on OSF/1 5.1.
1633         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
1634         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
1635         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
1636         function is not declared or incompatibly declared.
1637         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
1638         * modules/ptsname_r (Depends-on, configure.ac): Update.
1639         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
1640
1641 2011-11-10  Bruno Haible  <bruno@clisp.org>
1642
1643         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
1644         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
1645         When cross-compiling, guess yes on all platforms except AIX.
1646         Reported by Ludovic Courtès <ludo@gnu.org>.
1647
1648 2011-11-09  Bruno Haible  <bruno@clisp.org>
1649
1650         ptsname_r tests: Fix bugs.
1651         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
1652         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
1653
1654 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1655
1656         fstatat: work with cross-compilation
1657         Problem reported by Ludovic Courtès in
1658         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
1659         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
1660         "cross-compiling" and assume the bug is present.  Replace
1661         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
1662         an inverted sense, to be more conservative about our assumptions.
1663         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
1664
1665 2011-11-09  Bruno Haible  <bruno@clisp.org>
1666
1667         Improve MODULES.html output.
1668         * modules/mkfifoat (Description): Use the word "function".
1669         * modules/readlinkat (Description): Likewise.
1670         * modules/symlinkat (Description): Likewise.
1671
1672 2011-11-09  Eric Blake  <eblake@redhat.com>
1673
1674         ptsname_r-tests: new test module
1675         * modules/ptsname_r-tests: New module.
1676         * tests/test-ptsname_r.c: New file.
1677
1678         ptsname_r: new module
1679         * modules/ptsname_r: New module.
1680         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
1681         * lib/ptsname.c (__ptsname_r): Split...
1682         * lib/ptsname_r.c: ...into new file.
1683         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
1684         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
1685         * modules/stdlib (Makefile.am): Substitute witnesses.
1686         * lib/stdlib.in.h (ptsname_r): Declare it.
1687         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
1688         * MODULES.html.sh (Misc): Likewise.
1689         * modules/ptsname (Depends-on): Alter dependency.
1690         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
1691
1692 2011-11-09  Jim Meyering  <meyering@redhat.com>
1693
1694         announce-gen: be more concise when there's only one URL+tarball
1695         * build-aux/announce-gen (get_tool_versions): When you distribute
1696         only one type of tarball, combine the first two "Here are..."
1697         sections and make the key-checking grammar independent of
1698         how many tarballs there are.
1699
1700 2011-11-09  Eric Blake  <eblake@redhat.com>
1701
1702         openpty: provide a stub on mingw
1703         * lib/pty.in.h (includes): Provide forward declarations.
1704         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
1705
1706         raise: fix mingw handling of SIGPIPE
1707         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
1708
1709 2011-11-08  Bruno Haible  <bruno@clisp.org>
1710
1711         More conditional dependencies.
1712         * modules/faccessat (Depends-on): Add conditions.
1713         * modules/fchmodat (Depends-on): Likewise.
1714         * modules/fchownat (Depends-on): Likewise.
1715         * modules/fstatat (Depends-on): Likewise.
1716         * modules/mkfifoat (Depends-on): Likewise.
1717         * modules/readlinkat (Depends-on): Likewise.
1718         * modules/symlinkat (Depends-on): Likewise.
1719         * modules/unlinkat (Depends-on): Likewise.
1720         * modules/utimensat (Depends-on): Likewise.
1721         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
1722         * modules/linkat (Depends-on): Refine the conditions.
1723         * modules/renameat (Depends-on): Likewise.
1724
1725 2011-11-08  Bruno Haible  <bruno@clisp.org>
1726
1727         faccessat: Move AC_LIBOBJ invocation to module description.
1728         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
1729         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
1730         invocation from here...
1731         * modules/faccessat (configure.ac): ... to here. Invoke
1732         gl_PREREQ_FACCESSAT.
1733
1734 2011-11-08  Bruno Haible  <bruno@clisp.org>
1735
1736         faccessat: Simplify autoconf macro.
1737         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
1738         gl_FUNC_EUIDACCESS.
1739
1740 2011-11-08  Bruno Haible  <bruno@clisp.org>
1741
1742         renameat: Fix dependencies.
1743         * modules/renameat (Depends-on): Add stdbool.
1744
1745 2011-11-08  Bruno Haible  <bruno@clisp.org>
1746
1747         mkfifoat: Fix module description.
1748         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
1749         not gl_UNISTD_MODULE_INDICATOR.
1750
1751 2011-11-08  Bruno Haible  <bruno@clisp.org>
1752
1753         fstatat: Remove unused dependency.
1754         * modules/fstatat (Depends-on): Remove fstat.
1755
1756 2011-11-08  Simon Josefsson  <simon@josefsson.org>
1757
1758         GNUmakefile: behave when Makefile is missing.
1759         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
1760
1761 2011-11-08  Bruno Haible  <bruno@clisp.org>
1762
1763         openat: Conditionalize dependencies.
1764         * lib/openat.c: Reduce the scope of some #includes.
1765         * modules/openat (Depends-on): Add conditions.
1766
1767 2011-11-07  Jim Meyering  <meyering@redhat.com>
1768
1769         maint.mk: extract GPG key ID without using a temporary file
1770         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
1771         without using a temporary file.  Based on a suggestion from Werner Koch
1772         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
1773
1774 2011-11-07  Eric Blake  <eblake@redhat.com>
1775
1776         grantpt: fix typo
1777         * lib/stdlib.in.h (grantpt): Check correct function.
1778
1779         maint.mk: silence new syntax check
1780         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
1781
1782 2011-11-06  Bruno Haible  <bruno@clisp.org>
1783
1784         Doc about floating-point and math API.
1785         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
1786         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
1787
1788 2011-11-06  Bruno Haible  <bruno@clisp.org>
1789
1790         stdalign tests: Skip the test when compiled by Sun C.
1791         * tests/test-stdalign.c (main): Skip the test on Sun C.
1792
1793 2011-11-06  Bruno Haible  <bruno@clisp.org>
1794
1795         ansi-c++-opt: Complete the 2011-06-05 change.
1796         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
1797         does not support namespaces, set the variable to "no", not to ":".
1798
1799 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
1800
1801         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
1802
1803 2011-11-06  Bruno Haible  <bruno@clisp.org>
1804
1805         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
1806         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
1807         (minus_zerol) [HP-UX]: New macro.
1808         (unary_minus) [HP-UX]: New function.
1809         (copysignl) [HP-UX]: Use unary_minus function.
1810
1811 2011-11-06  Bruno Haible  <bruno@clisp.org>
1812
1813         ldexp, ldexpf, ldexpl: Enhance tests.
1814         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
1815         and tests/test-ldexpl.c.
1816         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
1817         LDEXP, MIN_EXP, MAX_EXP): New macros.
1818         Include test-ldexp.h.
1819         (main): Just call test_function.
1820         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
1821         infinity.h, nan.h.
1822         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
1823         MAX_EXP): New macros.
1824         Include test-ldexp.h.
1825         (x, y): Remove variables.
1826         (main): Just call test_function.
1827         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
1828         infinity.h, nan.h.
1829         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
1830         MAX_EXP): New macros.
1831         Include test-ldexp.h.
1832         (x, y): Remove variables.
1833         (main): Just call test_function.
1834         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
1835         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
1836         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
1837         (Depends-on): Add isnand-nolibm, signbit, float.
1838         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
1839         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
1840         (Depends-on): Add isnanf-nolibm, signbit, float.
1841
1842 2011-11-06  Bruno Haible  <bruno@clisp.org>
1843
1844         math tests: Cosmetics.
1845         * tests/test-math-c++.cc: Reorder declarations.
1846
1847 2011-11-05  Bruno Haible  <bruno@clisp.org>
1848
1849         fma*: Simplify test.
1850         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
1851         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
1852
1853         Tests for module 'fmal'.
1854         * modules/fmal-tests: New file.
1855         * tests/test-fmal1.c: New file.
1856         * tests/test-fmal2.c: New file.
1857
1858         New module 'fmal'.
1859         * lib/math.in.h (fmal): New declaration.
1860         * lib/fmal.c: New file.
1861         * m4/fmal.m4: New file.
1862         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
1863         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
1864         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
1865         REPLACE_FMAL.
1866         * modules/fmal: New file.
1867         * doc/posix-functions/fmal.texi: Mention the new module and the various
1868         bugs.
1869
1870         Tests for module 'fmaf'.
1871         * modules/fmaf-tests: New file.
1872         * tests/test-fmaf1.c: New file.
1873         * tests/test-fmaf2.c: New file.
1874
1875         New module 'fmaf'.
1876         * lib/math.in.h (fmaf): New declaration.
1877         * lib/fmaf.c: New file.
1878         * m4/fmaf.m4: New file.
1879         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
1880         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
1881         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
1882         REPLACE_FMAF.
1883         * modules/fmaf: New file.
1884         * doc/posix-functions/fmaf.texi: Mention the new module and the various
1885         bugs.
1886
1887         Tests for module 'fma'.
1888         * modules/fma-tests: New file.
1889         * tests/test-fma1.c: New file.
1890         * tests/test-fma1.h: New file.
1891         * tests/test-fma2.c: New file.
1892         * tests/test-fma2.h: New file.
1893
1894         New module 'fma'.
1895         * lib/math.in.h (fma): New declaration.
1896         * lib/fma.c: New file.
1897         * m4/fma.m4: New file.
1898         * m4/fegetround.m4: New file.
1899         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
1900         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
1901         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
1902         REPLACE_FMA.
1903         * modules/fma: New file.
1904         * doc/posix-functions/fma.texi: Mention the new module and the various
1905         bugs.
1906
1907         Extend gl_MATHFUNC.
1908         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
1909         Support 'void' as argument type.
1910         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
1911
1912 2011-11-05  Jim Meyering  <meyering@redhat.com>
1913
1914         maint.mk: also prohibit inclusion of dirent.h without use
1915         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
1916
1917 2011-11-05  Bruno Haible  <bruno@clisp.org>
1918
1919         ldexpl tests: Avoid test failure on MSVC 9.
1920         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
1921         value. Needed in order to enforce the conversion from a value greater
1922         than LDBL_MAX to Infinity.
1923
1924 2011-11-05  Bruno Haible  <bruno@clisp.org>
1925
1926         New modules 'at-internal', 'openat-h', split off from module 'openat'.
1927         * modules/at-internal: New file, extracted from modules/openat.
1928         * modules/openat-h: New file.
1929         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
1930         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
1931         * modules/openat (Description): Add reference to POSIX function.
1932         (Files): Remove lib/openat.h, lib/openat-proc.c.
1933         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
1934         intprops, unistd.
1935         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
1936         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
1937         gl_FCNTL_MODULE_INDICATOR.
1938         (Include): Remove unistd.h, openat.h.
1939         * modules/areadlinkat (Files): Add lib/at-func.c.
1940         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1941         openat-die, openat-h, save-cwd.
1942         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
1943         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1944         openat-die, openat-h, save-cwd, unistd.
1945         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
1946         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1947         openat-h, save-cwd. Remove fcntl-h, openat.
1948         * modules/fchmodat (Files): Remove lib/openat.h.
1949         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1950         openat, stdbool, unistd.
1951         * modules/fchownat (Files): Remove lib/openat.h.
1952         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1953         openat, stdbool, sys_stat.
1954         * modules/fdopendir (Files): Remove lib/openat-priv.h,
1955         lib/openat-proc.c.
1956         (Depends-on): Add at-internal.
1957         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
1958         * modules/fstatat (Files): Remove lib/openat.h.
1959         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
1960         stdbool, unistd.
1961         * modules/fts (Depends-on): Add openat-h.
1962         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
1963         openat.
1964         * modules/mkdirat (Files): Remove lib/openat.h.
1965         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
1966         openat, stdbool, sys_stat.
1967         * modules/mkfifoat (Files): Add lib/at-func.c.
1968         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1969         openat-h, save-cwd. Remove fcntl-h, openat.
1970         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
1971         * modules/readlinkat (Files): Add lib/at-func.c.
1972         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1973         openat-h, save-cwd. Remove fcntl-h, openat.
1974         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
1975         openat.
1976         * modules/selinux-at (Files): Add lib/at-func.c.
1977         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
1978         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
1979         * modules/symlinkat (Files): Add lib/at-func.c.
1980         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
1981         openat-h, save-cwd. Remove fcntl-h, openat.
1982         * modules/unlinkat (Files): Remove lib/openat.h.
1983         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
1984         stdbool.
1985         * modules/utimensat (Files): Add lib/at-func.c.
1986         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
1987         openat-die, openat-h, save-cwd.
1988         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
1989         * modules/fdutimensat-tests (Depends-on): Add openat.
1990         * modules/fstatat-tests (Depends-on): Add openat-h.
1991         * modules/readlinkat-tests (Depends-on): Add openat.
1992         * modules/symlinkat-tests (Depends-on): Add openat.
1993
1994 2011-11-05  Bruno Haible  <bruno@clisp.org>
1995
1996         openat: Include <stdbool.h>.
1997         * lib/openat.c: Include <stdbool.h>.
1998
1999 2011-11-04  Bruno Haible  <bruno@clisp.org>
2000
2001         fchownat, renameat, unlinkat: Fix dependencies.
2002         * modules/fchownat (Depends-on): Add fstatat.
2003         * modules/renameat (Depends-on): Likewise.
2004         * modules/unlinkat (Depends-on): Likewise.
2005
2006 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
2007
2008         openat: remove direct dependency on dirent
2009         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
2010         and hasn't been needed ever since fdopendir was split into its own
2011         module on 2009-08-31.
2012         * modules/openat (Depends-on): Remove dirent.
2013
2014 2011-11-04  Bruno Haible  <bruno@clisp.org>
2015
2016         renameat: Optimize code size.
2017         * modules/renameat (configure.ac): Don't compile at-func2.c if
2018         REPLACE_RENAMEAT is 1.
2019
2020 2011-11-04  Bruno Haible  <bruno@clisp.org>
2021
2022         openat tests: Fix file list.
2023         * modules/openat-tests (Files): Add tests/test-open.h.
2024
2025 2011-11-04  Bruno Haible  <bruno@clisp.org>
2026
2027         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
2028         * modules/fchmodat (Depends-on): Add openat-die.
2029         * modules/fchownat (Depends-on): Likewise.
2030         * modules/linkat (Depends-on): Likewise.
2031         * modules/renameat (Depends-on): Likewise.
2032         * modules/openat (Depends-on): Add dirent.
2033
2034 2011-11-04  Jim Meyering  <meyering@redhat.com>
2035
2036         at-func*.c: fix comments
2037         * lib/at-func2.c: Correct/improve first-line comment.
2038         * lib/at-func.c: Correct grammar in first-line comment.
2039
2040 2011-11-04  Bruno Haible  <bruno@clisp.org>
2041
2042         New module 'mkdirat', split off from module 'openat'.
2043         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
2044         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
2045         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
2046         * modules/mkdirat: New file, extracted from modules/openat.
2047         * modules/openat (Files): Remove lib/mkdirat.c.
2048         (Depends-on): Remove mkdir.
2049         (configure.ac): Remove AC_LIBOBJ of mkdirat.
2050         (Include): Remove <sys/stat.h>.
2051         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
2052         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
2053         tests/test-mkdir.h.
2054         (Depends-on): Remove ignore-value.
2055         (Makefile.am): Remove rules for test-mkdirat.
2056         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
2057         of module 'openat'.
2058         * NEWS: Mention the change.
2059
2060 2011-11-04  Bruno Haible  <bruno@clisp.org>
2061
2062         closedir: Avoid warning on mingw.
2063         * lib/closedir.c: Include <unistd.h>.
2064
2065 2011-11-04  Bruno Haible  <bruno@clisp.org>
2066
2067         New module 'fstatat', split off from module 'openat'.
2068         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
2069         defined.
2070         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
2071         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
2072         gl_FUNC_FSTATAT.
2073         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
2074         * modules/fstatat: New file, extracted from modules/openat.
2075         * modules/openat (Files): Remove lib/fstatat.c.
2076         (Depends-on): Remove lstat.
2077         (configure.ac): Remove AC_LIBOBJ of fstatat.
2078         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
2079         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
2080         tests/test-lstat.h, tests/test-stat.h.
2081         (Depends-on): Remove getcwd-lgpl.
2082         (Makefile.am): Remove rules for test-fstatat.
2083         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
2084         of module 'openat'.
2085         * NEWS: Mention the change.
2086         * modules/getcwd (Depends-on): Add fstatat.
2087         * modules/linkat (Depends-on): Likewise.
2088         * modules/mkfifoat-tests (Depends-on): Likewise.
2089         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
2090
2091 2011-11-03  Bruno Haible  <bruno@clisp.org>
2092
2093         New module 'unlinkat', split off from module 'openat'.
2094         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
2095         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
2096         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
2097         * modules/unlinkat: New file, extracted from modules/openat. Correct
2098         the dependency conditions.
2099         * modules/openat (Files): Remove lib/unlinkat.c.
2100         (Depends-on): Remove rmdir, unlink.
2101         (configure.ac): Remove AC_LIBOBJ of unlinkat.
2102         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
2103         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
2104         tests/test-rmdir.h, tests/test-unlink.h.
2105         (Depends-on): Remove unlinkdir.
2106         (Makefile.am): Remove rules for test-unlinkat.
2107         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
2108         of module 'openat'.
2109         * NEWS: Mention the change.
2110         * modules/linkat-tests (Depends-on): Add unlinkat.
2111         * modules/mkfifoat-tests (Depends-on): Likewise.
2112         * modules/readlinkat-tests (Depends-on): Likewise.
2113
2114 2011-11-02  Bruno Haible  <bruno@clisp.org>
2115
2116         New module 'fchmodat', split off from module 'openat'.
2117         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
2118         defined.
2119         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
2120         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
2121         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
2122         * modules/fchmodat: New file, extracted from modules/openat.
2123         * modules/openat (Files): Remove lib/fchmodat.c.
2124         (configure.ac): Remove AC_LIBOBJ of fchmodat.
2125         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
2126         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
2127         (Makefile.am): Remove rules for test-fchmodat.
2128         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
2129         of module 'openat'.
2130         * NEWS: Mention the change.
2131
2132 2011-11-02  Jim Meyering  <meyering@redhat.com>
2133
2134         putenv: indent #definition of "environ" to placate cppi
2135         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
2136
2137         gitlog-to-changelog: provide a ChangeLog-repair mechanism
2138         Git logs are often treated as immutable, because editing them
2139         changes the SHA1 checksums of all descendants.  Thus, errors in
2140         git logs tend to stay there forever.  However, when we generate
2141         a ChangeLog file -- typically for distribution -- from that git log,
2142         we can actually make corrections in the generated file.  The key
2143         lies in recording in machine-readable/applicable form the desired
2144         corrections.  See --help for description and an example.
2145         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
2146         (usage): Describe it; alphabetize option descriptions.
2147         (main): Honor the new option, carefully.
2148
2149 2011-11-01  Jim Meyering  <meyering@redhat.com>
2150
2151         gitlog-to-changelog: avoid an infloop
2152         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
2153         that ends up being empty.
2154
2155 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
2156
2157         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
2158         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
2159         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
2160         contains (possibly-quoted) backslashes.  This should avoid
2161         all-too-common shell bugs if COMPLICATED contains backslashes in
2162         the "wrong" places.  Reported by David Evans in
2163         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
2164         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
2165         because we want ASCII ranges.  Is there some reason we don't use
2166         the C locale everywhere in this script?
2167         (func_module, top level): Avoid unwanted pathname expansion when
2168         $repo_url_prefix or $repo_url_suffix_repl contain shell
2169         metacharacters like '?' and '*'.
2170
2171 2011-11-01  Bruno Haible  <bruno@clisp.org>
2172
2173         fchownat: Improve description.
2174         * modules/fchownat (Description): Add link to function.
2175
2176 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
2177
2178         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
2179         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
2180         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
2181         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
2182
2183 2011-11-01  Bruno Haible  <bruno@clisp.org>
2184
2185         alignof: Avoid collision with stdalign module.
2186         * lib/alignof.h (alignof): Remove macro.
2187         * NEWS: Mention the change.
2188         Reported by Paul Eggert.
2189
2190 2011-11-01  Bruno Haible  <bruno@clisp.org>
2191
2192         New module 'fchownat', split off from module 'openat'.
2193         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
2194         defined.
2195         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
2196         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
2197         invoke gl_FUNC_FCHOWNAT.
2198         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
2199         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
2200         * modules/fchownat: New file, extracted from modules/openat.
2201         * modules/openat (Files): Remove lib/fchownat.c.
2202         (Depends-on): Remove lchown.
2203         (configure.ac): Remove AC_LIBOBJ of fchownat.
2204         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
2205         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
2206         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
2207         (Depends-on): Remove mgetgroups, usleep, stat-time.
2208         (configure.ac): Remove test for getegid.
2209         (Makefile.am): Remove rules for test-fchownat.
2210         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
2211         of module 'openat'.
2212         * NEWS: Mention the change.
2213
2214 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
2215
2216         stdalign: port better to MSVC and to Sun C 5.11
2217         This fixes some of the problems reported by Bruno Haible in
2218         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
2219         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
2220         shortcomings of MSVC and of Sun C 5.11.
2221         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
2222         around __declspec arg.
2223         * modules/stdalign-tests (Files): Add tests/macros.h.
2224         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
2225         Include macros.h, for ASSERT.
2226         (DECLARE_ALIGNED): Remove.
2227         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
2228         to catch bug), and to 1 if not (simplifies the rest of the code).
2229         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
2230         (CHECK_AUTO): Remove.
2231         (CHECK_ALIGNED): Check only the alignment of the static vars,
2232         since auto var alignment isn't supported by Sun C 5.11.
2233         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
2234         ASSERT failures are easier to diagnose.
2235
2236 2011-10-31  Bruno Haible  <bruno@clisp.org>
2237
2238         doc about some IRIX 5.3 problems.
2239         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
2240         on IRIX 5.3.
2241         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
2242         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
2243         5.3.
2244         * doc/posix-functions/grantpt.texi: Likewise.
2245         * doc/posix-functions/unlockpt.texi: Likewise.
2246         * doc/posix-functions/lgamma.texi: Likewise.
2247         * doc/posix-functions/nextafter.texi: Likewise.
2248         * doc/posix-functions/remainder.texi: Likewise.
2249         * doc/posix-functions/select.texi: Mention misplaced declaration on
2250         IRIX 5.3.
2251         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2252
2253 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
2254
2255         gitlog-to-changelog: fix git-log invocation.
2256         git-log mishandles date strings before 1970-01-01 UTC, and there is
2257         no use to specify --since=1970-01-01 by default anyway.
2258         * build-aux/gitlog-to-changelog: By default, when no --since option
2259         was given, do not specify explicit --since option to git-log.
2260
2261 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
2262
2263         gitlog-to-changelog: new option --append-dot.
2264         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
2265         first non-blank line of each commit message terminated with a dot.
2266
2267 2011-10-30  Bruno Haible  <bruno@clisp.org>
2268
2269         ffsl, ffsll: Avoid compilation error due to 'restrict'.
2270         * lib/ffsl.h: Include <config.h>.
2271         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
2272
2273 2011-10-30  Jim Meyering  <meyering@redhat.com>
2274
2275         GNUmakefile: reenable "make syntax-check" for most projects
2276         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
2277         build-aux variable", "syntax-check" would do nothing but succeed with
2278         the "No version control files detected..." diagnostic (unless you
2279         happened to override _build-aux via cfg.mk).
2280         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
2281         to precede inclusion of maint.mk.  Otherwise, these variables would
2282         be used undefined in any project that does not override the default.
2283
2284 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
2285
2286         gitlog-to-changelog: treat a message with only blank lines as empty.
2287         * build-aux/gitlog-to-changelog: Move the code that removes leading and
2288         trailing blank lines before the code that issues a warning about an
2289         empty commit message.
2290
2291 2011-10-30  Jim Meyering  <meyering@redhat.com>
2292
2293         test-parse-datetime.c: avoid new DST-related false positive test failure
2294         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
2295         based on the time/date we'll convert, not the current time.
2296         Otherwise, the moment we cross a DST boundary like today's in
2297         Europe, (CEST to CET), that offset ends up being one hour off.
2298
2299 2011-10-27  Bruno Haible  <bruno@clisp.org>
2300
2301         fstat: Tweak documentation.
2302         * modules/fstat (Description): More precise description.
2303
2304 2011-10-27  Bruno Haible  <bruno@clisp.org>
2305
2306         Update documentation regarding 'largefile' module.
2307         * doc/posix-functions/fstat.texi: Tweak wording.
2308         * doc/posix-functions/opendir.texi: Mention that the module fixes the
2309         problems with huge directories and/or small ino_t types.
2310         * doc/posix-functions/readdir.texi: Likewise.
2311         * doc/posix-functions/rewinddir.texi: Likewise.
2312
2313 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
2314
2315         maint.mk: don't maintain a second build-aux variable.
2316         * maint.mk (build_aux): Removed.  The maintainer-makefile module
2317         depends on GNUmakefile, which already maintains a cfg.mk
2318         overridable $(_build-aux) for projects with a non-standard
2319         build-aux directory location, although without the $(srcdir)
2320         prefix.  Use that variable consistently instead of introducing a
2321         second one.  Adjust all call sites.
2322
2323 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
2324
2325         Add stdalign module and use it in other modules.
2326         This is based on a previous proposal by Bruno Haible
2327         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
2328
2329         stdalign: new module
2330         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
2331         * modules/stdalign: New files.
2332         * MODULES.html.sh (c1x_core_properties): Add stdalign.
2333         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
2334
2335         stdalign-tests: new module
2336         * modules/stdalign-tests, tests/test-stdalign.c: New files.
2337
2338         argp: use stdalign
2339         * lib/argp-parse.c: Include <stdalign.h>.
2340         (alignof): Remove.
2341         * modules/argp (Depends-on): Add stdalign.
2342
2343         crypto libraries: use stdalign
2344         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
2345         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
2346         Do not include <stdlib.h> twice, in md4.c.
2347         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
2348         because we are accessing a pointer's bit-pattern, not a size.
2349         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
2350         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
2351         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
2352         * modules/crypto/sha512: Likewise.
2353
2354         sys_socket: use stdalign, not alignof
2355         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
2356         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
2357
2358 2011-10-27  Bruno Haible  <bruno@clisp.org>
2359
2360         raise test: Avoid a test failure on Linux/MIPS.
2361         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
2362         because 99 is a valid signal on Linux/MIPS.
2363
2364 2011-10-27  Bruno Haible  <bruno@clisp.org>
2365
2366         nonblocking tests: Fix test failure on Linux/MIPS.
2367         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
2368         Set to 270000.
2369
2370 2011-10-27  Bruno Haible  <bruno@clisp.org>
2371
2372         utimensat: Work around problem on Linux/hppa.
2373         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
2374         values.
2375         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
2376
2377 2011-10-25  Jim Meyering  <meyering@redhat.com>
2378
2379         maint.mk: fix a bug in sc_prohibit_stddef_without_use
2380         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
2381         after symbols like NULL, size_t, etc.
2382         Reported by Alfred M. Szmidt.
2383
2384         maint.mk: exempt ENODATA from a syntax-check rule
2385         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
2386         from the sc_prohibit_always-defined_macros syntax-check rule.
2387         Add a comment.  See this for more details:
2388         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
2389
2390 2011-10-23  Jim Meyering  <meyering@redhat.com>
2391
2392         fts: close parent dir FD before returning from post-traversal fts_read
2393         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
2394         unlink A, even though an FD open on A remained.  This is suboptimal
2395         (holding a file descriptor open longer than needed), but otherwise not
2396         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
2397         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
2398         that represents a real problem: it causes the removal of A to fail
2399         with e.g., "rm: cannot remove `A': Device or resource busy"
2400
2401         fts visits each directory twice and keeps a cache (fts_fd_ring) of
2402         directory file descriptors.  After completing the final, FTS_DP,
2403         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
2404         cache, but then proceeded to add a new FD to it via the subsequent
2405         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
2406         final file descriptor would be closed only via fts_close's call to
2407         fd_ring_clear.  Now, it is usually closed earlier, via the final
2408         FTS_DP-returning fts_read call.
2409         * lib/fts.c (restore_initial_cwd): New function, converted from
2410         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
2411         Update callers.
2412         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
2413         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
2414
2415 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
2416             Bruno Haible  <bruno@clisp.org>
2417             Jim Meyering  <jim@meyering.net>
2418
2419         readme-release: improve safety of release prep instructions.
2420         * README-release: Don't git pull all branches when only master
2421         is needed for the release process.
2422         Run make maintainer-clean before changing trees and merging.
2423         Don't try to run ./configure right after git pull in case files
2424         that influence the bootstrap process have changed, move the
2425         ./configure step to after running ./bootstrap.
2426         Don't bootstrap "one last time"... it's the first time!
2427
2428 2011-10-22  Bruno Haible  <bruno@clisp.org>
2429
2430         errno, strerror-override: Support for MSVC 10.
2431         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
2432         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
2433         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
2434         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
2435         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
2436         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
2437         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
2438         Assign values compatible with MSVC 10.
2439         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
2440         New macros.
2441         (GNULIB_defined_EWINSOCK): New macro.
2442         * lib/strerror-override.c (strerror_override): Update accordingly.
2443         * lib/strerror-override.h: Likewise.
2444         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
2445         longer equal to the corresponding errno value.
2446         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2447
2448 2011-10-22  Bruno Haible  <bruno@clisp.org>
2449
2450         perror: Recognize when test program crashes.
2451         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
2452         strerror, set gl_cv_func_perror_works to no.
2453         Reported by Daniel Richard G. <skunk@iskunk.org>.
2454
2455         perror: Fix indentation.
2456         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
2457
2458 2011-10-22  Bruno Haible  <bruno@clisp.org>
2459
2460         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
2461         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
2462         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
2463         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
2464         functions, not as a macro.
2465         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
2466         macros.
2467         (isfinite, isinf, isnan, signbit): Check overloaded functions and
2468         absence of macro.
2469         Suggested by Eric Blake.
2470         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2471
2472 2011-10-21  Bruno Haible  <bruno@clisp.org>
2473
2474         relocatable-prog-wrapper: Don't leave object files behind.
2475         * build-aux/install-reloc: Re-synchronize list of .o files to be
2476         removed with list of compilation units.
2477
2478 2011-10-20  Bruno Haible  <bruno@clisp.org>
2479
2480         openpty, posix_openpt: Remove code duplication.
2481         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
2482         * lib/openpty.c: Include <stdlib.h>.
2483         (openpty): Use posix_openpt on all platforms except IRIX.
2484         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
2485
2486 2011-10-20  Bruno Haible  <bruno@clisp.org>
2487
2488         unlockpt: Detect invalid argument.
2489         * lib/unlockpt.c: Include <fcntl.h>.
2490         (unlockpt): Check whether fd is valid, using fcntl().
2491         * modules/unlockpt (Depends-on): Add fcntl-h.
2492
2493 2011-10-20  Bruno Haible  <bruno@clisp.org>
2494
2495         openpty: Avoid compilation error on AIX 6.1.
2496         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
2497
2498 2011-10-20  Bruno Haible  <bruno@clisp.org>
2499
2500         posix_openpt: Support for OpenBSD.
2501         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
2502         (posix_openpt) [OpenBSD]: New code.
2503         * lib/grantpt.c: Include <fcntl.h>.
2504         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
2505         * modules/grantpt (Depends-on): Add fcntl-h.
2506
2507 2011-10-20  Bruno Haible  <bruno@clisp.org>
2508
2509         posix_openpt test: Coding style.
2510         * tests/test-posix_openpt.c: Use GNU coding style.
2511
2512 2011-10-20  Bruno Haible  <bruno@clisp.org>
2513
2514         grantpt: Support --avoid=pt_chown.
2515         * modules/grantpt (Files): Add lib/pty-private.h.
2516
2517 2011-10-20  Bruno Haible  <bruno@clisp.org>
2518
2519         posix_openpt: Fix autoconf macro.
2520         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
2521         unneeded check for _getpty.
2522
2523 2011-10-20  Bruno Haible  <bruno@clisp.org>
2524
2525         openpty: Update comments.
2526         * lib/openpty.c: Add comments about Minix.
2527
2528 2011-10-19  Eric Blake  <eblake@redhat.com>
2529
2530         openpty: relax license
2531         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
2532
2533         pt_chown: use configmake to simplify build
2534         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
2535
2536         ptsname and others: relax license
2537         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
2538         * modules/unlockpt (License): Likewise.
2539         * modules/pt_chown (License): Likewise.
2540         * modules/ptsname (License): Likewise.
2541         * modules/ttyname_r (License): Likewise.
2542
2543 2011-10-19  Jim Meyering  <meyering@redhat.com>
2544
2545         posix_openpt: remove spurious #endif
2546         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
2547
2548 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
2549
2550         maint.mk: Respect $(build_aux) in web-manual rule.
2551         * top/maint.mk (web-manual): Find gen-announce script in user's
2552         $(build_aux) directory instead of hard-coding 'build-aux'.
2553
2554 2011-10-19  Bruno Haible  <bruno@clisp.org>
2555
2556         posix_openpt: Fix compilation error.
2557         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
2558         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
2559         Mention the openpty module as an alternative.
2560
2561 2011-10-19  Bruno Haible  <bruno@clisp.org>
2562
2563         Support for old NeXTstep 3.3 frexp().
2564         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
2565         execution time of the test to 5 seconds.
2566         Reported by Daniel Richard G. <skunk@iskunk.org>.
2567
2568 2011-10-19  Bruno Haible  <bruno@clisp.org>
2569
2570         Support for old NeXTstep 3.3 sed.
2571         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
2572         part, use /.../, not \|...|. Escape periods in the header file name.
2573         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
2574         Reported by Daniel Richard G. <skunk@iskunk.org>.
2575
2576 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2577
2578         Support for old NeXTstep 3.3 gcc.
2579         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
2580         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
2581         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
2582         * lib/spawn.in.h (_Restrict_arr_): Likewise.
2583         * lib/regex.h (_Restrict_arr_): Likewise.
2584         * lib/regex_internal.h (re_token_t): Likewise.
2585         * lib/regexec.c (check_node_accept_bytes): Likewise.
2586         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
2587
2588 2011-10-18  Eric Blake  <eblake@redhat.com>
2589
2590         posix_openpt: new module
2591         * modules/posix_openpt: New module.
2592         * m4/posix_openpt.m4: New file.
2593         * lib/posix_openpt.c: Likewise.
2594         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
2595         (gl_STDLIB_H_DEFAULTS): Set defaults.
2596         * modules/stdlib (Makefile.am): Substitute macros.
2597         * lib/stdlib.in.h (posix_openpt): Declare.
2598         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
2599         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
2600         * modules/posix_openpt-tests: New test module.
2601         * tests/test-posix_openpt.c: New test.
2602
2603 2011-10-15  Bruno Haible  <bruno@clisp.org>
2604
2605         xstrtoll: Fix compilation failure.
2606         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
2607         from lib/strtol.c.
2608         * doc/posix-headers/limits.texi: Mention missing numerical limits on
2609         some platforms.
2610         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2611
2612 2011-10-15  Bruno Haible  <bruno@clisp.org>
2613
2614         vasnprintf: Optimize bit search operation.
2615         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
2616         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
2617         gl_DOUBLE_EXPONENT_LOCATION.
2618         * modules/vasnprintf (Files): Add m4/exponentd.m4.
2619         * modules/unistdio/u8-vasnprintf (Files): Likewise.
2620         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
2621         * modules/unistdio/u16-vasnprintf (Files): Likewise.
2622         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
2623         * modules/unistdio/u32-vasnprintf (Files): Likewise.
2624         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
2625         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
2626         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
2627
2628 2011-10-15  Bruno Haible  <bruno@clisp.org>
2629
2630         vasnprintf: Fix comments.
2631         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
2632
2633 2011-10-14  Bruno Haible  <bruno@clisp.org>
2634
2635         Tests for module 'integer_length_ll'.
2636         * modules/integer_length_ll-tests: New file.
2637         * tests/test-integer_length_ll.c: New file.
2638
2639         New module 'integer_length_ll'.
2640         * lib/integer_length_ll.c: New file.
2641         * modules/integer_length_ll: New file.
2642
2643 2011-10-14  Bruno Haible  <bruno@clisp.org>
2644
2645         Tests for module 'integer_length_l'.
2646         * modules/integer_length_l-tests: New file.
2647         * tests/test-integer_length_l.c: New file.
2648
2649         New module 'integer_length_l'.
2650         * lib/integer_length_l.c: New file.
2651         * modules/integer_length_l: New file.
2652
2653 2011-10-14  Bruno Haible  <bruno@clisp.org>
2654
2655         Tests for module 'integer_length'.
2656         * modules/integer_length-tests: New file.
2657         * tests/test-integer_length.c: New file.
2658
2659         New module 'integer_length'.
2660         * lib/integer_length.h: New file.
2661         * lib/integer_length.c: New file.
2662         * modules/integer_length: New file.
2663
2664 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2665
2666         popen: Fix dependency conditions.
2667         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
2668
2669 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
2670
2671         perror: Fix autoconf test.
2672         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
2673         <stdlib.h> and <string.h>.
2674
2675 2011-10-14  Bruno Haible  <bruno@clisp.org>
2676
2677         ffsl: Optimize on 64-bit platforms.
2678         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
2679         unrolling.
2680
2681 2011-10-13  Bruno Haible  <bruno@clisp.org>
2682
2683         ffsl: Optimize on 32-bit platforms.
2684         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
2685         use ffs() without a loop.
2686
2687         ffsl, ffsll: Optimize for GCC.
2688         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
2689         * lib/ffsl.c (GCC_BUILTIN): New macro.
2690         * lib/ffsll.c (GCC_BUILTIN): Likewise.
2691
2692 2011-10-13  Bruno Haible  <bruno@clisp.org>
2693
2694         ffs, bcopy, memset: Support symbol renaming via config.h.
2695         * lib/ffs.c: Include <config.h>.
2696         * lib/bcopy.c: Likewise.
2697         * lib/memset.c: Likewise.
2698
2699 2011-10-10  Bruno Haible  <bruno@clisp.org>
2700
2701         atanl: Simplify for platforms where 'long double' == 'double'.
2702         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2703         alternative implementation.
2704         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2705         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2706         * modules/atanl (Depends-on): Add atan. Update conditions.
2707
2708 2011-10-10  Bruno Haible  <bruno@clisp.org>
2709
2710         acosl: Simplify for platforms where 'long double' == 'double'.
2711         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2712         alternative implementation.
2713         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2714         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2715         * modules/acosl (Depends-on): Add acos. Update conditions.
2716
2717 2011-10-10  Bruno Haible  <bruno@clisp.org>
2718
2719         asinl: Simplify for platforms where 'long double' == 'double'.
2720         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2721         alternative implementation.
2722         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2723         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2724         * modules/asinl (Depends-on): Add asin. Update conditions.
2725
2726 2011-10-10  Bruno Haible  <bruno@clisp.org>
2727
2728         tanl: Simplify for platforms where 'long double' == 'double'.
2729         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2730         implementation.
2731         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2732         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2733         * modules/tanl (Depends-on): Add tan. Update conditions.
2734         (configure.ac): Don't compile trigl.c if
2735         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2736
2737 2011-10-10  Bruno Haible  <bruno@clisp.org>
2738
2739         cosl: Simplify for platforms where 'long double' == 'double'.
2740         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2741         implementation.
2742         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2743         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2744         * modules/cosl (Depends-on): Add cos. Update conditions.
2745         (configure.ac): Don't compile sincosl.c and trigl.c if
2746         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2747
2748 2011-10-10  Bruno Haible  <bruno@clisp.org>
2749
2750         sinl: Simplify for platforms where 'long double' == 'double'.
2751         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2752         implementation.
2753         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2754         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2755         * modules/sinl (Depends-on): Add sin. Update conditions.
2756         (configure.ac): Don't compile sincosl.c and trigl.c if
2757         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2758
2759 2011-10-10  Bruno Haible  <bruno@clisp.org>
2760
2761         logl: Simplify for platforms where 'long double' == 'double'.
2762         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2763         implementation.
2764         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2765         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2766         * modules/logl (Depends-on): Add log. Update conditions.
2767
2768 2011-10-10  Bruno Haible  <bruno@clisp.org>
2769
2770         expl: Simplify for platforms where 'long double' == 'double'.
2771         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
2772         implementation.
2773         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2774         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2775         * modules/expl (Depends-on): Add exp. Update conditions.
2776
2777 2011-10-10  Bruno Haible  <bruno@clisp.org>
2778
2779         sqrtl: Simplify for platforms where 'long double' == 'double'.
2780         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2781         alternative implementation.
2782         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2783         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2784         * modules/sqrtl (Depends-on): Update conditions.
2785
2786 2011-10-10  Bruno Haible  <bruno@clisp.org>
2787
2788         ldexpl: Simplify for platforms where 'long double' == 'double'.
2789         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2790         alternative implementation.
2791         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2792         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2793         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
2794
2795 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
2796
2797         ffsll: set correct witness
2798         * modules/ffsll (configure.ac): Fix typo.
2799
2800 2011-10-10  Bruno Haible  <bruno@clisp.org>
2801
2802         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
2803         * lib/printf-frexpl.c: Include <config.h>.
2804         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2805         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
2806         second time.
2807         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
2808         gl_LONG_DOUBLE_VS_DOUBLE.
2809         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
2810         conditions.
2811
2812 2011-10-10  Bruno Haible  <bruno@clisp.org>
2813
2814         frexpl: Simplify for platforms where 'long double' == 'double'.
2815         * lib/frexpl.c: Include <config.h>.
2816         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2817         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2818         time.
2819         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2820         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2821         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
2822         * modules/frexpl (Depends-on): Add frexp. Update conditions.
2823         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
2824         conditions.
2825
2826 2011-10-10  Jim Meyering  <meyering@redhat.com>
2827
2828         test-renameat: don't leave behind a temporary file
2829         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
2830           ERROR: files left in build directory after distclean:
2831           ./gltests/test-renameat.too
2832           make[1]: *** [distcleancheck] Error 1
2833         Reported by Tom G. Christensen.
2834
2835 2011-10-09  Bruno Haible  <bruno@clisp.org>
2836
2837         rint: Determine RINT_LIBM correctly on AIX 7.
2838         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
2839         directly, not only through a function pointer. Also accept an optional
2840         4th argument with extra code.
2841         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
2842         rintf() call by gcc when optimizing.
2843
2844         mathfunc.m4: Refactor.
2845         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
2846         m4 variable.
2847
2848 2011-10-09  Bruno Haible  <bruno@clisp.org>
2849
2850         rintl: Simplify for platforms where 'long double' == 'double'.
2851         * lib/rintl.c: Include <config.h>.
2852         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2853         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2854         time.
2855         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2856         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2857         * modules/rintl (Depends-on): Add rint. Update conditions.
2858
2859 2011-10-09  Bruno Haible  <bruno@clisp.org>
2860
2861         roundl: Simplify for platforms where 'long double' == 'double'.
2862         * lib/roundl.c: Include <config.h>.
2863         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2864         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2865         time.
2866         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2867         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2868         * modules/roundl (Depends-on): Add round. Update conditions.
2869
2870 2011-10-09  Bruno Haible  <bruno@clisp.org>
2871
2872         truncl: Simplify for platforms where 'long double' == 'double'.
2873         * lib/truncl.c: Include <config.h>.
2874         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2875         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2876         time.
2877         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2878         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2879         * modules/truncl (Depends-on): Add trunc. Update conditions.
2880
2881 2011-10-09  Bruno Haible  <bruno@clisp.org>
2882
2883         ceill: Simplify for platforms where 'long double' == 'double'.
2884         * lib/ceill.c: Include <config.h>.
2885         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2886         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2887         time.
2888         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2889         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2890         * modules/ceill (Depends-on): Add ceil. Update conditions.
2891
2892 2011-10-09  Bruno Haible  <bruno@clisp.org>
2893
2894         floorl: Simplify for platforms where 'long double' == 'double'.
2895         * lib/floorl.c: Include <config.h>.
2896         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
2897         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
2898         time.
2899         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2900         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2901         * modules/floorl (Depends-on): Add floor. Update conditions.
2902
2903 2011-10-09  Bruno Haible  <bruno@clisp.org>
2904
2905         rint: Fix ordering constraints.
2906         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
2907         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
2908         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
2909
2910 2011-10-09  Bruno Haible  <bruno@clisp.org>
2911
2912         copysignl: Simplify for platforms where 'long double' == 'double'.
2913         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
2914         alternative.
2915         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
2916         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
2917         * modules/copysignl (Depends-on): Add copysign. Update conditions.
2918
2919 2011-10-09  Bruno Haible  <bruno@clisp.org>
2920
2921         Tests for module 'rintl'.
2922         * modules/rintl-tests: New file.
2923         * tests/test-rintl.c: New file.
2924
2925         New module 'rintl'.
2926         * lib/math.in.h (rintl): New declaration.
2927         * lib/rintl.c: New file.
2928         * m4/rintl.m4: New file.
2929         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
2930         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
2931         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
2932         * modules/rintl: New file.
2933         * tests/test-math-c++.cc: Check the declaration of rintl.
2934         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2935         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
2936         * doc/posix-functions/rintl.texi: Mention the new module.
2937
2938 2011-10-09  Bruno Haible  <bruno@clisp.org>
2939
2940         Tests for module 'rintf'.
2941         * modules/rintf-tests: New file.
2942         * tests/test-rintf.c: New file.
2943
2944         New module 'rintf'.
2945         * lib/math.in.h (rintf): New declaration.
2946         * lib/rintf.c: New file.
2947         * m4/rintf.m4: New file.
2948         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
2949         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
2950         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
2951         * modules/rintf: New file.
2952         * tests/test-math-c++.cc: Check the declaration of rintf.
2953         * doc/posix-functions/rintf.texi: Mention the new module.
2954
2955 2011-10-09  Bruno Haible  <bruno@clisp.org>
2956
2957         rint: Support for MSVC.
2958         * lib/math.in.h (rint): New declaration.
2959         * lib/rint.c: New file.
2960         * m4/rint.m4: New file.
2961         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
2962         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
2963         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
2964         * modules/rint (Description): Fix.
2965         (Files): Add lib/rint.c, m4/rint.m4.
2966         (Depends-on): Add math.
2967         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
2968         gl_MATH_MODULE_INDICATOR.
2969         * tests/test-math-c++.cc: Check the declaration of rint.
2970         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
2971         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
2972         * doc/posix-functions/rint.texi: Mention the replacement provided by
2973         the module.
2974
2975         rint tests: More tests.
2976         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
2977         minus-zero.h, infinity.h, nan.h.
2978         (main): Skip the test if the current rounding mode is not standard. Add
2979         tests for negative numbers, minus zero, infinity, NaN.
2980         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
2981         tests/nan.h.
2982         (Depends-on): Add isnand-nolibm.
2983
2984 2011-10-09  Bruno Haible  <bruno@clisp.org>
2985
2986         Tests for module 'copysignl'.
2987         * modules/copysignl-tests: New file.
2988         * tests/test-copysignl.c: New file.
2989
2990         New module 'copysignl'.
2991         * lib/math.in.h (copysignl): New declaration.
2992         * lib/copysignl.c: New file.
2993         * m4/copysignl.m4: New file.
2994         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
2995         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
2996         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
2997         HAVE_COPYSIGNL.
2998         * modules/copysignl: New file.
2999         * tests/test-math-c++.cc: Check the declaration of copysignl.
3000         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
3001         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
3002         * doc/posix-functions/copysignl.texi: Mention the new module.
3003
3004 2011-10-09  Bruno Haible  <bruno@clisp.org>
3005
3006         Tests for module 'copysignf'.
3007         * modules/copysignf-tests: New file.
3008         * tests/test-copysignf.c: New file.
3009
3010         New module 'copysignf'.
3011         * lib/math.in.h (copysignf): New declaration.
3012         * lib/copysignf.c: New file.
3013         * m4/copysignf.m4: New file.
3014         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
3015         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
3016         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
3017         HAVE_COPYSIGNF.
3018         * modules/copysignf: New file.
3019         * tests/test-math-c++.cc: Check the declaration of copysignf.
3020         * doc/posix-functions/copysignf.texi: Mention the new module.
3021
3022 2011-10-09  Bruno Haible  <bruno@clisp.org>
3023
3024         Ensure that HAVE_* variables are set to 1 before they are set to 0.
3025         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
3026         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
3027         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3028         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
3029         gl_SIGNAL_H_DEFAULTS.
3030
3031 2011-10-09  Bruno Haible  <bruno@clisp.org>
3032
3033         poll: Make macro safer.
3034         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
3035         ac_cv_header_poll_h is not set.
3036
3037 2011-10-09  Bruno Haible  <bruno@clisp.org>
3038
3039         copysign: Provide replacement.
3040         * lib/math.in.h (copysign): New declaration.
3041         * lib/copysign.c: New file.
3042         * m4/copysign.m4: New file.
3043         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
3044         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
3045         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
3046         HAVE_COPYSIGN.
3047         * modules/copysign (Description): Clarify.
3048         (Files): Add lib/copysign.c, m4/copysign.m4.
3049         (Depends-on): Add math, signbit.
3050         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
3051         gl_MATH_MODULE_INDICATOR.
3052         * tests/test-math-c++.cc: Check the declaration of copysign.
3053         * doc/posix-functions/copysign.texi: Mention the effects of the module
3054         on Minix and MSVC.
3055
3056 2011-10-09  Bruno Haible  <bruno@clisp.org>
3057
3058         isinf: Ensure macro on AIX 5.1.
3059         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
3060         macro.
3061         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
3062
3063 2011-10-09  Bruno Haible  <bruno@clisp.org>
3064
3065         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
3066         * modules/snprintf-posix-tests (configure.ac): Require
3067         gl_LONG_DOUBLE_VS_DOUBLE.
3068         * modules/sprintf-posix-tests (configure.ac): Likewise.
3069         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
3070         * modules/vasprintf-posix-tests (configure.ac): Likewise.
3071         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
3072         * modules/vsprintf-posix-tests (configure.ac): Likewise.
3073         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
3074         tests on platforms where 'long double' is the same as 'double'.
3075         * tests/test-sprintf-posix.h (test_function): Likewise.
3076         * tests/test-vasnprintf-posix.c (test_function): Likewise.
3077         * tests/test-vasprintf-posix.c (test_function): Likewise.
3078
3079         *printf: Fix for platforms where 'long double' == 'double'.
3080         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
3081         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
3082         * modules/dprintf-posix (Files): Add m4/math_h.m4.
3083         * modules/fprintf-posix (Files): Likewise.
3084         * modules/obstack-printf-posix (Files): Likewise.
3085         * modules/snprintf-posix (Files): Likewise.
3086         * modules/sprintf-posix (Files): Likewise.
3087         * modules/vasnprintf (Files): Likewise.
3088         * modules/vasnprintf-posix (Files): Likewise.
3089         * modules/vasprintf-posix (Files): Likewise.
3090         * modules/vdprintf-posix (Files): Likewise.
3091         * modules/vfprintf-posix (Files): Likewise.
3092         * modules/vsnprintf-posix (Files): Likewise.
3093         * modules/vsprintf-posix (Files): Likewise.
3094         * modules/unistdio/u8-vasnprintf (Files): Likewise.
3095         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
3096         * modules/unistdio/u16-vasnprintf (Files): Likewise.
3097         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
3098         * modules/unistdio/u32-vasnprintf (Files): Likewise.
3099         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
3100         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
3101
3102         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
3103         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
3104         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3105         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
3106         'long double'.
3107         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
3108
3109         isinf: Fix for platforms where 'long double' == 'double'.
3110         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
3111         Don't blindly assume 80-bit 'long double'.
3112
3113         isfinite: Fix for platforms where 'long double' == 'double'.
3114         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
3115         Don't blindly assume 80-bit 'long double'.
3116
3117         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
3118         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
3119         * modules/isfinite-tests (configure.ac): Require
3120         gl_LONG_DOUBLE_VS_DOUBLE.
3121         * modules/isinf-tests (configure.ac): Likewise.
3122         * modules/isnan-tests (configure.ac): Likewise.
3123         * modules/isnanl-tests (configure.ac): Likewise.
3124         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
3125         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
3126         tests on platforms where 'long double' is the same as 'double'.
3127         * tests/test-isinf.c (test_isinfl): Likewise.
3128         * tests/test-isnan.c (test_long_double): Likewise.
3129         * tests/test-isnanl.h (main): Likewise.
3130
3131 2011-10-08  Bruno Haible  <bruno@clisp.org>
3132
3133         Tests for module 'tanhf'.
3134         * modules/tanhf-tests: New file.
3135         * tests/test-tanhf.c: New file.
3136
3137         New module 'tanhf'.
3138         * lib/math.in.h (tanhf): New declaration.
3139         * lib/tanhf.c: New file.
3140         * m4/tanhf.m4: New file.
3141         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
3142         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
3143         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
3144         * modules/tanhf: New file.
3145         * tests/test-math-c++.cc: Check the declaration of tanhf.
3146         * doc/posix-functions/tanhf.texi: Mention the new module.
3147
3148         tanh: Use a .m4 file.
3149         * m4/tanh.m4: New file.
3150         * modules/tanh (Files): Add it.
3151         (configure.ac): Just invoke gl_FUNC_TANH.
3152
3153 2011-10-08  Bruno Haible  <bruno@clisp.org>
3154
3155         Tests for module 'coshf'.
3156         * modules/coshf-tests: New file.
3157         * tests/test-coshf.c: New file.
3158
3159         New module 'coshf'.
3160         * lib/math.in.h (coshf): New declaration.
3161         * lib/coshf.c: New file.
3162         * m4/coshf.m4: New file.
3163         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
3164         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
3165         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
3166         * modules/coshf: New file.
3167         * tests/test-math-c++.cc: Check the declaration of coshf.
3168         * doc/posix-functions/coshf.texi: Mention the new module.
3169
3170         cosh: Use a .m4 file.
3171         * m4/cosh.m4: New file.
3172         * modules/cosh (Files): Add it.
3173         (configure.ac): Just invoke gl_FUNC_COSH.
3174
3175 2011-10-08  Bruno Haible  <bruno@clisp.org>
3176
3177         Tests for module 'sinhf'.
3178         * modules/sinhf-tests: New file.
3179         * tests/test-sinhf.c: New file.
3180
3181         New module 'sinhf'.
3182         * lib/math.in.h (sinhf): New declaration.
3183         * lib/sinhf.c: New file.
3184         * m4/sinhf.m4: New file.
3185         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
3186         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
3187         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
3188         * modules/sinhf: New file.
3189         * tests/test-math-c++.cc: Check the declaration of sinhf.
3190         * doc/posix-functions/sinhf.texi: Mention the new module.
3191
3192         sinh: Use a .m4 file.
3193         * m4/sinh.m4: New file.
3194         * modules/sinh (Files): Add it.
3195         (configure.ac): Just invoke gl_FUNC_SINH.
3196
3197 2011-10-08  Bruno Haible  <bruno@clisp.org>
3198
3199         Tests for module 'atan2f'.
3200         * modules/atan2f-tests: New file.
3201         * tests/test-atan2f.c: New file.
3202
3203         New module 'atan2f'.
3204         * lib/math.in.h (atan2f): New declaration.
3205         * lib/atan2f.c: New file.
3206         * m4/atan2f.m4: New file.
3207         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
3208         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
3209         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
3210         * modules/atan2f: New file.
3211         * tests/test-math-c++.cc: Check the declaration of atan2f.
3212         * doc/posix-functions/atan2f.texi: Mention the new module.
3213
3214         atan2: Use a .m4 file.
3215         * m4/atan2.m4: New file.
3216         * modules/atan2 (Files): Add it.
3217         (configure.ac): Just invoke gl_FUNC_ATAN2.
3218
3219 2011-10-08  Bruno Haible  <bruno@clisp.org>
3220
3221         Tests for module 'atanf'.
3222         * modules/atanf-tests: New file.
3223         * tests/test-atanf.c: New file.
3224
3225         New module 'atanf'.
3226         * lib/math.in.h (atanf): New declaration.
3227         * lib/atanf.c: New file.
3228         * m4/atanf.m4: New file.
3229         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
3230         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
3231         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
3232         * modules/atanf: New file.
3233         * tests/test-math-c++.cc: Check the declaration of atanf.
3234         * doc/posix-functions/atanf.texi: Mention the new module.
3235
3236         atan: Use a .m4 file.
3237         * m4/atan.m4: New file.
3238         * modules/atan (Files): Add it.
3239         (configure.ac): Just invoke gl_FUNC_ATAN.
3240
3241 2011-10-08  Bruno Haible  <bruno@clisp.org>
3242
3243         Tests for module 'acosf'.
3244         * modules/acosf-tests: New file.
3245         * tests/test-acosf.c: New file.
3246
3247         New module 'acosf'.
3248         * lib/math.in.h (acosf): New declaration.
3249         * lib/acosf.c: New file.
3250         * m4/acosf.m4: New file.
3251         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
3252         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
3253         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
3254         * modules/acosf: New file.
3255         * tests/test-math-c++.cc: Check the declaration of acosf.
3256         * doc/posix-functions/acosf.texi: Mention the new module.
3257
3258         acos: Use a .m4 file.
3259         * m4/acos.m4: New file.
3260         * modules/acos (Files): Add it.
3261         (configure.ac): Just invoke gl_FUNC_ACOS.
3262
3263 2011-10-08  Bruno Haible  <bruno@clisp.org>
3264
3265         Tests for module 'asinf'.
3266         * modules/asinf-tests: New file.
3267         * tests/test-asinf.c: New file.
3268
3269         New module 'asinf'.
3270         * lib/math.in.h (asinf): New declaration.
3271         * lib/asinf.c: New file.
3272         * m4/asinf.m4: New file.
3273         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
3274         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
3275         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
3276         * modules/asinf: New file.
3277         * tests/test-math-c++.cc: Check the declaration of asinf.
3278         * doc/posix-functions/asinf.texi: Mention the new module.
3279
3280         asin: Use a .m4 file.
3281         * m4/asin.m4: New file.
3282         * modules/asin (Files): Add it.
3283         (configure.ac): Just invoke gl_FUNC_ASIN.
3284
3285 2011-10-08  Bruno Haible  <bruno@clisp.org>
3286
3287         Tests for module 'tanf'.
3288         * modules/tanf-tests: New file.
3289         * tests/test-tanf.c: New file.
3290
3291         New module 'tanf'.
3292         * lib/math.in.h (tanf): New declaration.
3293         * lib/tanf.c: New file.
3294         * m4/tanf.m4: New file.
3295         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
3296         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
3297         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
3298         * modules/tanf: New file.
3299         * tests/test-math-c++.cc: Check the declaration of tanf.
3300         * doc/posix-functions/tanf.texi: Mention the new module.
3301
3302         tan: Use a .m4 file.
3303         * m4/tan.m4: New file.
3304         * modules/tan (Files): Add it.
3305         (configure.ac): Just invoke gl_FUNC_TAN.
3306
3307 2011-10-08  Bruno Haible  <bruno@clisp.org>
3308
3309         Tests for module 'cosf'.
3310         * modules/cosf-tests: New file.
3311         * tests/test-cosf.c: New file.
3312
3313         New module 'cosf'.
3314         * lib/math.in.h (cosf): New declaration.
3315         * lib/cosf.c: New file.
3316         * m4/cosf.m4: New file.
3317         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
3318         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
3319         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
3320         * modules/cosf: New file.
3321         * tests/test-math-c++.cc: Check the declaration of cosf.
3322         * doc/posix-functions/cosf.texi: Mention the new module.
3323
3324         cos: Use a .m4 file.
3325         * m4/cos.m4: New file.
3326         * modules/cos (Files): Add it.
3327         (configure.ac): Just invoke gl_FUNC_COS.
3328
3329 2011-10-08  Bruno Haible  <bruno@clisp.org>
3330
3331         Tests for module 'sinf'.
3332         * modules/sinf-tests: New file.
3333         * tests/test-sinf.c: New file.
3334
3335         New module 'sinf'.
3336         * lib/math.in.h (sinf): New declaration.
3337         * lib/sinf.c: New file.
3338         * m4/sinf.m4: New file.
3339         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
3340         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
3341         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
3342         * modules/sinf: New file.
3343         * tests/test-math-c++.cc: Check the declaration of sinf.
3344         * doc/posix-functions/sinf.texi: Mention the new module.
3345
3346         sin: Use a .m4 file.
3347         * m4/sin.m4: New file.
3348         * modules/sin (Files): Add it.
3349         (configure.ac): Just invoke gl_FUNC_SIN.
3350
3351 2011-10-08  Bruno Haible  <bruno@clisp.org>
3352
3353         Tests for module 'powf'.
3354         * modules/powf-tests: New file.
3355         * tests/test-powf.c: New file.
3356
3357         New module 'powf'.
3358         * lib/math.in.h (powf): New declaration.
3359         * lib/powf.c: New file.
3360         * m4/powf.m4: New file.
3361         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
3362         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
3363         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
3364         * modules/powf: New file.
3365         * tests/test-math-c++.cc: Check the declaration of powf.
3366         * doc/posix-functions/powf.texi: Mention the new module.
3367
3368         pow: Use a .m4 file.
3369         * m4/pow.m4: New file.
3370         * modules/pow (Files): Add it.
3371         (configure.ac): Just invoke gl_FUNC_POW.
3372
3373 2011-10-08  Bruno Haible  <bruno@clisp.org>
3374
3375         Tests for module 'log10f'.
3376         * modules/log10f-tests: New file.
3377         * tests/test-log10f.c: New file.
3378
3379         New module 'log10f'.
3380         * lib/math.in.h (log10f): New declaration.
3381         * lib/log10f.c: New file.
3382         * m4/log10f.m4: New file.
3383         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
3384         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
3385         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
3386         * modules/log10f: New file.
3387         * tests/test-math-c++.cc: Check the declaration of log10f.
3388         * doc/posix-functions/log10f.texi: Mention the new module.
3389
3390         log10: Use a .m4 file.
3391         * m4/log10.m4: New file.
3392         * modules/log10 (Files): Add it.
3393         (configure.ac): Just invoke gl_FUNC_LOG10.
3394
3395 2011-10-08  Bruno Haible  <bruno@clisp.org>
3396
3397         Tests for module 'logf'.
3398         * modules/logf-tests: New file.
3399         * tests/test-logf.c: New file.
3400
3401         New module 'logf'.
3402         * lib/math.in.h (logf): New declaration.
3403         * lib/logf.c: New file.
3404         * m4/logf.m4: New file.
3405         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
3406         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
3407         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
3408         * modules/logf: New file.
3409         * tests/test-math-c++.cc: Check the declaration of logf.
3410         * doc/posix-functions/logf.texi: Mention the new module.
3411
3412         log: Use a .m4 file.
3413         * m4/log.m4: New file.
3414         * modules/log (Files): Add it.
3415         (configure.ac): Just invoke gl_FUNC_LOG.
3416
3417 2011-10-08  Bruno Haible  <bruno@clisp.org>
3418
3419         Tests for module 'expf'.
3420         * modules/expf-tests: New file.
3421         * tests/test-expf.c: New file.
3422
3423         New module 'expf'.
3424         * lib/math.in.h (expf): New declaration.
3425         * lib/expf.c: New file.
3426         * m4/expf.m4: New file.
3427         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
3428         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
3429         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
3430         * modules/expf: New file.
3431         * tests/test-math-c++.cc: Check the declaration of expf.
3432         * doc/posix-functions/expf.texi: Mention the new module.
3433
3434         exp: Use a .m4 file.
3435         * m4/exp.m4: New file.
3436         * modules/exp (Files): Add it.
3437         (configure.ac): Just invoke gl_FUNC_EXP.
3438
3439 2011-10-08  Bruno Haible  <bruno@clisp.org>
3440
3441         Tests for module 'sqrtf'.
3442         * modules/sqrtf-tests: New file.
3443         * tests/test-sqrtf.c: New file.
3444
3445         New module 'sqrtf'.
3446         * lib/math.in.h (sqrtf): New declaration.
3447         * lib/sqrtf.c: New file.
3448         * m4/sqrtf.m4: New file.
3449         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
3450         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
3451         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
3452         * modules/sqrtf: New file.
3453         * tests/test-math-c++.cc: Check the declaration of sqrtf.
3454         * doc/posix-functions/sqrtf.texi: Mention the new module.
3455
3456 2011-10-08  Bruno Haible  <bruno@clisp.org>
3457
3458         Tests: Avoid link failures w.r.t. libintl.
3459         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
3460         $(LIBINTL).
3461         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
3462         $(LIBINTL).
3463         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
3464         against $(LIBINTL).
3465         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
3466         $(LIBINTL).
3467         * modules/openat-tests (Makefile.am): Link test-fchmodat against
3468         $(LIBINTL).
3469         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
3470
3471 2011-10-08  Bruno Haible  <bruno@clisp.org>
3472
3473         pow tests: Defeat compiler optimizations.
3474         * tests/test-pow.c (main): Assign arguments to x and y before use.
3475
3476 2011-10-08  Bruno Haible  <bruno@clisp.org>
3477
3478         gnulib-tool: Improve last commit.
3479         * gnulib-tool (func_modules_transitive_closure): Simplify code.
3480         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
3481         ignore dependencies that are not among the modules list.
3482
3483 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
3484
3485         gnulib-tool: don't follow dependencies to avoided modules
3486         This fixes a bug that is related to the previous one.
3487         * gnulib-tool (func_modules_transitive_closure)
3488         (func_emit_autoconf_snippets):
3489         Check whether a dependency is acceptable before using it.
3490         (--extract-dependencies): Report an error if --avoid is also used,
3491         since this combination of options is not yet supported.
3492
3493         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
3494         Problem reported by Peter Dyballa in
3495         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
3496         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
3497         when echoing "$condition".
3498
3499 2011-10-07  Bruno Haible  <bruno@clisp.org>
3500
3501         Fix documentation about math functions on MacOS X.
3502         * doc/posix-functions/exp2.texi: Don't say the function is missing on
3503         MacOS X 10.5.
3504         * doc/posix-functions/fdim.texi: Likewise.
3505         * doc/posix-functions/feclearexcept.texi: Likewise.
3506         * doc/posix-functions/fegetenv.texi: Likewise.
3507         * doc/posix-functions/fegetround.texi: Likewise.
3508         * doc/posix-functions/feholdexcept.texi: Likewise.
3509         * doc/posix-functions/feraiseexcept.texi: Likewise.
3510         * doc/posix-functions/fesetenv.texi: Likewise.
3511         * doc/posix-functions/fesetround.texi: Likewise.
3512         * doc/posix-functions/fetestexcept.texi: Likewise.
3513         * doc/posix-functions/feupdateenv.texi: Likewise.
3514         * doc/posix-functions/fmax.texi: Likewise.
3515         * doc/posix-functions/fmin.texi: Likewise.
3516         * doc/posix-functions/log2.texi: Likewise.
3517         * doc/posix-functions/modff.texi: Likewise.
3518         * doc/posix-functions/nan.texi: Likewise.
3519         * doc/posix-functions/nanf.texi: Likewise.
3520         * doc/posix-functions/nextafterf.texi: Likewise.
3521         * doc/posix-functions/remquo.texi: Likewise.
3522
3523 2011-10-07  Bruno Haible  <bruno@clisp.org>
3524
3525         modff: Drop assumption about library that defines modff.
3526         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
3527         AC_CHECK_FUNCS.
3528         * modules/modff (Files): Add m4/mathfunc.m4.
3529
3530 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
3531
3532         raise tests: Avoid a GCC warning.
3533         * tests/test-raise.c (handler): Use _Noreturn.
3534
3535 2011-10-07  Bruno Haible  <bruno@clisp.org>
3536
3537         Tests for module 'ldexpf'.
3538         * modules/ldexpf-tests: New file.
3539         * tests/test-ldexpf.c: New file.
3540
3541         New module 'ldexpf'.
3542         * lib/math.in.h (ldexpf): New declaration.
3543         * lib/ldexpf.c: New file.
3544         * m4/ldexpf.m4: New file.
3545         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
3546         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
3547         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
3548         * modules/ldexpf: New file.
3549         * tests/test-math-c++.cc: Check the declaration of ldexpf.
3550         * doc/posix-functions/ldexpf.texi: Mention the new module.
3551
3552 2011-10-06  Bruno Haible  <bruno@clisp.org>
3553
3554         frexpf: Work around problems on IRIX and mingw.
3555         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
3556         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
3557         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
3558         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
3559         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
3560         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
3561         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
3562
3563 2011-10-06  Bruno Haible  <bruno@clisp.org>
3564
3565         fabsf: Drop assumption about library that defines fabsf.
3566         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
3567         AC_CHECK_FUNCS.
3568         * modules/fabsf (Files): Add m4/mathfunc.m4.
3569
3570 2011-10-06  Bruno Haible  <bruno@clisp.org>
3571
3572         frexpf: Drop assumption about library that defines frexpf.
3573         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
3574         'int *', 'float *', 'long double *', 'float', 'long double'.
3575         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
3576         AC_CHECK_FUNCS.
3577         * modules/frexpf (Files): Add m4/mathfunc.m4.
3578
3579         Tests for module 'frexpf'.
3580         * modules/frexpf-tests: New file.
3581         * tests/test-frexpf.c: New file.
3582
3583         New module 'frexpf'.
3584         * lib/math.in.h (frexpf): New declaration.
3585         * lib/frexpf.c: New file.
3586         * m4/frexpf.m4: New file.
3587         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
3588         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
3589         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
3590         * modules/frexpf: New file.
3591         * tests/test-math-c++.cc: Check the declaration of frexpf.
3592         * doc/posix-functions/frexpf.texi: Mention the new module.
3593
3594 2011-10-06  Bruno Haible  <bruno@clisp.org>
3595
3596         math: Sort function declarations of math.in.h.
3597         * lib/math.in.h (frexp, logb): Move declarations.
3598
3599 2011-10-05  Bruno Haible  <bruno@clisp.org>
3600
3601         Tests for module 'modff'.
3602         * modules/modff-tests: New file.
3603         * tests/test-modff.c: New file.
3604
3605         New module 'modff'.
3606         * lib/math.in.h (modff): New declaration.
3607         * lib/modff.c: New file.
3608         * m4/modff.m4: New file.
3609         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
3610         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
3611         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
3612         * modules/modff: New file.
3613         * tests/test-math-c++.cc: Check the declaration of modff.
3614         * doc/posix-functions/modff.texi: Mention the new module.
3615
3616         modf tests: Make test sharper.
3617         * tests/test-modf.c (main): Strengthen upper bound.
3618
3619         modf: Use a .m4 file.
3620         * m4/modf.m4: New file.
3621         * modules/modf (Files): Add it.
3622         (configure.ac): Just invoke gl_FUNC_MODF.
3623
3624 2011-10-05  Bruno Haible  <bruno@clisp.org>
3625
3626         Tests for module 'fmodf'.
3627         * modules/fmodf-tests: New file.
3628         * tests/test-fmodf.c: New file.
3629
3630         New module 'fmodf'.
3631         * lib/math.in.h (fmodf): New declaration.
3632         * lib/fmodf.c: New file.
3633         * m4/fmodf.m4: New file.
3634         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
3635         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
3636         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
3637         * modules/fmodf: New file.
3638         * tests/test-math-c++.cc: Check the declaration of fmodf.
3639         * doc/posix-functions/fmodf.texi: Mention the new module.
3640
3641         fmod: Use a .m4 file.
3642         * m4/fmod.m4: New file.
3643         * modules/fmod (Files): Add it.
3644         (configure.ac): Just invoke gl_FUNC_FMOD.
3645
3646 2011-10-05  Bruno Haible  <bruno@clisp.org>
3647
3648         Tests for module 'fabsf'.
3649         * modules/fabsf-tests: New file.
3650         * tests/test-fabsf.c: New file.
3651
3652         New module 'fabsf'.
3653         * lib/math.in.h (fabsf): New declaration.
3654         * lib/fabsf.c: New file.
3655         * m4/fabsf.m4: New file.
3656         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
3657         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
3658         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
3659         * modules/fabsf: New file.
3660         * tests/test-math-c++.cc: Check the declaration of fabsf.
3661         * doc/posix-functions/fabsf.texi: Mention the new module.
3662
3663         fabs: Use a .m4 file.
3664         * m4/fabs.m4: New file.
3665         * modules/fabs (Files): Add it.
3666         (configure.ac): Just invoke gl_FUNC_FABS.
3667
3668 2011-10-05  Jim Meyering  <meyering@redhat.com>
3669
3670         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
3671         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
3672         ls -lL regression introduced in coreutils-8.12, it does so at the
3673         cost of an additional stat call in the common case.  Besides, now
3674         that the kernel change that prompted commit 95f7c57f has been reverted
3675         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
3676         we have no use for commit 95f7c57f, "file-has-acl: use
3677         acl_extended_file_nofollow if available".
3678
3679 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
3680
3681         file-has-acl: revert unintended change in behavior of ls -L
3682         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
3683         derived from...
3684         (file_has_acl): ...code here.  Call it.
3685         This problem was introduced with 2011-07-22 commit 95f7c57f,
3686         "file-has-acl: use acl_extended_file_nofollow if available".
3687         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
3688
3689 2011-10-03  Bruno Haible  <bruno@clisp.org>
3690
3691         poll: Avoid link errors on MSVC.
3692         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
3693         * modules/poll (Depends-on): Add sockets.
3694         (Link): New section.
3695         * NEWS: Mention the change.
3696         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
3697         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
3698         $(LIB_POLL) instead of $(LIBSOCKET).
3699
3700 2011-10-03  Bruno Haible  <bruno@clisp.org>
3701
3702         sys_select tests: Fix link error on MSVC 9.
3703         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
3704         with $(LIB_SELECT) instead of $(LIBSOCKET).
3705
3706 2011-10-03  Bruno Haible  <bruno@clisp.org>
3707
3708         sys_select: Fix compilation error on mingw.
3709         * lib/sys_select.in.h: On native Windows, include <io.h>.
3710
3711 2011-10-03  Bruno Haible  <bruno@clisp.org>
3712
3713         wmemset: Support for MSVC.
3714         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
3715         whether wmemset() exists.
3716
3717 2011-10-03  Bruno Haible  <bruno@clisp.org>
3718
3719         wmemmove: Support for MSVC.
3720         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
3721         whether wmemmove() exists.
3722
3723 2011-10-03  Bruno Haible  <bruno@clisp.org>
3724
3725         wmemcpy: Support for MSVC.
3726         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
3727         whether wmemcpy() exists.
3728
3729 2011-10-03  Bruno Haible  <bruno@clisp.org>
3730
3731         wmemcmp: Support for MSVC.
3732         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
3733         whether wmemcmp() exists.
3734
3735 2011-10-03  Bruno Haible  <bruno@clisp.org>
3736
3737         wmemchr: Support for MSVC.
3738         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
3739         whether wmemchr() exists.
3740
3741 2011-10-03  Bruno Haible  <bruno@clisp.org>
3742
3743         glthread/*, strsignal: Support for MSVC.
3744         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
3745         including <winsock.h> on MSVC 9.
3746         * lib/glthread/lock.h: Likewise.
3747         * lib/glthread/thread.h: Likewise.
3748         * lib/glthread/tls.h: Likewise.
3749         * lib/glthread/yield.h: Likewise.
3750         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
3751         if HAVE_UNISTD_H is false.
3752         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
3753
3754 2011-10-03  Bruno Haible  <bruno@clisp.org>
3755
3756         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
3757         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
3758         Set to 100000.
3759
3760 2011-10-03  Bruno Haible  <bruno@clisp.org>
3761
3762         acl: Fix specification.
3763         * lib/file-has-acl.c (file_has_acl): Fix specification.
3764
3765 2011-10-03  Bruno Haible  <bruno@clisp.org>
3766
3767         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
3768         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
3769         (compute_curr_prefix, shared_library_fullname,
3770         find_shared_library_fullname, get_shared_library_fullname, relocate):
3771         Use it together with PIC && INSTALLDIR.
3772         Reported by <jojelino@gmail.com>
3773         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
3774
3775 2011-10-01  Jim Meyering  <meyering@redhat.com>
3776
3777         maint.mk: adjust a release-related rule not to require use of gzip
3778         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
3779         Instead, check each file in $(DIST_ARCHIVES).  This is better for
3780         projects that build only .tar.xz files.  Also fix an erroneous test.
3781
3782         test-linkat: don't leave behind a temporary file
3783         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
3784         Otherwise, coreutils' "make distcheck" would fail with this:
3785           Only in /c/cu/tests/torture/coreutils/test/\
3786             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
3787           make[2]: *** [my-distcheck] Error 1
3788
3789         float, math: add omitted file
3790         * lib/itold.c: Add file, required for yesterday's float change.
3791
3792 2011-10-01  Bruno Haible  <bruno@clisp.org>
3793
3794         isinf: Fix for OpenBSD/x86.
3795         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
3796         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
3797         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
3798
3799 2011-10-01  Bruno Haible  <bruno@clisp.org>
3800
3801         isfinite: Fix syntax error in configure test.
3802         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
3803
3804         isfinite: Fix typo.
3805         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
3806         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
3807
3808 2011-10-01  Bruno Haible  <bruno@clisp.org>
3809
3810         nonblocking tests: Fix test failure on Linux/IA-64.
3811         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
3812         Set to 270000.
3813
3814 2011-10-01  Bruno Haible  <bruno@clisp.org>
3815
3816         mkfifoat tests: Fix a test failure on mingw.
3817         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
3818         with error ENOSYS.
3819
3820 2011-09-30  Bruno Haible  <bruno@clisp.org>
3821
3822         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
3823         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
3824         'long double'. Set REPLACE_ITOLD.
3825         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
3826         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
3827         * lib/itold.c: New file.
3828         * modules/float (Files): Add lib/itold.c.
3829         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
3830         (Makefile.am): Substitute REPLACE_ITOLD.
3831         * modules/math (Depends-on): Add float.
3832         (Makefile.am): Substitute REPLACE_ITOLD.
3833         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
3834         * doc/posix-headers/math.texi: Likewise.
3835         * doc/posix-functions/logl.texi: Likewise.
3836
3837 2011-09-30  Bruno Haible  <bruno@clisp.org>
3838
3839         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
3840         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
3841         Set to 140000.
3842
3843 2011-09-30  Bruno Haible  <bruno@clisp.org>
3844
3845         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
3846         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
3847         invocation, say "right after AC_PROG_CC_STDC", not "right after
3848         AC_PROG_CC".
3849         Reported by Gary V. Vaughan <gary@gnu.org>.
3850
3851 2011-09-30  Bruno Haible  <bruno@clisp.org>
3852
3853         Centralize C99 requirement.
3854         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
3855         * modules/stdarg (configure.ac-early): Invoke it instead of
3856         AC_PROG_CC_STDC.
3857         Reported by Gary V. Vaughan and Paul Eggert.
3858
3859 2011-09-29  Bruno Haible  <bruno@clisp.org>
3860
3861         float: Fix LDBL_MAX value on Linux/PowerPC.
3862         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
3863         on Linux/PowerPC.
3864         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
3865         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
3866         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
3867         platform.
3868         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
3869
3870 2011-09-29  Bruno Haible  <bruno@clisp.org>
3871
3872         doc: Improve doc about gl_EARLY.
3873         * doc/gnulib-tool.texi (Initial import): Mention where to place an
3874         AC_PROG_CC_STDC invocation.
3875         Reported by Gary V. Vaughan <gary@gnu.org>.
3876
3877 2011-09-28  Bruno Haible  <bruno@clisp.org>
3878
3879         fgetc, fputc, fread, fwrite tests: Fix link error.
3880         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
3881         on non-MSVC platforms.
3882         * tests/test-fputc.c (main): Likewise.
3883         * tests/test-fread.c (main): Likewise.
3884         * tests/test-fwrite.c (main): Likewise.
3885         Reported by Jim Meyering.
3886
3887 2011-09-27  Bruno Haible  <bruno@clisp.org>
3888
3889         fputc, fwrite tests: Avoid test failure on MSVC.
3890         * tests/test-fgetc.c: Include msvc-inval.h.
3891         (main): Invoke gl_msvc_inval_ensure_handler.
3892         * tests/test-fputc.c: Include msvc-inval.h.
3893         (main): Invoke gl_msvc_inval_ensure_handler.
3894         * tests/test-fread.c: Include msvc-inval.h.
3895         (main): Invoke gl_msvc_inval_ensure_handler.
3896         * tests/test-fwrite.c: Include msvc-inval.h.
3897         (main): Invoke gl_msvc_inval_ensure_handler.
3898         * modules/fgetc-tests (Depends-on): Add msvc-inval.
3899         * modules/fputc-tests (Depends-on): Likewise.
3900         * modules/fread-tests (Depends-on): Likewise.
3901         * modules/fwrite-tests (Depends-on): Likewise.
3902
3903 2011-09-27  Bruno Haible  <bruno@clisp.org>
3904
3905         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
3906         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
3907         (raise): Remove older, duplicated declaration.
3908         (_gl_raise_SIGPIPE): New declaration.
3909         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
3910         (rpl_raise): Remove function.
3911         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
3912         a gnulib-defined SIGPIPE here.
3913         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
3914         'sigprocmask' has detected missing signal-blocking and the module
3915         'sigpipe' is enabled.
3916         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
3917
3918 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
3919
3920         base64-tests: avoid memory leak
3921         * tests/test-base64.c (main): Plug memory leak.
3922
3923         base32: new module
3924         * modules/base32: New module.
3925         * lib/base32.c: New file.
3926         * lib/base32.h: Likewise.
3927         * m4/base32.m4: Likewise.
3928         * modules/base32-tests: New test.
3929         * tests/test-base32.c: Likewise.
3930         * MODULES.html.sh (Misc): Mention it.
3931
3932 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3933
3934         gnulib: use more-standard license notice wording
3935         * gnulib-tool (func_emit_copyright_notice): When emitting a
3936         license notice into a file, use the standard wording as suggested
3937         by the current information for GNU maintainers, except say "file"
3938         rather than "program".  The new wording gives a license version
3939         number, which addresses an issue raised by Glenn Morris in
3940         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
3941         * m4/onceonly.m4: Use that same wording here, too.
3942
3943         dup2: minor simplification
3944         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
3945         as lib/dup2.c no longer uses 'inline'.
3946
3947 2011-09-25  Bruno Haible  <bruno@clisp.org>
3948
3949         strings: Fix compilation error on MSVC.
3950         * lib/strings.in.h: Include <stddef.h> for size_t.
3951
3952 2011-09-25  Bruno Haible  <bruno@clisp.org>
3953
3954         fflush et al.: Document limitation on MSVC.
3955         * doc/posix-functions/fflush.texi: Document possible crash in handling
3956         mode other than DEFAULT_HANDLING.
3957         * doc/posix-functions/fgetc.texi: Likewise.
3958         * doc/posix-functions/fputc.texi: Likewise.
3959         * doc/posix-functions/fread.texi: Likewise.
3960         * doc/posix-functions/fwrite.texi: Likewise.
3961
3962 2011-09-25  Bruno Haible  <bruno@clisp.org>
3963
3964         msvc-inval: Allow three invalid parameter handling modes.
3965         * lib/msvc-inval.h: Don't include <stdlib.h> here.
3966         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
3967         macros.
3968         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
3969         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
3970         SANE_LIBRARY_HANDLING as a no-op.
3971         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
3972         <stdlib.h>.
3973         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
3974
3975 2011-09-25  Bruno Haible  <bruno@clisp.org>
3976
3977         msvc-inval: Make handler multithread-safe.
3978         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
3979         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
3980         declarations.
3981         (gl_msvc_inval_current): New declaration.
3982         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
3983         Operate on the structure returned by gl_msvc_inval_current().
3984         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
3985         Remove varaiables.
3986         (tls_index, tls_initialized): New variables.
3987         (not_per_thread): New variable.
3988         (gl_msvc_inval_current): New function.
3989         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
3990         returned by gl_msvc_inval_current().
3991
3992 2011-09-25  Bruno Haible  <bruno@clisp.org>
3993
3994         msvc-inval: Install handler globally.
3995         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
3996         !_MSC_VER.
3997         (gl_msvc_invalid_parameter_handler): Remove declaration.
3998         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
3999         declarations.
4000         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
4001         Install the handler globally, don't uninstall it.
4002         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
4003         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
4004         currently valid, call RaiseException instead.
4005         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
4006         for !_MSC_VER.
4007
4008 2011-09-25  Bruno Haible  <bruno@clisp.org>
4009
4010         strerror_r-posix: Fix for MSVC 9.
4011         * lib/strerror_r.c (local_snprintf): New function.
4012         (snprintf): Define to local_snprintf, not to _snprintf.
4013
4014 2011-09-25  Bruno Haible  <bruno@clisp.org>
4015
4016         ftruncate: Support for MSVC 9.
4017         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
4018         (chsize_nothrow): New function.
4019         (chsize): Redefine as a macro.
4020         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
4021         * modules/ftruncate (Depends-on): Add msvc-inval.
4022
4023 2011-09-25  Bruno Haible  <bruno@clisp.org>
4024
4025         New module 'fstat'.
4026         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
4027         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
4028         * lib/fchdir.c (rpl_fstat): Remove function.
4029         * m4/fstat.m4: New file.
4030         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
4031         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
4032         declared.
4033         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
4034         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
4035         * modules/fstat: New file.
4036         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
4037         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
4038         is set.
4039         * doc/posix-functions/fstat.texi: Mention the new module and the
4040         problem on MSVC.
4041         * NEWS: Mention the change.
4042         * modules/acl (Depends-on): Add fstat.
4043         * modules/chdir-safer (Depends-on): Likewise.
4044         * modules/chown (Depends-on): Likewise.
4045         * modules/copy-file (Depends-on): Likewise.
4046         * modules/fchdir (Depends-on): Likewise.
4047         * modules/fdopendir (Depends-on): Likewise.
4048         * modules/fopen (Depends-on): Likewise.
4049         * modules/fts (Depends-on): Likewise.
4050         * modules/getcwd (Depends-on): Likewise.
4051         * modules/isapipe (Depends-on): Likewise.
4052         * modules/linkat (Depends-on): Likewise.
4053         * modules/lseek (Depends-on): Likewise.
4054         * modules/mkdir-p (Depends-on): Likewise.
4055         * modules/open (Depends-on): Likewise.
4056         * modules/openat (Depends-on): Likewise.
4057         * modules/read-file (Depends-on): Likewise.
4058         * modules/renameat (Depends-on): Likewise.
4059         * modules/utimens (Depends-on): Likewise.
4060
4061 2011-09-25  Bruno Haible  <bruno@clisp.org>
4062
4063         linkat: Fix compilation on MSVC 9.
4064         * lib/linkat.c: Don't include <stdint.h>.
4065
4066 2011-09-25  Bruno Haible  <bruno@clisp.org>
4067
4068         fclose: Support for MSVC 9.
4069         * lib/fclose.c: Include msvc-inval.h.
4070         (fclose_nothrow): New function.
4071         (rpl_fclose): Use it.
4072         * modules/fclose (Depends-on): Add msvc-inval.
4073         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
4074
4075 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
4076
4077         dup2: minor simplifications
4078         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
4079         that it's a performance win.
4080         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
4081         ! defined __CYGWIN__)" to "ifdef F_GETFL".
4082
4083 2011-09-24  Jim Meyering  <meyering@redhat.com>
4084
4085         test-futimens: avoid a warning from gcc -Wshadow
4086         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
4087         to avoid a shadowing warning.
4088
4089 2011-09-24  Bruno Haible  <bruno@clisp.org>
4090
4091         fdopen: Support for MSVC 9.
4092         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
4093         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
4094         * lib/fdopen.c: Include msvc-inval.h.
4095         (fdopen_nothrow): New function.
4096         (rpl_fdopen): Use it.
4097         * modules/fdopen (Depends-on): Add msvc-inval.
4098         * modules/fclose-tests (Depends-on): Add fdopen.
4099         * modules/fflush-tests (Depends-on): Likewise.
4100         * modules/fgetc-tests (Depends-on): Likewise.
4101         * modules/fputc-tests (Depends-on): Likewise.
4102         * modules/fread-tests (Depends-on): Likewise.
4103         * modules/freopen-tests (Depends-on): Likewise.
4104         * modules/fseeko-tests (Depends-on): Likewise.
4105         * modules/ftello-tests (Depends-on): Likewise.
4106         * modules/fwrite-tests  (Depends-on): Likewise.
4107         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
4108
4109 2011-09-24  Bruno Haible  <bruno@clisp.org>
4110
4111         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
4112         * modules/fgetc-tests (Depends-on): Add unistd.
4113         * modules/fputc-tests (Depends-on): Likewise.
4114         * modules/fread-tests (Depends-on): Likewise.
4115         * modules/fwrite-tests (Depends-on): Likewise.
4116
4117 2011-09-24  Bruno Haible  <bruno@clisp.org>
4118
4119         dup: Simplify autoconf test.
4120         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
4121         on gl_MSVC_INVAL's result.
4122
4123 2011-09-24  Bruno Haible  <bruno@clisp.org>
4124
4125         Tests for function fwrite().
4126         * modules/fwrite-tests: New file.
4127         * tests/test-fwrite.c: New file.
4128         * modules/stdio-tests (Depends-on): Add fwrite-tests.
4129
4130         Tests for function fread().
4131         * modules/fread-tests: New file.
4132         * tests/test-fread.c: New file.
4133         * modules/stdio-tests (Depends-on): Add fread-tests.
4134
4135         Activate fputc tests.
4136         * modules/stdio-tests (Depends-on): Add fputc-tests.
4137
4138         Enhance fgetc, fputc tests.
4139         * tests/test-fgetc.c (main): Also test the stream's error indicator.
4140         * tests/test-fputc.c (main): Likewise.
4141
4142 2011-09-24  Bruno Haible  <bruno@clisp.org>
4143
4144         write: Support for MSVC 9.
4145         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
4146         is not 1.
4147         * lib/write.c (write_nothrow): New function.
4148         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
4149         not 1. Use write_nothrow.
4150         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
4151         invalid parameter handler.
4152         (gl_PREREQ_WRITE): New macro.
4153         * modules/write (Depends-on): Add msvc-inval.
4154         (configure.ac): Invoke gl_PREREQ_WRITE.
4155         * doc/posix-functions/write.texi: Mention the problem on MSVC.
4156
4157 2011-09-24  Bruno Haible  <bruno@clisp.org>
4158
4159         read: Fix last commit.
4160         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
4161
4162 2011-09-24  Bruno Haible  <bruno@clisp.org>
4163
4164         dup2: Fix last commit.
4165         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
4166         (rpl_dup2): Disable fcntl workaround on native Windows.
4167
4168         sigprocmask: Make code safer.
4169         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
4170         section that changes macro definitions for this compilation unit.
4171
4172 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
4173
4174         dup2: clarify by coalescing Windows-specific material
4175         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
4176         "msvc-nothrow.h"' to the Windows-specific section, so that the
4177         Emacs source need not contain these include files.
4178         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
4179         Windows-specific fixes into this function rather than just the
4180         nothrow fix, as this shortens and clarifies the code.  Always
4181         define as a function, as that's a bit cleaner than having it be
4182         sometimes a function and sometimes a macro.
4183         (rpl_dup2): Move the Windows-specific stuff out of here and into
4184         ms_windows_dup2.  Don't protect the Haiku-related fix with
4185         "#if !defined __linux__", as the same code also works around
4186         a Linux kernel bug, and it doesn't add any system calls on any
4187         platform.  Add comment about FreeBSD 6.1.
4188
4189         sigprocmask: move #include directive
4190         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
4191         Windows-specific section, so that the Emacs source need not
4192         contain msvc-inval.h.
4193
4194 2011-09-23  Bruno Haible  <bruno@clisp.org>
4195
4196         read: Support for MSVC 9.
4197         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
4198         is not 1.
4199         * lib/read.c (read_nothrow): New function.
4200         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
4201         read_nothrow.
4202         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
4203         invalid parameter handler.
4204         (gl_PREREQ_READ): New macro.
4205         * modules/read (Depends-on): Add msvc-inval.
4206         (configure.ac): Invoke gl_PREREQ_READ.
4207         * doc/posix-functions/read.texi: Mention the problem on MSVC.
4208
4209 2011-09-23  Bruno Haible  <bruno@clisp.org>
4210
4211         close: Support for MSVC 9.
4212         * lib/close.c: Include <errno.h>, msvc-inval.h.
4213         (close_nothrow): New function.
4214         (rpl_close): Use it.
4215         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
4216         invalid parameter handler.
4217         * modules/close (Depends-on): Add msvc-inval.
4218         * modules/dup2-tests (Depends-on): Add close.
4219         * modules/dup3-tests (Depends-on): Likewise.
4220         * modules/fcntl-tests (Depends-on): Likewise.
4221         * modules/spawn-pipe-tests (Depends-on): Likewise.
4222         * modules/unistd-safer-tests (Depends-on): Likewise.
4223         * doc/posix-functions/close.texi: Mention the problem on MSVC.
4224
4225 2011-09-23  Bruno Haible  <bruno@clisp.org>
4226
4227         New module 'dup'.
4228         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
4229         Allow replacement.
4230         * lib/dup.c: New file.
4231         * lib/fchdir.c (rpl_dup): Remove function.
4232         * m4/dup.m4: New file.
4233         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
4234         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
4235         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
4236         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
4237         * modules/dup: New file.
4238         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
4239         'dup' module is in use.
4240         * modules/fdopendir (Depends-on): Add dup.
4241         * modules/fdutimensat-tests (Depends-on): Likewise.
4242         * modules/fts (Depends-on): Likewise.
4243         * modules/futimens-tests (Depends-on): Likewise.
4244         * modules/posix_spawnp-tests (Depends-on): Likewise.
4245         * modules/unistd-safer-tests (Depends-on): Likewise.
4246         * modules/utimens-tests (Depends-on): Likewise.
4247         * doc/posix-functions/dup.texi: Mention the new module and the problem
4248         on MSVC.
4249
4250 2011-09-23  Bruno Haible  <bruno@clisp.org>
4251
4252         getdtablesize: Support for MSVC 9.
4253         * lib/getdtablesize.c: Include msvc-inval.h.
4254         (_setmaxstdio_nothrow): New function.
4255         (_setmaxstdio): Redefine it.
4256         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
4257         * modules/getdtablesize (Depends-on): Add msvc-inval.
4258         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
4259
4260 2011-09-23  Bruno Haible  <bruno@clisp.org>
4261
4262         signal-h: Rename from signal.
4263         * modules/signal-h: Renamed from modules/signal.
4264         * modules/pthread_sigmask (Depends-on): Update.
4265         * modules/raise (Depends-on): Likewise.
4266         * modules/sigaction (Depends-on): Likewise.
4267         * modules/sigpipe (Depends-on): Likewise.
4268         * modules/sigprocmask (Depends-on): Likewise.
4269         * modules/sys_select (Depends-on): Likewise.
4270         * modules/signal-h-tests: Renamed from modules/signal-tests.
4271         (Files, Depends-on, Makefile.am): Update.
4272         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
4273         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
4274         (Files, Makefile.am): Update.
4275         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
4276         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
4277         * modules/signal: New placeholder file.
4278         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
4279         * doc/posix-headers/signal.texi: Update.
4280         * NEWS: Mention the change.
4281
4282 2011-09-23  Bruno Haible  <bruno@clisp.org>
4283
4284         sigprocmask: Avoid crashes through signal() on MSVC 9.
4285         * lib/sigprocmask.c: Include msvc-inval.h.
4286         (signal_nothrow): New function.
4287         (signal): Redefine it.
4288         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
4289         * modules/sigprocmask (Depends-on): Add msvc-inval.
4290         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
4291
4292 2011-09-23  Bruno Haible  <bruno@clisp.org>
4293
4294         Tests for module 'raise'.
4295         * modules/raise-tests: New file.
4296         * tests/test-raise.c: New file.
4297
4298         raise: Support for MSVC.
4299         * lib/signal.in.h (raise): New declaration.
4300         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
4301         for native Windows platforms.
4302         * m4/raise.m4: New file.
4303         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
4304         HAVE_RAISE, REPLACE_RAISE.
4305         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
4306         REPLACE_RAISE.
4307         * modules/raise (Status, Notice): Remove fields.
4308         (Files): Add m4/raise.m4.
4309         (Depends-on): Add signal, msvc-inval.
4310         (configure.ac): Use the common idioms.
4311         (Maintainer): Add me.
4312         * tests/test-signal-c++.cc: Check the signature of raise.
4313         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
4314
4315 2011-09-23  Bruno Haible  <bruno@clisp.org>
4316
4317         pipe2: Fix compilation on pre-C99 compilers.
4318         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
4319
4320 2011-09-23  Bruno Haible  <bruno@clisp.org>
4321
4322         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
4323         * lib/msvc-nothrow.h: New file.
4324         * lib/msvc-nothrow.c: New file.
4325         * m4/msvc-nothrow.m4: New file.
4326         * modules/msvc-nothrow: New file.
4327         * lib/dup2.c: Include msvc-nothrow.h.
4328         (rpl_dup2): No need to protect _get_osfhandle call here.
4329         * lib/accept4.c: Include msvc-nothrow.h.
4330         * lib/error.c: Likewise.
4331         * lib/fcntl.c: Likewise.
4332         * lib/lseek.c: Likewise.
4333         * lib/nonblocking.c: Likewise.
4334         * lib/poll.c: Likewise.
4335         * lib/read.c: Likewise.
4336         * lib/select.c: Likewise.
4337         * lib/sockets.h: Likewise.
4338         * lib/sockets.c: Likewise.
4339         * lib/stdio-read.c: Likewise.
4340         * lib/stdio-write.c: Likewise.
4341         * lib/write.c: Likewise.
4342         * lib/w32sock.h: Likewise.
4343         * lib/w32spawn.h: Likewise.
4344         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
4345         * lib/fsync.c: Likewise.
4346         * lib/isapipe.c: Likewise.
4347         * modules/dup2 (Depends-on): Add msvc-nothrow.
4348         * modules/accept4 (Depends-on): Likewise.
4349         * modules/error (Depends-on): Likewise.
4350         * modules/fcntl (Depends-on): Likewise.
4351         * modules/lseek (Depends-on): Likewise.
4352         * modules/nonblocking (Depends-on): Likewise.
4353         * modules/poll (Depends-on): Likewise.
4354         * modules/read (Depends-on): Likewise.
4355         * modules/select (Depends-on): Likewise.
4356         * modules/sockets (Depends-on): Likewise.
4357         * modules/sigpipe (Depends-on): Likewise.
4358         * modules/write (Depends-on): Likewise.
4359         * modules/accept (Depends-on): Likewise.
4360         * modules/bind (Depends-on): Likewise.
4361         * modules/connect (Depends-on): Likewise.
4362         * modules/gethostname (Depends-on): Likewise.
4363         * modules/getpeername (Depends-on): Likewise.
4364         * modules/getsockname (Depends-on): Likewise.
4365         * modules/getsockopt (Depends-on): Likewise.
4366         * modules/ioctl (Depends-on): Likewise.
4367         * modules/listen (Depends-on): Likewise.
4368         * modules/recv (Depends-on): Likewise.
4369         * modules/recvfrom (Depends-on): Likewise.
4370         * modules/send (Depends-on): Likewise.
4371         * modules/sendto (Depends-on): Likewise.
4372         * modules/setsockopt (Depends-on): Likewise.
4373         * modules/shutdown (Depends-on): Likewise.
4374         * modules/socket (Depends-on): Likewise.
4375         * modules/execute (Depends-on): Likewise.
4376         * modules/spawn-pipe (Depends-on): Likewise.
4377         * modules/flock (Depends-on): Likewise.
4378         * modules/fsync (Depends-on): Likewise.
4379         * modules/isapipe (Depends-on): Likewise.
4380         * tests/test-cloexec.c: Include msvc-nothrow.h.
4381         * tests/test-dup-safer.c: Likewise.
4382         * tests/test-dup2.c: Likewise.
4383         * tests/test-dup3.c: Likewise.
4384         * tests/test-fcntl.c: Likewise.
4385         * tests/test-pipe.c: Likewise.
4386         * tests/test-pipe2.c: Likewise.
4387         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
4388         * modules/unistd-safer-tests (Depends-on): Likewise.
4389         * modules/dup2-tests (Depends-on): Likewise.
4390         * modules/dup3-tests (Depends-on): Likewise.
4391         * modules/fcntl-tests (Depends-on): Likewise.
4392         * modules/pipe-posix-tests (Depends-on): Likewise.
4393         * modules/pipe2-tests (Depends-on): Likewise.
4394
4395 2011-09-23  Bruno Haible  <bruno@clisp.org>
4396
4397         dup2: Make code more maintainable.
4398         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
4399         (rpl_dup2): Use it.
4400         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
4401         * modules/dup2 (configure.ac): Invoke it.
4402         Reported by Paul Eggert.
4403
4404 2011-09-23  Bruno Haible  <bruno@clisp.org>
4405
4406         msvc-inval: Fix compilation error.
4407         * lib/msvc-inval.h: Include <excpt.h>.
4408
4409 2011-09-23  Bruno Haible  <bruno@clisp.org>
4410
4411         mkdir: Tweak for MSVC 9.
4412         * lib/sys_stat.in.h: Update comments.
4413         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
4414
4415         Tests for module 'chdir'.
4416         * modules/chdir-tests: New file.
4417         * tests/test-chdir.c: New file.
4418
4419         New module 'chdir'.
4420         * modules/chdir: New file.
4421         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
4422         (chdir): New declaration.
4423         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
4424         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
4425         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
4426         * tests/test-unistd-c++.cc: Check signature of chdir.
4427         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
4428         * modules/chdir-long (Depends-on): Add chdir.
4429         * modules/fchdir (Depends-on): Likewise.
4430         * modules/rename (Depends-on): Likewise.
4431         * modules/savewd (Depends-on): Likewise.
4432
4433         rmdir: Support for mingw, MSVC 9.
4434         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
4435         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
4436
4437         getcwd: Tweak for MSVC 9.
4438         * lib/unistd.in.h: Update comments.
4439         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
4440
4441 2011-09-22  Bruno Haible  <bruno@clisp.org>
4442
4443         strerror_r-posix: Avoid a link error on MSVC.
4444         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
4445         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
4446
4447 2011-09-22  Bruno Haible  <bruno@clisp.org>
4448
4449         select: Avoid link errors on MSVC.
4450         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
4451         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
4452         * modules/pselect (Link): Likewise.
4453         * NEWS: Mention the change.
4454         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
4455         test-select-stdin against $(LIB_SELECT).
4456         * modules/pselect-tests (Makefile.am): Link test-pselect against
4457         $(LIB_SELECT).
4458
4459 2011-09-22  Bruno Haible  <bruno@clisp.org>
4460
4461         select: Avoid compilation error on MSVC.
4462         * lib/select.c: Don't include <stdbool.h>.
4463
4464 2011-09-21  Bruno Haible  <bruno@clisp.org>
4465
4466         Consolidate all uses of PATH_MAX in *.m4 files.
4467         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
4468         macros.
4469         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
4470         and gl_PATHMAX_SNIPPET.
4471         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4472         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4473         * modules/chdir-long (Files): Add m4/pathmax.m4.
4474         * modules/getcwd (Files): Likewise.
4475
4476 2011-09-21  Bruno Haible  <bruno@clisp.org>
4477
4478         ftruncate: Un-deprecate, concentrate on Win32 support.
4479         * modules/ftruncate (Status, Notice): Remove sections.
4480         (Depends-on): Add largefile.
4481         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
4482         non-mingw platforms.
4483         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
4484         include <io.h>.
4485         * modules/perror-tests (Depends-on): Add ftruncate.
4486         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
4487         'ftruncate' module.
4488
4489 2011-09-21  Bruno Haible  <bruno@clisp.org>
4490
4491         Add dependencies to new dirent related modules.
4492         * modules/opendir (Depends-on): Add closedir.
4493         * modules/getcwd (Depends-on): Add opendir, closedir.
4494         * modules/dirent-safer-tests (Depends-on): Likewise.
4495         * modules/fdopendir-tests (Depends-on): Likewise.
4496         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
4497         * modules/renameat-tests (Depends-on): Likewise.
4498
4499 2011-09-21  Bruno Haible  <bruno@clisp.org>
4500
4501         opendir: Avoid compilation error on mingw.
4502         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
4503         * modules/opendir (Depends-on): Add unistd.
4504
4505 2011-09-21  Bruno Haible  <bruno@clisp.org>
4506
4507         ftruncate tests: Avoid a test failure on mingw.
4508         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
4509
4510 2011-09-21  Bruno Haible  <bruno@clisp.org>
4511
4512         select tests: Avoid test failures on OSF/1 5.1 and mingw.
4513         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
4514         native Windows.
4515
4516 2011-09-21  Bruno Haible  <bruno@clisp.org>
4517
4518         New module 'fdopen'.
4519         * lib/stdio.in.h (fdopen): New declaration.
4520         * lib/fdopen.c: New file.
4521         * m4/fdopen.m4: New file.
4522         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
4523         REPLACE_FDOPEN.
4524         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
4525         REPLACE_FDOPEN.
4526         * modules/fdopen: New file.
4527         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
4528         * tests/test-stdio-c++.cc: Check signature of fdopen.
4529         * doc/posix-functions/fdopen.texi: Mention the new module.
4530
4531 2011-09-21  Bruno Haible  <bruno@clisp.org>
4532
4533         unlockpt tests: Avoid test failure on NetBSD 5.1.
4534         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
4535         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
4536
4537 2011-09-21  Bruno Haible  <bruno@clisp.org>
4538
4539         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
4540         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
4541         * tests/test-getlogin_r.c (main): Likewise.
4542
4543 2011-09-20  Bruno Haible  <bruno@clisp.org>
4544
4545         time tests: Don't require pid_t.
4546         * doc/posix-headers/time.texi: Revert last change.
4547         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
4548         * tests/test-time.c: Comment out the check for pid_t.
4549
4550 2011-09-20  Bruno Haible  <bruno@clisp.org>
4551
4552         fsync tests: Avoid a test failure on mingw.
4553         * tests/test-fsync.c (main): Allow a failure with EIO.
4554
4555 2011-09-20  Bruno Haible  <bruno@clisp.org>
4556
4557         euidaccess: Update comments.
4558         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
4559
4560 2011-09-20  Bruno Haible  <bruno@clisp.org>
4561
4562         Ensure EBADF returns for socket functions on mingw.
4563         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
4564         descriptor is invalid.
4565         * lib/bind.c (rpl_bind): Likewise.
4566         * lib/connect.c (rpl_connect): Likewise.
4567         * lib/getpeername.c (rpl_getpeername): Likewise.
4568         * lib/getsockname.c (rpl_getsockname): Likewise.
4569         * lib/getsockopt.c (rpl_getsockopt): Likewise.
4570         * lib/listen.c (rpl_listen): Likewise.
4571         * lib/recv.c (rpl_recv): Likewise.
4572         * lib/recvfrom.c (rpl_recvfrom): Likewise.
4573         * lib/send.c (rpl_send): Likewise.
4574         * lib/sendto.c (rpl_sendto): Likewise.
4575         * lib/setsockopt.c (rpl_setsockopt): Likewise.
4576         * lib/shutdown.c (rpl_shutdown): Likewise.
4577
4578 2011-09-20  Bruno Haible  <bruno@clisp.org>
4579
4580         select tests: EBADF tests.
4581         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
4582         test_bad_fd): New functions.
4583         (test_function): Invoke also test_bad_fd.
4584
4585 2011-09-20  Bruno Haible  <bruno@clisp.org>
4586
4587         Tests for module 'posix_spawn_file_actions_addopen.
4588         * modules/posix_spawn_file_actions_addopen-tests: New file.
4589         * tests/test-posix_spawn_file_actions_addopen.c: New file.
4590
4591         Tests for module 'posix_spawn_file_actions_adddup2'.
4592         * modules/posix_spawn_file_actions_adddup2-tests: New file.
4593         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
4594
4595         Tests for module 'posix_spawn_file_actions_addclose'.
4596         * modules/posix_spawn_file_actions_addclose-tests: New file.
4597         * tests/test-posix_spawn_file_actions_addclose.c: New file.
4598
4599 2011-09-20  Bruno Haible  <bruno@clisp.org>
4600
4601         Tests for module 'unlockpt'.
4602         * modules/unlockpt-tests: New file.
4603         * tests/test-unlockpt.c: New file.
4604         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
4605
4606         Tests for module 'grantpt'.
4607         * modules/grantpt-tests: New file.
4608         * tests/test-grantpt.c: New file.
4609         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
4610
4611 2011-09-20  Bruno Haible  <bruno@clisp.org>
4612
4613         freopen tests: EBADF tests.
4614         * tests/test-freopen.c: Include errno.h, unistd.h.
4615         (main): Add tests for EBADF, commented out for the moment.
4616
4617         fclose tests: EBADF tests.
4618         * tests/test-fclose.c (main): Add tests for EBADF.
4619
4620         fflush tests: EBADF tests.
4621         * tests/test-fflush.c: Include errno.h, macros.h.
4622         (main): Add tests for EBADF.
4623
4624         ftello tests: EBADF tests.
4625         * tests/test-ftello4.sh: New file.
4626         * tests/test-ftello4.c: New file.
4627         * modules/ftello-tests (Files): Add them.
4628         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
4629
4630         fseeko tests: EBADF tests.
4631         * tests/test-fseeko4.sh: New file.
4632         * tests/test-fseeko4.c: New file.
4633         * modules/fseeko-tests (Files): Add them.
4634         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
4635
4636         Tests for function fputc().
4637         * modules/fputc-tests: New file.
4638         * tests/test-fputc.c: New file.
4639         * modules/stdio-tests (Depends-on): Add fputc-tests.
4640
4641         Tests for function fgetc().
4642         * modules/fgetc-tests: New file.
4643         * tests/test-fgetc.c: New file.
4644         * modules/stdio-tests (Depends-on): Add fgetc-tests.
4645
4646         Tests for function fdopen().
4647         * modules/fdopen-tests: New file.
4648         * tests/test-fdopen.c: New file.
4649         * modules/stdio-tests (Depends-on): Add fdopen-tests.
4650
4651         Tests for module 'vdprintf'.
4652         * modules/vdprintf-tests: New file.
4653         * tests/test-vdprintf.c: New file.
4654
4655         Tests for module 'dprintf'.
4656         * modules/dprintf-tests: New file.
4657         * tests/test-dprintf.c: New file.
4658
4659 2011-09-20  Bruno Haible  <bruno@clisp.org>
4660
4661         Tests for module 'ioctl'.
4662         * modules/ioctl-tests: New file.
4663         * tests/test-ioctl.c: New file.
4664
4665 2011-09-20  Bruno Haible  <bruno@clisp.org>
4666
4667         fcntl tests: EBADF tests.
4668         * tests/test-fcntl.c (main): Add more tests for EBADF.
4669
4670 2011-09-20  Bruno Haible  <bruno@clisp.org>
4671
4672         utimensat tests: EBADF tests.
4673         * tests/test-utimensat.c (main): Add tests for EBADF.
4674
4675         renameat tests: EBADF tests.
4676         * tests/test-renameat.c (main): Add tests for EBADF.
4677
4678         mkfifoat tests: EBADF tests.
4679         * tests/test-mkfifoat.c (main): Add tests for EBADF.
4680
4681         readlinkat tests: EBADF tests.
4682         * tests/test-readlinkat.c (main): Add tests for EBADF.
4683
4684         symlinkat tests: EBADF tests.
4685         * tests/test-symlinkat.c (main): Add tests for EBADF.
4686
4687         linkat tests: EBADF tests.
4688         * tests/test-linkat.c (main): Add tests for EBADF.
4689
4690         Tests for module 'faccessat'.
4691         * modules/faccessat-tests: New file.
4692         * tests/test-faccessat.c: New file.
4693
4694         fdopendir tests: EBADF tests.
4695         * tests/test-fdopendir.c (main): Add more tests for EBADF.
4696
4697         openat tests: EBADF tests.
4698         * tests/test-fchownat.c (main): Add tests for EBADF.
4699         * tests/test-fstatat.c (main): Likewise.
4700         * tests/test-mkdirat.c (main): Likewise.
4701         * tests/test-openat.c (main): Likewise.
4702         * tests/test-unlinkat.c (main): Likewise.
4703         * tests/test-fchmodat.c: New file.
4704         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
4705         (Makefile.am): Also run 'test-fchmodat'.
4706
4707 2011-09-20  Bruno Haible  <bruno@clisp.org>
4708
4709         utimens, futimens, fdutimensat tests: EBADF tests.
4710         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
4711
4712         Tests for function fstat().
4713         * modules/fstat-tests: New file.
4714         * tests/test-fstat.c: New file.
4715         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
4716
4717 2011-09-20  Bruno Haible  <bruno@clisp.org>
4718
4719         test-ttyname_r tests: EBADF tests.
4720         * tests/test-ttyname_r.c (main): Add tests for EBADF.
4721
4722         Tests for module 'isatty'.
4723         * modules/isatty-tests: New file.
4724         * tests/test-isatty.c: New file.
4725
4726         Tests for module 'write'.
4727         * modules/write-tests: New file.
4728         * tests/test-write.c: New file.
4729
4730         Tests for module 'read'.
4731         * modules/read-tests: New file.
4732         * tests/test-read.c: New file.
4733
4734         pwrite tests: EBADF tests.
4735         * tests/test-pwrite.c (main): Add tests for EBADF.
4736
4737         pread tests: EBADF tests.
4738         * tests/test-pread.c (main): Add tests for EBADF.
4739
4740         lseek tests: EBADF tests.
4741         * tests/test-lseek.c (main): Add more tests for EBADF.
4742
4743         Tests for module 'ftruncate'.
4744         * modules/ftruncate-tests: New file.
4745         * tests/test-ftruncate.sh: New file.
4746         * tests/test-ftruncate.c: New file.
4747
4748         fsync tests: EBADF tests.
4749         * tests/test-fsync.c (main): Add more tests for EBADF.
4750
4751         fdatasync tests: EBADF tests.
4752         * tests/test-fdatasync.c (main): Add more tests for EBADF.
4753
4754         Tests for module 'fchown'.
4755         * modules/fchown-tests: New file.
4756         * tests/test-fchown.c: New file.
4757
4758         Tests for module 'fchmod'.
4759         * modules/fchmod-tests: New file.
4760         * tests/test-fchmod.c: New file.
4761
4762         fchdir tests: EBADF tests.
4763         * tests/test-fchdir.c (main): Add more tests for EBADF.
4764
4765         dup2 tests: EBADF tests.
4766         * tests/test-dup2.c (main): Add more tests for EBADF.
4767
4768         Tests for module 'dup'.
4769         * modules/dup-tests: New file.
4770         * tests/test-dup.c: New file.
4771
4772         Tests for module 'close'.
4773         * modules/close-tests: New file.
4774         * tests/test-close.c: New file.
4775
4776 2011-09-20  Bruno Haible  <bruno@clisp.org>
4777
4778         Tests for module 'shutdown'.
4779         * modules/shutdown-tests: New file.
4780         * tests/test-shutdown.c: New file.
4781
4782         Tests for module 'setsockopt'.
4783         * modules/setsockopt-tests: New file.
4784         * tests/test-setsockopt.c: New file.
4785
4786         Tests for module 'sendto'.
4787         * modules/sendto-tests: New file.
4788         * tests/test-sendto.c: New file.
4789
4790         Tests for module 'send'.
4791         * modules/send-tests: New file.
4792         * tests/test-send.c: New file.
4793
4794         Tests for module 'recvfrom'.
4795         * modules/recvfrom-tests: New file.
4796         * tests/test-recvfrom.c: New file.
4797
4798         Tests for module 'recv'.
4799         * modules/recv-tests: New file.
4800         * tests/test-recv.c: New file.
4801
4802         Tests for module 'listen'.
4803         * modules/listen-tests: New file.
4804         * tests/test-listen.c: New file.
4805
4806         Tests for module 'getsockopt'.
4807         * modules/getsockopt-tests: New file.
4808         * tests/test-getsockopt.c: New file.
4809
4810         Tests for module 'getsockname'.
4811         * modules/getsockname-tests: New file.
4812         * tests/test-getsockname.c: New file.
4813
4814         Tests for module 'getpeername'.
4815         * modules/getpeername-tests: New file.
4816         * tests/test-getpeername.c: New file.
4817
4818         Tests for module 'connect'.
4819         * modules/connect-tests: New file.
4820         * tests/test-connect.c: New file.
4821
4822         Tests for module 'bind'.
4823         * modules/bind-tests: New file.
4824         * tests/test-bind.c: New file.
4825
4826         accept4 tests: Fix for native Windows.
4827         * tests/test-accept4.c: Include sockets.h.
4828         (main): Invoke gl_sockets_startup.
4829         * modules/accept4-tests (Depends-on): Add sockets.
4830
4831         accept tests: Fix for native Windows.
4832         * tests/test-accept.c: Include sockets.h.
4833         (main): Invoke gl_sockets_startup.
4834         * modules/accept-tests (Depends-on): Add sockets.
4835
4836 2011-09-19  Bruno Haible  <bruno@clisp.org>
4837
4838         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
4839         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
4840         do...while(0).
4841         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
4842         Suggested by Paul Eggert.
4843
4844 2011-09-19  Bruno Haible  <bruno@clisp.org>
4845
4846         sched: Ensure pid_t is defined.
4847         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
4848         not define pid_t.
4849         * lib/sched.in.h: Include <sys/types.h>.
4850         * doc/posix-headers/sched.texi: Mention the pid_t problem.
4851         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4852
4853 2011-09-19  Bruno Haible  <bruno@clisp.org>
4854
4855         msvc-inval: Ensure the entire expansion is a single statement.
4856         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
4857         of braces.
4858
4859 2011-09-19  Jim Meyering  <meyering@redhat.com>
4860
4861         tests: use printf, not echo in init.sh's warn_ function
4862         * tests/init.sh (warn_): Use printf, not echo.  The latter would
4863         misbehave when given strings containing a backslash or starting
4864         with e.g., -n.  James Youngman suggested setting IFS.
4865
4866 2011-09-19  Eric Blake  <eblake@redhat.com>
4867
4868         futimens: enhance test
4869         * tests/test-futimens.h (test_futimens): Also check for EBADF on
4870         closed non-negative fd.
4871
4872         date: accept 'hence' as opposite of 'ago'
4873         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
4874         * tests/test-parse-datetime.c (main): Enhance test.
4875         Suggested by Jesse Wilson.
4876
4877 2011-09-19  Jim Meyering  <meyering@redhat.com>
4878
4879         getcwd: don't fail in a deep directory on a system without openat
4880         Before this change, getcwd would fail when called from a directory
4881         of depth PATH_MAX / 3 or greater.  That was due to the fact that
4882         the non-openat implementation used "..", "../..", "../../..", etc.
4883         to access ancestor directories.  With too many, that string would
4884         be longer than PATH_MAX.
4885         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
4886         using gnulib's openat replacement.
4887         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
4888         we're using the replacement function.
4889
4890 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
4891
4892         maint.mk: avoid warnings from perl about missing files
4893         * top/maint.mk (def_sym_regex): Ignore files listed in
4894         $(gl_other_headers_) that do not exist, say because a project
4895         does not use a corresponding module.
4896
4897 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
4898
4899         stat: use pathmax.h only if needed
4900         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
4901         This is better for Emacs, which does not have a mingw port and
4902         therefore can avoid the pathmax module.
4903
4904         utimens: remove dependency on dup2
4905         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
4906         to work around the Linux kernel bug.
4907         * modules/utimens (Depends-on): Remove dup2.
4908
4909 2011-09-18  Bruno Haible  <bruno@clisp.org>
4910
4911         inet_ntop, inet_pton: Look for it also in libresolv.
4912         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
4913         libnsl, search for it in libresolv.
4914         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
4915         Needed on Solaris 7.
4916
4917 2011-09-18  Bruno Haible  <bruno@clisp.org>
4918
4919         accept, accept4 tests: Avoid link error on Solaris.
4920         * modules/accept-tests (Makefile.am): Link test-accept against
4921         $(LIBSOCKET).
4922         * modules/accept4-tests (Makefile.am): Link test-accept4 against
4923         $(LIBSOCKET).
4924
4925         accept4: Avoid link error on Solaris.
4926         * modules/accept4 (Link): New section.
4927
4928         socket functions: Avoid link errors on Solaris.
4929         * modules/accept (Depends-on): Add socketlib.
4930         (Link): New section.
4931         * modules/bind (Depends-on): Add socketlib.
4932         (Link): New section.
4933         * modules/connect (Depends-on): Add socketlib.
4934         (Link): New section.
4935         * modules/getpeername (Depends-on): Add socketlib.
4936         (Link): New section.
4937         * modules/getsockname (Depends-on): Add socketlib.
4938         (Link): New section.
4939         * modules/getsockopt (Depends-on): Add socketlib.
4940         (Link): New section.
4941         * modules/listen (Depends-on): Add socketlib.
4942         (Link): New section.
4943         * modules/recv (Depends-on): Add socketlib.
4944         (Link): New section.
4945         * modules/recvfrom (Depends-on): Add socketlib.
4946         (Link): New section.
4947         * modules/send (Depends-on): Add socketlib.
4948         (Link): New section.
4949         * modules/sendto (Depends-on): Add socketlib.
4950         (Link): New section.
4951         * modules/setsockopt (Depends-on): Add socketlib.
4952         (Link): New section.
4953         * modules/shutdown (Depends-on): Add socketlib.
4954         (Link): New section.
4955         * modules/socket (Depends-on): Add socketlib.
4956         (Link): New section.
4957
4958 2011-09-18  Bruno Haible  <bruno@clisp.org>
4959
4960         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
4961         * tests/test-ptsname.c (main): Terminate the test if it takes longer
4962         than 5 seconds.
4963         * modules/ptsname-tests (configure.ac): Test for alarm.
4964
4965 2011-09-18  Bruno Haible  <bruno@clisp.org>
4966
4967         posix_spawn_file_actions_add*: Fix module dependencies.
4968         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
4969         posix_spawn_file_actions_init.
4970         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
4971         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
4972
4973 2011-09-18  Bruno Haible  <bruno@clisp.org>
4974
4975         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
4976         * tests/test-rename.h (test_rename): Allow error code EEXIST.
4977         * tests/test-renameat.c (main): Likewise.
4978
4979 2011-09-18  Bruno Haible  <bruno@clisp.org>
4980
4981         Tests for module 'accept4'.
4982         * modules/accept4-tests: New file.
4983         * tests/test-accept4.c: New file.
4984
4985 2011-09-18  Bruno Haible  <bruno@clisp.org>
4986
4987         Tests for module 'accept'.
4988         * modules/accept-tests: New file.
4989         * tests/test-accept.c: New file.
4990
4991 2011-09-18  Bruno Haible  <bruno@clisp.org>
4992
4993         dup2: Support for MSVC.
4994         * lib/dup2.c: Include msvc-inval.h.
4995         (rpl_dup2): Handle invalid parameter notifications during dup2 and
4996         _get_osfhandle calls.
4997         * modules/dup2 (Depends-on): Add msvc-inval.
4998         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
4999
5000         New module 'msvc-inval'.
5001         * lib/msvc-inval.h: New file.
5002         * lib/msvc-inval.c: New file.
5003         * m4/msvc-inval.m4: New file.
5004         * modules/msvc-inval: New file.
5005
5006 2011-09-17  Bruno Haible  <bruno@clisp.org>
5007
5008         Tests for module 'pclose'.
5009         * modules/pclose-tests: New file.
5010
5011         New module 'pclose'.
5012         * lib/stdio.in.h (pclose): New declaration.
5013         * lib/pclose.c: New file.
5014         * m4/pclose.m4: New file.
5015         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
5016         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
5017         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
5018         * modules/pclose: New file.
5019         * modules/popen-tests (Depends-on): Add pclose.
5020         * modules/popen-safer-tests (Depends-on): Likewise.
5021         * doc/posix-functions/pclose.texi: Mention the new module.
5022
5023 2011-09-17  Bruno Haible  <bruno@clisp.org>
5024
5025         popen: Support for MSVC.
5026         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
5027         * lib/popen.c (popen): Provide alternate definition for native Windows.
5028         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
5029         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
5030         * modules/popen (Depends-on, configure.ac): Update condition.
5031         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
5032         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
5033         fixed.
5034
5035 2011-09-17  Bruno Haible  <bruno@clisp.org>
5036
5037         isnanl, isnand, isnanf: Work around MSVC bug.
5038         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
5039
5040 2011-09-17  Bruno Haible  <bruno@clisp.org>
5041
5042         sys_socket tests: Fix recent mistake.
5043         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
5044
5045 2011-09-17  Bruno Haible  <bruno@clisp.org>
5046
5047         putenv: Support for MSVC.
5048         * modules/putenv (Depends-on): Add environ.
5049         * lib/putenv.c (environ): Disable declaration.
5050         * lib/unistd.in.h: Update comment.
5051
5052 2011-09-17  Bruno Haible  <bruno@clisp.org>
5053
5054         math: Avoid macro redefinition warnings on MSVC.
5055         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
5056         Undefine before redefining.
5057
5058 2011-09-17  Bruno Haible  <bruno@clisp.org>
5059
5060         doc: Mention functions which are declared as macros.
5061         * doc/posix-functions/*[fl].texi: Mention that some functions are
5062         defined as macros with arguments only.
5063
5064 2011-09-17  Bruno Haible  <bruno@clisp.org>
5065
5066         Add dependencies to new dirent related modules.
5067         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
5068         * modules/fts (Depends-on): Likewise.
5069         * modules/glob (Depends-on): Likewise.
5070         * modules/savedir (Depends-on): Likewise.
5071         * modules/scandir (Depends-on): Likewise.
5072         * modules/dirent-safer (Depends-on): Add opendir, closedir.
5073         * modules/fdopendir (Depends-on): Add opendir.
5074
5075 2011-09-17  Bruno Haible  <bruno@clisp.org>
5076
5077         inet_pton: Support for MSVC on Windows Vista or newer.
5078         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
5079         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
5080         HAVE_DECL_INET_PTON is defined.
5081         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
5082         On platforms with <winsock2.h>, test whether inet_pton is declared in
5083         <ws2tcpip.h>. If so, arrange to replace it.
5084         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
5085         REPLACE_INET_PTON.
5086         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
5087         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
5088         (Depends-on, configure.ac): Update condition.
5089         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
5090
5091 2011-09-17  Bruno Haible  <bruno@clisp.org>
5092
5093         inet_ntop: Support for MSVC on Windows Vista or newer.
5094         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
5095         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
5096         HAVE_DECL_INET_NTOP is defined.
5097         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
5098         On platforms with <winsock2.h>, test whether inet_ntop is declared in
5099         <ws2tcpip.h>. If so, arrange to replace it.
5100         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
5101         REPLACE_INET_NTOP.
5102         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
5103         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
5104         (Depends-on, configure.ac): Update condition.
5105         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
5106
5107 2011-09-16  Eric Blake  <eblake@redhat.com>
5108
5109         test-fsync: yet another enhancement
5110         * tests/test-fsync.c (main): Also test behavior on read-only text
5111         file.
5112
5113 2011-09-16  Bruno Haible  <bruno@clisp.org>
5114
5115         Enhance fsync, fdatasync tests.
5116         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
5117         * tests/test-fdatasync.c (main): Likewise.
5118
5119 2011-09-16  Bruno Haible  <bruno@clisp.org>
5120
5121         Support for MSVC compiler: Ensure mode_t gets defined.
5122         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
5123         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5124         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
5125         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
5126         * tests/test-fcntl-h.c: Check that mode_t is defined.
5127         * tests/test-sys_stat.c: Likewise.
5128         * tests/test-sys_types.c: Likewise.
5129         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
5130         * doc/posix-headers/sys_stat.texi: Likewise.
5131         * doc/posix-headers/sys_types.texi: Likewise.
5132
5133 2011-09-16  Bruno Haible  <bruno@clisp.org>
5134
5135         sys_stat: Support for MSVC.
5136         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
5137         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
5138         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
5139         MSVC.
5140
5141 2011-09-16  Bruno Haible  <bruno@clisp.org>
5142
5143         Support for MSVC compiler: Ensure off_t gets defined.
5144         * lib/unistd.in.h: Include <sys/types.h>.
5145         * tests/test-fcntl-h.c: Check that off_t is defined.
5146         * tests/test-sys_stat.c: Likewise.
5147         * tests/test-sys_types.c: Likewise.
5148
5149 2011-09-16  Eric Blake  <eblake@redhat.com>
5150
5151         fdatasync: port to Solaris
5152         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
5153         * modules/fdatasync (Link): Document it.
5154         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
5155
5156         fdatasync: port to MacOS X 10.7
5157         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
5158         declared.
5159         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
5160         * modules/unistd (Makefile.am): Substitute it.
5161         * lib/unistd.in.h (fdatasync): Declare on MacOS.
5162         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
5163
5164         fdatasync: minor improvements
5165         * modules/fdatasync (Depends-on): Add condition for fsync.
5166         * lib/fdatasync.c (fdatasync): Add comment.
5167         * tests/test-unistd-c++.cc: Test fdatasync.
5168
5169         unistd: update refs to newer POSIX
5170         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
5171         Suggested by Bruno Haible.
5172
5173         fdatasync: new module
5174         * modules/fsync (Description): Document difference to fdatasync.
5175         * modules/fdatasync: New module.
5176         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
5177         * lib/fdatasync.c (fdatasync): Likewise.
5178         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
5179         defaults.
5180         * modules/unistd (Makefile.am): Set witnesses.
5181         * lib/unistd.in.h (fdatasync): Declare.
5182         * MODULES.html.sh: Document it.
5183         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
5184         * modules/fdatasync-tests: New test.
5185         * tests/test-fdatasync.c: Likewise.
5186
5187 2011-09-16  Eric Blake  <eblake@redhat.com>
5188
5189         test-fsync: enhance tests
5190         * modules/fsync-tests (Depends-on): Add errno, for mingw.
5191         * tests/test-fsync.c (main): Enhance test.
5192
5193 2011-09-15  Bruno Haible  <bruno@clisp.org>
5194
5195         Support for MSVC compiler: Ensure ssize_t gets defined.
5196         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
5197         * doc/posix-headers/stdio.texi: Likewise.
5198         * modules/stdio (Depends-on): Add ssize_t.
5199         * modules/sys_socket (Depends-on): Likewise.
5200         * modules/sys_types (Depends-on): Likewise.
5201         * modules/sys_uio (Depends-on): Likewise.
5202         * modules/unistd (Depends-on): Likewise.
5203         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
5204         * tests/test-sys_types.c: Check that ssize_t is defined.
5205
5206 2011-09-14  Bruno Haible  <bruno@clisp.org>
5207
5208         Avoid using #, the m4 comment starter character, near brackets.
5209         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
5210         delimiter character in sed expressions.
5211         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
5212         Suggested by Eric Blake.
5213
5214         Properly quote AC_CHECK_DECLS' 4th argument.
5215         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
5216         argument.
5217         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
5218         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
5219         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
5220         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
5221         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
5222         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
5223         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
5224         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
5225         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
5226         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
5227         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
5228         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5229         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
5230         * m4/isinf.m4 (gl_ISINF): Likewise.
5231         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5232         * m4/readutmp.m4 (gl_READUTMP): Likewise.
5233         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
5234         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5235         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5236         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
5237         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
5238         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
5239         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
5240         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
5241         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5242         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5243         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
5244         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
5245         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5246         Reported by Eric Blake.
5247
5248         Properly quote AC_CHECK_DECL's 4th argument.
5249         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
5250         argument.
5251         * m4/argp.m4 (gl_ARGP): Likewise.
5252         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
5253         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
5254         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
5255         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
5256         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
5257         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
5258         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
5259         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
5260         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
5261         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
5262         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
5263         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
5264         Reported by Eric Blake.
5265
5266 2011-09-14  Eric Blake  <eblake@redhat.com>
5267
5268         opendir: avoid compile warning
5269         * lib/opendir.c (includes): Always include errno.h.
5270         Reported by Tatsuro MATSUOKA.
5271
5272 2011-09-14  Jim Meyering  <meyering@redhat.com>
5273
5274         maint.mk: sc_tight_scope: propagate failure from sub-make
5275         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
5276         Reported by Martin von Gagern.
5277
5278 2011-09-13  Bruno Haible  <bruno@clisp.org>
5279
5280         tempname: Support for MSVC.
5281         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
5282         MSVC.
5283         * modules/tempname (Depends-on): Add fcntl-h.
5284
5285 2011-09-13  Bruno Haible  <bruno@clisp.org>
5286
5287         sys_time: Support for MSVC.
5288         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
5289         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
5290         include <winsock2.h>.
5291         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
5292         function declarations that collide with POSIX.
5293         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
5294         (Makefile.am): Substitute HAVE_WINSOCK2_H.
5295
5296 2011-09-13  Bruno Haible  <bruno@clisp.org>
5297
5298         stat: Support for MSVC.
5299         * lib/stat.c: Include pathmax.h.
5300         * modules/stat (Depends-on): Add pathmax.
5301
5302         pathmax: Support for native Windows.
5303         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
5304
5305 2011-09-12  Bruno Haible  <bruno@clisp.org>
5306
5307         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
5308         * lib/dirent.in.h (struct dirent): New type.
5309         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
5310         DT_WHT): New macros.
5311         (DIR): New type.
5312         (opendir, closedir): Declare only if the module 'opendir' is enabled.
5313         (readdir, rewinddir): New declarations.
5314         * lib/dirent-private.h: New file.
5315         * lib/opendir.c: New file.
5316         * lib/readdir.c: New file.
5317         * lib/rewinddir.c: New file.
5318         * lib/closedir.c: New file.
5319         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
5320         * m4/opendir.m4: New file.
5321         * m4/readdir.m4: New file.
5322         * m4/rewinddir.m4: New file.
5323         * m4/closedir.m4: New file.
5324         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
5325         REPLACE_CLOSEDIR here.
5326         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
5327         readdir, rewinddir are declared.
5328         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
5329         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
5330         HAVE_REWINDDIR, HAVE_CLOSEDIR.
5331         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
5332         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
5333         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
5334         * modules/opendir: New file.
5335         * modules/readdir: New file.
5336         * modules/rewinddir: New file.
5337         * modules/closedir: New file.
5338         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
5339         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
5340         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
5341         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
5342         * NEWS: Mention the 'fchdir' change.
5343
5344 2011-09-11  Bruno Haible  <bruno@clisp.org>
5345
5346         asm-underscore.m4: Support for MSVC.
5347         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
5348         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
5349
5350 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
5351
5352         Doc about crypt functions.
5353         * doc/posix-functions/crypt.texi: Expand range of glibc versions
5354         needing for _GNU_SOURCE to get crypt.
5355         * doc/posix-functions/encrypt.texi: Likewise.
5356         * doc/posix-functions/setkey.texi: Likewise.
5357
5358 2011-09-11  Bruno Haible  <bruno@clisp.org>
5359
5360         doc: Update regarding MSVC 9.
5361         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
5362         tested".
5363         * doc/posix-functions/*.texi: Update with info about MSVC 9.
5364         * doc/posix-headers/*.texi: Likewise.
5365         * doc/pastposix-functions/*.texi: Likewise.
5366         * doc/glibc-functions/*.texi: Likewise.
5367         * doc/glibc-headers/*.texi: Likewise.
5368
5369 2011-09-11  Bruno Haible  <bruno@clisp.org>
5370
5371         unistd et al.: Don't assume <unistd.h> exists.
5372         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
5373         does not exist.
5374         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
5375         exist. But include <stdlib.h>.
5376         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
5377         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
5378         symlink() does not exist.
5379         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
5380         include <io.h> instead.
5381         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
5382         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
5383         include <direct.h> instead.
5384         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
5385         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5386         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
5387         <io.h> instead.
5388         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
5389         correctly if the system does not have hard links.
5390         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
5391         <direct.h> instead.
5392         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
5393         it when looking for function declarations.
5394         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
5395         <direct.h> and <io.h> instead.
5396         * doc/posix-headers/unistd.texi: More details about MSVC problem.
5397
5398 2011-09-11  Bruno Haible  <bruno@clisp.org>
5399
5400         strcase: Support for MSVC.
5401         * modules/strcase (Status, Notice): Remove obsoletion mark.
5402         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
5403         * doc/posix-functions/strncasecmp.texi: Likewise.
5404
5405         strings: Don't assume <strings.h> exists.
5406         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
5407         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
5408         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
5409         * doc/posix-headers/strings.texi: Mention the MSVC problem.
5410
5411 2011-09-11  Bruno Haible  <bruno@clisp.org>
5412
5413         dirent: Don't assume <dirent.h> exists.
5414         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
5415         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
5416         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
5417         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
5418
5419 2011-09-11  Bruno Haible  <bruno@clisp.org>
5420
5421         Fix wint_t on MSVC.
5422         * lib/wchar.in.h (wint_t): On MSVC, override it.
5423         * lib/wctype.in.h (wint_t): Likewise.
5424         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
5425         MSVC.
5426         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
5427         * doc/posix-headers/wctype.texi: Likewise.
5428
5429 2011-09-11  Bruno Haible  <bruno@clisp.org>
5430
5431         sys_types: Fix typo.
5432         * lib/sys_types.in.h: Fix typo in comment.
5433         Reported by Paul Eggert.
5434
5435         Support for MSVC compiler: Ensure size_t gets defined.
5436         * modules/strings (Depends-on): Add 'sys_types'.
5437         * modules/sys_uio (Depends-on): Likewise.
5438         * lib/sys_uio.in.h: Update comment.
5439
5440         C++ tests for module 'sys_types'.
5441         * modules/sys_types-c++-tests: New file.
5442         * tests/test-sys_types-c++.cc: New file.
5443
5444         Tests for module 'sys_types'.
5445         * modules/sys_types-tests: New file.
5446         * tests/test-sys_types.c: New file.
5447
5448         New module 'sys_types'.
5449         * lib/sys_types.in.h: New file.
5450         * m4/sys_types_h.m4: New file.
5451         * modules/sys_types: New file.
5452         * doc/posix-headers/sys_types.texi: Mention the new module and the
5453         size_t problem on MSVC 9.
5454
5455 2011-09-11  Bruno Haible  <bruno@clisp.org>
5456
5457         Support for MSVC compiler: Avoid division by a literal 0.
5458         * lib/math.in.h (NAN): Define through a function call also on MSVC.
5459         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
5460         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
5461         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
5462         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
5463         * tests/infinity.h: New file.
5464         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
5465         on MSVC.
5466         * tests/test-ceilf1.c: Include infinity.h.
5467         (main): Use Infinityf.
5468         * tests/test-ceil1.c: Include infinity.h.
5469         (main): Use Infinityd.
5470         * tests/test-ceill.c: Include infinity.h.
5471         (main): Use Infinityl.
5472         * tests/test-dprintf-posix.c: Include infinity.h.
5473         (test_function): Use Infinityd.
5474         * tests/test-floorf1.c: Include infinity.h.
5475         (main): Use Infinityf.
5476         * tests/test-floor1.c: Include infinity.h.
5477         (main): Use Infinityd.
5478         * tests/test-floorl.c: Include infinity.h.
5479         (main): Use Infinityl.
5480         * tests/test-fprintf-posix.c: Include infinity.h.
5481         (test_function): Use Infinityd.
5482         * tests/test-frexp.c: Include infinity.h.
5483         (main): Use Infinityd.
5484         * tests/test-frexpl.c: Include infinity.h.
5485         (main): Use Infinityl.
5486         * tests/test-isfinite.c: Include infinity.h.
5487         (test_isfinitef): Use Infinityf.
5488         (test_isfinited): Use Infinityd.
5489         (test_isfinitel): Use Infinityl.
5490         * tests/test-isinf.c: Include infinity.h.
5491         (test_isinff): Use Infinityf.
5492         (test_isinfd): Use Infinityd.
5493         (test_isinfl): Use Infinityl.
5494         * tests/test-isnan.c: Include infinity.h.
5495         (test_float): Use Infinityf.
5496         (test_double): Use Infinityd.
5497         (test_long_double): Use Infinityl.
5498         * tests/test-isnanf.h: Include infinity.h.
5499         (main): Use Infinityf.
5500         * tests/test-isnand.h: Include infinity.h.
5501         (main): Use Infinityd.
5502         * tests/test-isnanl.h: Include infinity.h.
5503         (main): Use Infinityl.
5504         * tests/test-ldexpl.c: Include infinity.h.
5505         (main): Use Infinityl.
5506         * tests/test-printf-posix.h: Include infinity.h.
5507         (test_function): Use Infinityd.
5508         * tests/test-roundf1.c: Include infinity.h.
5509         (main): Use Infinityf.
5510         * tests/test-round1.c: Include infinity.h.
5511         (main): Use Infinityd.
5512         * tests/test-roundl.c: Include infinity.h.
5513         (main): Use Infinityl.
5514         * tests/test-signbit.c: Include infinity.h.
5515         (test_signbitf): Use Infinityf.
5516         (test_signbitd): Use Infinityd.
5517         (test_signbitl): Use Infinityl.
5518         * tests/test-snprintf-posix.h: Include infinity.h.
5519         (test_function): Use Infinityd, Infinityl.
5520         * tests/test-sprintf-posix.h: Include infinity.h.
5521         (test_function): Use Infinityd, Infinityl.
5522         * tests/test-truncf1.c: Include infinity.h.
5523         (main): Use Infinityf.
5524         * tests/test-trunc1.c: Include infinity.h.
5525         (main): Use Infinityd.
5526         * tests/test-truncl.c: Include infinity.h.
5527         (main): Use Infinityl.
5528         * tests/test-vasnprintf-posix.c: Include infinity.h.
5529         (test_function): Use Infinityd, Infinityl.
5530         * tests/test-vasprintf-posix.c: Include infinity.h.
5531         (test_function): Use Infinityd, Infinityl.
5532         * modules/ceilf-tests (Files): Add tests/infinity.h.
5533         * modules/ceil-tests (Files): Likewise.
5534         * modules/ceill-tests (Files): Likewise.
5535         * modules/dprintf-posix-tests (Files): Likewise.
5536         * modules/floorf-tests (Files): Likewise.
5537         * modules/floor-tests (Files): Likewise.
5538         * modules/floorl-tests (Files): Likewise.
5539         * modules/fprintf-posix-tests (Files): Likewise.
5540         * modules/frexp-tests (Files): Likewise.
5541         * modules/frexp-nolibm-tests (Files): Likewise.
5542         * modules/frexpl-tests (Files): Likewise.
5543         * modules/frexpl-nolibm-tests (Files): Likewise.
5544         * modules/isfinite-tests (Files): Likewise.
5545         * modules/isinf-tests (Files): Likewise.
5546         * modules/isnan-tests (Files): Likewise.
5547         * modules/isnanf-tests (Files): Likewise.
5548         * modules/isnanf-nolibm-tests (Files): Likewise.
5549         * modules/isnand-tests (Files): Likewise.
5550         * modules/isnand-nolibm-tests (Files): Likewise.
5551         * modules/isnanl-tests (Files): Likewise.
5552         * modules/isnanl-nolibm-tests (Files): Likewise.
5553         * modules/ldexpl-tests (Files): Likewise.
5554         * modules/printf-posix-tests (Files): Likewise.
5555         * modules/roundf-tests (Files): Likewise.
5556         * modules/round-tests (Files): Likewise.
5557         * modules/roundl-tests (Files): Likewise.
5558         * modules/signbit-tests (Files): Likewise.
5559         * modules/snprintf-posix-tests (Files): Likewise.
5560         * modules/sprintf-posix-tests (Files): Likewise.
5561         * modules/truncf-tests (Files): Likewise.
5562         * modules/trunc-tests (Files): Likewise.
5563         * modules/truncl-tests (Files): Likewise.
5564         * modules/vasnprintf-posix-tests (Files): Likewise.
5565         * modules/vasprintf-posix-tests (Files): Likewise.
5566         * modules/vdprintf-posix-tests (Files): Likewise.
5567         * modules/vfprintf-posix-tests (Files): Likewise.
5568         * modules/vprintf-posix-tests (Files): Likewise.
5569         * modules/vsnprintf-posix-tests (Files): Likewise.
5570         * modules/vsprintf-posix-tests (Files): Likewise.
5571         * modules/xprintf-posix-tests (Files): Likewise.
5572
5573 2011-09-11  Bruno Haible  <bruno@clisp.org>
5574
5575         Ensure pid_t gets defined.
5576         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
5577         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
5578         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
5579         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5580         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
5581         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
5582         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
5583         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
5584         * tests/test-fcntl-h.c: Check that pid_t is defined.
5585         * tests/test-sched.c: Likewise.
5586         * tests/test-termios.c: Likewise.
5587         * tests/test-time.c: Likewise.
5588         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
5589         * doc/posix-headers/signal.texi: Likewise.
5590         * doc/posix-headers/sys_types.texi: Likewise.
5591         * doc/posix-headers/time.texi: Likewise.
5592
5593 2011-09-11  Bruno Haible  <bruno@clisp.org>
5594
5595         acl: Fix compilation on Solaris 10 (older version).
5596         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
5597         of ACE_EVERYONE.
5598         * lib/set-mode-acl.c (qset_acl): Likewise.
5599         Reported by Christian Jullien <eligis@orange.fr>.
5600
5601 2011-09-10  Bruno Haible  <bruno@clisp.org>
5602
5603         iconv, unsetenv: Add support for MSVC compiler.
5604         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
5605         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
5606
5607 2011-09-10  Bruno Haible  <bruno@clisp.org>
5608
5609         *printf: Add support for MSVC compiler.
5610         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
5611         handles the exception caused by the %n directive. When cross-compiling,
5612         guess no on native Windows.
5613         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
5614         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
5615         emulate it through vsnprintf.
5616         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
5617         * doc/posix-functions/dprintf.texi: Update documentation regarding
5618         MSVC 9.
5619         * doc/posix-functions/fprintf.texi: Likewise.
5620         * doc/posix-functions/printf.texi: Likewise.
5621         * doc/posix-functions/snprintf.texi: Likewise.
5622         * doc/posix-functions/sprintf.texi: Likewise.
5623         * doc/posix-functions/swprintf.texi: Likewise.
5624         * doc/posix-functions/vdprintf.texi: Likewise.
5625         * doc/posix-functions/vfprintf.texi: Likewise.
5626         * doc/posix-functions/vprintf.texi: Likewise.
5627         * doc/posix-functions/vsnprintf.texi: Likewise.
5628         * doc/posix-functions/vsprintf.texi: Likewise.
5629         * doc/glibc-functions/asprintf.texi: Likewise.
5630         * doc/glibc-functions/obstack_printf.texi: Likewise.
5631         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
5632         * doc/glibc-functions/vasprintf.texi: Likewise.
5633
5634 2011-09-10  Bruno Haible  <bruno@clisp.org>
5635
5636         nocrash: Add support for native Windows.
5637         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
5638
5639 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
5640             Bruno Haible  <bruno@clisp.org>
5641
5642         absolute-header, include-next: Add support for MSVC compiler.
5643         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
5644         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
5645         directory separator in #line directives.
5646         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
5647         recognize also backslash as directory separator in #line directives.
5648
5649 2011-09-08  Jim Meyering  <meyering@redhat.com>
5650
5651         maint.mk: mark the post-release commit log with "maint: " prefix
5652         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
5653         one-line commit-log summary.
5654
5655 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
5656             Bruno Haible  <bruno@clisp.org>
5657
5658         Doc about crypt functions.
5659         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
5660         systems.
5661         * doc/posix-functions/encrypt.texi: Likewise.
5662         * doc/posix-functions/setkey.texi: Likewise.
5663
5664 2011-09-08  Simon Josefsson  <simon@josefsson.org>
5665
5666         * lib/gc.h: Fix copyright header.
5667
5668 2011-09-07  Bruno Haible  <bruno@clisp.org>
5669
5670         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
5671         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
5672         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
5673
5674 2011-09-07  Bruno Haible  <bruno@clisp.org>
5675
5676         openat: Work around compilation error with OSF/1 5.1 DTK cc.
5677         * lib/fopen.c: Use different syntax for include of <stdio.h>.
5678         * lib/freopen.c: Likewise.
5679         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
5680         * lib/lstat.c: Likewise.
5681         * lib/stat.c: Likewise.
5682         * lib/open.c: Use different syntax for include of <fcntl.h>.
5683         * lib/openat.c: Include fcntl.h again, explicitly.
5684
5685 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
5686
5687         parse-datetime: document the newly accepted format
5688         * doc/parse-datetime.texi (Combined date and time of day items):
5689         New section.
5690
5691 2011-09-06  Bruno Haible  <bruno@clisp.org>
5692
5693         acl: Fix a test failure on newer Solaris 10 with ZFS.
5694         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
5695         ENOSYS as no ACL.
5696         Reported by Jim Meyering.
5697
5698 2011-09-06  Bruno Haible  <bruno@clisp.org>
5699
5700         acl: Update for AIX >= 5.3 with NFS.
5701         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
5702         ENOSYS as no ACL.
5703
5704         acl: Fix a test failure on AIX >= 5.3 with NFS.
5705         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
5706         as no ACL.
5707
5708 2011-09-06  Bruno Haible  <bruno@clisp.org>
5709
5710         acl: Fix a test failure on IRIX 6.5 with NFS.
5711         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
5712         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
5713         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
5714         * lib/copy-acl.c (qcopy_acl): Likewise.
5715
5716 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
5717
5718         openat: port to AIX 7.1 with large files
5719         AIX 7.1 does a "#define openat open64at" if large files are in use,
5720         so we can't simply #undef openat.  Use the orig_openat trick (similar
5721         to orig_open in lib/open.c) to work around the problem.  Problem
5722         reported by Kevin Brott for GNU tar, in the thread containing
5723         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
5724         * lib/openat.c (__need_system_fcntl_h): Define first.
5725         Include <fcntl.h> and <sys/types.h> before undefining.
5726         (orig_openat) [HAVE_OPENAT]: New inline function.
5727         (openat) [HAVE_OPENAT]: Do not undef.
5728         (rpl_openat): Use orig_openat, not openat.
5729
5730 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
5731             Bruno Haible  <bruno@clisp.org>
5732
5733         acl: Avoid errors on NonStop Kernel.
5734         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
5735         ENOTSUP errors.
5736
5737 2011-09-05  Bruno Haible  <bruno@clisp.org>
5738
5739         acl: Clean up Solaris code.
5740         * lib/acl-internal.h: Remove no-op #if.
5741         * lib/file-has-acl.c: Likewise.
5742         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
5743         * lib/copy-acl.c (qcopy_acl): Likewise.
5744
5745 2011-09-05  Bruno Haible  <bruno@clisp.org>
5746
5747         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
5748         binaries built on the original Solaris 10.
5749         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
5750         trivial.
5751
5752 2011-09-05  Bruno Haible  <bruno@clisp.org>
5753
5754         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
5755         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
5756         10.
5757         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
5758         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
5759         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
5760         instead of acl_get, facl_get, acl_set, facl_set.
5761
5762 2011-09-05  Bruno Haible  <bruno@clisp.org>
5763
5764         copy-file: Try unit tests on more file systems.
5765         * tests/test-copy-file-1.sh: New file.
5766         * tests/test-copy-file-2.sh: New file.
5767         * modules/copy-file-tests (Files): Add them.
5768         (Makefile.am): Add them to TESTS.
5769
5770         acl: Try unit tests on more file systems.
5771         * tests/test-file-has-acl-1.sh: New file.
5772         * tests/test-file-has-acl-2.sh: New file.
5773         * tests/test-set-mode-acl-1.sh: New file.
5774         * tests/test-set-mode-acl-2.sh: New file.
5775         * tests/test-copy-acl-1.sh: New file.
5776         * tests/test-copy-acl-2.sh: New file.
5777         * modules/acl-tests (Files): Add them.
5778         (Makefile.am): Add them to TESTS.
5779
5780 2011-09-04  Bruno Haible  <bruno@clisp.org>
5781
5782         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
5783         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
5784         10.
5785         (OLD_ALLOW, OLD_DENY): New macros.
5786         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
5787         ACE_ACCESS_ALLOWED_ACE_TYPE.
5788         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
5789         ACE_ACCESS_DENIED_ACE_TYPE.
5790         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
5791         (NEW_ACE_EXECUTE): Fix value.
5792         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
5793         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
5794         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
5795         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
5796         NEW_ACE_SYNCHRONIZE): New macros.
5797         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
5798         instead of acl_fromtext, acl_set, facl_set.
5799         Fixes a coreutils/tests/cp/perm failure.
5800
5801 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
5802
5803         openat: test for fstatat (..., 0) bug
5804         Further testing with tar suggests that fstatat (..., 0)
5805         does not work in general, on AIX 7.1; see
5806         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
5807         So, give up entirely on AIX 7.1's fstatat, and fall back on our
5808         replacement fstatat (which is what older AIX releases were using
5809         anyway).
5810         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
5811         use is now changed to orig_fstatat.  This was probably the right
5812         thing to do anyway.
5813         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
5814         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
5815         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
5816         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
5817         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
5818         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
5819         if the bug is found.
5820
5821         openat: test for fstatat (AT_FDCWD, ..., 0) bug
5822         This tests for another fstatat bug on AIX 7.1:
5823         fstatat (AT_FDCWD, ..., 0) does not work.  See
5824         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
5825         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
5826         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
5827         (rpl_fstatat): Adjust so that it works around either (or both)
5828         bugs if present.
5829         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
5830
5831 2011-09-03  Karl Berry  <karl@gnu.org>
5832
5833         * doc/regex.texi (Character Class Operators): Avoid literal ":"
5834         in index entries.
5835
5836 2011-09-02  Bruno Haible  <bruno@clisp.org>
5837
5838         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
5839         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
5840         values of AR, ARFLAGS, RANLIB.
5841         Reported by John W. Eaton <jwe@gnu.org> for Octave.
5842
5843 2011-09-02  Bruno Haible  <bruno@clisp.org>
5844
5845         Find 'ar' program that fits with --host argument.
5846         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
5847
5848 2011-09-02  Bruno Haible  <bruno@clisp.org>
5849
5850         tests: init.sh: Support any non-GNU diff.
5851         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
5852         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
5853         Solaris 8.
5854
5855 2011-09-02  Bruno Haible  <bruno@clisp.org>
5856
5857         tests: init.sh: work also with any non-GNU diff that supports -u
5858         * tests/init.sh: Relax check for diff -u support.
5859         Rather than checking for GNU diff via --version, simply check
5860         for support for -u itself.  Useful at least on OpenBSD 4.9,
5861         AIX 7.1, IRIX 6.5, and Solaris 10.
5862
5863 2011-09-01  Bruno Haible  <bruno@clisp.org>
5864
5865         strtoimax, strtoumax: Document problem on HP-UX 11.
5866         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
5867         * doc/posix-functions/strtoumax.texi: Likewise.
5868
5869 2011-09-01  Bruno Haible  <bruno@clisp.org>
5870
5871         strtoumax: Avoid link error on OSF/1 with DTK cc.
5872         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
5873         defined as a function.
5874         * modules/strtoumax (Depends-on, configure.ac): Test only whether
5875         strtoumax is defined, not whether it is declared.
5876
5877 2011-09-01  Bruno Haible  <bruno@clisp.org>
5878
5879         strtoimax: Avoid link error on OSF/1 with DTK cc.
5880         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
5881         defined as a function.
5882         * modules/strtoimax (Depends-on, configure.ac): Test only whether
5883         strtoimax is defined, not whether it is declared.
5884
5885 2011-09-01  Bruno Haible  <bruno@clisp.org>
5886
5887         imaxdiv: Avoid link error on OSF/1 with DTK cc.
5888         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
5889         as a function.
5890         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
5891         whether it is declared.
5892
5893 2011-09-01  Bruno Haible  <bruno@clisp.org>
5894
5895         imaxabs: Avoid link error on OSF/1 with DTK cc.
5896         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
5897         as a function.
5898         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
5899         whether it is declared.
5900
5901 2011-09-01  Bruno Haible  <bruno@clisp.org>
5902
5903         Tests for module 'strtoumax'.
5904         * modules/strtoumax-tests: New file.
5905         * tests/test-strtoumax.c: New file.
5906
5907         Tests for module 'strtoimax'.
5908         * modules/strtoimax-tests: New file.
5909         * tests/test-strtoimax.c: New file.
5910
5911         Tests for module 'imaxdiv'.
5912         * modules/imaxdiv-tests: New file.
5913         * tests/test-imaxdiv.c: New file.
5914
5915         Tests for module 'imaxabs'.
5916         * modules/imaxabs-tests: New file.
5917         * tests/test-imaxabs.c: New file.
5918
5919 2011-09-01  Bruno Haible  <bruno@clisp.org>
5920
5921         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
5922         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
5923         pthread_create.
5924
5925 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
5926
5927         openat: work around AIX 7.1 fstatat issue
5928         This should fix the problem that was not properly fixed
5929         in the previous change, dated 2011-08-30.
5930         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
5931         __need_system_stat_h defined.
5932         (orig_fstatat) [HAVE_FSTATAT]: New function.
5933         (rpl_fstatat): Go back to the old way of doing things,
5934         except call orig_fstatat instead of fstatat.
5935         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
5936         Remove unnecessary check whether fstatat fills in st_size etc.
5937
5938 2011-09-01  Bruno Haible  <bruno@clisp.org>
5939
5940         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
5941         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
5942         just include the system's header.
5943
5944 2011-08-31  Jim Meyering  <meyering@redhat.com>
5945
5946         tests: avoid spurious assertion failure in test-float.c on ppc64
5947         * tests/test-float.c (test_long_double): Comment out an assertion,
5948         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
5949         with gcc-4.4.4.
5950
5951         maint: indent with spaces, not TABs
5952         I need to get in the habit of running gnulib's "make check".
5953         Both of these would have been caught.
5954         * m4/largefile.m4: Indent with spaces, not TABs.
5955         * lib/parse-datetime.y (iso_8601_time): Likewise.
5956         Spotted by Pádraig Brady.
5957
5958         test-parse-datetime.c: accommodate a relatively strict gcc warning
5959         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
5960         to avoid a warning from gcc's -Werror=missing-declarations.
5961         Insert a few spaces-before-funcall-parenthesis.
5962
5963 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
5964
5965         parse-datetime: accept ISO 8601 date and time rep with "T" separator
5966         The parser now accepts ISO 8601 date-time strings with "T" as the
5967         separator.  It has long parsed dates like "2004-02-29 16:21:42"
5968         with a space between the date and time strings.  Now it also parses
5969         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
5970         variants like "2004-02-29T16:21:42.333-07:00"
5971         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
5972         of day representation using the 'T' separator character.
5973         * doc/parse-datetime.texi (General date syntax): replace use of
5974         deprecated --iso-8601 option with --rfc-3339 in example of date
5975         command output formats that can be parsed.
5976         * tests/test-parse-datetime.c (tm_diff): New function, taken from
5977         lib/parse-datetime.y.
5978         (gmt_offset): New function.
5979         (main): Add additional test cases to validate ISO8601 extended
5980         date and time of day parsing.
5981
5982 2011-08-31  Bruno Haible  <bruno@clisp.org>
5983
5984         freopen: Documentation.
5985         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
5986         name.
5987         Reported by Claudio Bley <claudio.bley@gmail.com>.
5988
5989 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
5990
5991         freopen: Don't crash if the filename argument is NULL.
5992         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
5993         NULL.
5994
5995 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
5996
5997         openat: work around AIX 7.1 fstatat bug
5998         Problem reported by Kevin Brott for GNU tar, in the thread containing
5999         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
6000         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
6001         FSTATAT_ST_SIZE_ETC_BROKEN.
6002         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
6003         rpl_fstatat.
6004         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
6005         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
6006         AC_CHECK_FUNCS_ONCE for fstatat.
6007         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
6008         fchmodat, mkdirat, openat and unlinkat.
6009
6010 2011-08-30  Bruno Haible  <bruno@clisp.org>
6011
6012         Avoid endless recursions if config.h includes some header files.
6013         * lib/fopen.c (__need_FILE): Define already before including config.h.
6014         * lib/freopen.c (__need_FILE): Likewise.
6015         * lib/open.c (__need_system_fcntl_h): Likewise.
6016         * lib/stat.c (__need_system_sys_stat_h): Likewise.
6017         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
6018         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6019
6020 2011-08-25  Karl Berry  <karl@gnu.org>
6021
6022         * config/srclist.txt (ylwrap): new try.
6023         * build-aux/ylwrap: new file.
6024
6025 2011-08-23  Bruno Haible  <bruno@clisp.org>
6026
6027         tmpdir: Use a good default directory on native Windows.
6028         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
6029         (P_tmpdir): Default to _P_tmpdir on native Windows.
6030         (path_search): On native Windows, try the value returned by GetTempPath
6031         before trying P_tmpdir.
6032         * modules/tmpdir (Depends-on): Add pathmax.
6033         Suggested by John Darrington <john@darrington.wattle.id.au>.
6034
6035 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
6036
6037         doc: fix typo in README-release
6038         * top/README-release: Capitalize first word of a sentence.
6039
6040 2011-08-19  Jim Meyering  <meyering@redhat.com>
6041
6042         fts: do not exhaust memory when processing million-entry directories
6043         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
6044         directory would require about 256*N bytes of memory.  Thus, it was
6045         easy to construct a directory too large to be processed by any of
6046         those tools.  With this change, fts' maximum memory utilization is
6047         now limited to around 30MB.
6048         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
6049         (fts_read): When we've processed the final entry (i.e., when
6050         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
6051         using the parent entry to read any remaining entries.  Dispatch
6052         depending on what fts_build returns:
6053         - NULL+stop, aka failure: stop
6054         - NULL otherwise: move up in the dir hierarchy
6055         - non-NULL: handle this new entry
6056         (fts_build): Declare and use new local, continue_readdir.
6057         Prepare to be called from fts_read, when the entries
6058         from a partially-read directory have just been exhausted.
6059         In that case, we'll skip the opendir and instead use the parent's
6060         fts_dirp and derive dir_fd from that.
6061         Finally, in the readdir loop, if we read max_entries entries,
6062         exit the loop ensuring *not* to call closedir.  This is required
6063         so that fts_dirp can be reused on a subsequent call.
6064         Prompted by Ben England's report of memory exhaustion in find
6065         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
6066
6067         maint: fts: move decl of `dp' down into while loop; split a long line
6068         * lib/fts.c (fts_build): No semantic change.
6069
6070         fts: add/use new struct member, fts_dirp
6071         We are about to use this to manage any directory with
6072         too many entries to read all of them into memory at once.
6073         To do that, we'll need to save the DIR* pointer in each
6074         affected FTSENT struct.
6075         * lib/fts_.h: Include <dirent.h>.
6076         (struct FTSENT) [fts_dirp]: New member.
6077         * lib/fts.c (closedir_and_clear): Define.
6078         Use it in place of closedir so that we are sure to
6079         clear the new fts_dirp member when done with it.
6080         (fts_alloc): Initialize the new member.
6081         (fts_lfree): Free, if needed.
6082
6083         maint: fts: give __opendir2 a new parameter and rename
6084         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
6085         than surreptitiously using sole caller's "dir_fd".
6086         (fts_opendir): Rename from __opendir2.
6087
6088         maint: fts.c: remove __opendir2's now-unused parameter, oflag
6089         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
6090
6091         maint: fts.c: correct off-by-one indentation
6092         * lib/fts.c (fts_build): Correct indentation, change style
6093         of a couple of block comments, and bracing style.
6094
6095         maint: fts.c: move __opendir2 #define "up" out of function body
6096         * lib/fts.c (__opendir2): Move "up".  No semantic change.
6097
6098         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
6099         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
6100         out for a long time and besides was useful only on BSD systems.
6101
6102 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
6103
6104         regex: port to Stratus OpenVOS
6105         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
6106         define to empty, rather than attempting nonportable optimizations.
6107         Problem reported by Paul Green in:
6108         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
6109         and fix suggested by Eric Blake in:
6110         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
6111
6112 2011-08-17  Eric Blake  <eblake@redhat.com>
6113
6114         getcwd: fix test failures on mingw
6115         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
6116         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
6117         test if long directory cannot be created, and allow mingw errno.
6118
6119         getcwd-lgpl: fix m4 to match relaxed test for BSD
6120         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
6121         (gl_FUNC_GETCWD_SIGNATURE): New macro.
6122         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
6123         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
6124         signature problem.
6125
6126         getcwd: fix compilation on mingw64
6127         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
6128         getcwd.
6129         Reported by Marc-André Lureau.
6130
6131         pipe2: silence compiler warning
6132         * lib/pipe2.c (pipe2): Hide label if it is not used.
6133
6134 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
6135
6136         relocatable-prog: fix link error
6137         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
6138         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
6139         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
6140         into modules/relocatable-lib without noticing that
6141         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
6142         also needs to build relocatable.c.
6143
6144 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
6145
6146         getaddrinfo: fix sh typo in gai_strerrorA decl checking
6147         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
6148         shell code: it contained a 'break' that was not in a loop.
6149         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
6150         via a shell-language loop; this may have been true in old Autoconf
6151         versions, but it's not true in Autoconf 2.68.  I found this bug
6152         when testing coreutils git on Solaris 8, whose shell complains
6153         about the syntax error.
6154
6155 2011-08-12  Simon Josefsson  <simon@josefsson.org>
6156
6157         * lib/base64.c: Fix comment to reference RFC 4648.
6158         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
6159         <gvtulder@gmail.com>.
6160
6161 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
6162
6163         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
6164
6165         po/Makefile.in.in: fix make -q problem
6166         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
6167         rule, since there's no file named 'check-macro-version' and its
6168         use as a file breaks make -q.
6169         (all): Don't depend on check-macro-version.
6170         (CHECK_MACRO_VERSION): New macro.
6171         (stamp-po): Use it.
6172
6173         configmake: fix make -q problem
6174         * modules/configmake (configmake.h): Update configmake.h's time stamp
6175         even if the file does not change.  Otherwise, 'make -q' fails.
6176         Problem reported by Simon Josefsson in
6177         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
6178
6179 2011-08-11  Jim Meyering  <meyering@redhat.com>
6180
6181         git-version-gen: correct the advice in a comment
6182         * build-aux/git-version-gen: Correct comment.
6183         Don't recommend to list .tarball-version in .gitignore.
6184
6185 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6186
6187         base64: fix off-by-one buffer size bug
6188         Problem and (trivial) fix reported by Gijs van Tulder in
6189         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
6190         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
6191         * tests/test-base64.c (main): Catch the bug.
6192
6193 2011-08-10  Eric Blake  <eblake@redhat.com>
6194
6195         closein: correct comments
6196         * lib/closein.c (close_stdin): Improve comments.
6197
6198 2011-08-09  Bruno Haible  <bruno@clisp.org>
6199
6200         More tests for 'fseeko'.
6201         * tests/test-fseeko3.c: New file, from Eric Blake.
6202         * tests/test-fseeko3.sh: New file.
6203         * modules/fseeko-tests (Files): Add them.
6204         (TESTS): Add test-fseeko3.sh.
6205         (check_PROGRAMS): Add test-fseeko3.
6206
6207 2011-08-09  Eric Blake  <eblake@redhat.com>
6208
6209         fseeko: remove unneeded hack
6210         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
6211
6212         fseeko: fix bug on glibc
6213         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
6214         Reported by John W. Eaton.
6215
6216 2011-08-08  Bruno Haible  <bruno@clisp.org>
6217
6218         unictype/base: Fix interoperability with preinstalled libunistring.
6219         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
6220         Reported by Simon Josefsson.
6221
6222 2011-08-08  Bruno Haible  <bruno@clisp.org>
6223
6224         iswblank: Detect declaration correctly.
6225         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
6226         AC_CHECK_DECLS invocation.
6227
6228 2011-08-08  Bruno Haible  <bruno@clisp.org>
6229
6230         tcgetsid: Detect declaration correctly.
6231         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
6232         AC_CHECK_DECLS invocation.
6233         Reported by Simon Josefsson.
6234
6235 2011-08-08  Eric Blake  <eblake@redhat.com>
6236
6237         largefile: fix typo that regressed large file support
6238         * modules/largefile (configure.ac-early): Fix section name.
6239
6240 2011-08-06  Karl Berry  <karl@gnu.org>
6241
6242         * MODULES.html.sh (func_all_files): _Noreturn is no longer
6243         a separate module.
6244
6245 2011-08-05  Simon Josefsson  <simon@josefsson.org>
6246
6247         openat: Fix warnings and commens when building unlinkat.c on Hurd.
6248         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
6249         get prototype for free.
6250
6251 2011-08-04  Bruno Haible  <bruno@clisp.org>
6252
6253         Tests for module 'pathmax'.
6254         * modules/pathmax-tests: New file.
6255         * tests/test-pathmax.c: New file.
6256
6257         canonicalize-lgpl: Support larger filenames on the Hurd.
6258         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
6259         Reported by Paul Eggert.
6260
6261         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
6262         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
6263         * lib/chdir-long.h: Include pathmax.h.
6264         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
6265         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
6266         (PATH_MAX): Remove code that is done by pathmax.h.
6267         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
6268         * lib/tmpfile.c: Add a comment.
6269         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
6270         * modules/chdir-long (Depends-on): Add pathmax.
6271         * modules/getcwd (Depends-on): Add pathmax.
6272         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
6273         is not defined.
6274         * doc/posix-headers/limits.texi: Mention the pathmax module.
6275         * NEWS: Mention the change.
6276
6277 2011-08-02  Bruno Haible  <bruno@clisp.org>
6278
6279         pthread_sigmask: Actually use results of gl_THREADLIB.
6280         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
6281         gl_THREADLIB, not gl_[]THREADLIB.
6282         Reported by Eric Blake.
6283
6284 2011-08-02  Jim Meyering  <meyering@redhat.com>
6285
6286         maint.mk: relax the default _gl_TS_function_match regexp
6287         * top/maint.mk (_gl_TS_function_match): Don't require at least one
6288         space between function name and "(" in an "extern" declaration.
6289         That would fail to match a decl with no space there: extern void foo();
6290
6291 2011-07-31  Iain Nicol  <iain@thenicols.net>
6292
6293         git-version-gen: document that EXTRA_DIST must include .version
6294         * build-aux/git-version-gen: In the how-to-use comment, document
6295         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
6296         will fail when run from an unpacked distribution tarball.
6297
6298 2011-08-01  Bruno Haible  <bruno@clisp.org>
6299
6300         wctype-h: Fix last change.
6301         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
6302         REPLACE_TOWLOWER to 0.
6303         Reported by Sam Steingold <sds@gnu.org>.
6304
6305 2011-07-31  Bruno Haible  <bruno@clisp.org>
6306
6307         frexpl: Update autoconf test.
6308         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
6309         according to changes of 2011-06-20.
6310
6311 2011-07-31  Bruno Haible  <bruno@clisp.org>
6312
6313         sys_utsname: Add support for Minix.
6314         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
6315         <sys/utsname.h>.
6316         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6317         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
6318
6319 2011-07-31  Bruno Haible  <bruno@clisp.org>
6320
6321         strings: Add support for Minix.
6322         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
6323         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
6324         * doc/posix-headers/strings.texi: Document the Minix problem.
6325
6326 2011-07-31  Bruno Haible  <bruno@clisp.org>
6327
6328         wctype-h: Add support for Minix.
6329         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
6330         REPLACE_TOWLOWER.
6331         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
6332         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
6333         REPLACE_ISWCNTRL.
6334
6335 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
6336
6337         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
6338         This is a performance improvement for 64-bit hosts: it causes the
6339         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
6340
6341 2011-07-31  Bruno Haible  <bruno@clisp.org>
6342
6343         stdioext: Add support for Minix.
6344         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
6345         * lib/fpurge.c (fpurge): Likewise.
6346         * lib/freadahead.c (freadahead): Likewise.
6347         * lib/freadable.c (freadable): Likewise.
6348         * lib/freading.c (freading): Likewise.
6349         * lib/freadptr.c (freadptr): Likewise.
6350         * lib/freadseek.c (freadptrinc): Likewise.
6351         * lib/fseeko.c (rpl_fseeko): Likewise.
6352         * lib/fseterr.c (fseterr): Likewise.
6353         * lib/fwritable.c (fwritable): Likewise.
6354         * lib/fwriting.c (fwriting): Likewise.
6355         * lib/fflush.c (clear_ungetc_buffer): Update comment.
6356         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
6357
6358 2011-07-31  Bruno Haible  <bruno@clisp.org>
6359
6360         errno: Port to Minix.
6361         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
6362         ECONNABORTED are defined.
6363         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
6364         GNULIB_defined_ECONNABORTED): New macros.
6365         * lib/strerror-override.h (strerror_override): Test also
6366         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
6367         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
6368         ECONNABORTED.
6369         * doc/posix-headers/errno.texi: Mention the Minix problem.
6370
6371 2011-07-31  Bruno Haible  <bruno@clisp.org>
6372
6373         Work around declaration collisions on Minix.
6374         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
6375         defined, set REPLACE_MBSINIT.
6376         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
6377         defined, set REPLACE_MBRTOWC.
6378         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
6379         set REPLACE_MBRLEN.
6380         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
6381         defined, set REPLACE_MBSRTOWCS.
6382         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
6383         defined, set REPLACE_WCRTOMB.
6384         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
6385         defined, set REPLACE_WCSRTOMBS.
6386
6387 2011-07-31  Bruno Haible  <bruno@clisp.org>
6388
6389         Add support for Minix with ACK compiler.
6390         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
6391         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
6392         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
6393
6394 2011-07-31  Bruno Haible  <bruno@clisp.org>
6395
6396         Documentation about Minix.
6397         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
6398         * doc/glibc-headers/*.texi: Likewise.
6399         * doc/posix-functions/*.texi: Likewise.
6400         * doc/glibc-functions/*.texi: Likewise.
6401
6402 2011-07-31  Bruno Haible  <bruno@clisp.org>
6403
6404         snippet/warn-on-use: Fix indentation.
6405         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
6406
6407 2011-07-25  Jim Meyering  <meyering@redhat.com>
6408
6409         tests: test-update-copyright.sh: remove unnecessary "rm" commands
6410         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
6411         commands.
6412
6413 2011-07-27  Jim Meyering  <meyering@redhat.com>
6414
6415         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
6416         * top/maint.mk (gl_extract_significant_defines_): Now that
6417         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
6418         gnulib/lib/signal.in.h, and now that we recommend to
6419         define-if-undefined those two symbols in application code,
6420         we must filter them out of the "significant" list.
6421         This avoids a "make syntax-check" failure in coreutils.
6422
6423 2011-07-26  Eric Blake  <eblake@redhat.com>
6424
6425         warnings: add comments about previous patch
6426         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
6427         * m4/include_next.m4: Likewise.
6428         * m4/warn-on-use.m4: Likewise.
6429         * m4/warnings.m4: Likewise, and simplify use.
6430         Suggested by Stefano Lattarini.
6431
6432         include-next, warnings: support older autoconf
6433         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
6434         AS_VAR_PUSHDEF in a way that works with older autoconf.
6435         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
6436         Reported by Daniel P. Berrange.
6437
6438 2011-07-25  Bruno Haible  <bruno@clisp.org>
6439
6440         fseek, ftell: Fix doc.
6441         * doc/posix-functions/fseek.texi: Reword statement about
6442         AC_SYS_LARGEFILE.
6443         * doc/posix-functions/ftell.texi: Likewise.
6444
6445 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
6446             Bruno Haible  <bruno@clisp.org>
6447
6448         Add dependencies to the 'largefile' module.
6449         * modules/fopen (Depends-on): Add 'largefile'.
6450         * modules/freopen (Depends-on): Likewise.
6451         * modules/fseeko (Depends-on): Likewise.
6452         * modules/ftello (Depends-on): Likewise.
6453         * modules/glob (Depends-on): Likewise.
6454         * modules/lseek (Depends-on): Likewise.
6455         * modules/lstat (Depends-on): Likewise.
6456         * modules/mkostemp (Depends-on): Likewise.
6457         * modules/mkostemps (Depends-on): Likewise.
6458         * modules/mkstemp (Depends-on): Likewise.
6459         * modules/mkstemps (Depends-on): Likewise.
6460         * modules/open (Depends-on): Likewise.
6461         * modules/openat (Depends-on): Likewise.
6462         * modules/pread (Depends-on): Likewise.
6463         * modules/pwrite (Depends-on): Likewise.
6464         * modules/scandir (Depends-on): Likewise.
6465         * modules/stat (Depends-on): Likewise.
6466         * modules/tmpfile (Depends-on): Likewise.
6467         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
6468         since the containing module now depends on the largefile module.
6469         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
6470         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
6471         off_t is fixed by gnulib.
6472         * doc/posix-functions/freopen.texi: Likewise.
6473         * doc/posix-functions/fseeko.texi: Likewise.
6474         * doc/posix-functions/fstatat.texi: Likewise.
6475         * doc/posix-functions/ftello.texi: Likewise.
6476         * doc/posix-functions/glob.texi: Likewise.
6477         * doc/posix-functions/lseek.texi: Likewise.
6478         * doc/posix-functions/lstat.texi: Likewise.
6479         * doc/posix-functions/mkstemp.texi: Likewise.
6480         * doc/posix-functions/open.texi: Likewise.
6481         * doc/posix-functions/openat.texi: Likewise.
6482         * doc/posix-functions/pread.texi: Likewise.
6483         * doc/posix-functions/pwrite.texi: Likewise.
6484         * doc/posix-functions/scandir.texi: Likewise.
6485         * doc/posix-functions/stat.texi: Likewise.
6486         * doc/posix-functions/tmpfile.texi: Likewise.
6487         * doc/glibc-functions/mkostemp.texi: Likewise.
6488         * doc/glibc-functions/mkostemps.texi: Likewise.
6489         * doc/glibc-functions/mkstemps.texi: Likewise.
6490
6491 2011-07-25  Bruno Haible  <bruno@clisp.org>
6492
6493         fcntl: Move AC_LIBOBJ invocation to module description.
6494         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
6495         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
6496
6497         fcntl: Remove call-in from fchdir.m4.
6498         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
6499         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
6500
6501         dup3: Remove potential call-in from fchdir.m4.
6502         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
6503         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
6504
6505         dup2: Move AC_LIBOBJ invocation to module description.
6506         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
6507         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
6508         Don't invoke AC_LIBOBJ.
6509         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
6510
6511         dup2: Remove call-in from fchdir.m4.
6512         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
6513         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
6514
6515         fclose: Move AC_LIBOBJ invocation to module description.
6516         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
6517         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
6518         to 1.
6519         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
6520
6521         fclose: Remove call-in from close.m4.
6522         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
6523         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
6524
6525         close: Move AC_LIBOBJ invocation to module description.
6526         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
6527         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
6528         1.
6529         * modules/close (configure.ac): Invoke AC_LIBOBJ.
6530
6531         close: Remove call-in from fchdir.m4.
6532         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
6533         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
6534
6535         open: Move AC_LIBOBJ invocation to module description.
6536         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
6537         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
6538         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
6539
6540         open: Remove call-in from fchdir.m4.
6541         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
6542         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
6543
6544         fchdir: Start to remove gl_REPLACE_* idiom.
6545         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
6546         (gl_FUNC_FCHDIR): Invoke it.
6547
6548 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
6549
6550         * lib/ftell.c (ftell): Comment out cast.
6551
6552         close: use gl_REPLACE_FCLOSE only if defined
6553         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
6554         is defined.  The close module doesn't depend on the fclose module
6555         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
6556         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
6557         I reproduced the problem with "./gnulib-tool --test close sys_socket".
6558
6559 2011-07-24  Jim Meyering  <meyering@redhat.com>
6560
6561         test-select.h: avoid warning when using gcc's -Wmissing-declarations
6562         * tests/test-select.h (test_function): Declare as "static".
6563
6564 2011-07-24  Bruno Haible  <bruno@clisp.org>
6565
6566         doc: Mention the effects of AC_SYS_LARGEFILE.
6567         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
6568         on this function.
6569         * doc/posix-functions/aio_error.texi: Likewise.
6570         * doc/posix-functions/aio_fsync.texi: Likewise.
6571         * doc/posix-functions/aio_read.texi: Likewise.
6572         * doc/posix-functions/aio_return.texi: Likewise.
6573         * doc/posix-functions/aio_suspend.texi: Likewise.
6574         * doc/posix-functions/aio_write.texi: Likewise.
6575         * doc/posix-functions/fgetpos.texi: Likewise.
6576         * doc/posix-functions/fopen.texi: Likewise.
6577         * doc/posix-functions/freopen.texi: Likewise.
6578         * doc/posix-functions/fsetpos.texi: Likewise.
6579         * doc/posix-functions/fstatvfs.texi: Likewise.
6580         * doc/posix-functions/ftruncate.texi: Likewise.
6581         * doc/posix-functions/ftw.texi: Likewise.
6582         * doc/posix-functions/getrlimit.texi: Likewise.
6583         * doc/posix-functions/glob.texi: Likewise.
6584         * doc/posix-functions/lio_listio.texi: Likewise.
6585         * doc/posix-functions/lockf.texi: Likewise.
6586         * doc/posix-functions/mkstemp.texi: Likewise.
6587         * doc/posix-functions/mmap.texi: Likewise.
6588         * doc/posix-functions/nftw.texi: Likewise.
6589         * doc/posix-functions/openat.texi: Likewise.
6590         * doc/posix-functions/opendir.texi: Likewise.
6591         * doc/posix-functions/posix_fadvise.texi: Likewise.
6592         * doc/posix-functions/posix_fallocate.texi: Likewise.
6593         * doc/posix-functions/pread.texi: Likewise.
6594         * doc/posix-functions/pwrite.texi: Likewise.
6595         * doc/posix-functions/readdir.texi: Likewise.
6596         * doc/posix-functions/readdir_r.texi: Likewise.
6597         * doc/posix-functions/rewinddir.texi: Likewise.
6598         * doc/posix-functions/scandir.texi: Likewise.
6599         * doc/posix-functions/seekdir.texi: Likewise.
6600         * doc/posix-functions/setrlimit.texi: Likewise.
6601         * doc/posix-functions/statvfs.texi: Likewise.
6602         * doc/posix-functions/telldir.texi: Likewise.
6603         * doc/posix-functions/tmpfile.texi: Likewise.
6604         * doc/posix-functions/truncate.texi: Likewise.
6605         * doc/glibc-functions/fallocate.texi: Likewise.
6606         * doc/glibc-functions/fstatfs.texi: Likewise.
6607         * doc/glibc-functions/fts_children.texi: Likewise.
6608         * doc/glibc-functions/fts_read.texi: Likewise.
6609         * doc/glibc-functions/getdirentries.texi: Likewise.
6610         * doc/glibc-functions/mkostemp.texi: Likewise.
6611         * doc/glibc-functions/mkostemps.texi: Likewise.
6612         * doc/glibc-functions/mkstemps.texi: Likewise.
6613         * doc/glibc-functions/preadv.texi: Likewise.
6614         * doc/glibc-functions/pwritev.texi: Likewise.
6615         * doc/glibc-functions/sendfile.texi: Likewise.
6616         * doc/glibc-functions/statfs.texi: Likewise.
6617
6618 2011-07-24  Bruno Haible  <bruno@clisp.org>
6619
6620         doc: Fix typo.
6621         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
6622
6623 2011-07-24  Bruno Haible  <bruno@clisp.org>
6624
6625         doc: Mention fsusage.
6626         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
6627
6628 2011-07-24  Bruno Haible  <bruno@clisp.org>
6629
6630         doc: Mention new glibc headers and functions.
6631         * doc/glibc-headers/gshadow.texi: New file.
6632         * doc/glibc-functions/endsgent.texi: New file.
6633         * doc/glibc-functions/fgetsgent.texi: New file.
6634         * doc/glibc-functions/fgetsgent_r.texi: New file.
6635         * doc/glibc-functions/getsgent.texi: New file.
6636         * doc/glibc-functions/getsgent_r.texi: New file.
6637         * doc/glibc-functions/getsgnam.texi: New file.
6638         * doc/glibc-functions/getsgnam_r.texi: New file.
6639         * doc/glibc-functions/putsgent.texi: New file.
6640         * doc/glibc-functions/setsgent.texi: New file.
6641         * doc/glibc-functions/sgetsgent.texi: New file.
6642         * doc/glibc-functions/sgetsgent_r.texi: New file.
6643         * doc/glibc-functions/malloc_info.texi: New file.
6644         * doc/glibc-functions/preadv.texi: New file.
6645         * doc/glibc-functions/pwritev.texi: New file.
6646         * doc/glibc-functions/register_printf_modifier.texi: New file.
6647         * doc/glibc-functions/register_printf_specifier.texi: New file.
6648         * doc/glibc-functions/register_printf_type.texi: New file.
6649         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
6650         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
6651         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
6652         * doc/glibc-functions/pthread_getname_np.texi: New file.
6653         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
6654         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
6655         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
6656         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
6657         * doc/glibc-functions/pthread_setname_np.texi: New file.
6658         * doc/glibc-functions/pthread_sigqueue.texi: New file.
6659         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
6660         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
6661         * doc/glibc-functions/qsort_r.texi: New file.
6662         * doc/glibc-functions/quick_exit.texi: New file.
6663         * doc/glibc-functions/syncfs.texi: New file.
6664         * doc/gnulib.texi: Include them.
6665         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
6666         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
6667         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
6668         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
6669         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
6670         * doc/glibc-functions/execvpe.texi: Likewise.
6671
6672 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6673
6674         ftell: don't include <unistd.h>
6675         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
6676         guaranteed to define off_t, and the ftell module depends on the
6677         stdio module.
6678
6679         ftell: do not assume wraparound signed arithmetic
6680         * lib/ftell.c: Include <limits.h>.
6681         (ftell): Don't assume wraparound signed arithmetic.
6682
6683 2011-07-24  Bruno Haible  <bruno@clisp.org>
6684
6685         close: No longer depend on module 'fclose'.
6686         * modules/close (Depends-on): Remove fclose.
6687         * NEWS: Mention the change.
6688         Suggested by Sam Steingold <sds@gnu.org>.
6689
6690 2011-07-24  Bruno Haible  <bruno@clisp.org>
6691
6692         fsusage: Enable large volume support on AIX >= 5.2.
6693         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
6694         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
6695         instead of STAT_STATVFS.
6696         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
6697
6698         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
6699         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
6700         f_blocks field only on MacOS X.
6701
6702         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
6703         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
6704         * modules/fsusage (Depends-on): Add largefile.
6705
6706 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6707
6708         * README: Modernize discussion of signed integers.
6709         Assuming overflow wraparound is no longer safe.
6710         Mention ones' complement and signed magnitude.
6711
6712 2011-07-22  Bruno Haible  <bruno@clisp.org>
6713
6714         select tests, pselect tests: Refactor.
6715         * tests/test-select.h: New file, extracted from tests/test-select.c.
6716         (select_fn): New type.
6717         (test, do_select, do_select_nowait, do_select_wait, test_tty,
6718         test_connect_first, test_accept_first, test_pair, test_socket_pair,
6719         test_pipe): Add my_select argument.
6720         (test_function): Renamed from main. Add my_select argument.
6721         * tests/test-select.c: Move most code to tests/test-select.h. Include
6722         test-select.h.
6723         * modules/select-tests (Files): Add tests/test-select.h.
6724         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
6725         (my_select, main): New functions.
6726         * modules/pselect-tests (Files): Add tests/test-select.h,
6727         tests/macros.h, tests/signature.h.
6728         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
6729         (configure.ac): Check for <sys/wait.h>.
6730
6731 2011-07-22  Bruno Haible  <bruno@clisp.org>
6732
6733         sys_select tests: Check the signature of FD_*.
6734         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
6735         signature tests from here...
6736         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
6737         here.
6738         * modules/sys_select-tests (Files): Add tests/signature.h.
6739
6740 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
6741
6742         largefile: new module, replacing large-inode
6743         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
6744         * MODULES.html.sh: Add largefile, remove large-inode.
6745         * modules/largefile, m4/largefile.m4: New files.
6746         * modules/large-inode, m4/large-inode.m4: Remove.
6747
6748         fsusage: port to MacOS X 10.7 with 4 TiB file systems
6749         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
6750         implementations that use only 32 bits to count blocks.
6751         On typical hosts with 1024-byte blocks, this fails with file
6752         systems as small as 4 TiB.  Problem reported by Herb Wartens
6753         <http://debbugs.gnu.org/9140> and this should also fix a similar
6754         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
6755
6756         large-inode: New module
6757         * MODULES.html.sh: Add it.
6758         * modules/large-inode, m4/large-inode.m4: New files.
6759
6760         extensions: Enable extensions on MacOS X 10.5 and later.
6761         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
6762
6763 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
6764
6765         file-has-acl: use acl_extended_file_nofollow if available
6766         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
6767         (acl_extended_file): New macro.
6768         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
6769         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
6770
6771 2011-07-21  Bruno Haible  <bruno@clisp.org>
6772
6773         Declare system functions in a way that works with C++.
6774         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
6775         declare fdopendir as extern "C".
6776         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
6777         declare frexpl as extern "C".
6778         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
6779         declare gai_strerror as extern "C".
6780         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
6781         programs, declare gai_strerror as extern "C".
6782         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
6783         declare getlogin_r as extern "C".
6784         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
6785         as extern "C".
6786         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
6787         declare ldexpl as extern "C".
6788         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
6789         as extern "C".
6790         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
6791         program, declare getmntinfo as extern "C".
6792         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
6793         stpncpy as extern "C".
6794         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
6795         program, declare __xpg_strerror_r as extern "C".
6796         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
6797         strndup as extern "C".
6798         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
6799         declare memset and bzero as extern "C".
6800         Reported by Sam Steingold <sds@gnu.org>.
6801
6802 2011-07-12  Jim Meyering  <meyering@redhat.com>
6803
6804         maint.mk: prohibit inclusion of "verify.h" without use
6805         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
6806
6807 2011-07-19  Pádraig Brady  <P@draigBrady.com>
6808
6809         timer-time: A new module to check for timer_settime()
6810         * m4/timer_time.m4: Check for the posix function.
6811         * modules/timer-time: Add the new module.
6812         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
6813         Mention it.
6814
6815 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
6816             Bruno Haible  <bruno@clisp.org>
6817
6818         pthread_sigmask: assume POSIX threads if --avoid=threadlib
6819         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
6820         not defined, assume POSIX threads and look for pthread_sigmask in
6821         $LIBS, without changing $CPPFLAGS.
6822
6823 2011-07-19  Bruno Haible  <bruno@clisp.org>
6824
6825         strstr: Update cross-compilation guess.
6826         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
6827         CPUs, guess no, in view of glibc
6828         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
6829         Suggested by Eric Blake. Reported by Reuben Thomas.
6830
6831 2011-07-19  Pádraig Brady  <P@draigBrady.com>
6832
6833         getopt-gnu: suppress core dumps from detection code
6834         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
6835         to suppress core dumps that may well occur on glibc systems.
6836         * modules/getopt-gnu: Depend on nocrash.
6837
6838 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6839
6840         pthread_sigmask: ensure usleep is declared
6841         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
6842         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
6843
6844 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
6845
6846         doc: Document NonStop portability issues.
6847         * doc/posix-functions/sigaction.texi (sigaction):
6848         * doc/posix-headers/signal.texi (signal.h):
6849         Document NonStop.  See Joachim Schmitz in
6850         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
6851
6852 2011-07-15  Bruno Haible  <bruno@clisp.org>
6853
6854         ffsl, ffsll: Avoid unportable behaviour.
6855         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
6856
6857 2011-07-15  Bruno Haible  <bruno@clisp.org>
6858
6859         ffs: More tests.
6860         * tests/test-ffs.c (NBITS): New macro.
6861         (main): Add more tests.
6862         * tests/test-ffsl.c (NBITS): New macro.
6863         (main): Add more tests.
6864         * tests/test-ffsll.c (NBITS): New macro.
6865         (main): Add more tests.
6866
6867 2011-07-15  Eric Blake  <eblake@redhat.com>
6868
6869         ffsl, ffsll: new modules
6870         * modules/ffsl: New file.
6871         * modules/ffsll: Likewise.
6872         * m4/ffsl.m4: Likewise.
6873         * m4/ffsll.m4: Likewise.
6874         * lib/ffsl.c: Likewise.
6875         * lib/ffsl.h: Likewise.
6876         * lib/ffsll.c: Likewise.
6877         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
6878         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
6879         * modules/string (Makefile.am): Substitute witnesses.
6880         * lib/strings.in.h (ffsl, ffsll): Declare.
6881         * modules/ffsl-tests: New test file.
6882         * modules/ffsll-tests: Likewise.
6883         * tests/test-ffsl.c: Likewise.
6884         * tests/test-ffsll.c: Likewise.
6885         * MODULES.html.sh (Integer arithmetic functions): Mention it.
6886         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
6887         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
6888
6889         ffs: fix m4 prerequisite
6890         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
6891
6892         ffs: avoid undefined behavior
6893         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
6894         * tests/test-ffs.c (naive, main): Avoid signed shifts.
6895         Reported by Bruno Haible.
6896
6897 2011-07-12  Bruno Haible  <bruno@clisp.org>
6898
6899         pthread_sigmask: Rely on module 'threadlib'.
6900         * modules/pthread_sigmask (Depends-on): Add threadlib.
6901         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
6902         is defined.
6903
6904 2011-07-12  Bruno Haible  <bruno@clisp.org>
6905
6906         regex: Depend on module 'strcase'.
6907         * modules/regex (Depends-on): Add strcase, for strcasecmp().
6908
6909 2011-07-12  Jim Meyering  <meyering@redhat.com>
6910
6911         warn-on-use: fix typo in file name
6912         * modules/snippet/warn-on-use (Files): Correct file name:
6913         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
6914
6915 2011-07-12  Bruno Haible  <bruno@clisp.org>
6916
6917         strings: Document module.
6918         * doc/posix-headers/strings.texi: Mention module 'strings'.
6919
6920 2011-07-12  Bruno Haible  <bruno@clisp.org>
6921
6922         Rename module '_Noreturn' to 'snippet/_Noreturn'.
6923         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
6924         (Files, Makefile.am): Update.
6925         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
6926         * modules/stdlib (Depends-on): Update.
6927
6928 2011-07-12  Bruno Haible  <bruno@clisp.org>
6929
6930         * NEWS: Mention the changes.
6931
6932         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
6933         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
6934         (Files, Makefile.am): Update.
6935         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
6936         * modules/arpa_inet (Depends-on): Update.
6937         * modules/ctype (Depends-on): Update.
6938         * modules/dirent (Depends-on): Update.
6939         * modules/fcntl-h (Depends-on): Update.
6940         * modules/glob (Depends-on): Update.
6941         * modules/iconv-h (Depends-on): Update.
6942         * modules/inttypes-incomplete (Depends-on): Update.
6943         * modules/langinfo (Depends-on): Update.
6944         * modules/locale (Depends-on): Update.
6945         * modules/math (Depends-on): Update.
6946         * modules/netdb (Depends-on): Update.
6947         * modules/poll-h (Depends-on): Update.
6948         * modules/pty (Depends-on): Update.
6949         * modules/search (Depends-on): Update.
6950         * modules/signal (Depends-on): Update.
6951         * modules/spawn (Depends-on): Update.
6952         * modules/stdio (Depends-on): Update.
6953         * modules/stdlib (Depends-on): Update.
6954         * modules/string (Depends-on): Update.
6955         * modules/strings (Depends-on): Update.
6956         * modules/sys_file (Depends-on): Update.
6957         * modules/sys_ioctl (Depends-on): Update.
6958         * modules/sys_select (Depends-on): Update.
6959         * modules/sys_socket (Depends-on): Update.
6960         * modules/sys_stat (Depends-on): Update.
6961         * modules/sys_time (Depends-on): Update.
6962         * modules/sys_times (Depends-on): Update.
6963         * modules/sys_utsname (Depends-on): Update.
6964         * modules/sys_wait (Depends-on): Update.
6965         * modules/termios (Depends-on): Update.
6966         * modules/time (Depends-on): Update.
6967         * modules/unistd (Depends-on): Update.
6968         * modules/wchar (Depends-on): Update.
6969         * modules/wctype-h (Depends-on): Update.
6970         * MODULES.html.sh (Support for building libraries and executables):
6971         Update.
6972
6973         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
6974         * modules/snippet/unused-parameter: Renamed from
6975         modules/unused-parameter.
6976         (Files, Makefile.am): Update.
6977         * build-aux/snippet/unused-parameter.h: Renamed from
6978         build-aux/unused-parameter.h.
6979         * modules/selinux-h (Depends-on): Update.
6980         * modules/unistr/base (Depends-on): Update.
6981         * MODULES.html.sh (Core language properties): Update.
6982
6983         Rename module 'link-warning' to 'snippet/link-warning'.
6984         * modules/snippet/link-warning: Renamed from modules/link-warning.
6985         (Files, Makefile.am): Update.
6986         * build-aux/snippet/link-warning.h: Renamed from
6987         build-aux/link-warning.h.
6988         * MODULES.html.sh (Support for building libraries and executables):
6989         Update.
6990
6991         Rename module 'c++defs' to 'snippet/c++defs'.
6992         * modules/snippet/c++defs: Renamed from modules/c++defs.
6993         (Files, Makefile.am): Update.
6994         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
6995         * modules/arpa_inet (Depends-on): Update.
6996         * modules/ctype (Depends-on): Update.
6997         * modules/dirent (Depends-on): Update.
6998         * modules/fcntl-h (Depends-on): Update.
6999         * modules/glob (Depends-on): Update.
7000         * modules/iconv-h (Depends-on): Update.
7001         * modules/langinfo (Depends-on): Update.
7002         * modules/locale (Depends-on): Update.
7003         * modules/math (Depends-on): Update.
7004         * modules/netdb (Depends-on): Update.
7005         * modules/poll-h (Depends-on): Update.
7006         * modules/pty (Depends-on): Update.
7007         * modules/search (Depends-on): Update.
7008         * modules/signal (Depends-on): Update.
7009         * modules/spawn (Depends-on): Update.
7010         * modules/stdio (Depends-on): Update.
7011         * modules/stdlib (Depends-on): Update.
7012         * modules/string (Depends-on): Update.
7013         * modules/strings (Depends-on): Update.
7014         * modules/sys_ioctl (Depends-on): Update.
7015         * modules/sys_select (Depends-on): Update.
7016         * modules/sys_socket (Depends-on): Update.
7017         * modules/sys_stat (Depends-on): Update.
7018         * modules/sys_time (Depends-on): Update.
7019         * modules/sys_wait (Depends-on): Update.
7020         * modules/termios (Depends-on): Update.
7021         * modules/time (Depends-on): Update.
7022         * modules/unistd (Depends-on): Update.
7023         * modules/wchar (Depends-on): Update.
7024         * modules/wctype-h (Depends-on): Update.
7025
7026         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
7027         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
7028         (Files, Makefile.am): Update.
7029         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
7030         * modules/argv-iter (Depends-on): Update.
7031         * modules/arpa_inet (Depends-on): Update.
7032         * modules/dirent (Depends-on): Update.
7033         * modules/fcntl-h (Depends-on): Update.
7034         * modules/fnmatch (Depends-on): Update.
7035         * modules/getopt-posix (Depends-on): Update.
7036         * modules/glob (Depends-on): Update.
7037         * modules/iconv-h (Depends-on): Update.
7038         * modules/inttypes-incomplete (Depends-on): Update.
7039         * modules/locale (Depends-on): Update.
7040         * modules/math (Depends-on): Update.
7041         * modules/netdb (Depends-on): Update.
7042         * modules/search (Depends-on): Update.
7043         * modules/signal (Depends-on): Update.
7044         * modules/spawn (Depends-on): Update.
7045         * modules/stdio (Depends-on): Update.
7046         * modules/stdlib (Depends-on): Update.
7047         * modules/string (Depends-on): Update.
7048         * modules/strings (Depends-on): Update.
7049         * modules/sys_socket (Depends-on): Update.
7050         * modules/sys_stat (Depends-on): Update.
7051         * modules/sys_time (Depends-on): Update.
7052         * modules/sys_times (Depends-on): Update.
7053         * modules/sys_utsname (Depends-on): Update.
7054         * modules/time (Depends-on): Update.
7055         * modules/unistd (Depends-on): Update.
7056         * modules/wchar (Depends-on): Update.
7057         * MODULES.html.sh (Support for building libraries and executables):
7058         Update.
7059
7060 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
7061
7062         Improvements on _Noreturn and related modules.
7063
7064         modules/_Exit-tests: test _Noreturn too
7065         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
7066         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
7067         (main): Use them.
7068
7069         stdnoreturn, stdnoreturn-tests: remove modules
7070         They're not needed here and a bit premature for use elsewhere.  See
7071         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
7072         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
7073         * tests/test-stdnoreturn.c: Remove files.
7074         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
7075         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
7076         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
7077         and using noreturn.
7078         * modules/openat, modules/sigpipe-die, modules/xalloc:
7079         * modules/xmemdup0, modules/xstrtol:
7080         Remove dependency on stdnoreturn.
7081
7082         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
7083         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
7084         Reparenthesize to avoid GCC warning.
7085         Support Microsoft's syntax.
7086         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
7087
7088         _Noreturn-tests: remove module
7089         * modules/_Noreturn-tests: Remove.
7090         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
7091         * tests/test-_Noreturn.c: Remove.
7092         * tests/test-stdnoreturn.c: Merge from the old
7093         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
7094
7095 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
7096
7097         _Noreturn, stdnoreturn, and related modules.
7098
7099         * top/maint.mk: Adjust to new noreturn support.
7100         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
7101         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
7102
7103         xalloc: use stdnoreturn.h
7104         * lib/xalloc.h: Include <stdnoreturn.h>.
7105         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7106         * modules/xalloc (Depends-on): Add stdnoreturn.
7107
7108         xstrtol: use stdnoreturn.h
7109         * lib/xstrtol.h: Include <stdnoreturn.h>.
7110         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7111         * modules/xstrtol (Depends-on): Add stdnoreturn.
7112
7113         xmemdup0: use stdnoreturn.h
7114         * lib/xmemdup0.h: Include <stdnoreturn.h>.
7115         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7116         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
7117
7118         sigpipe-die: use stdnoreturn.h
7119         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
7120         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7121         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
7122
7123         openat: use stdnoreturn.h
7124         * lib/openat.h: Include <stdnoreturn.h>.
7125         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7126         * modules/openat (Depends-on): Add stdnoreturn.
7127
7128         * lib/openat-die.c (openat_save_fail): Modernize comment.
7129
7130         * lib/xalloc-die.c (xalloc_die): Modernize comment.
7131
7132         * lib/glthread/thread.h: Modernize comment.
7133
7134         obstack: use _Noreturn
7135         * lib/obstack.c (__attribute__): Remove macro.
7136         (print_and_abort): Use _Noreturn.
7137
7138         c-stack: use _Noreturn
7139         * lib/c-stack.c (die, overflow_handler, segv_handler):
7140         Use _Noreturn rather than __attribute__((noreturn)).
7141
7142         argmatch-tests, exclude_tests: use _Noreturn
7143         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
7144         Remove.
7145         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
7146
7147         stdlib: use _Noreturn
7148         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
7149         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
7150         * modules/stdlib (Depends-on): Add _Noreturn.
7151         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
7152
7153         stdnoreturn-tests: new module
7154         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
7155
7156         stdnoreturn: new module
7157         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
7158         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
7159
7160         _Noreturn-tests: new module
7161         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
7162
7163         _Noreturn: new module
7164         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
7165         New section, mentioning it.
7166         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
7167
7168         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
7169
7170 2011-07-11  Eric Blake  <eblake@redhat.com>
7171
7172         ffs: new module
7173         * modules/ffs: New file.
7174         * m4/ffs.m4: Likewise.
7175         * lib/ffs.c: Likewise.
7176         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
7177         * modules/strings (Makefile.am): Substitute witness.
7178         (Depends-on): Add c++defs.
7179         * lib/strings.in.h (ffs): Declare.
7180         * modules/ffs-tests: New test file.
7181         * tests/test-ffs.c: Test new module.
7182         * MODULES.html.sh (Integer arithmetic functions): Mention it.
7183         * doc/posix-functions/ffs.texi (ffs): Likewise.
7184
7185         regex: avoid compiler warning
7186         * lib/regex.c (includes): Include <strings.h>, for use of
7187         strcasecmp in regcomp.c.
7188         Reported by Joachim Schmitz.
7189
7190 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
7191
7192         stdint: respect system's intmax_t if INTMAX_MAX
7193         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
7194         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
7195         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
7196         long but int64_t is long long, and where we will clash with the
7197         system intmax_t if we override it.  See
7198         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
7199         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
7200         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
7201         similarly for UINTMAX_C.
7202
7203 2011-07-08  Bruno Haible  <bruno@clisp.org>
7204
7205         pthread_sigmask tests: Avoid a compiler warning.
7206         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
7207         non-zero.
7208
7209         sigprocmask tests: A better way to avoid a compiler warning.
7210         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
7211         (main): Complain if system() returns non-zero.
7212         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
7213
7214 2011-07-08  Bruno Haible  <bruno@clisp.org>
7215
7216         pthread_sigmask: Work around IRIX bug.
7217         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
7218         bug.
7219         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
7220         there may be unblocked pending signals.
7221         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
7222
7223 2011-07-08  Bruno Haible  <bruno@clisp.org>
7224
7225         pthread_sigmask: Work around Cygwin bug.
7226         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
7227         bug.
7228         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
7229         the system's pthread_sigmask function.
7230         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
7231
7232 2011-07-08  Bruno Haible  <bruno@clisp.org>
7233
7234         pthread_sigmask: Work around bug in single-threaded implementation.
7235         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
7236         FreeBSD, HP-UX, Solaris bug.
7237         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
7238         * lib/pthread_sigmask.c: Include <stddef.h>.
7239         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
7240         the system's pthread_sigmask function.
7241         * modules/pthread_sigmask (configure.ac): Invoke
7242         gl_PREREQ_PTHREAD_SIGMASK.
7243         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
7244         HP-UX, Solaris.
7245
7246 2011-07-08  Eric Blake  <eblake@redhat.com>
7247
7248         test-sigprocmask: avoid compiler warning
7249         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
7250         * tests/test-sigprocmask.c (main): Use it to silence warning.
7251         Reported by Jim Meyering.
7252
7253         test-snprintf: avoid compiler warning
7254         * tests/test-snprintf.c (main): Avoid shadowed declaration.
7255         * tests/test-vsnprintf.c (main): Likewise.
7256         Reported by Jim Meyering.
7257
7258 2011-07-08  Bruno Haible  <bruno@clisp.org>
7259
7260         Tests for module 'pthread_sigmask'.
7261         * modules/pthread_sigmask-tests: New file.
7262         * tests/test-pthread_sigmask1.c: New file, based on
7263         tests/test-sigprocmask.c.
7264         * tests/test-pthread_sigmask2.c: New file.
7265
7266 2011-07-08  Jim Meyering  <meyering@redhat.com>
7267
7268         test-getopt.h: avoid warning about an unused variable
7269         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
7270
7271 2011-07-07  Jim Meyering  <meyering@redhat.com>
7272
7273         maint: reduce list of files exempt from sc_prohibit_leading_TABs
7274         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
7275         now that it no longer contains leading TABs.
7276         Remove unused "url=FIXME" statement.
7277
7278 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
7279
7280         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
7281         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
7282         When gl_THREADLIB is not in use, assume that the POSIX sematics
7283         are desired.  This is better for Emacs, which uses POSIX semantics
7284         on GNUish and/or POSIXish platforms, and does not use threads at
7285         all otherwise.
7286
7287         pthread_sigmask: fix typo when testing for libraries
7288         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
7289         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
7290
7291 2011-07-08  Eric Blake  <eblake@redhat.com>
7292
7293         fts: introduce FTS_NOATIME
7294         * lib/fts_.h (FTS_NOATIME): New bit flag.
7295         (FTS_OPTIONMASK): Adjust.
7296         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
7297         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
7298
7299 2011-07-08  Bruno Haible  <bruno@clisp.org>
7300
7301         Tests for module 'thread'.
7302         * modules/thread-tests: New file.
7303         * tests/test-thread_self.c: New file.
7304         * tests/test-thread_create.cc: New file.
7305
7306 2011-07-08  Bruno Haible  <bruno@clisp.org>
7307
7308         thread: Avoid gcc warnings when using gl_thread_self().
7309         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
7310         'void *'.
7311         (gl_thread_self_pointer): Update.
7312
7313 2011-07-07  Bruno Haible  <bruno@clisp.org>
7314
7315         signal-c++-tests: Check declaration of pthread_sigmask.
7316         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
7317         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
7318         $(LIB_PTHREAD_SIGMASK).
7319
7320 2011-07-07  Bruno Haible  <bruno@clisp.org>
7321
7322         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
7323         * lib/signal.in.h (pthread_sigmask): Override if
7324         REPLACE_PTHREAD_SIGMASK is 1.
7325         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7326         REPLACE_PTHREAD_SIGMASK.
7327         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
7328         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
7329         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
7330         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
7331         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
7332
7333 2011-07-07  Bruno Haible  <bruno@clisp.org>
7334
7335         pthread_sigmask: Ensure declaration in <signal.h>.
7336         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
7337         include <pthread.h>.
7338         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
7339         problem.
7340
7341 2011-07-07  Bruno Haible  <bruno@clisp.org>
7342
7343         pthread_sigmask: Document the module.
7344         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
7345
7346 2011-07-07  Bruno Haible  <bruno@clisp.org>
7347
7348         pthread_sigmask: Follow gnulib conventions.
7349         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
7350         gl_PTHREAD_SIGMASK.
7351         * modules/pthread_sigmask (configure.ac): Update.
7352
7353 2011-07-07  Bruno Haible  <bruno@clisp.org>
7354
7355         pthread_sigmask: Make declaration C++ safe.
7356         * lib/signal.in.h: In two special conditions, just do an #include_next.
7357         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
7358         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
7359         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
7360         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
7361         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
7362         not REPLACE_PTHREAD_MASK.
7363         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
7364         not REPLACE_PTHREAD_MASK.
7365         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
7366
7367 2011-07-07  Bruno Haible  <bruno@clisp.org>
7368
7369         pthread_sigmask: Fix return value.
7370         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
7371         * lib/pthread_sigmask.c: New file.
7372         * modules/pthread_sigmask (Files): Add it.
7373         (configure.ac): Invoke AC_LIBOBJ.
7374
7375 2011-07-07  Eric Blake  <eblake@redhat.com>
7376
7377         getopt: more portable argv creation
7378         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
7379         const, use char arrays rather than strings.
7380         Suggested by Paul Eggert.
7381
7382 2011-07-07  Bruno Haible  <bruno@clisp.org>
7383
7384         Tests for module 'sigprocmask'.
7385         * modules/sigprocmask-tests: New file.
7386         * tests/test-sigprocmask.c: New file.
7387
7388 2011-07-07  Bruno Haible  <bruno@clisp.org>
7389
7390         float tests: Tweak.
7391         * tests/test-float.c (main): Tweak skip message.
7392
7393 2011-07-07  Eric Blake  <eblake@redhat.com>
7394
7395         getopt: avoid compiler warning during configure
7396         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
7397         assigning string literals to non-const pointer.
7398
7399         getopt-gnu: avoid crash in glibc getopt
7400         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
7401         * tests/test-getopt.h (test_getopt): Enhance test.
7402         * tests/test-getopt_long.h (test_getopt_long): Likewise.
7403         * doc/posix-functions/getopt.texi (getopt): Document it.
7404         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
7405         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7406         Likewise.
7407
7408 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
7409
7410         getopt: handle W; without long options in getopt [BZ #12922]
7411         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
7412         but no long options are defined, just return 'W'.
7413
7414 2011-07-07  Bruno Haible  <bruno@clisp.org>
7415
7416         Avoid literal tabs.
7417         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
7418         variable containing a tab instead of a literal tab.
7419         Reported by Jim Meyering.
7420
7421 2011-07-07  Bruno Haible  <bruno@clisp.org>
7422
7423         Comments.
7424         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
7425
7426 2011-07-06  Bruno Haible  <bruno@clisp.org>
7427
7428         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
7429         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
7430         <winsock2.h>.
7431         (rpl_fd_isset, FD_ISSET): New definitions, copied from
7432         lib/sys_socket.in.h.
7433         (close, gethostname): Hide declarations from <winsock2.h>.
7434         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
7435         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
7436         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
7437         (select): Don't override if gnulib's <sys/select.h> was already
7438         included.
7439         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
7440         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
7441         setsockopt, shutdown, select): Tweak indentation.
7442
7443 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7444
7445         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
7446         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
7447         in an application that does not use the sys_select module.
7448
7449 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
7450
7451         poll: do not return 0 on timeout=-1
7452         * lib/poll.c: Loop with yield if no events occured
7453
7454 2011-07-06  Eric Blake  <eblake@redhat.com>
7455
7456         pthread_sigmask: always replace when not using pthread
7457         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
7458         replacement when using some threading other than pthread.  Fix
7459         logic bug.
7460
7461 2011-07-06  Bruno Haible  <bruno@clisp.org>
7462
7463         Comments.
7464         * m4/printf.m4: Update comments about mingw.
7465
7466 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7467
7468         sys_select: define sigset_t more portably
7469         * lib/sys_select.in.h: Always include <sys/types.h>, since
7470         we now need sigset_t and mingw defines it there.
7471         Include <signal.h> before split inclusion guard, to avoid
7472         mishaps on Solaris, whose <signal.h> eventually includes us.
7473         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
7474         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
7475         which come from ...
7476         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
7477         gl_CHECK_TYPE_SIGSET_T.
7478         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
7479         does the real work.
7480         * modules/sys_select (Depends-on): Add 'signal'.
7481
7482         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
7483         Suggested by Bruno Haible.
7484
7485         pselect: Use pthread_sigmask, not sigprocmask.
7486         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
7487         multithreaded apps better than sigprocmask does.
7488         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
7489         sigprocmask directly.
7490
7491 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
7492
7493         * lib/pselect.c (pselect): Use plain name, without "rpl_".
7494         Don't #undef,  since we don't need any underlying pselect.
7495         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
7496         (Depends-on): Add select.
7497         (Link): Add $(LIBSOCKET).
7498         These changes suggested by Bruno Haible.
7499
7500         pselect: document better
7501         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
7502         * doc/posix-functions/pselect.texi (pselect): Document new module.
7503
7504         pthread_sigmask: new module
7505         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
7506         * doc/posix-functions/pthread_sigmask.texi: Document new module.
7507         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
7508         This is done only as a macro; I don't know how well that'll
7509         work for C++.  Move <sys/types.h> include before the include_next,
7510         to avoid mishap on Solaris.
7511         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
7512         * modules/signal (Makefile.am): Substitute the check's results.
7513         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
7514
7515         test-pselect: new module
7516         * modules/pselect-tests, tests/test-pselect.c: New files.
7517         * tests/test-select.c, tests/test-sys_select-c++.cc:
7518         If TEST_PSELECT is defined, test pselect instead of testing select.
7519
7520         * tests/test-sys_select.c (sigset_t): Test for it, too.
7521         Suggested by Bruno Haible.
7522
7523 2011-07-05  Eric Blake  <eblake@redhat.com>
7524
7525         snprintf: guarantee %1$d, for libintl
7526         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
7527         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
7528         * doc/posix-functions/snprintf.texi (snprintf): Update.
7529         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
7530         * tests/test-snprintf.c (main): Enhance test.
7531         * tests/test-vsnprintf.c (main): Likewise.
7532
7533 2011-07-05  Jim Meyering  <meyering@redhat.com>
7534
7535         maint: exempt stdio-read.c and stdio-write.c from the cppi check
7536         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
7537         per Bruno's request, to accommodate this idiom (no space after "#")
7538         even when the function is inside an #if block:
7539         char *
7540         gets (char *s)
7541         #undef gets
7542         {
7543           ...
7544         }
7545
7546 2011-07-04  Jim Meyering  <meyering@redhat.com>
7547
7548         maint: indent with spaces, not TABs, and add a rule to check this
7549         * tests/test-userspec.c: Indent with spaces, not TABs.
7550         * tests/test-argp.c: Likewise.
7551         * tests/test-c-stack2.sh: Likewise.
7552         * tests/test-parse-duration.sh: Likewise
7553         * m4/strtod.m4: Likewise.
7554         * m4/alloca.m4: Likewise.
7555         * m4/pselect.m4: Likewise.
7556         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
7557
7558 2011-07-03  Jim Meyering  <meyering@redhat.com>
7559
7560         maint.mk: correct omissions in prohibit_argmatch_without_use check
7561         This rule would mistakenly report that argmatch.h is included without
7562         use even when both the argmatch and invalid_arg macro were used.
7563         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
7564         of argmatch and invalid_arg.
7565
7566 2011-07-03  Bruno Haible  <bruno@clisp.org>
7567
7568         Comments about EINTR.
7569         * lib/safe-read.h: Explain the purpose of this module.
7570         * lib/safe-write.h: Likewise.
7571         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
7572         module.
7573         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
7574         module.
7575         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7576
7577 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
7578
7579         xnanosleep: Rewrite to use new dtotimespec module.
7580         It has the conversion code that used to be in xnanosleep.
7581         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
7582         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
7583         (TIME_T_MAX): Remove.
7584         (xnanosleep): Rewrite in terms of dtotimespec.
7585         * modules/xnanosleep (Depends-on): Add dtotimespec.
7586         Remove intprops, stdbool.
7587
7588         timespec-add, timespec-sub: new modules
7589         * lib/timespec.h (timespec_add, timespec_sub): New decls.
7590         * lib/timespec-add.c, lib/timespec-sub.c:
7591         * modules/timespec-add, modules/timespec-sub: New files.
7592
7593         dtotimespec: new module
7594         * lib/timespec.h (dtotimespec): New decl.
7595         * lib/dtotimespec.c, modules/dtotimespec: New files.
7596
7597         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
7598
7599         pselect: new module
7600         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
7601         (pselect): New decls.
7602         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
7603         since the standard pselect decl uses 'restrict'.
7604         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
7605         HAVE_PSELECT, REPLACE_PSELECT.
7606         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
7607         HAVE_PSELECT, REPLACE_PSELECT.
7608         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
7609
7610         sys_select: don't depend on sys_socket
7611         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
7612         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
7613         This fix works on GNU and GNU-like platforms, but has not been tested
7614         on native Windows.
7615         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
7616         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
7617         gl_HEADER_SYS_SOCKET.
7618         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
7619         gl_PREREQ_SYS_H_WINSOCK2.
7620
7621 2011-06-29  Eric Blake  <eblake@redhat.com>
7622
7623         pipe2: fix C89 compile problem
7624         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
7625         Reported by Bruno Haible.
7626
7627         pipe, pipe2: don't corrupt fd on error
7628         * lib/pipe.c (pipe): Leave fd unchanged on error.
7629         * lib/pipe2.c (pipe2): Likewise.
7630         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
7631         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
7632
7633 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
7634
7635         mmap-anon: do not use regular expressions inadvertently
7636         * m4/mmap-anon.m4: Remove trailing period from strings sought
7637         in the output.
7638
7639 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
7640
7641         nanosleep: fix integer overflow problem
7642         * lib/nanosleep.c (my_usleep): Don't assume signed integer
7643         arithmetic wraps around on overflow.
7644
7645         nanosleep: simplify carrying
7646         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
7647         first call to the underyling nanosleep, not for the last one.
7648         This doesn't fix any bugs, but it simplifies the computation of
7649         the remaining delay.  Found while auditing integer overflow issues.
7650
7651         dup2: remove test for existence of fcntl
7652         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
7653         "#if HAVE_FCNTL", in the configure-time test program.
7654         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
7655         and therefore speeds up "configure" a bit.  Found while
7656         adding the dup2 module to Emacs.
7657
7658 2011-06-24  Eric Blake  <eblake@redhat.com>
7659
7660         maint.mk: enhance useless header checks
7661         * top/maint.mk (_sc_header_without_use): Check both include
7662         styles.
7663         (sc_prohibit_assert_without_use)
7664         (sc_prohibit_close_stream_without_use)
7665         (sc_prohibit_getopt_without_use)
7666         (sc_prohibit_quotearg_without_use)
7667         (sc_prohibit_quote_without_use)
7668         (sc_prohibit_long_options_without_use)
7669         (sc_prohibit_inttostr_without_use)
7670         (sc_prohibit_ignore_value_without_use)
7671         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
7672         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
7673         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
7674         (sc_prohibit_hash_pjw_without_use)
7675         (sc_prohibit_safe_read_without_use)
7676         (sc_prohibit_argmatch_without_use)
7677         (sc_prohibit_canonicalize_without_use)
7678         (sc_prohibit_root_dev_ino_without_use)
7679         (sc_prohibit_openat_without_use)
7680         (sc_prohibit_c_ctype_without_use)
7681         (sc_prohibit_signal_without_use)
7682         (sc_prohibit_stdio--_without_use)
7683         (sc_prohibit_stdio-safer_without_use)
7684         (sc_prohibit_strings_without_use)
7685         (sc_prohibit_intprops_without_use)
7686         (sc_prohibit_stddef_without_use)
7687         (sc_prohibit_xfreopen_without_use): Update clients.
7688
7689 2011-06-24  Jim Meyering  <meyering@redhat.com>
7690
7691         syntax-check: keep one maint.mk rule in sync with its header
7692         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
7693         of the bug Eric has just fixed, with today's commit 25e4c2ec.
7694         I prefer to avoid temporary files here, so use <(...), but that
7695         is not supported by /bin/sh, so...
7696         (SHELL): Define to /bin/bash.
7697
7698 2011-06-24  Eric Blake  <eblake@redhat.com>
7699
7700         maint.mk: update sc_prohibit_intprops_without_use
7701         * top/maint.mk (_intprops_names): Match recent changes.
7702
7703 2011-06-24  Bruno Haible  <bruno@clisp.org>
7704
7705         strerror-override: No-op tweak.
7706         * lib/strerror-override.h (strerror_override): Reorder conditions,
7707         for consistency with lib/strerror-override.c.
7708
7709 2011-06-23  Eric Blake  <eblake@redhat.com>
7710
7711         maint.mk: test further PATH_MAX issues
7712         * top/maint.mk (sc_prohibit_path_max_array): Rename...
7713         (sc_prohibit_path_max_allocation): ...and also test alloca.
7714         Suggested by Jim Meyering.
7715
7716 2011-06-22  Eric Blake  <eblake@redhat.com>
7717
7718         maint.mk: add syntax-check to avoid char[PATH_MAX]
7719         * top/maint.mk (sc_prohibit_path_max_array): New rule.
7720
7721         stat: be robust to PATH_MAX definition
7722         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
7723         * modules/stat (Depends-on): Add verify.
7724
7725         link: work around IRIX bug
7726         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
7727         * lib/link.c (rpl_link): Work around it.
7728         * tests/test-link.h (test_link): Enhance test.
7729         * doc/posix-functions/link.texi (link): Document the bug.
7730
7731         getopt: silence clang warning
7732         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
7733         dereference.
7734         Reported by Gustavo Martin Domato.
7735
7736 2011-06-22  Jim Meyering  <meyering@redhat.com>
7737
7738         bootstrap: do not insert a blank line into each .gitignore file
7739         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
7740
7741 2011-06-21  Eric Blake  <eblake@redhat.com>
7742
7743         perror: test for output mismatch
7744         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
7745         perror on IRIX.
7746
7747         strerror_r: fix OpenBSD behavior on out-of-range
7748         * lib/strerror_r.c (strerror_r): Always use maximal string.
7749         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
7750
7751         strerror_r: fix OpenBSD behavior on 0
7752         * lib/strerror-override.c (strerror_override): Also override 0
7753         when needed.
7754         * lib/strerror-override.h (strerror_override): Likewise.
7755         * lib/strerror.c (strerror): Simplify, now that 0 override is done
7756         earlier.
7757         * lib/strerror_r.c (strerror_r): Likewise.
7758         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
7759         behavior...
7760         (gl_FUNC_STRERROR_0): ...into new macro.
7761         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
7762         is overridden.
7763         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
7764         * modules/strerror-override (Files): Add strerror.m4.
7765         (configure.ac): Also provide override for 0 when needed.
7766         * doc/posix-functions/strerror.texi (strerror): Document this.
7767         * doc/posix-functions/perror.texi (perror): Likewise.
7768
7769         perror: adjust array size
7770         * modules/perror (Depends-on): Add strerror-override.
7771         * lib/perror.c (perror): Use it to avoid magic number.
7772
7773         strerror-override: reduce size
7774         * lib/strerror-override.c (strerror_override): Use fewer lines.
7775
7776 2011-06-20  Bruno Haible  <bruno@clisp.org>
7777
7778         pathmax: Ensure correct value for PATH_MAX on HP-UX.
7779         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
7780
7781 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
7782
7783         alloca: port to compilers that can optimize like GCC 4.6.0
7784         * lib/alloca.c (find_stack_direction): New signature, taken from
7785         Autoconf git.  This works with GCC 4.6.0.  This code should never
7786         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
7787         be used with other compilers that optimize as well as GCC 4.6.0 does.
7788         (alloca): Adjust to new signature.
7789         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
7790         New macro, which patches Autoconf in a similar way.
7791
7792         c-stack: stop worrying about stack direction
7793         * lib/c-stack.c (find_stack_direction): Remove.
7794         (segv_handler): Don't worry about stack direction growth, as it's
7795         too much of a pain to configure this correctly, given how compilers
7796         are optimizing-away our stack-growth detection code.  Instead, assume
7797         that any access to just before or just after the stack is OK.
7798         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
7799         Don't require AC_FUNC_ALLOCA; no longer needed.
7800
7801 2011-06-20  Eric Blake  <eblake@redhat.com>
7802
7803         test-stat: don't allocate PATH_MAX bytes
7804         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
7805         PATH_MAX-sized buffer.
7806         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
7807         * modules/stat-tests (Depends-on): Likewise.
7808         * tests/test-fstatat.c (includes): Drop pathmax.h.
7809         * tests/test-stat.c (includes): Likewise.
7810         Reported by Bruno Haible.
7811
7812 2011-06-20  Bruno Haible  <bruno@clisp.org>
7813
7814         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
7815         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
7816         * lib/float.c: New file.
7817         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
7818         REPLACE_FLOAT_LDBL.
7819         * modules/float (Files): Add lib/float.c.
7820         (configure.ac): Invoke AC_LIBOBJ.
7821         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
7822
7823 2011-06-20  Bruno Haible  <bruno@clisp.org>
7824
7825         Tests for module 'float'.
7826         * modules/float-tests: New file.
7827         * tests/test-float.c: New file.
7828
7829 2011-06-19  Bruno Haible  <bruno@clisp.org>
7830
7831         isinf: Coding style.
7832         * lib/isinf.c: Use GNU coding style.
7833
7834 2011-06-19  Bruno Haible  <bruno@clisp.org>
7835
7836         linkat test: Avoid test failure on AIX 7.1.
7837         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
7838         * tests/test-link.h (test_link): Likewise.
7839
7840 2011-06-19  Bruno Haible  <bruno@clisp.org>
7841
7842         pread test: Avoid test failure on OpenBSD 4.9.
7843         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
7844
7845 2011-06-19  Bruno Haible  <bruno@clisp.org>
7846
7847         sprintf-posix: Fix test failure on AIX 7.1.
7848         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
7849         * doc/posix-functions/dprintf.texi: Mention limited precision problem
7850         on AIX.
7851         * doc/posix-functions/fprintf.texi: Likewise.
7852         * doc/posix-functions/printf.texi: Likewise.
7853         * doc/posix-functions/snprintf.texi: Likewise.
7854         * doc/posix-functions/sprintf.texi: Likewise.
7855         * doc/posix-functions/vdprintf.texi: Likewise.
7856         * doc/posix-functions/vfprintf.texi: Likewise.
7857         * doc/posix-functions/vprintf.texi: Likewise.
7858         * doc/posix-functions/vsnprintf.texi: Likewise.
7859         * doc/posix-functions/vsprintf.texi: Likewise.
7860
7861 2011-06-19  Bruno Haible  <bruno@clisp.org>
7862
7863         roundl-ieee: Fix test failure on AIX 7.1.
7864         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
7865         * doc/posix-functions/roundl.texi: Mention problem with negative
7866         arguments.
7867
7868 2011-06-19  Bruno Haible  <bruno@clisp.org>
7869
7870         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
7871         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
7872         * doc/posix-functions/round.texi: Mention problem with negative
7873         arguments.
7874         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
7875
7876 2011-06-19  Bruno Haible  <bruno@clisp.org>
7877
7878         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
7879         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
7880         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
7881         * doc/posix-functions/roundf.texi: Mention problem with negative
7882         arguments.
7883         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
7884
7885 2011-06-19  Bruno Haible  <bruno@clisp.org>
7886
7887         ceilf-ieee: Work around bug on MacOS X 10.5.
7888         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
7889
7890         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
7891         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
7892         IEEE compliant, avoid compiler optimizations.
7893         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
7894         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
7895         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
7896         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
7897         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
7898         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
7899         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7900         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7901         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
7902         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
7903
7904 2011-06-19  Bruno Haible  <bruno@clisp.org>
7905
7906         ceilf-ieee: Work around bug on AIX 7.1.
7907         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
7908         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
7909
7910 2011-06-19  Bruno Haible  <bruno@clisp.org>
7911
7912         ceil-ieee: Work around bug on AIX 7.1.
7913         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
7914         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
7915
7916 2011-06-18  Bruno Haible  <bruno@clisp.org>
7917
7918         fsync test: Avoid test failure on MacOS X and AIX.
7919         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
7920         EINVAL.
7921
7922 2011-06-18  Bruno Haible  <bruno@clisp.org>
7923
7924         openat, fdopendir tests: Fix link errors.
7925         * modules/openat-tests (Depends-on): Add progname.
7926         * modules/fdopendir-tests (Depends-on): Likewise.
7927         * tests/test-fchownat.c: Include progname.h.
7928         (main): Call set_program_name.
7929         * tests/test-fstatat.c: Include progname.h.
7930         (main): Call set_program_name.
7931         * tests/test-mkdirat.c: Include progname.h.
7932         (main): Call set_program_name.
7933         * tests/test-openat.c: Include progname.h.
7934         (main): Call set_program_name.
7935         * tests/test-unlinkat.c: Include progname.h.
7936         (main): Call set_program_name.
7937         * tests/test-fdopendir.c: Include progname.h.
7938         (main): Call set_program_name.
7939
7940 2011-06-18  Bruno Haible  <bruno@clisp.org>
7941
7942         Doc update.
7943         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
7944         HP-UX.
7945         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
7946
7947 2011-06-18  Bruno Haible  <bruno@clisp.org>
7948
7949         getcwd tests: Avoid compilation error on HP-UX 11.31.
7950         * modules/getcwd-tests (Depends-on): Add pathmax.
7951         * tests/test-getcwd.c: Include pathmax.h.
7952
7953 2011-06-18  Bruno Haible  <bruno@clisp.org>
7954
7955         isfinite, isinf: Fix link error on AIX 6 and 7.
7956         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
7957         needed, also test the macro with a 'float' argument.
7958         * m4/isinf.m4 (gl_ISINF): Likewise.
7959
7960 2011-06-18  Bruno Haible  <bruno@clisp.org>
7961
7962         getloadavg: Don't clobber LIBS. Regression from previous commit.
7963         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
7964         AC_CHECK_LIB from here...
7965         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
7966         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
7967         gl_func_getloadavg_done.
7968         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7969
7970 2011-06-18  Bruno Haible  <bruno@clisp.org>
7971
7972         clean-temp: Improve documentation.
7973         * lib/clean-temp.h: Explain better how to use this module.
7974         Reported by John Darrington <john@darrington.wattle.id.au>.
7975
7976 2011-06-17  Bruno Haible  <bruno@clisp.org>
7977
7978         pread, pwrite: Avoid cc warning on AIX.
7979         * lib/unistd.in.h (pread): Undefine before defining as a macro.
7980         (pwrite): Likewise.
7981
7982 2011-06-17  Bruno Haible  <bruno@clisp.org>
7983
7984         spawn-pipe tests: Fix link error.
7985         * tests/test-spawn-pipe-child.c: Undefine fprintf.
7986         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7987
7988 2011-06-17  Bruno Haible  <bruno@clisp.org>
7989
7990         Tests: Remove unnecessary dependency.
7991         * modules/canonicalize-tests (Depends-on): Remove progname.
7992         * modules/chown-tests (Depends-on): Likewise.
7993         * modules/dirname-tests (Depends-on): Likewise.
7994         * modules/fdopendir-tests (Depends-on): Likewise.
7995         * modules/fdutimensat-tests (Depends-on): Likewise.
7996         * modules/hash-tests (Depends-on): Likewise.
7997         * modules/lchown-tests (Depends-on): Likewise.
7998         * modules/linkat-tests (Depends-on): Likewise.
7999         * modules/renameat-tests (Depends-on): Likewise.
8000         * modules/spawn-pipe-tests (Depends-on): Likewise.
8001         * modules/utimensat-tests (Depends-on): Likewise.
8002
8003 2011-06-17  Bruno Haible  <bruno@clisp.org>
8004
8005         spawn-pipe tests: Fix link error.
8006         * tests/test-spawn-pipe-child.c: Undefine fflush.
8007
8008 2011-06-17  Bruno Haible  <bruno@clisp.org>
8009
8010         Fix tests link errors.
8011         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
8012         * modules/chown-tests (Makefile.am): Don't link test-chown with
8013         LIBINTL.
8014         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
8015         LIBINTL.
8016         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
8017         LIBINTL.
8018         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
8019         LIBINTL.
8020
8021 2011-06-16  Bruno Haible  <bruno@clisp.org>
8022
8023         crypto/gc-sha1: Fix recent regression.
8024         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
8025         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
8026
8027         crypto/gc-md5: Fix recent regression.
8028         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
8029
8030         crypto/gc-md4: Fix recent regression.
8031         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
8032         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
8033
8034         crypto/gc-arctwo: Fix recent regression.
8035         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
8036         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
8037
8038         crypto/gc-rijndael: Fix recent regression.
8039         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
8040         (configure.ac): Invoke AC_LIBOBJ here.
8041         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
8042         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8043
8044         crypto/gc-hmac-sha1: Fix recent regression.
8045         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
8046         (configure.ac): Invoke AC_LIBOBJ here.
8047         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
8048         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8049
8050         crypto/gc-hmac-md5: Fix recent regression.
8051         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
8052         (configure.ac): Invoke AC_LIBOBJ here.
8053         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
8054         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8055
8056         crypto/gc-des: Fix recent regression.
8057         * modules/crypto/gc-des (Files): Remove m4/des.m4.
8058         (configure.ac): Invoke AC_LIBOBJ here.
8059         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
8060         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8061
8062         crypto/gc-arcfour: Fix recent regression.
8063         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
8064         (configure.ac): Invoke AC_LIBOBJ here.
8065         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
8066         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8067
8068 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
8069
8070         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
8071         After the 2011-05-21 change, this macro requires
8072         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
8073         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
8074
8075 2011-06-16  Bruno Haible  <bruno@clisp.org>
8076
8077         fprintftime: Move AC_LIBOBJ invocations to module description.
8078         * m4/fprintftime.m4: Remove file.
8079         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
8080         (configure.ac): Remove gl_FPRINTFTIME call.
8081         (Makefile.am): Augment lib_SOURCES.
8082         Reported by Jim Meyering.
8083
8084 2011-06-16  Bruno Haible  <bruno@clisp.org>
8085
8086         tmpfile-safer: Finish 2011-05-23 commit.
8087         * m4/stdio-safer.m4: Really remove file.
8088         Reported by Jim Meyering.
8089
8090 2011-06-16  Bruno Haible  <bruno@clisp.org>
8091
8092         syntax-check: Fix typo.
8093         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
8094         printf-posix.m4.
8095         Reported by Jim Meyering.
8096
8097 2011-06-13  Jim Meyering  <meyering@redhat.com>
8098
8099         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
8100         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
8101
8102 2011-05-23  Bruno Haible  <bruno@clisp.org>
8103
8104         yesno: Move AC_LIBOBJ invocations to module description.
8105         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
8106         * modules/yesno (Makefile.am): Augment lib_SOURCES.
8107
8108 2011-05-23  Bruno Haible  <bruno@clisp.org>
8109
8110         xstrtol: Move AC_LIBOBJ invocations to module description.
8111         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
8112         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
8113
8114 2011-05-23  Bruno Haible  <bruno@clisp.org>
8115
8116         xstrtold: Move AC_LIBOBJ invocations to module description.
8117         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
8118         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
8119
8120 2011-05-23  Bruno Haible  <bruno@clisp.org>
8121
8122         xstrtod: Move AC_LIBOBJ invocations to module description.
8123         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
8124         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
8125
8126 2011-05-23  Bruno Haible  <bruno@clisp.org>
8127
8128         xnanosleep: Move AC_LIBOBJ invocations to module description.
8129         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
8130         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
8131
8132 2011-05-23  Bruno Haible  <bruno@clisp.org>
8133
8134         xgetcwd: Move AC_LIBOBJ invocations to module description.
8135         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
8136         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
8137
8138 2011-05-23  Bruno Haible  <bruno@clisp.org>
8139
8140         xalloc: Move AC_LIBOBJ invocations to module description.
8141         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
8142         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
8143
8144 2011-05-23  Bruno Haible  <bruno@clisp.org>
8145
8146         write-any-file: Move AC_LIBOBJ invocations to module description.
8147         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
8148         invocation.
8149         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
8150
8151 2011-05-23  Bruno Haible  <bruno@clisp.org>
8152
8153         utimens: Move AC_LIBOBJ invocations to module description.
8154         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
8155         * modules/utimens (Makefile.am): Augment lib_SOURCES.
8156
8157 2011-05-23  Bruno Haible  <bruno@clisp.org>
8158
8159         utimecmp: Move AC_LIBOBJ invocations to module description.
8160         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
8161         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
8162
8163 2011-05-23  Bruno Haible  <bruno@clisp.org>
8164
8165         userspec: Move AC_LIBOBJ invocations to module description.
8166         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
8167         * modules/userspec (Makefile.am): Augment lib_SOURCES.
8168
8169 2011-05-23  Bruno Haible  <bruno@clisp.org>
8170
8171         unlinkdir: Move AC_LIBOBJ invocations to module description.
8172         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
8173         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
8174
8175 2011-05-23  Bruno Haible  <bruno@clisp.org>
8176
8177         unistd-safer: Move AC_LIBOBJ invocations to module description.
8178         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
8179         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
8180
8181 2011-05-23  Bruno Haible  <bruno@clisp.org>
8182
8183         tempname: Move AC_LIBOBJ invocations to module description.
8184         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
8185         * modules/tempname (Makefile.am): Augment lib_SOURCES.
8186
8187 2011-05-23  Bruno Haible  <bruno@clisp.org>
8188
8189         strftime: Move AC_LIBOBJ invocations to module description.
8190         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
8191         * modules/strftime (Makefile.am): Augment lib_SOURCES.
8192
8193 2011-05-23  Bruno Haible  <bruno@clisp.org>
8194
8195         stdlib-safer: Move AC_LIBOBJ invocations to module description.
8196         * m4/stdlib-safer.m4: Remove file.
8197         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
8198         (configure.ac): Remove gl_STDLIB_SAFER call.
8199         (Makefile.am): Augment lib_SOURCES.
8200
8201 2011-05-23  Bruno Haible  <bruno@clisp.org>
8202
8203         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
8204         * m4/stdio-safer.m4: Remove file.
8205         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
8206         (configure.ac): Remove gl_TMPFILE_SAFER call.
8207         (Makefile.am): Augment lib_SOURCES.
8208
8209 2011-05-23  Bruno Haible  <bruno@clisp.org>
8210
8211         popen-safer: Move AC_LIBOBJ invocations to module description.
8212         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
8213         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
8214         (configure.ac): Remove gl_POPEN_SAFER call.
8215         (Makefile.am): Augment lib_SOURCES.
8216
8217 2011-05-23  Bruno Haible  <bruno@clisp.org>
8218
8219         freopen-safer: Move AC_LIBOBJ invocations to module description.
8220         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
8221         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
8222         (configure.ac): Remove gl_FREOPEN_SAFER call.
8223         (Makefile.am): Augment lib_SOURCES.
8224
8225 2011-05-23  Bruno Haible  <bruno@clisp.org>
8226
8227         fopen-safer: Move AC_LIBOBJ invocations to module description.
8228         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
8229         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
8230         (configure.ac): Remove gl_FOPEN_SAFER call.
8231         (Makefile.am): Augment lib_SOURCES.
8232
8233 2011-05-23  Bruno Haible  <bruno@clisp.org>
8234
8235         crypto/sha512: Move AC_LIBOBJ invocations to module description.
8236         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
8237         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
8238
8239 2011-05-23  Bruno Haible  <bruno@clisp.org>
8240
8241         crypto/sha256: Move AC_LIBOBJ invocations to module description.
8242         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
8243         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
8244
8245 2011-05-23  Bruno Haible  <bruno@clisp.org>
8246
8247         crypto/sha1: Move AC_LIBOBJ invocations to module description.
8248         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
8249         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
8250
8251 2011-05-23  Bruno Haible  <bruno@clisp.org>
8252
8253         settime: Move AC_LIBOBJ invocations to module description.
8254         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
8255         * modules/settime (Makefile.am): Augment lib_SOURCES.
8256
8257 2011-05-23  Bruno Haible  <bruno@clisp.org>
8258
8259         savedir: Move AC_LIBOBJ invocations to module description.
8260         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
8261         * modules/savedir (Makefile.am): Augment lib_SOURCES.
8262
8263 2011-05-23  Bruno Haible  <bruno@clisp.org>
8264
8265         save-cwd: Move AC_LIBOBJ invocations to module description.
8266         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
8267         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
8268
8269 2011-05-23  Bruno Haible  <bruno@clisp.org>
8270
8271         same: Move AC_LIBOBJ invocations to module description.
8272         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
8273         * modules/same (Makefile.am): Augment lib_SOURCES.
8274
8275 2011-05-23  Bruno Haible  <bruno@clisp.org>
8276
8277         safe-write: Move AC_LIBOBJ invocations to module description.
8278         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
8279         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
8280         instead of gl_SAFE_WRITE.
8281         (Makefile.am): Augment lib_SOURCES.
8282
8283 2011-05-23  Bruno Haible  <bruno@clisp.org>
8284
8285         safe-read: Move AC_LIBOBJ invocations to module description.
8286         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
8287         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
8288         of gl_SAFE_READ.
8289         (Makefile.am): Augment lib_SOURCES.
8290
8291 2011-05-23  Bruno Haible  <bruno@clisp.org>
8292
8293         safe-alloc: Move AC_LIBOBJ invocations to module description.
8294         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
8295         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
8296
8297 2011-05-23  Bruno Haible  <bruno@clisp.org>
8298
8299         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
8300         * m4/rijndael.m4: Remove file.
8301         * modules/crypto/rijndael (Files): Remove it.
8302         (configure.ac): Remove gl_RIJNDAEL call.
8303         (Makefile.am): Augment lib_SOURCES.
8304
8305 2011-05-23  Bruno Haible  <bruno@clisp.org>
8306
8307         readtokens: Move AC_LIBOBJ invocations to module description.
8308         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
8309         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
8310
8311 2011-05-23  Bruno Haible  <bruno@clisp.org>
8312
8313         read-file: Move AC_LIBOBJ invocations to module description.
8314         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
8315         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
8316         of gl_FUNC_READ_FILE.
8317         (Makefile.am): Augment lib_SOURCES.
8318
8319 2011-05-23  Bruno Haible  <bruno@clisp.org>
8320
8321         quotearg: Move AC_LIBOBJ invocations to module description.
8322         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
8323         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
8324
8325 2011-05-23  Bruno Haible  <bruno@clisp.org>
8326
8327         quote: Move AC_LIBOBJ invocations to module description.
8328         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
8329         * modules/quote (Makefile.am): Augment lib_SOURCES.
8330
8331 2011-05-23  Bruno Haible  <bruno@clisp.org>
8332
8333         posixver: Move AC_LIBOBJ invocations to module description.
8334         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
8335         * modules/posixver (Makefile.am): Augment lib_SOURCES.
8336
8337 2011-05-23  Bruno Haible  <bruno@clisp.org>
8338
8339         posixtm: Move AC_LIBOBJ invocations to module description.
8340         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
8341         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
8342
8343 2011-05-23  Bruno Haible  <bruno@clisp.org>
8344
8345         physmem: Move AC_LIBOBJ invocations to module description.
8346         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
8347         * modules/physmem (Makefile.am): Augment lib_SOURCES.
8348
8349 2011-05-23  Bruno Haible  <bruno@clisp.org>
8350
8351         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
8352         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
8353         invocation.
8354         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
8355
8356 2011-05-23  Bruno Haible  <bruno@clisp.org>
8357
8358         mpsort: Move AC_LIBOBJ invocations to module description.
8359         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
8360         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
8361
8362 2011-05-23  Bruno Haible  <bruno@clisp.org>
8363
8364         modechange: Move AC_LIBOBJ invocations to module description.
8365         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
8366         * modules/modechange (Makefile.am): Augment lib_SOURCES.
8367
8368 2011-05-23  Bruno Haible  <bruno@clisp.org>
8369
8370         mkdir-p: Move AC_LIBOBJ invocations to module description.
8371         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
8372         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
8373
8374 2011-05-23  Bruno Haible  <bruno@clisp.org>
8375
8376         mkancesdirs: Move AC_LIBOBJ invocations to module description.
8377         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
8378         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
8379
8380 2011-05-23  Bruno Haible  <bruno@clisp.org>
8381
8382         mgetgroups: Move AC_LIBOBJ invocations to module description.
8383         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
8384         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
8385
8386 2011-05-23  Bruno Haible  <bruno@clisp.org>
8387
8388         memxor: Move AC_LIBOBJ invocations to module description.
8389         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
8390         * modules/memxor (Makefile.am): Augment lib_SOURCES.
8391
8392 2011-05-23  Bruno Haible  <bruno@clisp.org>
8393
8394         memcoll: Move AC_LIBOBJ invocations to module description.
8395         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
8396         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
8397
8398 2011-05-23  Bruno Haible  <bruno@clisp.org>
8399
8400         memcasecmp: Move AC_LIBOBJ invocations to module description.
8401         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
8402         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
8403
8404 2011-05-23  Bruno Haible  <bruno@clisp.org>
8405
8406         crypto/md5: Move AC_LIBOBJ invocations to module description.
8407         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
8408         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
8409
8410 2011-05-23  Bruno Haible  <bruno@clisp.org>
8411
8412         crypto/md4: Move AC_LIBOBJ invocations to module description.
8413         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
8414         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
8415
8416 2011-05-23  Bruno Haible  <bruno@clisp.org>
8417
8418         crypto/md2: Move AC_LIBOBJ invocations to module description.
8419         * m4/md2.m4: Remove file.
8420         * modules/crypto/md2 (Files): Remove it.
8421         (configure.ac): Remove gl_MD2 call.
8422         (Makefile.am): Augment lib_SOURCES.
8423
8424 2011-05-23  Bruno Haible  <bruno@clisp.org>
8425
8426         long-options: Move AC_LIBOBJ invocations to module description.
8427         * m4/long-options.m4: Remove file.
8428         * modules/long-options (Files): Remove it.
8429         (configure.ac): Remove gl_LONG_OPTIONS call.
8430         (Makefile.am): Augment lib_SOURCES.
8431
8432 2011-05-23  Bruno Haible  <bruno@clisp.org>
8433
8434         i-ring: Move AC_LIBOBJ invocations to module description.
8435         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
8436         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
8437
8438 2011-05-23  Bruno Haible  <bruno@clisp.org>
8439
8440         idcache: Move AC_LIBOBJ invocations to module description.
8441         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
8442         * modules/idcache (Makefile.am): Augment lib_SOURCES.
8443
8444 2011-05-23  Bruno Haible  <bruno@clisp.org>
8445
8446         human: Move AC_LIBOBJ invocations to module description.
8447         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
8448         * modules/human (Makefile.am): Augment lib_SOURCES.
8449
8450 2011-05-23  Bruno Haible  <bruno@clisp.org>
8451
8452         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
8453         * m4/hmac-sha1.m4: Remove file.
8454         * modules/crypto/hmac-sha1 (Files): Remove it.
8455         (configure.ac): Remove gl_HMAC_SHA1 call.
8456         (Makefile.am): Augment lib_SOURCES.
8457
8458 2011-05-23  Bruno Haible  <bruno@clisp.org>
8459
8460         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
8461         * m4/hmac-md5.m4: Remove file.
8462         * modules/crypto/hmac-md5 (Files): Remove it.
8463         (configure.ac): Remove gl_HMAC_MD5 call.
8464         (Makefile.am): Augment lib_SOURCES.
8465
8466 2011-05-23  Bruno Haible  <bruno@clisp.org>
8467
8468         hash: Move AC_LIBOBJ invocations to module description.
8469         * m4/hash.m4: Remove file.
8470         * modules/hash (Files): Remove it.
8471         (configure.ac): Remove gl_HASH call.
8472         (Makefile.am): Augment lib_SOURCES.
8473
8474 2011-05-23  Bruno Haible  <bruno@clisp.org>
8475
8476         hard-locale: Move AC_LIBOBJ invocations to module description.
8477         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
8478         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
8479
8480 2011-05-23  Bruno Haible  <bruno@clisp.org>
8481
8482         getugroups: Move AC_LIBOBJ invocations to module description.
8483         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
8484         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
8485
8486 2011-05-23  Bruno Haible  <bruno@clisp.org>
8487
8488         gettime: Move AC_LIBOBJ invocations to module description.
8489         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
8490         * modules/gettime (Makefile.am): Augment lib_SOURCES.
8491
8492 2011-05-23  Bruno Haible  <bruno@clisp.org>
8493
8494         getndelim2: Move AC_LIBOBJ invocations to module description.
8495         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
8496         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
8497
8498 2011-05-23  Bruno Haible  <bruno@clisp.org>
8499
8500         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
8501         * m4/gc-pbkdf2-sha1.m4: Remove file.
8502         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
8503         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
8504         (Makefile.am): Augment lib_SOURCES.
8505
8506 2011-05-23  Bruno Haible  <bruno@clisp.org>
8507
8508         fts: Move AC_LIBOBJ invocations to module description.
8509         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
8510         * modules/fts (configure.ac): ... to here.
8511
8512 2011-05-23  Bruno Haible  <bruno@clisp.org>
8513
8514         file-type: Move AC_LIBOBJ invocations to module description.
8515         * m4/file-type.m4: Remove file.
8516         * modules/file-type (Files): Remove it.
8517         (configure.ac): Remove gl_FILE_TYPE call.
8518         (Makefile.am): Augment lib_SOURCES.
8519
8520 2011-05-23  Bruno Haible  <bruno@clisp.org>
8521
8522         filenamecat*: Respect rules for use of AC_LIBOBJ.
8523         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
8524         Remove AC_LIBOBJ invocation.
8525         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
8526         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
8527
8528 2011-05-23  Bruno Haible  <bruno@clisp.org>
8529
8530         filemode: Move AC_LIBOBJ invocations to module description.
8531         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
8532         * modules/filemode (Makefile.am): Augment lib_SOURCES.
8533
8534 2011-05-23  Bruno Haible  <bruno@clisp.org>
8535
8536         openat-safer: Move AC_LIBOBJ invocations to module description.
8537         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
8538         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
8539
8540 2011-05-23  Bruno Haible  <bruno@clisp.org>
8541
8542         fcntl-safer: Move AC_LIBOBJ invocations to module description.
8543         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
8544         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
8545
8546 2011-05-23  Bruno Haible  <bruno@clisp.org>
8547
8548         exclude: Move AC_LIBOBJ invocations to module description.
8549         * m4/exclude.m4: Remove file.
8550         * modules/exclude (Files): Remove it.
8551         (configure.ac): Remove gl_EXCLUDE call.
8552         (Makefile.am): Augment lib_SOURCES.
8553
8554 2011-05-23  Bruno Haible  <bruno@clisp.org>
8555
8556         dirname*: Respect rules for use of AC_LIBOBJ.
8557         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
8558         invocations.
8559         * modules/dirname (Makefile.am): Augment lib_SOURCES.
8560         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
8561
8562 2011-05-23  Bruno Haible  <bruno@clisp.org>
8563
8564         dirent-safer: Move AC_LIBOBJ invocations to module description.
8565         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
8566         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
8567
8568 2011-05-23  Bruno Haible  <bruno@clisp.org>
8569
8570         crypto/des: Move AC_LIBOBJ invocations to module description.
8571         * m4/des.m4: Remove file.
8572         * modules/crypto/des (Files): Remove it.
8573         (configure.ac): Remove gl_DES call.
8574         (Makefile.am): Augment lib_SOURCES.
8575
8576 2011-05-23  Bruno Haible  <bruno@clisp.org>
8577
8578         cycle-check: Move AC_LIBOBJ invocations to module description.
8579         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
8580         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
8581
8582 2011-05-23  Bruno Haible  <bruno@clisp.org>
8583
8584         c-strtold: Move AC_LIBOBJ invocations to module description.
8585         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
8586         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
8587
8588 2011-05-23  Bruno Haible  <bruno@clisp.org>
8589
8590         c-strtod: Move AC_LIBOBJ invocations to module description.
8591         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
8592         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
8593
8594 2011-05-23  Bruno Haible  <bruno@clisp.org>
8595
8596         crc: Move AC_LIBOBJ invocations to module description.
8597         * m4/crc.m4: Remove file.
8598         * modules/crc (Files): Remove it.
8599         (configure.ac): Remove gl_CRC call.
8600         (Makefile.am): Augment lib_SOURCES.
8601
8602 2011-05-23  Bruno Haible  <bruno@clisp.org>
8603
8604         close-stream: Move AC_LIBOBJ invocations to module description.
8605         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
8606         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
8607
8608 2011-05-23  Bruno Haible  <bruno@clisp.org>
8609
8610         closeout: Move AC_LIBOBJ invocations to module description.
8611         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
8612         * modules/closeout (Makefile.am): Augment lib_SOURCES.
8613
8614 2011-05-23  Bruno Haible  <bruno@clisp.org>
8615
8616         closein: Move AC_LIBOBJ invocations to module description.
8617         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
8618         * modules/closein (Makefile.am): Augment lib_SOURCES.
8619
8620 2011-05-23  Bruno Haible  <bruno@clisp.org>
8621
8622         cloexec: Move AC_LIBOBJ invocations to module description.
8623         * m4/cloexec.m4: Remove file.
8624         * modules/cloexec (Files): Remove it.
8625         (configure.ac): Remove gl_CLOEXEC call.
8626         (Makefile.am): Augment lib_SOURCES.
8627
8628 2011-05-23  Bruno Haible  <bruno@clisp.org>
8629
8630         check-version: Move AC_LIBOBJ invocations to module description.
8631         * m4/check-version.m4: Remove file.
8632         * modules/check-version (Files): Remove it.
8633         (configure.ac): Remove gl_CHECK_VERSION call.
8634         (Makefile.am): Augment lib_SOURCES.
8635
8636 2011-05-23  Bruno Haible  <bruno@clisp.org>
8637
8638         chdir-safer: Move AC_LIBOBJ invocations to module description.
8639         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
8640         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
8641
8642 2011-05-23  Bruno Haible  <bruno@clisp.org>
8643
8644         canonicalize: Move AC_LIBOBJ invocations to module description.
8645         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
8646         AC_LIBOBJ invocation.
8647         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
8648
8649 2011-05-23  Bruno Haible  <bruno@clisp.org>
8650
8651         canon-host: Move AC_LIBOBJ invocations to module description.
8652         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
8653         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
8654         instead of gl_CANON_HOST.
8655         (Makefile.am): Augment lib_SOURCES.
8656
8657 2011-05-23  Bruno Haible  <bruno@clisp.org>
8658
8659         backupfile: Move AC_LIBOBJ invocations to module description.
8660         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
8661         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
8662
8663 2011-05-23  Bruno Haible  <bruno@clisp.org>
8664
8665         argmatch: Move AC_LIBOBJ invocations to module description.
8666         * m4/argmatch.m4: Remove file.
8667         * modules/argmatch (Files): Remove it.
8668         (configure.ac): Remove gl_ARGMATCH call.
8669         (Makefile.am): Augment lib_SOURCES.
8670
8671 2011-05-23  Bruno Haible  <bruno@clisp.org>
8672
8673         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
8674         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
8675         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
8676
8677 2011-05-23  Bruno Haible  <bruno@clisp.org>
8678
8679         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
8680         * m4/arcfour.m4: Remove file.
8681         * modules/crypto/arcfour (Files): Remove it.
8682         (configure.ac): Remove gl_ARCFOUR call.
8683         (Makefile.am): Augment lib_SOURCES.
8684
8685 2011-05-22  Bruno Haible  <bruno@clisp.org>
8686
8687         write: Move AC_LIBOBJ invocations to module description.
8688         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
8689         * modules/write (configure.ac): ... to here.
8690
8691 2011-05-22  Bruno Haible  <bruno@clisp.org>
8692
8693         wmemset: Move AC_LIBOBJ invocations to module description.
8694         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
8695         here...
8696         * modules/wmemset (configure.ac): ... to here.
8697
8698 2011-05-22  Bruno Haible  <bruno@clisp.org>
8699
8700         wmemmove: Move AC_LIBOBJ invocations to module description.
8701         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
8702         here...
8703         * modules/wmemmove (configure.ac): ... to here.
8704
8705 2011-05-22  Bruno Haible  <bruno@clisp.org>
8706
8707         wmemcpy: Move AC_LIBOBJ invocations to module description.
8708         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
8709         here...
8710         * modules/wmemcpy (configure.ac): ... to here.
8711
8712 2011-05-22  Bruno Haible  <bruno@clisp.org>
8713
8714         wmemcmp: Move AC_LIBOBJ invocations to module description.
8715         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
8716         here...
8717         * modules/wmemcmp (configure.ac): ... to here.
8718
8719 2011-05-22  Bruno Haible  <bruno@clisp.org>
8720
8721         wmemchr: Move AC_LIBOBJ invocations to module description.
8722         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
8723         here...
8724         * modules/wmemchr (configure.ac): ... to here.
8725
8726 2011-05-22  Bruno Haible  <bruno@clisp.org>
8727
8728         wcswidth: Move AC_LIBOBJ invocations to module description.
8729         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
8730         here...
8731         * modules/wcswidth (configure.ac): ... to here.
8732
8733 2011-05-22  Bruno Haible  <bruno@clisp.org>
8734
8735         wcwidth: Respect rules for use of AC_LIBOBJ.
8736         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
8737         invocation from here...
8738         * modules/wcwidth (configure.ac): ... to here.
8739         (Depends-on): Update conditions.
8740
8741 2011-05-22  Bruno Haible  <bruno@clisp.org>
8742
8743         wctype: Move AC_LIBOBJ invocations to module description.
8744         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
8745         invocation from here...
8746         * modules/wctype (configure.ac): ... to here.
8747         (Depends-on): Update conditions.
8748
8749 2011-05-22  Bruno Haible  <bruno@clisp.org>
8750
8751         wctrans: Move AC_LIBOBJ invocations to module description.
8752         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
8753         invocation from here...
8754         * modules/wctrans (configure.ac): ... to here.
8755
8756 2011-05-22  Bruno Haible  <bruno@clisp.org>
8757
8758         wctomb: Move AC_LIBOBJ invocations to module description.
8759         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
8760         invocations from here...
8761         * modules/wctomb (configure.ac): ... to here.
8762
8763 2011-05-22  Bruno Haible  <bruno@clisp.org>
8764
8765         wctob: Move AC_LIBOBJ invocations to module description.
8766         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
8767         gl_PREREQ_WCTOB invocations from here...
8768         * modules/wctob (configure.ac): ... to here.
8769         (Depends-on): Update conditions.
8770
8771 2011-05-22  Bruno Haible  <bruno@clisp.org>
8772
8773         wcsxfrm: Move AC_LIBOBJ invocations to module description.
8774         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
8775         here...
8776         * modules/wcsxfrm (configure.ac): ... to here.
8777
8778 2011-05-22  Bruno Haible  <bruno@clisp.org>
8779
8780         wcstok: Move AC_LIBOBJ invocations to module description.
8781         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
8782         * modules/wcstok (configure.ac): ... to here.
8783
8784 2011-05-22  Bruno Haible  <bruno@clisp.org>
8785
8786         wcsstr: Move AC_LIBOBJ invocations to module description.
8787         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
8788         * modules/wcsstr (configure.ac): ... to here.
8789
8790 2011-05-22  Bruno Haible  <bruno@clisp.org>
8791
8792         wcsspn: Move AC_LIBOBJ invocations to module description.
8793         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
8794         * modules/wcsspn (configure.ac): ... to here.
8795
8796 2011-05-22  Bruno Haible  <bruno@clisp.org>
8797
8798         wcsrtombs: Move AC_LIBOBJ invocations to module description.
8799         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
8800         gl_PREREQ_WCSRTOMBS invocations from here...
8801         * modules/wcsrtombs (configure.ac): ... to here.
8802
8803 2011-05-22  Bruno Haible  <bruno@clisp.org>
8804
8805         wcsrchr: Move AC_LIBOBJ invocations to module description.
8806         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
8807         here...
8808         * modules/wcsrchr (configure.ac): ... to here.
8809
8810 2011-05-22  Bruno Haible  <bruno@clisp.org>
8811
8812         wcspbrk: Move AC_LIBOBJ invocations to module description.
8813         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
8814         here...
8815         * modules/wcspbrk (configure.ac): ... to here.
8816
8817 2011-05-22  Bruno Haible  <bruno@clisp.org>
8818
8819         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
8820         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
8821         gl_PREREQ_WCSNRTOMBS invocations from here...
8822         * modules/wcsnrtombs (configure.ac): ... to here.
8823
8824 2011-05-22  Bruno Haible  <bruno@clisp.org>
8825
8826         wcsnlen: Move AC_LIBOBJ invocations to module description.
8827         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
8828         here...
8829         * modules/wcsnlen (configure.ac): ... to here.
8830
8831 2011-05-22  Bruno Haible  <bruno@clisp.org>
8832
8833         wcsncpy: Move AC_LIBOBJ invocations to module description.
8834         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
8835         here...
8836         * modules/wcsncpy (configure.ac): ... to here.
8837
8838 2011-05-22  Bruno Haible  <bruno@clisp.org>
8839
8840         wcsncmp: Move AC_LIBOBJ invocations to module description.
8841         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
8842         here...
8843         * modules/wcsncmp (configure.ac): ... to here.
8844
8845 2011-05-22  Bruno Haible  <bruno@clisp.org>
8846
8847         wcsncat: Move AC_LIBOBJ invocations to module description.
8848         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
8849         here...
8850         * modules/wcsncat (configure.ac): ... to here.
8851
8852 2011-05-22  Bruno Haible  <bruno@clisp.org>
8853
8854         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
8855         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
8856         from here...
8857         * modules/wcsncasecmp (configure.ac): ... to here.
8858
8859 2011-05-22  Bruno Haible  <bruno@clisp.org>
8860
8861         wcslen: Move AC_LIBOBJ invocations to module description.
8862         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
8863         * modules/wcslen (configure.ac): ... to here.
8864
8865 2011-05-22  Bruno Haible  <bruno@clisp.org>
8866
8867         wcsdup: Move AC_LIBOBJ invocations to module description.
8868         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
8869         * modules/wcsdup (configure.ac): ... to here.
8870
8871 2011-05-22  Bruno Haible  <bruno@clisp.org>
8872
8873         wcscspn: Move AC_LIBOBJ invocations to module description.
8874         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
8875         here...
8876         * modules/wcscspn (configure.ac): ... to here.
8877
8878 2011-05-22  Bruno Haible  <bruno@clisp.org>
8879
8880         wcscpy: Move AC_LIBOBJ invocations to module description.
8881         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
8882         * modules/wcscpy (configure.ac): ... to here.
8883
8884 2011-05-22  Bruno Haible  <bruno@clisp.org>
8885
8886         wcscoll: Move AC_LIBOBJ invocations to module description.
8887         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
8888         here...
8889         * modules/wcscoll (configure.ac): ... to here.
8890
8891 2011-05-22  Bruno Haible  <bruno@clisp.org>
8892
8893         wcscmp: Move AC_LIBOBJ invocations to module description.
8894         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
8895         * modules/wcscmp (configure.ac): ... to here.
8896
8897 2011-05-22  Bruno Haible  <bruno@clisp.org>
8898
8899         wcschr: Move AC_LIBOBJ invocations to module description.
8900         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
8901         * modules/wcschr (configure.ac): ... to here.
8902
8903 2011-05-22  Bruno Haible  <bruno@clisp.org>
8904
8905         wcscat: Move AC_LIBOBJ invocations to module description.
8906         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
8907         * modules/wcscat (configure.ac): ... to here.
8908
8909 2011-05-22  Bruno Haible  <bruno@clisp.org>
8910
8911         wcscasecmp: Move AC_LIBOBJ invocations to module description.
8912         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
8913         here...
8914         * modules/wcscasecmp (configure.ac): ... to here.
8915
8916 2011-05-22  Bruno Haible  <bruno@clisp.org>
8917
8918         wcrtomb: Move AC_LIBOBJ invocations to module description.
8919         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
8920         invocations from here...
8921         * modules/wcrtomb (configure.ac): ... to here.
8922
8923 2011-05-22  Bruno Haible  <bruno@clisp.org>
8924
8925         wcpncpy: Move AC_LIBOBJ invocations to module description.
8926         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
8927         here...
8928         * modules/wcpncpy (configure.ac): ... to here.
8929
8930 2011-05-22  Bruno Haible  <bruno@clisp.org>
8931
8932         wcpcpy: Move AC_LIBOBJ invocations to module description.
8933         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
8934         * modules/wcpcpy (configure.ac): ... to here.
8935
8936 2011-05-22  Bruno Haible  <bruno@clisp.org>
8937
8938         waitpid: Move AC_LIBOBJ invocations to module description.
8939         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
8940         invocation from here...
8941         * modules/waitpid (configure.ac): ... to here.
8942
8943 2011-05-22  Bruno Haible  <bruno@clisp.org>
8944
8945         utimensat: Move AC_LIBOBJ invocations to module description.
8946         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
8947         here...
8948         * modules/utimensat (configure.ac): ... to here.
8949
8950 2011-05-22  Bruno Haible  <bruno@clisp.org>
8951
8952         usleep: Move AC_LIBOBJ invocations to module description.
8953         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
8954         here...
8955         * modules/usleep (configure.ac): ... to here.
8956
8957 2011-05-22  Bruno Haible  <bruno@clisp.org>
8958
8959         unlockpt: Move AC_LIBOBJ invocations to module description.
8960         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
8961         gl_PREREQ_UNLOCKPT invocations from here...
8962         * modules/unlockpt (configure.ac): ... to here.
8963
8964 2011-05-22  Bruno Haible  <bruno@clisp.org>
8965
8966         unlink: Respect rules for use of AC_LIBOBJ.
8967         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
8968         * modules/unlink (configure.ac): ... to here.
8969
8970 2011-05-22  Bruno Haible  <bruno@clisp.org>
8971
8972         uname: Move AC_LIBOBJ invocations to module description.
8973         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
8974         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
8975         here...
8976         * modules/uname (configure.ac): ... to here.
8977
8978 2011-05-22  Bruno Haible  <bruno@clisp.org>
8979
8980         ttyname_r: Move AC_LIBOBJ invocations to module description.
8981         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
8982         gl_PREREQ_TTYNAME_R invocations from here...
8983         * modules/ttyname_r (configure.ac): ... to here.
8984
8985 2011-05-22  Bruno Haible  <bruno@clisp.org>
8986
8987         tsearch: Move AC_LIBOBJ invocations to module description.
8988         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
8989         invocations from here...
8990         * modules/tsearch (configure.ac): ... to here.
8991
8992 2011-05-22  Bruno Haible  <bruno@clisp.org>
8993
8994         towctrans: Move AC_LIBOBJ invocations to module description.
8995         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
8996         AC_LIBOBJ invocation from here...
8997         * modules/towctrans (configure.ac): ... to here.
8998
8999 2011-05-22  Bruno Haible  <bruno@clisp.org>
9000
9001         tmpfile: Move AC_LIBOBJ invocations to module description.
9002         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
9003         invocations from here...
9004         * modules/tmpfile (configure.ac): ... to here.
9005
9006 2011-05-22  Bruno Haible  <bruno@clisp.org>
9007
9008         times: Move AC_LIBOBJ invocations to module description.
9009         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
9010         * modules/times (configure.ac): ... to here.
9011
9012 2011-05-22  Bruno Haible  <bruno@clisp.org>
9013
9014         time_r: Move AC_LIBOBJ invocations to module description.
9015         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
9016         invocations from here...
9017         * modules/time_r (configure.ac): ... to here.
9018
9019 2011-05-22  Bruno Haible  <bruno@clisp.org>
9020
9021         timegm: Move AC_LIBOBJ invocations to module description.
9022         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
9023         invocations from here...
9024         * modules/timegm (configure.ac): ... to here.
9025
9026 2011-05-22  Bruno Haible  <bruno@clisp.org>
9027
9028         tcgetsid: Move AC_LIBOBJ invocations to module description.
9029         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
9030         and gl_PREREQ_TCGETSID invocations from here...
9031         * modules/tcgetsid (configure.ac): ... to here.
9032         (Depends-on): Update conditions.
9033
9034 2011-05-22  Bruno Haible  <bruno@clisp.org>
9035
9036         symlinkat: Move AC_LIBOBJ invocations to module description.
9037         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
9038         here...
9039         * modules/symlinkat (configure.ac): ... to here.
9040
9041 2011-05-22  Bruno Haible  <bruno@clisp.org>
9042
9043         symlink: Move AC_LIBOBJ invocations to module description.
9044         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
9045         here...
9046         * modules/symlink (configure.ac): ... to here.
9047
9048 2011-05-22  Bruno Haible  <bruno@clisp.org>
9049
9050         strverscmp: Move AC_LIBOBJ invocations to module description.
9051         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
9052         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
9053         from here...
9054         * modules/strverscmp (configure.ac): ... to here.
9055
9056 2011-05-22  Bruno Haible  <bruno@clisp.org>
9057
9058         strtok_r: Move AC_LIBOBJ invocations to module description.
9059         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
9060         and gl_PREREQ_STRTOK_R invocations from here...
9061         * modules/strtok_r (configure.ac): ... to here.
9062         (Depends-on): Update conditions.
9063
9064 2011-05-22  Bruno Haible  <bruno@clisp.org>
9065
9066         strtoumax: Move AC_LIBOBJ invocations to module description.
9067         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
9068         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
9069         from here...
9070         * modules/strtoumax (configure.ac): ... to here.
9071
9072 2011-05-22  Bruno Haible  <bruno@clisp.org>
9073
9074         strtoimax: Move AC_LIBOBJ invocations to module description.
9075         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
9076         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
9077         from here...
9078         * modules/strtoimax (configure.ac): ... to here.
9079
9080 2011-05-22  Bruno Haible  <bruno@clisp.org>
9081
9082         strtoull: Move AC_LIBOBJ invocations to module description.
9083         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
9084         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
9085         from here...
9086         * modules/strtoull (configure.ac): ... to here.
9087
9088 2011-05-22  Bruno Haible  <bruno@clisp.org>
9089
9090         strtoll: Move AC_LIBOBJ invocations to module description.
9091         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
9092         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
9093         here...
9094         * modules/strtoll (configure.ac): ... to here.
9095
9096 2011-05-22  Bruno Haible  <bruno@clisp.org>
9097
9098         strtoul: Move AC_LIBOBJ invocations to module description.
9099         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
9100         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
9101         * modules/strtoul (configure.ac): ... to here.
9102
9103 2011-05-22  Bruno Haible  <bruno@clisp.org>
9104
9105         strtol: Move AC_LIBOBJ invocations to module description.
9106         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
9107         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
9108         * modules/strtol (configure.ac): ... to here.
9109
9110 2011-05-22  Bruno Haible  <bruno@clisp.org>
9111
9112         strtod: Move AC_LIBOBJ invocations to module description.
9113         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
9114         invocations from here...
9115         * modules/strtod (configure.ac): ... to here.
9116
9117 2011-05-22  Bruno Haible  <bruno@clisp.org>
9118
9119         strstr*: Move AC_LIBOBJ invocations to module description.
9120         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
9121         invocations from here...
9122         * modules/strstr-simple (configure.ac): ... to here.
9123         * modules/strstr (configure.ac): ... and here.
9124
9125 2011-05-22  Bruno Haible  <bruno@clisp.org>
9126
9127         strsignal: Move AC_LIBOBJ invocations to module description.
9128         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
9129         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
9130         * modules/strsignal (configure.ac): ... to here.
9131         (Depends-on): Update conditions.
9132
9133 2011-05-22  Bruno Haible  <bruno@clisp.org>
9134
9135         strsep: Move AC_LIBOBJ invocations to module description.
9136         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
9137         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
9138         here...
9139         * modules/strsep (configure.ac): ... to here.
9140
9141 2011-05-22  Bruno Haible  <bruno@clisp.org>
9142
9143         strptime: Move AC_LIBOBJ invocations to module description.
9144         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
9145         gl_PREREQ_STRPTIME invocations from here...
9146         * modules/strptime (configure.ac): ... to here.
9147
9148 2011-05-22  Bruno Haible  <bruno@clisp.org>
9149
9150         strpbrk: Move AC_LIBOBJ invocations to module description.
9151         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
9152         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
9153         here...
9154         * modules/strpbrk (configure.ac): ... to here.
9155
9156 2011-05-22  Bruno Haible  <bruno@clisp.org>
9157
9158         strnlen: Move AC_LIBOBJ invocations to module description.
9159         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
9160         invocations from here...
9161         * modules/strnlen (configure.ac): ... to here.
9162
9163 2011-05-22  Bruno Haible  <bruno@clisp.org>
9164
9165         strndup: Move AC_LIBOBJ invocations to module description.
9166         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
9167         invocations from here...
9168         * modules/strndup (configure.ac): ... to here.
9169         (Depends-on): Update conditions.
9170
9171 2011-05-22  Bruno Haible  <bruno@clisp.org>
9172
9173         strncat: Move AC_LIBOBJ invocations to module description.
9174         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
9175         invocations from here...
9176         * modules/strncat (configure.ac): ... to here.
9177
9178 2011-05-22  Bruno Haible  <bruno@clisp.org>
9179
9180         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
9181         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
9182         invocations from here...
9183         * modules/strdup (configure.ac): ... to here.
9184         * modules/strdup-posix (configure.ac): ... and here.
9185
9186 2011-05-22  Bruno Haible  <bruno@clisp.org>
9187
9188         strcspn: Move AC_LIBOBJ invocations to module description.
9189         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
9190         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
9191         here...
9192         * modules/strcspn (configure.ac): ... to here.
9193
9194 2011-05-22  Bruno Haible  <bruno@clisp.org>
9195
9196         strchrnul: Move AC_LIBOBJ invocations to module description.
9197         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
9198         gl_PREREQ_STRCHRNUL invocations from here...
9199         * modules/strchrnul (configure.ac): ... to here.
9200
9201 2011-05-22  Bruno Haible  <bruno@clisp.org>
9202
9203         strcasestr*: Move AC_LIBOBJ invocations to module description.
9204         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
9205         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
9206         * modules/strcasestr-simple (configure.ac): ... to here.
9207         * modules/strcasestr (configure.ac): ... and here.
9208
9209 2011-05-22  Bruno Haible  <bruno@clisp.org>
9210
9211         strcase: Move AC_LIBOBJ invocations to module description.
9212         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
9213         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
9214         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
9215         gl_PREREQ_STRNCASECMP invocations from here...
9216         * modules/strcase (configure.ac): ... to here.
9217
9218 2011-05-22  Bruno Haible  <bruno@clisp.org>
9219
9220         stpncpy: Move AC_LIBOBJ invocations to module description.
9221         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
9222         here...
9223         * modules/stpncpy (configure.ac): ... to here.
9224
9225 2011-05-22  Bruno Haible  <bruno@clisp.org>
9226
9227         stpcpy: Move AC_LIBOBJ invocations to module description.
9228         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
9229         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
9230         here...
9231         * modules/stpcpy (configure.ac): ... to here.
9232
9233 2011-05-21  Bruno Haible  <bruno@clisp.org>
9234
9235         stat: Move AC_LIBOBJ invocations to module description.
9236         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
9237         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
9238         here...
9239         * modules/stat (configure.ac): ... to here.
9240
9241 2011-05-21  Bruno Haible  <bruno@clisp.org>
9242
9243         sleep: Move AC_LIBOBJ invocations to module description.
9244         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
9245         * modules/sleep (configure.ac): ... to here.
9246
9247 2011-05-21  Bruno Haible  <bruno@clisp.org>
9248
9249         signbit: Move AC_LIBOBJ invocations to module description.
9250         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
9251         * modules/signbit (configure.ac): ... to here.
9252
9253 2011-05-21  Bruno Haible  <bruno@clisp.org>
9254
9255         sigprocmask: Move AC_LIBOBJ invocations to module description.
9256         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
9257         gl_PREREQ_SIGPROMASK invocations from here...
9258         * modules/sigprocmask (configure.ac): ... to here.
9259
9260 2011-05-21  Bruno Haible  <bruno@clisp.org>
9261
9262         sigaction: Move AC_LIBOBJ invocations to module description.
9263         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
9264         gl_PREREQ_SIGACTION invocations from here...
9265         * modules/sigaction (configure.ac): ... to here.
9266
9267 2011-05-21  Bruno Haible  <bruno@clisp.org>
9268
9269         sig2str: Move AC_LIBOBJ invocations to module description.
9270         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
9271         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
9272         here...
9273         * modules/sig2str (configure.ac): ... to here.
9274
9275 2011-05-21  Bruno Haible  <bruno@clisp.org>
9276
9277         setlocale: Move AC_LIBOBJ invocations to module description.
9278         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
9279         gl_PREREQ_SETLOCALE invocations from here...
9280         * modules/setlocale (configure.ac): ... to here.
9281
9282 2011-05-21  Bruno Haible  <bruno@clisp.org>
9283
9284         unsetenv: Move AC_LIBOBJ invocations to module description.
9285         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
9286         and gl_PREREQ_UNSETENV invocations from here...
9287         * modules/unsetenv (configure.ac): ... to here.
9288         (Depends-on): Update.
9289
9290 2011-05-21  Bruno Haible  <bruno@clisp.org>
9291
9292         setenv: Move AC_LIBOBJ invocations to module description.
9293         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
9294         here...
9295         * modules/setenv (configure.ac): ... to here.
9296
9297 2011-05-21  Bruno Haible  <bruno@clisp.org>
9298
9299         selinux-h: Move AC_LIBOBJ invocations to module description.
9300         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
9301         AC_LIBOBJ invocation from here...
9302         * modules/selinux-h (configure.ac): ... to here.
9303
9304 2011-05-21  Bruno Haible  <bruno@clisp.org>
9305
9306         select: Respect rules for use of AC_LIBOBJ.
9307         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
9308         here...
9309         * modules/select (configure.ac): ... to here.
9310
9311 2011-05-21  Bruno Haible  <bruno@clisp.org>
9312
9313         scandir: Move AC_LIBOBJ invocations to module description.
9314         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
9315         invocations from here...
9316         * modules/scandir (configure.ac): ... to here.
9317
9318 2011-05-21  Bruno Haible  <bruno@clisp.org>
9319
9320         rpmatch: Move AC_LIBOBJ invocations to module description.
9321         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
9322         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
9323         here...
9324         * modules/rpmatch (configure.ac): ... to here.
9325
9326 2011-05-21  Bruno Haible  <bruno@clisp.org>
9327
9328         rmdir: Respect rules for use of AC_LIBOBJ.
9329         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
9330         * modules/rmdir (configure.ac): ... to here.
9331
9332 2011-05-21  Bruno Haible  <bruno@clisp.org>
9333
9334         renameat: Move AC_LIBOBJ invocations to module description.
9335         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
9336         here...
9337         * modules/renameat (configure.ac): ... to here.
9338
9339 2011-05-21  Bruno Haible  <bruno@clisp.org>
9340
9341         rename: Respect rules for use of AC_LIBOBJ.
9342         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
9343         here...
9344         * modules/rename (configure.ac): ... to here.
9345
9346 2011-05-21  Bruno Haible  <bruno@clisp.org>
9347
9348         remove: Move AC_LIBOBJ invocations to module description.
9349         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
9350         here...
9351         * modules/remove (configure.ac): ... to here.
9352
9353 2011-05-21  Bruno Haible  <bruno@clisp.org>
9354
9355         relocatable-lib: Move AC_LIBOBJ invocations to module description.
9356         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
9357         macro.
9358         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
9359         * modules/relocatable-lib (configure.ac): ... to here.
9360         * modules/relocatable-prog-wrapper (configure.ac): Invoke
9361         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
9362
9363 2011-05-21  Bruno Haible  <bruno@clisp.org>
9364
9365         relocatable-prog: Move AC_LIBOBJ invocations to module description.
9366         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
9367         here...
9368         * modules/relocatable-prog (configure.ac): ... to here.
9369
9370 2011-05-21  Bruno Haible  <bruno@clisp.org>
9371
9372         regex: Move AC_LIBOBJ invocations to module description.
9373         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
9374         invocations from here...
9375         * modules/regex (configure.ac): ... to here.
9376
9377 2011-05-21  Bruno Haible  <bruno@clisp.org>
9378
9379         realloc-*: Move AC_LIBOBJ invocations to module description.
9380         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
9381         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
9382         AC_LIBOBJ invocations from here...
9383         * modules/realloc-gnu (configure.ac): ... to here.
9384         * modules/realloc-posix (configure.ac): ... and here.
9385
9386 2011-05-21  Bruno Haible  <bruno@clisp.org>
9387
9388         readutmp: Move AC_LIBOBJ invocations to module description.
9389         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
9390         * modules/readutmp (configure.ac): ... to here.
9391
9392 2011-05-21  Bruno Haible  <bruno@clisp.org>
9393
9394         readlinkat: Move AC_LIBOBJ invocations to module description.
9395         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
9396         here...
9397         * modules/readlinkat (configure.ac): ... to here.
9398
9399 2011-05-21  Bruno Haible  <bruno@clisp.org>
9400
9401         readlink: Move AC_LIBOBJ invocations to module description.
9402         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
9403         gl_PREREQ_READLINK invocations from here...
9404         * modules/readlink (configure.ac): ... to here.
9405
9406 2011-05-21  Bruno Haible  <bruno@clisp.org>
9407
9408         readline: Move AC_LIBOBJ invocations to module description.
9409         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
9410         gl_PREREQ_READLINE invocations from here...
9411         * modules/readline (configure.ac): ... to here.
9412
9413 2011-05-21  Bruno Haible  <bruno@clisp.org>
9414
9415         read: Move AC_LIBOBJ invocations to module description.
9416         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
9417         * modules/read (configure.ac): ... to here.
9418
9419 2011-05-21  Bruno Haible  <bruno@clisp.org>
9420
9421         rawmemchr: Move AC_LIBOBJ invocations to module description.
9422         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
9423         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
9424         from here...
9425         * modules/rawmemchr (configure.ac): ... to here.
9426
9427 2011-05-21  Bruno Haible  <bruno@clisp.org>
9428
9429         random_r: Move AC_LIBOBJ invocations to module description.
9430         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
9431         gl_PREREQ_RANDOM_R invocations from here...
9432         * modules/random_r (configure.ac): ... to here.
9433
9434 2011-05-21  Bruno Haible  <bruno@clisp.org>
9435
9436         pwrite: Move AC_LIBOBJ invocations to module description.
9437         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
9438         * modules/pwrite (configure.ac): ... to here.
9439
9440 2011-05-21  Bruno Haible  <bruno@clisp.org>
9441
9442         putenv: Move AC_LIBOBJ invocations to module description.
9443         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
9444         * modules/putenv (configure.ac): ... to here.
9445
9446 2011-05-21  Bruno Haible  <bruno@clisp.org>
9447
9448         login_tty: Move AC_LIBOBJ invocations to module description.
9449         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
9450         * modules/login_tty (configure.ac): ... to here.
9451
9452 2011-05-21  Bruno Haible  <bruno@clisp.org>
9453
9454         openpty: Move AC_LIBOBJ invocations to module description.
9455         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
9456         * modules/openpty (configure.ac): ... to here.
9457
9458 2011-05-21  Bruno Haible  <bruno@clisp.org>
9459
9460         forkpty: Move AC_LIBOBJ invocations to module description.
9461         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
9462         * modules/forkpty (configure.ac): ... to here.
9463
9464 2011-05-21  Bruno Haible  <bruno@clisp.org>
9465
9466         ptsname: Move AC_LIBOBJ invocations to module description.
9467         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
9468         invocations from here...
9469         * modules/ptsname (configure.ac): ... to here.
9470
9471 2011-05-21  Bruno Haible  <bruno@clisp.org>
9472
9473         pread: Move AC_LIBOBJ invocations to module description.
9474         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
9475         * modules/pread (configure.ac): ... to here.
9476
9477 2011-05-21  Bruno Haible  <bruno@clisp.org>
9478
9479         posix_spawn*: Move AC_LIBOBJ invocations to module description.
9480         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
9481         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
9482         * modules/posix_spawn (configure.ac): ... to here.
9483         * modules/posix_spawnp (configure.ac): ... and here.
9484
9485 2011-05-21  Bruno Haible  <bruno@clisp.org>
9486
9487         popen: Move AC_LIBOBJ invocations to module description.
9488         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
9489         invocations from here...
9490         * modules/popen (configure.ac): ... to here.
9491
9492 2011-05-21  Bruno Haible  <bruno@clisp.org>
9493
9494         poll: Move AC_LIBOBJ invocations to module description.
9495         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
9496         invocations from here...
9497         * modules/poll (configure.ac): ... to here.
9498
9499 2011-05-21  Bruno Haible  <bruno@clisp.org>
9500
9501         pipe-posix: Move AC_LIBOBJ invocations to module description.
9502         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
9503         * modules/pipe-posix (configure.ac): ... to here.
9504
9505 2011-05-21  Bruno Haible  <bruno@clisp.org>
9506
9507         openat: Respect rules for use of AC_LIBOBJ.
9508         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
9509         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
9510         * modules/openat (configure.ac): ... to here.
9511
9512 2011-05-21  Bruno Haible  <bruno@clisp.org>
9513
9514         obstack-printf*: Move AC_LIBOBJ invocations to module description.
9515         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
9516         invocation from here...
9517         * modules/obstack-printf (configure.ac): ... to here.
9518         * modules/obstack-printf-posix (configure.ac): ... and here.
9519
9520 2011-05-21  Bruno Haible  <bruno@clisp.org>
9521
9522         nl_langinfo: Move AC_LIBOBJ invocations to module description.
9523         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
9524         from here...
9525         * modules/nl_langinfo (configure.ac): ... to here.
9526
9527 2011-05-21  Bruno Haible  <bruno@clisp.org>
9528
9529         nanosleep: Move AC_LIBOBJ invocations to module description.
9530         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
9531         gl_PREREQ_NANOSLEEP invocations from here...
9532         * modules/nanosleep (configure.ac): ... to here.
9533
9534 2011-05-21  Bruno Haible  <bruno@clisp.org>
9535
9536         mountlist: Move AC_LIBOBJ invocations to module description.
9537         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
9538         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
9539         * modules/mountlist (configure.ac): ... to here.
9540
9541 2011-05-21  Bruno Haible  <bruno@clisp.org>
9542
9543         mktime: Respect rules for use of AC_LIBOBJ.
9544         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
9545         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
9546         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
9547         (gl_FUNC_MKTIME_INTERNAL): ... and here...
9548         * modules/mktime (configure.ac): ... to here.
9549         * modules/mktime-internal (configure.ac): ... and here.
9550         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
9551
9552 2011-05-21  Bruno Haible  <bruno@clisp.org>
9553
9554         mkstemps: Move AC_LIBOBJ invocations to module description.
9555         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
9556         here...
9557         * modules/mkstemps (configure.ac): ... to here.
9558
9559 2011-05-21  Bruno Haible  <bruno@clisp.org>
9560
9561         mkstemp: Move AC_LIBOBJ invocations to module description.
9562         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
9563         gl_PREREQ_MKSTEMP invocations from here...
9564         * modules/mkstemp (configure.ac): ... to here.
9565
9566 2011-05-21  Bruno Haible  <bruno@clisp.org>
9567
9568         mkostemps: Move AC_LIBOBJ invocations to module description.
9569         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
9570         here...
9571         * modules/mkostemps (configure.ac): ... to here.
9572
9573 2011-05-21  Bruno Haible  <bruno@clisp.org>
9574
9575         mkostemp: Move AC_LIBOBJ invocations to module description.
9576         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
9577         gl_PREREQ_MKOSTEMP invocations from here...
9578         * modules/mkostemp (configure.ac): ... to here.
9579
9580 2011-05-21  Bruno Haible  <bruno@clisp.org>
9581
9582         mknod: Move AC_LIBOBJ invocations to module description.
9583         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
9584         * modules/mknod (configure.ac): ... to here.
9585
9586 2011-05-21  Bruno Haible  <bruno@clisp.org>
9587
9588         mkfifoat: Move AC_LIBOBJ invocations to module description.
9589         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
9590         here...
9591         * modules/mkfifoat (configure.ac): ... to here.
9592
9593 2011-05-21  Bruno Haible  <bruno@clisp.org>
9594
9595         mkfifo: Respect rules for use of AC_LIBOBJ.
9596         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
9597         here...
9598         * modules/mkfifo (configure.ac): ... to here.
9599
9600 2011-05-21  Bruno Haible  <bruno@clisp.org>
9601
9602         mkdtemp: Move AC_LIBOBJ invocations to module description.
9603         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
9604         invocations from here...
9605         * modules/mkdtemp (configure.ac): ... to here.
9606
9607 2011-05-21  Bruno Haible  <bruno@clisp.org>
9608
9609         mkdir: Move AC_LIBOBJ invocations to module description.
9610         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
9611         * modules/mkdir (configure.ac): ... to here.
9612
9613 2011-05-21  Bruno Haible  <bruno@clisp.org>
9614
9615         memset: Move AC_LIBOBJ invocations to module description.
9616         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
9617         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
9618         here...
9619         * modules/memset (configure.ac): ... to here.
9620
9621 2011-05-21  Bruno Haible  <bruno@clisp.org>
9622
9623         memrchr: Move AC_LIBOBJ invocations to module description.
9624         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
9625         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
9626         here...
9627         * modules/memrchr (configure.ac): ... to here.
9628
9629 2011-05-21  Bruno Haible  <bruno@clisp.org>
9630
9631         mempcpy: Move AC_LIBOBJ invocations to module description.
9632         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
9633         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
9634         here...
9635         * modules/mempcpy (configure.ac): ... to here.
9636
9637 2011-05-21  Bruno Haible  <bruno@clisp.org>
9638
9639         memmove: Move AC_LIBOBJ invocations to module description.
9640         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
9641         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
9642         here...
9643         * modules/memmove (configure.ac): ... to here.
9644
9645 2011-05-21  Bruno Haible  <bruno@clisp.org>
9646
9647         memmem*: Move AC_LIBOBJ invocations to module description.
9648         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
9649         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
9650         here...
9651         (gl_FUNC_MEMMEM): ... and here...
9652         * modules/memmem-simple (configure.ac): ... to here.
9653         * modules/memmem (configure.ac): ... and here.
9654
9655 2011-05-21  Bruno Haible  <bruno@clisp.org>
9656
9657         memcpy: Move AC_LIBOBJ invocations to module description.
9658         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
9659         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
9660         here...
9661         * modules/memcpy (configure.ac): ... to here.
9662
9663 2011-05-21  Bruno Haible  <bruno@clisp.org>
9664
9665         memcmp: Simplify autoconf macro.
9666         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
9667         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
9668         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
9669
9670 2011-05-21  Bruno Haible  <bruno@clisp.org>
9671
9672         memcmp: Move AC_LIBOBJ invocations to module description.
9673         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
9674         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
9675         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
9676         * modules/memcmp (configure.ac): ... to here.
9677         (Depends-on): Update conditions.
9678
9679 2011-05-21  Bruno Haible  <bruno@clisp.org>
9680
9681         memchr: Respect rules for use of AC_LIBOBJ.
9682         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
9683         invocations from here...
9684         * modules/memchr (configure.ac): ... to here.
9685
9686 2011-05-21  Bruno Haible  <bruno@clisp.org>
9687
9688         mbtowc: Move AC_LIBOBJ invocations to module description.
9689         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
9690         invocations from here...
9691         * modules/mbtowc (configure.ac): ... to here.
9692
9693 2011-05-21  Bruno Haible  <bruno@clisp.org>
9694
9695         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
9696         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
9697         gl_PREREQ_MBSRTOWCS invocations from here...
9698         * modules/mbsrtowcs (configure.ac): ... to here.
9699
9700 2011-05-21  Bruno Haible  <bruno@clisp.org>
9701
9702         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
9703         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
9704         gl_PREREQ_MBSNRTOWCS invocations from here...
9705         * modules/mbsnrtowcs (configure.ac): ... to here.
9706
9707 2011-05-21  Bruno Haible  <bruno@clisp.org>
9708
9709         mbsinit: Move AC_LIBOBJ invocations to module description.
9710         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
9711         invocations from here...
9712         * modules/mbsinit (configure.ac): ... to here.
9713
9714 2011-05-21  Bruno Haible  <bruno@clisp.org>
9715
9716         mbrlen: Move AC_LIBOBJ invocations to module description.
9717         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
9718         invocations from here...
9719         * modules/mbrlen (configure.ac): ... to here.
9720
9721 2011-05-21  Bruno Haible  <bruno@clisp.org>
9722
9723         mbrtowc: Respect rules for use of AC_LIBOBJ.
9724         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
9725         invocations from here...
9726         * modules/mbrtowc (configure.ac): ... to here.
9727
9728 2011-05-21  Bruno Haible  <bruno@clisp.org>
9729
9730         malloc-*: Move AC_LIBOBJ invocations to module description.
9731         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
9732         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
9733         AC_LIBOBJ invocations from here...
9734         * modules/malloc-gnu (configure.ac): ... to here.
9735         * modules/malloc-posix (configure.ac): ... and here.
9736
9737 2011-05-21  Bruno Haible  <bruno@clisp.org>
9738
9739         lstat, openat: Respect rules for use of AC_LIBOBJ.
9740         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
9741         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
9742         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
9743         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
9744         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
9745         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
9746         here.
9747         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
9748
9749 2011-05-21  Bruno Haible  <bruno@clisp.org>
9750
9751         lseek: Move AC_LIBOBJ invocations to module description.
9752         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
9753         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
9754         * modules/lseek (configure.ac): ... to here.
9755
9756 2011-05-21  Bruno Haible  <bruno@clisp.org>
9757
9758         linkat: Move AC_LIBOBJ invocations to module description.
9759         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
9760         here...
9761         * modules/linkat (configure.ac): ... to here.
9762
9763 2011-05-21  Bruno Haible  <bruno@clisp.org>
9764
9765         link: Respect rules for use of AC_LIBOBJ.
9766         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
9767         * modules/link (configure.ac): ... to here.
9768
9769 2011-05-21  Bruno Haible  <bruno@clisp.org>
9770
9771         lchown: Move AC_LIBOBJ invocations to module description.
9772         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
9773         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
9774         * modules/lchown (configure.ac): ... to here.
9775
9776 2011-05-21  Bruno Haible  <bruno@clisp.org>
9777
9778         iswctype: Move AC_LIBOBJ invocations to module description.
9779         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
9780         here...
9781         * modules/iswctype (configure.ac): ... to here.
9782
9783 2011-05-21  Bruno Haible  <bruno@clisp.org>
9784
9785         iswblank: Move AC_LIBOBJ invocations to module description.
9786         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
9787         here...
9788         * modules/iswblank (configure.ac): ... to here.
9789
9790 2011-05-21  Bruno Haible  <bruno@clisp.org>
9791
9792         atanl: Move AC_LIBOBJ invocations to module description.
9793         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
9794         * modules/atanl (configure.ac): ... to here.
9795
9796 2011-05-21  Bruno Haible  <bruno@clisp.org>
9797
9798         acosl: Move AC_LIBOBJ invocations to module description.
9799         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
9800         * modules/acosl (configure.ac): ... to here.
9801
9802 2011-05-21  Bruno Haible  <bruno@clisp.org>
9803
9804         asinl: Respect rules for use of AC_LIBOBJ.
9805         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
9806         * modules/asinl (configure.ac): ... to here.
9807
9808 2011-05-21  Bruno Haible  <bruno@clisp.org>
9809
9810         tanl: Move AC_LIBOBJ invocations to module description.
9811         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
9812         * modules/tanl (configure.ac): ... to here.
9813
9814 2011-05-21  Bruno Haible  <bruno@clisp.org>
9815
9816         cosl: Move AC_LIBOBJ invocations to module description.
9817         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
9818         * modules/cosl (configure.ac): ... to here.
9819
9820 2011-05-21  Bruno Haible  <bruno@clisp.org>
9821
9822         sinl: Move AC_LIBOBJ invocations to module description.
9823         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
9824         * modules/sinl (configure.ac): ... to here.
9825
9826 2011-05-21  Bruno Haible  <bruno@clisp.org>
9827
9828         logl: Move AC_LIBOBJ invocations to module description.
9829         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
9830         * modules/logl (configure.ac): ... to here.
9831
9832 2011-05-21  Bruno Haible  <bruno@clisp.org>
9833
9834         expl: Move AC_LIBOBJ invocations to module description.
9835         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
9836         * modules/expl (configure.ac): ... to here.
9837
9838 2011-05-21  Bruno Haible  <bruno@clisp.org>
9839
9840         roundl: Move AC_LIBOBJ invocations to module description.
9841         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
9842         * modules/roundl (configure.ac): ... to here.
9843
9844 2011-05-21  Bruno Haible  <bruno@clisp.org>
9845
9846         round: Move AC_LIBOBJ invocations to module description.
9847         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
9848         * modules/round (configure.ac): ... to here.
9849
9850 2011-05-21  Bruno Haible  <bruno@clisp.org>
9851
9852         roundf: Move AC_LIBOBJ invocations to module description.
9853         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
9854         * modules/roundf (configure.ac): ... to here.
9855
9856 2011-05-21  Bruno Haible  <bruno@clisp.org>
9857
9858         truncl: Move AC_LIBOBJ invocations to module description.
9859         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
9860         * modules/truncl (configure.ac): ... to here.
9861
9862 2011-05-21  Bruno Haible  <bruno@clisp.org>
9863
9864         trunc: Move AC_LIBOBJ invocations to module description.
9865         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
9866         * modules/trunc (configure.ac): ... to here.
9867
9868 2011-05-21  Bruno Haible  <bruno@clisp.org>
9869
9870         truncf: Move AC_LIBOBJ invocations to module description.
9871         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
9872         * modules/truncf (configure.ac): ... to here.
9873
9874 2011-05-21  Bruno Haible  <bruno@clisp.org>
9875
9876         ceill: Move AC_LIBOBJ invocations to module description.
9877         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
9878         * modules/ceill (configure.ac): ... to here.
9879
9880 2011-05-21  Bruno Haible  <bruno@clisp.org>
9881
9882         ceil: Move AC_LIBOBJ invocations to module description.
9883         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
9884         * modules/ceil (configure.ac): ... to here.
9885
9886 2011-05-21  Bruno Haible  <bruno@clisp.org>
9887
9888         ceilf: Move AC_LIBOBJ invocations to module description.
9889         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
9890         * modules/ceilf (configure.ac): ... to here.
9891
9892 2011-05-21  Bruno Haible  <bruno@clisp.org>
9893
9894         floorl: Respect rules for use of AC_LIBOBJ.
9895         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
9896         * modules/floorl (configure.ac): ... to here.
9897
9898 2011-05-21  Bruno Haible  <bruno@clisp.org>
9899
9900         floor: Respect rules for use of AC_LIBOBJ.
9901         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
9902         * modules/floor (configure.ac): ... to here.
9903
9904 2011-05-21  Bruno Haible  <bruno@clisp.org>
9905
9906         floorf: Move AC_LIBOBJ invocations to module description.
9907         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
9908         * modules/floorf (configure.ac): ... to here.
9909
9910 2011-05-20  Bruno Haible  <bruno@clisp.org>
9911
9912         sqrtl: Respect rules for use of AC_LIBOBJ.
9913         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
9914         * modules/sqrtl (configure.ac): ... to here.
9915
9916 2011-05-20  Bruno Haible  <bruno@clisp.org>
9917
9918         ldexpl: Respect rules for use of AC_LIBOBJ.
9919         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
9920         * modules/ldexpl (configure.ac): ... to here.
9921
9922 2011-05-20  Bruno Haible  <bruno@clisp.org>
9923
9924         frexpl*: Respect rules for use of AC_LIBOBJ.
9925         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
9926         invocation from here...
9927         * modules/frexpl (configure.ac): ... to here.
9928         * modules/frexpl-nolibm (configure.ac): ... and here.
9929
9930 2011-05-20  Bruno Haible  <bruno@clisp.org>
9931
9932         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
9933         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
9934         invocation from here...
9935         * modules/frexp (configure.ac): ... to here.
9936         * modules/frexp-nolibm (configure.ac): ... and here.
9937
9938 2011-05-20  Bruno Haible  <bruno@clisp.org>
9939
9940         isnan: Respect rules for use of AC_LIBOBJ.
9941         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
9942         invocations here.
9943         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
9944         REPLACE_ISNAN.
9945         * modules/isnand (configure.ac): Likewise.
9946         * modules/isnanl (configure.ac): Likewise.
9947
9948 2011-05-20  Bruno Haible  <bruno@clisp.org>
9949
9950         isnanl*: Respect rules for use of AC_LIBOBJ.
9951         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
9952         invocation from here...
9953         * modules/isnanl (configure.ac): ... to here.
9954         * modules/isnanl-nolibm (configure.ac): ... and here.
9955
9956 2011-05-20  Bruno Haible  <bruno@clisp.org>
9957
9958         isnand*: Move AC_LIBOBJ invocations to module description.
9959         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
9960         invocation from here...
9961         * modules/isnand (configure.ac): ... to here.
9962         * modules/isnand-nolibm (configure.ac): ... and here.
9963
9964 2011-05-20  Bruno Haible  <bruno@clisp.org>
9965
9966         isnanf*: Move AC_LIBOBJ invocations to module description.
9967         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
9968         invocation from here...
9969         * modules/isnanf (configure.ac): ... to here.
9970         * modules/isnanf-nolibm (configure.ac): ... and here.
9971
9972 2011-05-20  Bruno Haible  <bruno@clisp.org>
9973
9974         isnan*: Separate the AC_LIBOBJ invocations.
9975         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
9976         AC_LIBOBJ invocation.
9977         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
9978         here.
9979         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
9980         AC_LIBOBJ invocation.
9981         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
9982         here.
9983         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
9984         AC_LIBOBJ invocation.
9985         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
9986         here.
9987         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
9988
9989 2011-05-08  Bruno Haible  <bruno@clisp.org>
9990
9991         isinf: Move AC_LIBOBJ invocations to module description.
9992         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
9993         * modules/isinf (configure.ac): ... to here.
9994
9995 2011-05-08  Bruno Haible  <bruno@clisp.org>
9996
9997         isfinite: Move AC_LIBOBJ invocations to module description.
9998         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
9999         * modules/isfinite (configure.ac): ... to here.
10000
10001 2011-05-08  Bruno Haible  <bruno@clisp.org>
10002
10003         isblank: Move AC_LIBOBJ invocations to module description.
10004         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
10005         here...
10006         * modules/isblank (configure.ac): ... to here.
10007
10008 2011-05-08  Bruno Haible  <bruno@clisp.org>
10009
10010         isapipe: Move AC_LIBOBJ invocations to module description.
10011         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
10012         gl_PREREQ_ISAPIPE invocations from here...
10013         * modules/isapipe (configure.ac): ... to here.
10014         (Depends-on): Update condition.
10015
10016 2011-05-08  Bruno Haible  <bruno@clisp.org>
10017
10018         ioctl: Move AC_LIBOBJ invocations to module description.
10019         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
10020         invocations from here...
10021         * modules/ioctl (configure.ac): ... to here.
10022         (Depends-on): Update condition.
10023
10024 2011-05-08  Bruno Haible  <bruno@clisp.org>
10025
10026         imaxdiv: Move AC_LIBOBJ invocations to module description.
10027         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
10028         invocations from here...
10029         * modules/imaxdiv (configure.ac): ... to here.
10030
10031 2011-05-08  Bruno Haible  <bruno@clisp.org>
10032
10033         imaxabs: Move AC_LIBOBJ invocations to module description.
10034         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
10035         invocations from here...
10036         * modules/imaxabs (configure.ac): ... to here.
10037
10038 2011-05-08  Bruno Haible  <bruno@clisp.org>
10039
10040         getaddrinfo: Move AC_LIBOBJ invocations to module description.
10041         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
10042         AC_LIBOBJ invocations from here...
10043         * modules/getaddrinfo (configure.ac): ... to here.
10044         (Depends-on): Add conditions.
10045
10046 2011-05-08  Bruno Haible  <bruno@clisp.org>
10047
10048         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
10049         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
10050         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
10051         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
10052         (gl_PREREQ_INET_PTON): ... from here.
10053         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
10054         gl_PREREQ_INET_PTON here.
10055         (Depends-on): Update condition.
10056
10057 2011-05-08  Bruno Haible  <bruno@clisp.org>
10058
10059         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
10060         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
10061         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
10062         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
10063         (gl_PREREQ_INET_NTOP): ... from here.
10064         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
10065         gl_PREREQ_INET_NTOP here.
10066         (Depends-on): Update condition.
10067
10068 2011-05-08  Bruno Haible  <bruno@clisp.org>
10069
10070         iconv_open: Move AC_LIBOBJ invocations to module description.
10071         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
10072         AC_LIBOBJ invocations from here...
10073         * modules/iconv_open (configure.ac): ... to here.
10074
10075 2011-05-08  Bruno Haible  <bruno@clisp.org>
10076
10077         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
10078         If module 'iconv_open' is among the main modules and module
10079         'iconv_open-utf' is among the tests dependencies, then
10080         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
10081         return the special iconv_t values. Therefore iconv() and iconv_close()
10082         must support these special iconv_t values, already in lib, not only in
10083         tests.
10084         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
10085         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
10086         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
10087         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
10088         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
10089         (Depends-on): Add the dependencies of iconv_open-utf.
10090         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
10091         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
10092         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
10093
10094 2011-05-08  Bruno Haible  <bruno@clisp.org>
10095
10096         group-member: Move AC_LIBOBJ invocations to module description.
10097         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
10098         gl_PREREQ_GROUP_MEMBER invocations from here...
10099         * modules/group-member (configure.ac): ... to here.
10100
10101 2011-05-08  Bruno Haible  <bruno@clisp.org>
10102
10103         grantpt: Move AC_LIBOBJ invocations to module description.
10104         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
10105         invocations from here...
10106         * modules/grantpt (configure.ac): ... to here.
10107
10108 2011-05-08  Bruno Haible  <bruno@clisp.org>
10109
10110         glob: Move AC_LIBOBJ invocations to module description.
10111         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
10112         from here...
10113         * modules/glob (configure.ac): ... to here.
10114
10115 2011-05-08  Bruno Haible  <bruno@clisp.org>
10116
10117         getusershell: Move AC_LIBOBJ invocations to module description.
10118         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
10119         Move AC_LIBOBJ invocation from here...
10120         * modules/getusershell (configure.ac): ... to here.
10121         (Depends-on): Update condition.
10122
10123 2011-05-08  Bruno Haible  <bruno@clisp.org>
10124
10125         gettimeofday: Move AC_LIBOBJ invocations to module description.
10126         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
10127         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
10128         gl_PREREQ_GETTIMEOFDAY invocations from here...
10129         * modules/gettimeofday (configure.ac): ... to here.
10130
10131 2011-05-08  Bruno Haible  <bruno@clisp.org>
10132
10133         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
10134         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
10135         just gl_FUNC_TZSET.
10136         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
10137         (gl_FUNC_TZSET_CLOBBER): Remove actions.
10138         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
10139         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
10140
10141 2011-05-08  Bruno Haible  <bruno@clisp.org>
10142
10143         getsubopt: Move AC_LIBOBJ invocations to module description.
10144         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
10145         gl_PREREQ_GETSUBOPT invocations from here...
10146         * modules/getsubopt (configure.ac): ... to here.
10147
10148 2011-05-08  Bruno Haible  <bruno@clisp.org>
10149
10150         getpass-gnu: Move AC_LIBOBJ invocations to module description.
10151         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
10152         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
10153         * modules/getpass-gnu (configure.ac): ... to here.
10154
10155 2011-05-08  Bruno Haible  <bruno@clisp.org>
10156
10157         getpass: Move AC_LIBOBJ invocations to module description.
10158         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
10159         gl_PREREQ_GETPASS invocations from here...
10160         * modules/getpass (configure.ac): ... to here.
10161
10162 2011-05-08  Bruno Haible  <bruno@clisp.org>
10163
10164         getpagesize: Move AC_LIBOBJ invocations to module description.
10165         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
10166         from here...
10167         * modules/getpagesize (configure.ac): ... to here.
10168
10169 2011-05-08  Bruno Haible  <bruno@clisp.org>
10170
10171         getopt: Move AC_LIBOBJ invocations to module description.
10172         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
10173         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
10174         invocations from here...
10175         * modules/getopt-gnu (configure.ac): ... to here.
10176         * modules/getopt-posix (configure.ac): ... and here.
10177         (Depends-on): Update condition.
10178
10179 2011-05-08  Bruno Haible  <bruno@clisp.org>
10180
10181         getopt, argp: Respect rules for use of AC_LIBOBJ.
10182         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
10183         (gl_REPLACE_GETOPT_ALWAYS): New macro.
10184         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
10185         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
10186
10187 2011-05-08  Bruno Haible  <bruno@clisp.org>
10188
10189         getlogin_r: Move AC_LIBOBJ invocations to module description.
10190         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
10191         gl_PREREQ_GETLOGIN_R invocations from here...
10192         * modules/getlogin_r (configure.ac): ... to here.
10193
10194 2011-05-08  Bruno Haible  <bruno@clisp.org>
10195
10196         getlogin: Move AC_LIBOBJ invocations to module description.
10197         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
10198         here...
10199         * modules/getlogin (configure.ac): ... to here.
10200
10201 2011-05-08  Bruno Haible  <bruno@clisp.org>
10202
10203         getloadavg: Move AC_LIBOBJ invocations to module description.
10204         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
10205         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
10206         * modules/getloadavg (configure.ac): ... to here.
10207
10208 2011-05-08  Bruno Haible  <bruno@clisp.org>
10209
10210         gethrxtime: Move AC_LIBOBJ invocations to module description.
10211         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
10212         LIB_GETHRXTIME from here...
10213         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
10214         invocations from here...
10215         * modules/gethrxtime (configure.ac): ... to here.
10216
10217 2011-05-08  Bruno Haible  <bruno@clisp.org>
10218
10219         gethostname: Move AC_LIBOBJ invocations to module description.
10220         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
10221         gl_PREREQ_GETHOSTNAME invocations from here...
10222         * modules/gethostname (configure.ac): ... to here.
10223
10224 2011-05-08  Bruno Haible  <bruno@clisp.org>
10225
10226         getgroups: Move AC_LIBOBJ invocations to module description.
10227         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
10228         here...
10229         * modules/getgroups (configure.ac): ... to here.
10230
10231 2011-05-08  Bruno Haible  <bruno@clisp.org>
10232
10233         getdtablesize: Move AC_LIBOBJ invocations to module description.
10234         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
10235         invocation from here...
10236         * modules/getdtablesize (configure.ac): ... to here.
10237
10238 2011-05-08  Bruno Haible  <bruno@clisp.org>
10239
10240         getdomainname: Move AC_LIBOBJ invocations to module description.
10241         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
10242         gl_PREREQ_GETDOMAINNAME invocations from here...
10243         * modules/getdomainname (configure.ac): ... to here.
10244
10245 2011-05-08  Bruno Haible  <bruno@clisp.org>
10246
10247         getline: Move AC_LIBOBJ invocations to module description.
10248         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
10249         invocations from here...
10250         * modules/getline (configure.ac): ... to here.
10251
10252 2011-05-08  Bruno Haible  <bruno@clisp.org>
10253
10254         getline: Simplify.
10255         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
10256         It's already handled through the module dependency.
10257
10258 2011-05-08  Bruno Haible  <bruno@clisp.org>
10259
10260         getdelim: Move AC_LIBOBJ invocations to module description.
10261         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
10262         and gl_PREREQ_GETDELIM invocations from here...
10263         * modules/getdelim (configure.ac): ... to here.
10264         (Depends-on): Fix condition.
10265
10266 2011-05-08  Bruno Haible  <bruno@clisp.org>
10267
10268         getcwd: Move AC_LIBOBJ invocations to module description.
10269         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
10270         invocations from here...
10271         * modules/getcwd (configure.ac): ... to here.
10272
10273 2011-05-08  Bruno Haible  <bruno@clisp.org>
10274
10275         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
10276         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
10277         here...
10278         * modules/getcwd-lgpl (configure.ac): ... to here.
10279
10280 2011-05-07  Bruno Haible  <bruno@clisp.org>
10281
10282         crypto/gc: Move AC_LIBOBJ invocations to module description.
10283         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
10284         * modules/crypto/gc (configure.ac): ... to here.
10285
10286 2011-05-07  Bruno Haible  <bruno@clisp.org>
10287
10288         fwriting: Move AC_LIBOBJ invocations to module description.
10289         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
10290         here...
10291         * modules/fwriting (configure.ac): ... to here.
10292
10293 2011-05-07  Bruno Haible  <bruno@clisp.org>
10294
10295         fwritable: Move AC_LIBOBJ invocations to module description.
10296         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
10297         here...
10298         * modules/fwritable (configure.ac): ... to here.
10299
10300 2011-05-07  Bruno Haible  <bruno@clisp.org>
10301
10302         futimens: Move AC_LIBOBJ invocations to module description.
10303         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
10304         here...
10305         * modules/futimens (configure.ac): ... to here.
10306
10307 2011-05-07  Bruno Haible  <bruno@clisp.org>
10308
10309         ftruncate: Move AC_LIBOBJ invocations to module description.
10310         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
10311         gl_PREREQ_FTRUNCATE invocations from here...
10312         * modules/ftruncate (configure.ac): ... to here.
10313
10314 2011-05-07  Bruno Haible  <bruno@clisp.org>
10315
10316         fsync: Move AC_LIBOBJ invocations to module description.
10317         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
10318         invocations from here...
10319         * modules/fsync (configure.ac): ... to here.
10320
10321 2011-05-07  Bruno Haible  <bruno@clisp.org>
10322
10323         fsusage: Move AC_LIBOBJ invocations to module description.
10324         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
10325         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
10326         * modules/fsusage (configure.ac): ... to here.
10327
10328 2011-05-07  Bruno Haible  <bruno@clisp.org>
10329
10330         freopen: Move AC_LIBOBJ invocations to module description.
10331         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
10332         invocations from here...
10333         * modules/freopen (configure.ac): ... to here.
10334
10335 2011-05-07  Bruno Haible  <bruno@clisp.org>
10336
10337         free: Move AC_LIBOBJ invocations to module description.
10338         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
10339         invocations from here...
10340         * modules/free (configure.ac): ... to here.
10341
10342 2011-05-07  Bruno Haible  <bruno@clisp.org>
10343
10344         freadable: Move AC_LIBOBJ invocations to module description.
10345         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
10346         here...
10347         * modules/freadable (configure.ac): ... to here.
10348
10349 2011-05-07  Bruno Haible  <bruno@clisp.org>
10350
10351         fpurge: Move AC_LIBOBJ invocations to module description.
10352         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
10353         invocations from here...
10354         * modules/fpurge (configure.ac): ... to here.
10355
10356 2011-05-07  Bruno Haible  <bruno@clisp.org>
10357
10358         fpending: Move AC_LIBOBJ invocations to module description.
10359         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
10360         gl_FUNC_FPENDING.
10361         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
10362         invocations from here...
10363         * modules/fpending (configure.ac): ... to here.
10364
10365 2011-05-07  Bruno Haible  <bruno@clisp.org>
10366
10367         fopen: Move AC_LIBOBJ invocations to module description.
10368         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
10369         invocations from here...
10370         * modules/fopen (configure.ac): ... to here.
10371
10372 2011-05-07  Bruno Haible  <bruno@clisp.org>
10373
10374         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
10375         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
10376         gl_FUNC_FNMATCH_POSIX.
10377         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
10378         invocations from here...
10379         * modules/fnmatch (configure.ac): ... to here.
10380         * modules/fnmatch-gnu (configure.ac): ... and here.
10381
10382 2011-05-07  Bruno Haible  <bruno@clisp.org>
10383
10384         flock: Move AC_LIBOBJ invocations to module description.
10385         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
10386         invocations from here...
10387         * modules/flock (configure.ac): ... to here.
10388
10389 2011-05-07  Bruno Haible  <bruno@clisp.org>
10390
10391         fileblocks: Move AC_LIBOBJ invocations to module description.
10392         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
10393         gl_PREREQ_FILEBLOCKS invocations from here...
10394         * modules/fileblocks (configure.ac): ... to here.
10395
10396 2011-05-06  Bruno Haible  <bruno@clisp.org>
10397
10398         fflush: Move AC_LIBOBJ invocations to module description.
10399         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
10400         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
10401         invocations from here...
10402         * modules/fflush (configure.ac): ... to here.
10403
10404 2011-05-06  Bruno Haible  <bruno@clisp.org>
10405
10406         fdopendir: Move AC_LIBOBJ invocations to module description.
10407         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
10408         here...
10409         * modules/fdopendir (configure.ac): ... to here.
10410         (Depends-on): Improve conditions.
10411
10412 2011-05-06  Bruno Haible  <bruno@clisp.org>
10413
10414         _Exit: Move AC_LIBOBJ invocations to module description.
10415         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
10416         invocations from here...
10417         * modules/_Exit (configure.ac): ... to here.
10418
10419 2011-05-21  Bruno Haible  <bruno@clisp.org>
10420
10421         euidaccess: Respect rules for use of AC_LIBOBJ.
10422         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
10423         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
10424         from here...
10425         * modules/euidaccess (configure.ac): ... to here.
10426
10427 2011-05-06  Bruno Haible  <bruno@clisp.org>
10428
10429         error: Move AC_LIBOBJ invocations to module description.
10430         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
10431         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
10432         invocations from here...
10433         * modules/error (configure.ac): ... to here.
10434
10435 2011-05-06  Bruno Haible  <bruno@clisp.org>
10436
10437         duplocale: Move AC_LIBOBJ invocations to module description.
10438         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
10439         gl_PREREQ_DUPLOCALE invocations from here...
10440         * modules/duplocale (configure.ac): ... to here.
10441
10442 2011-05-05  Bruno Haible  <bruno@clisp.org>
10443
10444         dirfd: Move AC_LIBOBJ invocations to module description.
10445         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
10446         gl_FUNC_DIRFD.
10447         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
10448         here...
10449         * modules/dirfd (configure.ac): ... to here.
10450         (Depends-on): Fix condition.
10451
10452 2011-05-05  Bruno Haible  <bruno@clisp.org>
10453
10454         chown: Respect rules for use of AC_LIBOBJ.
10455         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
10456         * modules/chown (configure.ac): ... to here.
10457
10458 2011-05-05  Bruno Haible  <bruno@clisp.org>
10459
10460         chdir-long: Move AC_LIBOBJ invocations to module description.
10461         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
10462         gl_PREREQ_CHDIR_LONG invocations from here...
10463         * modules/chdir-long (configure.ac): ... to here.
10464
10465 2011-05-05  Bruno Haible  <bruno@clisp.org>
10466
10467         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
10468         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
10469         from here...
10470         * modules/canonicalize-lgpl (configure.ac): ... to here.
10471
10472 2011-05-05  Bruno Haible  <bruno@clisp.org>
10473
10474         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
10475         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
10476         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
10477         REPLACE_CALLOC.
10478         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
10479         * modules/calloc-gnu (configure.ac): Likewise.
10480
10481 2011-05-05  Bruno Haible  <bruno@clisp.org>
10482
10483         btowc: Move AC_LIBOBJ invocations to module description.
10484         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
10485         invocations from here...
10486         * modules/btowc (configure.ac): ... to here.
10487
10488 2011-05-21  Bruno Haible  <bruno@clisp.org>
10489
10490         atexit: Move AC_LIBOBJ invocations to module description.
10491         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
10492         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
10493         here...
10494         * modules/atexit (configure.ac): ... to here.
10495
10496 2011-05-05  Bruno Haible  <bruno@clisp.org>
10497
10498         atoll: Move AC_LIBOBJ invocations to module description.
10499         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
10500         invocations from here...
10501         * modules/atoll (configure.ac): ... to here.
10502
10503 2011-05-05  Bruno Haible  <bruno@clisp.org>
10504
10505         argz: Move AC_LIBOBJ invocations to module description.
10506         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
10507         * modules/argz (configure.ac): ... to here.
10508
10509 2011-05-05  Bruno Haible  <bruno@clisp.org>
10510
10511         alphasort: Move AC_LIBOBJ invocations to module description.
10512         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
10513         gl_PREREQ_ALPHASORT invocations from here...
10514         * modules/alphasort (configure.ac): ... to here.
10515
10516 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
10517
10518         verify: new macro verify_expr; verify_true deprecated
10519         * NEWS: Mention this.
10520         * doc/verify.texi (Compile-time Assertions): Document this.
10521         * lib/verify.h (verify_true): Deprecate.
10522         (verify_expr): New macro.
10523         * tests/test-verify.c (function): Test verify_expr.
10524
10525 2011-06-14  Jim Meyering  <meyering@redhat.com>
10526
10527         init.sh: give more portable redirection-related advice in a comment
10528         * tests/init.sh (stderr_fileno_): Update the advice in comments.
10529         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
10530         for lots of discussion.  Stefano Lattarini suggested the solution
10531         of putting "9>&2" after the command.  Reported by Bruno Haible.
10532
10533 2011-06-13  Bruno Haible  <bruno@clisp.org>
10534
10535         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
10536         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
10537         'none'.
10538
10539 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
10540
10541         ftoastr: use strtof only if HAVE_STRTOF
10542         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
10543         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
10544         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
10545         * modules/ftoastr (configure.ac): Check for strtof.
10546
10547 2011-06-13  Bruno Haible  <bruno@clisp.org>
10548
10549         gnulib-tool: Addendum to 2011-06-08 commit.
10550         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
10551         and --witness-c-macro have been given, augment AM_CPPFLAGS.
10552
10553 2011-06-13  Bruno Haible  <bruno@clisp.org>
10554
10555         fseeko: Provide a non-inline replacement of fseek().
10556         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
10557         * modules/fseeko (Depends-on): Add fseek.
10558         * modules/fseek (License): Change to LGPLv2+.
10559
10560 2011-06-13  Bruno Haible  <bruno@clisp.org>
10561
10562         ftello: Provide a non-inline replacement of ftell().
10563         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
10564         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
10565         not have ftello() (such as on mingw).
10566         * modules/ftello (Depends-on): Add ftell.
10567         * modules/ftell (License): Change to LGPLv2+.
10568
10569 2011-05-07  Bruno Haible  <bruno@clisp.org>
10570
10571         ftell: Move AC_LIBOBJ invocations to module description.
10572         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
10573         * modules/ftell (configure.ac): ... to here.
10574
10575 2011-05-07  Bruno Haible  <bruno@clisp.org>
10576
10577         ftello: Respect rules for use of AC_LIBOBJ.
10578         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
10579         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
10580         here...
10581         * modules/ftello (configure.ac): ... to here.
10582
10583 2011-05-07  Bruno Haible  <bruno@clisp.org>
10584
10585         fseeko: Simplify.
10586         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
10587         (gl_FUNC_FSEEKO): Inline it here.
10588
10589 2011-05-07  Bruno Haible  <bruno@clisp.org>
10590
10591         fseek: Move AC_LIBOBJ invocations to module description.
10592         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
10593         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
10594         * modules/fseek (configure.ac): ... to here.
10595
10596 2011-05-07  Bruno Haible  <bruno@clisp.org>
10597
10598         fseek: Respect rules for use of AC_LIBOBJ.
10599         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
10600         here...
10601         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
10602
10603 2011-05-07  Bruno Haible  <bruno@clisp.org>
10604
10605         fseeko: Respect rules for use of AC_LIBOBJ.
10606         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
10607         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
10608         here...
10609         * modules/fseeko (configure.ac): ... to here.
10610
10611 2011-06-13  Bruno Haible  <bruno@clisp.org>
10612
10613         gnulib-tool: Allow comments in the 'Depends-on' section.
10614         * doc/gnulib.texi (Module description): Mention comment syntax in the
10615         Depends-on section.
10616         * gnulib-tool (func_get_dependencies): Filter out comment lines.
10617
10618 2011-06-13  Bruno Haible  <bruno@clisp.org>
10619
10620         file-set.h: guard __attibute__ use, now that it's not always defined
10621         * lib/file-set.h (record_file): Use __attribute__ only with compiler
10622         versions that support it.  This fixes a coreutils build failure with
10623         the vendor cc on HP-UX 11.31.
10624
10625 2011-06-12  Bruno Haible  <bruno@clisp.org>
10626
10627         acl: Add support for HP-UX >= 11.11 JFS ACLs.
10628         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
10629         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
10630         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
10631         (acl, aclsort): New declarations.
10632         (aclv_nontrivial): New declaration.
10633         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
10634         (file_has_acl): Read also the second kind of HP-UX ACLs.
10635         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
10636         kind of HP-UX ACLs if the first kind fails.
10637         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
10638         second kind of HP-UX ACLs.
10639         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
10640         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
10641         agree.
10642         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
10643         hpuxjfs.
10644         Handle hpuxjfs.
10645         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
10646         hpuxjfs.
10647         Handle hpuxjfs.
10648         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
10649         (func_test_same_acls): Use both lsacl and getacl.
10650         Handle hpuxjfs.
10651         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
10652         (func_test_same_acls): Use both lsacl and getacl.
10653         Handle hpuxjfs.
10654
10655 2011-06-12  Bruno Haible  <bruno@clisp.org>
10656
10657         acl: Complete the 2010-08-10 fix.
10658         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
10659         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
10660         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
10661         explicitly.
10662         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
10663         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
10664
10665 2011-06-12  Bruno Haible  <bruno@clisp.org>
10666
10667         spawn-pipe tests: Comments.
10668         * tests/test-spawn-pipe-child.c (main): Update comment.
10669         Reported by James Youngman <jay@gnu.org>.
10670
10671 2011-06-11  James Youngman  <jay@gnu.org>
10672
10673         New module 'stat-size'.
10674         * modules/stat-size: New module.  Provides macros for accessing
10675         file size information in instances of struct stat.  Depends on the
10676         fileblocks module because it calls st_blocks.
10677         * lib/stat-size.h: New file, adapted from coreutils' system.h.
10678         * doc/gnulib.texi: Include stat-size.texi.
10679         * doc/stat-size.texi: Documentation for this module.
10680         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
10681         * m4/fileblocks.m4: Mention that stat-size depends on the call to
10682         AC_STRUCT_ST_BLOCKS.
10683
10684 2011-06-09  Bruno Haible  <bruno@clisp.org>
10685
10686         thread: Support pthreads-win32.
10687         * lib/glthread/thread.h (gl_thread_self): Define differently on
10688         pthreads-win32.
10689         (gl_null_thread): New declaration.
10690         (gl_thread_self_pointer): New macro.
10691         * lib/glthread/thread.c (gl_null_thread): New constant.
10692         * tests/test-lock.c: Use gl_thread_self_pointer instead of
10693         gl_thread_self.
10694         * tests/test-tls.c: Likewise.
10695         Suggested by Paul Eggert. Reported by Eric Blake.
10696
10697 2011-06-09  Bruno Haible  <bruno@clisp.org>
10698
10699         thread: Fix confusion between NULL and 0.
10700         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
10701         Reported by Paul Eggert.
10702
10703 2011-06-09  Bruno Haible  <bruno@clisp.org>
10704
10705         spawn-pipe tests: Avoid test failure on HP-UX 11.
10706         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
10707         is closed.
10708
10709 2011-06-09  Bruno Haible  <bruno@clisp.org>
10710
10711         acl tests: Fix compilation error on HP-UX 11.
10712         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
10713
10714 2011-06-09  Bruno Haible  <bruno@clisp.org>
10715
10716         rmdir: Avoid test failure on HP-UX 10.20.
10717         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
10718         EEXIST.
10719
10720 2011-06-08  Eric Blake  <eblake@redhat.com>
10721
10722         perror: fix test on mingw
10723         * modules/perror-tests (Depends-on): Add dup2.
10724
10725         strerror_r-posix: fix on MacOS
10726         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
10727         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
10728         logic bug.
10729         * lib/strerror_r.c (strerror_r): Fix the bug.
10730         * lib/strerror.c (strerror): Likewise.
10731         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
10732         problem.
10733         * doc/posix-functions/strerror.texi (strerror): Likewise.
10734         * doc/posix-functions/perror.texi (perror): Likewise.
10735         * tests/test-strerror.c (main): Enhance test.
10736         * tests/test-strerror_r.c (main): Likewise.
10737
10738 2011-06-08  Bruno Haible  <bruno@clisp.org>
10739
10740         gnulib-tool: Better isolation between different gnulib-tool invocations.
10741         * gnulib-tool: New option --witness-c-macro.
10742         (witness_c_macro): New variable.
10743         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
10744         AM_CPPFLAGS define it as a C macro.
10745         (func_emit_tests_Makefile_am): Likewise.
10746         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
10747         read it from there.
10748         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
10749         m4_define, not AC_DEFUN.
10750         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
10751         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
10752         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
10753         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
10754         s|...|...|, to substitute the values of the GNULIB_* module indicator
10755         variables.
10756         * modules/dirent (Makefile.am): Likewise.
10757         * modules/fcntl-h (Makefile.am): Likewise.
10758         * modules/iconv-h (Makefile.am): Likewise.
10759         * modules/langinfo (Makefile.am): Likewise.
10760         * modules/locale (Makefile.am): Likewise.
10761         * modules/math (Makefile.am): Likewise.
10762         * modules/netdb (Makefile.am): Likewise.
10763         * modules/poll-h (Makefile.am): Likewise.
10764         * modules/pty (Makefile.am): Likewise.
10765         * modules/search (Makefile.am): Likewise.
10766         * modules/signal (Makefile.am): Likewise.
10767         * modules/spawn (Makefile.am): Likewise.
10768         * modules/stdio (Makefile.am): Likewise.
10769         * modules/stdlib (Makefile.am): Likewise.
10770         * modules/string (Makefile.am): Likewise.
10771         * modules/sys_ioctl (Makefile.am): Likewise.
10772         * modules/sys_select (Makefile.am): Likewise.
10773         * modules/sys_socket (Makefile.am): Likewise.
10774         * modules/sys_stat (Makefile.am): Likewise.
10775         * modules/sys_times (Makefile.am): Likewise.
10776         * modules/sys_utsname (Makefile.am): Likewise.
10777         * modules/sys_wait (Makefile.am): Likewise.
10778         * modules/termios (Makefile.am): Likewise.
10779         * modules/time (Makefile.am): Likewise.
10780         * modules/unistd (Makefile.am): Likewise.
10781         * modules/wchar (Makefile.am): Likewise.
10782
10783 2011-06-08  Eric Blake  <eblake@redhat.com>
10784
10785         strerror: simplify replacement
10786         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
10787         * modules/strerror (configure.ac): No prereqs needed here...
10788         * modules/strerror-override (configure.ac): ...but this needs it.
10789         (Files): Add file for needed prereq macro.
10790
10791 2011-06-08  Bruno Haible  <bruno@clisp.org>
10792
10793         strerror_r-posix: Tweaks.
10794         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
10795         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
10796         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
10797         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
10798         (gl_FUNC_STRERROR_R): ... to here.
10799         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
10800
10801 2011-06-07  Eric Blake  <eblake@redhat.com>
10802
10803         perror: document fixed bugs
10804         * doc/posix-functions/perror.texi (perror): Document recent
10805         patches.
10806
10807 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
10808
10809         stat-time: get_stat_birthtime failure is better-defined
10810         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
10811         return a timestamp whose tv_sec and tv_nsec values are both -1.
10812         Previously, the spec said only that the tv_nsec value was negative.
10813         This upward-compatible change simplifies GNU tar a bit.
10814
10815 2011-06-07  Eric Blake  <eblake@redhat.com>
10816
10817         strerror_r-posix: work around cygwin 1.7.9
10818         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
10819         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
10820         bug without replacing strerror_r.
10821         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
10822         strerror_r is buggy, but without requiring strerror_r compilation.
10823         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
10824
10825         test-perror: relax test to ignore cygwin bug
10826         * tests/test-perror2.c (main): Relax test on requiring detection
10827         of stream errors, and use unbuffered stream.
10828         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
10829         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
10830         * doc/posix-functions/fputc.texi (fputc): Likewise.
10831         * doc/posix-functions/fputs.texi (fputs): Likewise.
10832         * doc/posix-functions/fputws.texi (fputws): Likewise.
10833         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
10834         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
10835         * doc/posix-functions/getopt.texi (getopt): Likewise.
10836         * doc/posix-functions/perror.texi (perror): Likewise.
10837         * doc/posix-functions/printf.texi (printf): Likewise.
10838         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
10839         * doc/posix-functions/psignal.texi (psignal): Likewise.
10840         * doc/posix-functions/putc.texi (putc): Likewise.
10841         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
10842         Likewise.
10843         * doc/posix-functions/putchar.texi (putchar): Likewise.
10844         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
10845         Likewise.
10846         * doc/posix-functions/puts.texi (puts): Likewise.
10847         * doc/posix-functions/putwc.texi (putwc): Likewise.
10848         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
10849         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
10850         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10851         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
10852         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10853         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
10854         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
10855         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
10856
10857 2011-05-22  Bruno Haible  <bruno@clisp.org>
10858
10859         strerror: Move AC_LIBOBJ invocations to module description.
10860         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
10861         gl_PREREQ_STRERROR invocations from here...
10862         * modules/strerror (configure.ac): ... to here.
10863
10864 2011-05-21  Bruno Haible  <bruno@clisp.org>
10865
10866         perror: Use common idiom.
10867         * modules/perror (configure.ac): Reorder statements.
10868
10869 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
10870
10871         tests: fix usage message in 'mktempd_'
10872         * tests/init.sh (mktempd_): In the usage message, use literal
10873         'mktempd_', not '$ME' (which is even undefined), as the name of
10874         the subroutine.
10875
10876 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
10877
10878         tests init: new function 'fatal_', for hard errors
10879         Before this patch, the only way offered by tests/init.sh to
10880         properly signal a hard error was the `framework_failure_'
10881         function.  But the error message issued by that function,
10882         as its name would suggest, refers to a set-up failure in the
10883         testsuite, while hard errors can obviously also be due to
10884         other reasons.  The best way to fix this inconsistency is to
10885         introduce a new function with a more general error message.
10886         * tests/init.sh (fatal_): New function.
10887
10888 2011-06-06  Eric Blake  <eblake@redhat.com>
10889
10890         canonicalize-lgpl: use common idiom
10891         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
10892         over newer POSIX -Rf.
10893         Reported by Bruno Haible.
10894
10895         canonicalize-lgpl: work around AIX realpath bug
10896         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
10897         * doc/posix-functions/realpath.texi (realpath): Document it.
10898         Reported by Bruno Haible.
10899
10900         strerror: work around FreeBSD bug
10901         * lib/strerror.c (strerror): Special case 0.
10902         Reported by Bruno Haible.
10903
10904         strerror-override: avoid bloating errno module
10905         * modules/errno (Files, configure.ac): Move replacement strings...
10906         * modules/strerror-override: ...to new module.
10907         * modules/strerror (Depends-on): Add strerror-override.
10908         * modules/strerror_r-posix (Depends-on): Likewise.
10909         * MODULES.html.sh: Document new module.
10910         Reported by Bruno Haible.
10911
10912 2011-06-06  Bruno Haible  <bruno@clisp.org>
10913
10914         spawn-pipe tests: Rename program.
10915         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
10916         * tests/test-spawn-pipe-child.c: Update comment.
10917         * tests/test-spawn-pipe.sh: Update.
10918         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
10919
10920         spawn-pipe tests: Link the child program only against libc.
10921         * tests/test-spawn-pipe-child.c: New file, extracted from
10922         tests/test-spawn-pipe.c.
10923         (main): Expect only one argument.
10924         (is_open): New function, copied from tests/test-pipe.c.
10925         * tests/test-spawn-pipe.c: Don't include <errno.h>.
10926         (child_main): Remove function.
10927         (test_pipe): Pass only one argument to the child program.
10928         (main): Remove child process code. Expect the child program's name as
10929         first argument.
10930         * tests/test-spawn-pipe.sh: Pass the child program's name as first
10931         argument.
10932         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
10933         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
10934         test-spawn-pipe-child against no libraries.
10935
10936 2011-06-06  Bruno Haible  <bruno@clisp.org>
10937
10938         careadlinkat: Avoid mismatch between ssize_t and int.
10939         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
10940         * lib/careadlinkat.c (careadlinkatcwd): Define always.
10941
10942 2011-06-06  Jim Meyering  <meyering@redhat.com>
10943
10944         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
10945         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
10946         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
10947
10948 2011-06-05  Bruno Haible  <bruno@clisp.org>
10949
10950         ansi-c++-opt: Interoperability with libtool.
10951         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
10952         set the variable to "no", not to ":".
10953         * NEWS: Mention the change.
10954
10955 2011-06-05  Bruno Haible  <bruno@clisp.org>
10956
10957         acl: Fix test failure on AIX 7.
10958         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
10959         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
10960
10961 2011-06-05  Bruno Haible  <bruno@clisp.org>
10962
10963         pipe-filter-ii: Fix test failure on AIX and IRIX.
10964         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
10965         with EAGAIN, retry with a smaller buffer size.
10966
10967 2011-06-05  Bruno Haible  <bruno@clisp.org>
10968
10969         localename: Fix link dependencies.
10970         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
10971         * modules/localename-tests (Makefile.am): Link test-localename with
10972         $(LIBTHREAD).
10973
10974 2011-06-05  Bruno Haible  <bruno@clisp.org>
10975
10976         error: Avoid gcc warning.
10977         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
10978
10979 2011-06-05  Bruno Haible  <bruno@clisp.org>
10980
10981         unsetenv: Avoid gcc warning.
10982         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
10983
10984 2011-06-05  Bruno Haible  <bruno@clisp.org>
10985
10986         setenv: Avoid gcc warning.
10987         * lib/setenv.c (setenv): Provide declaration if system lacks it.
10988
10989 2011-06-05  Bruno Haible  <bruno@clisp.org>
10990
10991         sys_select: Ensure memset is declared also on AIX 7.
10992         * lib/sys_select.in.h: Include <string.h> also on AIX.
10993         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
10994         self-contained also on AIX 7.1.
10995
10996 2011-06-04  Jim Meyering  <meyering@redhat.com>
10997
10998         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
10999         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
11000         function name, "error".
11001         (_gl_translatable_diag_func_re): New configurable variable.
11002
11003 2011-06-04  Bruno Haible  <bruno@clisp.org>
11004
11005         getopt: Avoid gcc warning.
11006         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
11007
11008 2011-06-04  Bruno Haible  <bruno@clisp.org>
11009
11010         strerror_r: Fix comments.
11011         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
11012         commit.
11013
11014 2011-06-04  Bruno Haible  <bruno@clisp.org>
11015
11016         perror: Fix compilation error.
11017         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
11018         Undefine fprintf, not sprintf.
11019         * modules/perror (Depends-on): Remove intprops, verify.
11020
11021 2011-06-04  Bruno Haible  <bruno@clisp.org>
11022
11023         setlocale: Enable replacement on Cygwin 1.5.
11024         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
11025         Cygwin 1.5.x.
11026         * doc/posix-functions/setlocale.texi: Mention that the problem with the
11027         LC_CTYPE category also exists on Cygwin 1.5.x.
11028
11029 2011-06-04  Bruno Haible  <bruno@clisp.org>
11030
11031         strerror-override: Don't disable symbol renamings.
11032         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
11033         * lib/strerror-override.c: Include config.h.
11034         (strerror_override): Don't undefine.
11035
11036 2011-06-03  Bruno Haible  <bruno@clisp.org>
11037
11038         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
11039         * lib/localename.h: Update copyright header.
11040         * lib/localename.c: Likewise.
11041         * lib/relocatable.h: Likewise.
11042         * lib/relocatable.c: Likewise.
11043
11044 2011-06-02  Bruno Haible  <bruno@clisp.org>
11045
11046         doc: Fix a module name.
11047         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
11048
11049 2011-06-02  Bruno Haible  <bruno@clisp.org>
11050
11051         pipe2: Remove dependency on 'nonblocking' module.
11052         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
11053         O_NONBLOCK is defined by gnulib.
11054         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
11055         is zero.
11056         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
11057         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
11058         defined by gnulib.
11059         (get_nonblocking_flag): New function.
11060         (main): Test O_NONBLOCK flag only if it is nonzero.
11061         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
11062
11063 2011-06-03  Jim Meyering  <meyering@redhat.com>
11064
11065         maint: three new prohibit-header-without-use rules
11066         Prohibit use of cloexec.h, posixver.h, same.h without use.
11067         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
11068         (sc_prohibit_posixver_without_use): Likewise.
11069         (sc_prohibit_same_without_use): Likewise.
11070
11071 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
11072
11073         allocator: 'die' routine is now given requested size
11074         * lib/allocator.h (struct allocator.die): New size arg.
11075         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
11076         If the actual problem is an ssize_t limitation, not a size_t or
11077         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
11078
11079 2011-06-01  Eric Blake  <eblake@redhat.com>
11080
11081         strerror: drop strerror_r dependency
11082         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
11083         * lib/strerror-override.c (strerror_override): ...to new file.
11084         * lib/strerror-override.h: Add prototype.
11085         * lib/strerror-impl.h: Delete.
11086         * lib/strerror.c (strerror): New implementation.
11087         * modules/errno (Files): Add new files.
11088         (configure.ac): Compile new file as appropriate.
11089         * modules/strerror (Files): Drop unused file.
11090         (Depends-on): Drop strerror_r-posix.
11091         * MODULES.html.sh: Document strerror_r-posix.
11092         Requested by Sam Steingold.
11093
11094         perror: call strerror_r directly
11095         * modules/perror (Files): Drop strerror-impl.h.
11096         * lib/perror.c (perror): Use our own stack buffer, rather than
11097         calling a wrapper that uses static storage.
11098         * doc/posix-functions/perror.texi (perror): Document a limitation
11099         of our replacement.
11100
11101         strerror_r: fix includes for FreeBSD
11102         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
11103         since we use abort on some platforms.
11104         Reported by Matthias Bolte.
11105
11106 2011-05-31  Bruno Haible  <bruno@clisp.org>
11107
11108         Fix link errors in tests: openat-die uses gettext-h.
11109         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
11110         against $(LIBINTL).
11111         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
11112         against $(LIBINTL).
11113         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
11114         $(LIBINTL).
11115         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
11116         against $(LIBINTL).
11117         * modules/linkat-tests (Makefile.am): Link test-linkat against
11118         $(LIBINTL).
11119         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
11120         $(LIBINTL).
11121         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
11122         against $(LIBINTL).
11123         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
11124         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
11125         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
11126         $(LIBINTL).
11127         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
11128         $(LIBINTL).
11129         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
11130         $(LIBINTL).
11131         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11132
11133 2011-05-31  Bruno Haible  <bruno@clisp.org>
11134
11135         Fix link errors in tests: wait-process uses gettext-h.
11136         * modules/nonblocking-pipe-tests (Makefile.am): Set
11137         test_nonblocking_pipe_main_LDADD.
11138         * modules/nonblocking-socket-tests (Makefile.am): Link
11139         test-nonblocking-socket-main against $(LIBINTL).
11140         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11141
11142 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
11143
11144         assert-h: work around 'verify' incompatibility
11145         * lib/verify.h: Use @...@ directives, not ifdef.
11146         * modules/assert-h (assert.h): Implement the directives.
11147         (assert.h): Substitute the symbol-prefix more consistently.
11148
11149 2011-05-29  Jim Meyering  <meyering@redhat.com>
11150
11151         trim: remove three superfluous assignments
11152         * lib/trim.c (trim2): Remove three superfluous assignments
11153         and correct brace positioning.
11154
11155 2011-05-29  Bruno Haible  <bruno@clisp.org>
11156
11157         wctype-h: Avoid namespace pollution on Solaris 2.6.
11158         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
11159         identifiers.
11160         * doc/posix-headers/wctype.texi: Mention the problem.
11161         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11162
11163 2011-05-28  Jim Meyering  <meyering@redhat.com>
11164
11165         parse-datetime.y: accommodate -Wstrict-overflow
11166         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
11167         placate -Wstrict-overflow.
11168
11169         trim: avoid a warning from -O2 -Wstrict-overflow
11170         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
11171
11172 2011-05-29  Bruno Haible  <bruno@clisp.org>
11173
11174         gnulib-tool: Fix bug in yesterday's commit.
11175         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
11176         twice.
11177
11178 2011-05-29  Bruno Haible  <bruno@clisp.org>
11179
11180         Allow multiple gnulib generated include files to be combined.
11181         * gnulib-tool (func_compute_include_guard_prefix): New function.
11182         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
11183         ${gl_include_guard_prefix} references.
11184         (func_import, func_create_testdir): Invoke
11185         func_compute_include_guard_prefix.
11186         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
11187         * lib/ctype.in.h: Likewise.
11188         * lib/dirent.in.h: Likewise.
11189         * lib/errno.in.h: Likewise.
11190         * lib/fcntl.in.h: Likewise.
11191         * lib/float.in.h: Likewise.
11192         * lib/getopt.in.h: Likewise.
11193         * lib/iconv.in.h: Likewise.
11194         * lib/langinfo.in.h: Likewise.
11195         * lib/locale.in.h: Likewise.
11196         * lib/math.in.h: Likewise.
11197         * lib/netdb.in.h: Likewise.
11198         * lib/netinet_in.in.h: Likewise.
11199         * lib/poll.in.h: Likewise.
11200         * lib/pthread.in.h: Likewise.
11201         * lib/pty.in.h: Likewise.
11202         * lib/sched.in.h: Likewise.
11203         * lib/se-selinux.in.h: Likewise.
11204         * lib/search.in.h: Likewise.
11205         * lib/signal.in.h: Likewise.
11206         * lib/spawn.in.h: Likewise.
11207         * lib/stdarg.in.h: Likewise.
11208         * lib/stddef.in.h: Likewise.
11209         * lib/stdint.in.h: Likewise.
11210         * lib/stdio.in.h: Likewise.
11211         * lib/stdlib.in.h: Likewise.
11212         * lib/string.in.h: Likewise.
11213         * lib/strings.in.h: Likewise.
11214         * lib/sys_file.in.h: Likewise.
11215         * lib/sys_ioctl.in.h: Likewise.
11216         * lib/sys_select.in.h: Likewise.
11217         * lib/sys_socket.in.h: Likewise.
11218         * lib/sys_stat.in.h: Likewise.
11219         * lib/sys_time.in.h: Likewise.
11220         * lib/sys_times.in.h: Likewise.
11221         * lib/sys_uio.in.h: Likewise.
11222         * lib/sys_utsname.in.h: Likewise.
11223         * lib/sys_wait.in.h: Likewise.
11224         * lib/sysexits.in.h: Likewise.
11225         * lib/termios.in.h: Likewise.
11226         * lib/time.in.h: Likewise.
11227         * lib/unistd.in.h: Likewise.
11228         * lib/wchar.in.h: Likewise.
11229         * lib/wctype.in.h: Likewise.
11230         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
11231         * modules/ctype (Makefile.am): Likewise.
11232         * modules/dirent (Makefile.am): Likewise.
11233         * modules/errno (Makefile.am): Likewise.
11234         * modules/fcntl-h (Makefile.am): Likewise.
11235         * modules/float (Makefile.am): Likewise.
11236         * modules/getopt-posix (Makefile.am): Likewise.
11237         * modules/iconv-h (Makefile.am): Likewise.
11238         * modules/langinfo (Makefile.am): Likewise.
11239         * modules/locale (Makefile.am): Likewise.
11240         * modules/math (Makefile.am): Likewise.
11241         * modules/netdb (Makefile.am): Likewise.
11242         * modules/netinet_in (Makefile.am): Likewise.
11243         * modules/poll-h (Makefile.am): Likewise.
11244         * modules/pthread (Makefile.am): Likewise.
11245         * modules/pty (Makefile.am): Likewise.
11246         * modules/sched (Makefile.am): Likewise.
11247         * modules/search (Makefile.am): Likewise.
11248         * modules/selinux-h (Makefile.am): Likewise.
11249         * modules/signal (Makefile.am): Likewise.
11250         * modules/spawn (Makefile.am): Likewise.
11251         * modules/stdarg (Makefile.am): Likewise.
11252         * modules/stddef (Makefile.am): Likewise.
11253         * modules/stdint (Makefile.am): Likewise.
11254         * modules/stdio (Makefile.am): Likewise.
11255         * modules/stdlib (Makefile.am): Likewise.
11256         * modules/string (Makefile.am): Likewise.
11257         * modules/strings (Makefile.am): Likewise.
11258         * modules/sys_file (Makefile.am): Likewise.
11259         * modules/sys_ioctl (Makefile.am): Likewise.
11260         * modules/sys_select (Makefile.am): Likewise.
11261         * modules/sys_socket (Makefile.am): Likewise.
11262         * modules/sys_stat (Makefile.am): Likewise.
11263         * modules/sys_time (Makefile.am): Likewise.
11264         * modules/sys_times (Makefile.am): Likewise.
11265         * modules/sys_uio (Makefile.am): Likewise.
11266         * modules/sys_utsname (Makefile.am): Likewise.
11267         * modules/sys_wait (Makefile.am): Likewise.
11268         * modules/sysexits (Makefile.am): Likewise.
11269         * modules/termios (Makefile.am): Likewise.
11270         * modules/time (Makefile.am): Likewise.
11271         * modules/unistd (Makefile.am): Likewise.
11272         * modules/wchar (Makefile.am): Likewise.
11273         * modules/wctype-h (Makefile.am): Likewise.
11274         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
11275
11276 2011-05-29  Bruno Haible  <bruno@clisp.org>
11277
11278         assert-h: Allow multiple gnulib generated replacements to coexist.
11279         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
11280
11281 2011-05-29  Bruno Haible  <bruno@clisp.org>
11282
11283         argp: Allow coexistence with strerror_r-posix module.
11284         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
11285         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
11286         by gnulib's <string.h> replacement), assume it has the POSIX signature,
11287         not the glibc signature.
11288
11289 2011-05-28  Bruno Haible  <bruno@clisp.org>
11290
11291         gnulib-tool: Alternative structure of testdirs, similar to --import.
11292         * gnulib-tool: New option --single-configure.
11293         (func_usage): Document it.
11294         (single_configure): New variable.
11295         (func_modules_transitive_closure_separately,
11296         func_modules_transitive_closure_separately,
11297         func_determine_use_libtests, func_modules_add_dummy_separately,
11298         func_modules_to_filelist_separately): New functions, extracted from
11299         func_import.
11300         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
11301         (func_import): Use the new functions.
11302         (func_create_testdir): Set final_modules. Handle $single_configure =
11303         true case.
11304
11305 2011-05-28  Bruno Haible  <bruno@clisp.org>
11306
11307         getloadavg: Remove an unreliable safety check.
11308         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
11309         getloadavg.c is in place.
11310         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
11311         Reported by Sam Steingold <sds@gnu.org>.
11312
11313 2011-05-28  Bruno Haible  <bruno@clisp.org>
11314
11315         doc: Cleanup yet another file produced by texinfo.tex.
11316         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
11317
11318 2011-05-28  Bruno Haible  <bruno@clisp.org>
11319
11320         Finish the conditional dependencies mechanism.
11321         * gnulib-tool: New option --no-conditional-dependencies.
11322         (func_usage): Document it. Don't mark --conditional-dependencies as
11323         experimental.
11324         (cond_dependencies): The possible values can now be true, false, empty.
11325         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
11326         (func_import): Store setting in gnulib-cache.m4 and read it from there.
11327         * doc/gnulib-tool.texi (Conditional dependencies): New section.
11328
11329 2011-05-28  Bruno Haible  <bruno@clisp.org>
11330
11331         doc: Use a recent texinfo.tex.
11332         * doc/Makefile (tex_opts): New variable.
11333         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
11334
11335 2011-05-28  Jim Meyering  <meyering@redhat.com>
11336
11337         intprops.h: adjust comment to match code change
11338         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
11339         only once, it *may* have side effects.  Also fix an unrelated typo.
11340         (_GL_INT_SIGNED): Likewise.
11341
11342 2011-05-26  Simon Josefsson  <simon@josefsson.org>
11343
11344         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
11345
11346 2011-05-26  Bruno Haible  <bruno@clisp.org>
11347
11348         mbsrchr: Avoid collision with system function on Interix.
11349         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
11350         Reported by Markus Duft <mduft@gentoo.org>.
11351
11352 2011-05-15  James Youngman  <jay@gnu.org>
11353
11354         getopt: for ambiguous options, enumerate the possibilities.
11355         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
11356         the ambiguous options when an ambiguous prefix is given. This was
11357         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
11358         glibc change was
11359         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
11360
11361 2011-05-25  Eric Blake  <eblake@redhat.com>
11362
11363         getcwd: work around mingw bug
11364         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
11365         * doc/posix-functions/getcwd.texi (getcwd): Document it.
11366         Reported by Matthias Bolte.
11367
11368 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
11369
11370         test-intprops: disable -Wtype-limits diagnostics
11371         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
11372         diagnostics.  Otherwise, the integer overflow macros generate many
11373         diagnostics.  Reported by Jim Meyering in
11374         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
11375
11376         intprops: shorten, to pacify gcc -Woverlength-strings
11377         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
11378         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
11379         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
11380         likely to run afoul of C compiler limits for string constant lengths.
11381         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
11382
11383 2011-05-24  Eric Blake  <eblake@redhat.com>
11384
11385         docs: document recently fixed glibc printf bug
11386         * doc/posix-functions/fprintf.texi (fprintf): Document it.
11387         * doc/posix-functions/printf.texi (printf): Likewise.
11388         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
11389         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
11390
11391         closein-tests: convert to init.sh
11392         * modules/closein-tests (Files): Add init.sh
11393         * tests/test-closein.sh Use it.
11394
11395         yesno-tests: convert to init.sh
11396         * modules/yesno-tests (Files): Add init.sh.
11397         * tests/test-yesno.sh: Use it.
11398
11399         atexit-tests: ensure reliable exit status
11400         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
11401         Reported by Bruno Haible.
11402
11403 2011-05-24  Bruno Haible  <bruno@clisp.org>
11404
11405         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
11406         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
11407         gl_PREREQ_STRERROR_R invocations from here...
11408         * modules/strerror_r-posix (configure.ac): ... to here.
11409
11410 2011-05-24  Eric Blake  <eblake@redhat.com>
11411
11412         strerror_r: fix missing header
11413         * lib/strerror_r.c: Avoid compiler warning about snprintf.
11414
11415         strerror_r: fix AIX test failures
11416         * lib/strerror_r.c (strerror_r): Convert silent truncation to
11417         ERANGE failure.
11418
11419         strerror_r: fix Solaris test failures
11420         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
11421         failures.
11422         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
11423
11424         strerror_r: enforce POSIX recommendations
11425         * lib/strerror_r.c (safe_copy): New helper method.
11426         (strerror_r): Guarantee a non-empty string.
11427         * tests/test-strerror_r.c (main): Enhance tests to incorporate
11428         recent POSIX rulings and to match our strerror guarantees.
11429         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
11430
11431 2011-05-24  Jim Meyering  <meyering@redhat.com>
11432
11433         test-perror2.c: avoid warning about unused variable
11434         * tests/test-perror2.c (main): Remove declaration of unused "fp".
11435
11436 2011-05-24  Eric Blake  <eblake@redhat.com>
11437
11438         perror: avoid spurious test failure on HP-UX
11439         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
11440
11441         tests: fix logic bug in init.sh
11442         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
11443         shell.
11444
11445 2011-05-24  Jim Meyering  <meyering@redhat.com>
11446
11447         utimensat: do not reference an out-of-scope buffer
11448         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
11449         declared in an inner scope, yet "times" would be dereferenced outside
11450         the scope in which "ts" was valid.
11451         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
11452         of ts[2] "out/up", so that the use of aliased "times" (via
11453         "times = ts;") does not end up referencing an out-of-scope "ts"
11454
11455         opendir-safer.c: don't clobber errno; don't close negative FD
11456         * lib/opendir-safer.c (opendir_safer):
11457         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
11458         file descriptor, and more importantly, don't clobber the
11459         offending errno value with EINVAL.  Before, upon failure
11460         of dup_safer, we would pass the negative file descriptor to
11461         fdopendir, which would clobber errno.
11462
11463 2011-05-23  Bruno Haible  <bruno@clisp.org>
11464
11465         idcache: Fix module description.
11466         * modules/idcache (Include): Set to "idcache.h".
11467
11468 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
11469
11470         gnulib-tool: fix portability problem with MacOS sed
11471         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
11472         before the "}".  Problem reported by Leo in
11473         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
11474         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
11475         sed_extract_condition1, sed_extract_condition2.
11476
11477 2011-05-23  Bruno Haible  <bruno@clisp.org>
11478
11479         hash: Simplify autoconf macro.
11480         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
11481
11482 2011-05-23  Bruno Haible  <bruno@clisp.org>
11483
11484         getugroups: Fix module description.
11485         * modules/getugroups (Include): Set to "getugroups.h".
11486
11487 2011-05-23  Bruno Haible  <bruno@clisp.org>
11488
11489         linkat: Simplify autoconf macro.
11490         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
11491
11492 2011-05-23  Bruno Haible  <bruno@clisp.org>
11493             Eric Blake  <eblake@redhat.com>
11494
11495         linkat, renameat: Update dependencies.
11496         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
11497         * modules/linkat (Depends-on): Likewise. Remove also readlink,
11498         symlinkat.
11499
11500 2011-05-23  Jim Meyering  <meyering@redhat.com>
11501
11502         maint.mk: more tight_scope improvements
11503         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
11504         (_gl_TS_headers): Define only in if-0'd block.
11505         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
11506         sometimes we must *not* use it.  Adjust uses accordingly.
11507         (sc_tight_scope): Use much simpler grep-based test to determine
11508         whether we skip this rule.
11509
11510         maint.mk: generalize/improve the tight-scope rule
11511         * top/maint.mk: Emit a warning when the test is skipped.
11512         (_gl_TS_dir): Add $(srcdir)/ prefix.
11513         (_gl_TS_function_match): Simplify, rather than trying
11514         to enumerate common types.  Otherwise, it would fail to match an
11515         "extern unsigned char const *" declaration in idutils.
11516         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
11517         a way to support use of that type of macro.
11518         (_gl_TS_var_match): Simplify regexp.
11519         (_gl_TS_obj_files): New configurable variable.
11520         (_gl_TS_headers): Likewise.
11521
11522 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
11523
11524         verify: fix bug when gnulib <assert.h> is also included
11525         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
11526         is defined, not if _GL_STATIC_ASSERT_H is not defined.
11527         Perhaps there's a better way, but this fixes the immediate problem.
11528         Problem reported by Bruno Haible in
11529         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
11530
11531 2011-05-22  Bruno Haible  <bruno@clisp.org>
11532
11533         xgetcwd: Simplify autoconf macro.
11534         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
11535
11536 2011-05-22  Bruno Haible  <bruno@clisp.org>
11537
11538         New module 'mktime-internal'.
11539         * modules/mktime-internal: New file.
11540         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
11541         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
11542         mktime_internal as a C macro if libc has __mktime_internal.
11543         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
11544         conditions.
11545         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
11546
11547 2011-05-22  Bruno Haible  <bruno@clisp.org>
11548
11549         timegm: Correct mktime replacement statements.
11550         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
11551         defining mktime as a C macro. This completes a 2009-07-28 commit.
11552
11553 2011-05-22  Bruno Haible  <bruno@clisp.org>
11554
11555         timegm: Simplify autoconf macro.
11556         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
11557
11558 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
11559
11560         clock-time: change to LGPLv2+.
11561         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
11562         BSD-like but we have no mark for that; this is good enough for now.
11563
11564 2011-05-21  Bruno Haible  <bruno@clisp.org>
11565
11566         strerror_r: Fix comments.
11567         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
11568
11569 2011-05-21  Bruno Haible  <bruno@clisp.org>
11570
11571         relocatable-prog-wrapper: Fix possible link error.
11572         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
11573         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
11574         (gl_FUNC_SETENV): ... to here.
11575         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
11576         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
11577
11578 2011-05-21  Bruno Haible  <bruno@clisp.org>
11579
11580         relocatable-prog-wrapper: Assume strerror() exists.
11581         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
11582         m4/strerror.m4.
11583         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
11584         * lib/relocwrapper.c: Remove mention of strerror module.
11585         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
11586         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
11587         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
11588         C macro.
11589
11590 2011-05-21  Bruno Haible  <bruno@clisp.org>
11591
11592         select: Simplify replacement idiom.
11593         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
11594         Win32 platforms.
11595         * lib/sys_select.in.h (select): Simplify accordingly.
11596         * modules/select (Depends-on): Likewise.
11597
11598 2011-05-21  Bruno Haible  <bruno@clisp.org>
11599
11600         mkdir-p: Simplify autoconf macro.
11601         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
11602         gl_FUNC_LCHOWN.
11603
11604 2011-05-21  Eric Blake  <eblake@redhat.com>
11605
11606         strerror_r: avoid clobbering strerror on cygwin
11607         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
11608         fall back instead to sys_errlist.
11609         * modules/strerror (configure.ac): Add witness.
11610         * tests/test-strerror_r.c (main): Enhance test.
11611         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11612         * tests/test-perror2.c (main): Free memory before exit.
11613
11614 2011-05-21  Bruno Haible  <bruno@clisp.org>
11615
11616         mkdtemp: Use gnulib naming conventions.
11617         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
11618         * modules/mkdtemp (configure.ac): Update.
11619
11620 2011-05-20  Eric Blake  <eblake@redhat.com>
11621
11622         strerror_r: avoid corrupting errno on Solaris
11623         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
11624         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11625
11626         strerror_r: avoid compiler warning
11627         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
11628
11629         strerror_r: simplify AIX code
11630         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
11631
11632         test-perror: avoid spurious failure on FreeBSD
11633         * modules/perror-tests (Depends-on): Add strerror, now that
11634         strerror_r no longer pulls it in.
11635
11636 2011-05-20  Bruno Haible  <bruno@clisp.org>
11637
11638         strerror_r-posix: Remove unused dependencies.
11639         * modules/strerror_r-posix (Depends-on): Remove strerror.
11640         Reported by Eric Blake.
11641
11642 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
11643
11644         intprops: remove assumption about A|B representation
11645         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
11646         is a valid integer if both A and B are.  Although this is true for
11647         all known practical hosts, the C standard doesn't guarantee it,
11648         and the code need not assume it.  Also, this change may work around
11649         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
11650         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
11651
11652 2011-05-20  Eric Blake  <eblake@redhat.com>
11653
11654         perror: work around FreeBSD bug
11655         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
11656         is broken.  Move AC_LIBOBJ...
11657         * modules/perror (configure.ac): Here.
11658         * doc/posix-functions/perror.texi (perror): Document this.
11659         * tests/test-perror2.c (main): Enhance test.
11660
11661         test-perror: check for strerror interactions
11662         * tests/macros.h (STREQ): Add macro.
11663         * modules/perror-tests (Files): Add second test.
11664         * tests/test-perror2.c (main): New file.
11665         * doc/posix-functions/perror.texi (perror): Document glibc bug.
11666
11667         test-perror: rewrite to use init script
11668         * modules/perror-tests (Files): Add init.sh.
11669         * tests/test-perror.sh: Use temporary directory.
11670
11671 2011-05-20  Jim Meyering  <meyering@redhat.com>
11672
11673         maint: replace misused "a" with "an"
11674         * doc/intprops.texi: "a integer"
11675         * doc/regex.texi: "a explanation"
11676         * lib/alignof.h: "a object"
11677         * lib/argmatch.h: "a explanation"
11678         * lib/argp-help.c: "a option" and "a OPTION_DOC"
11679         * lib/stdint.in.h: "a integer"
11680         * lib/userspec.c: "a owner"
11681         * doc/gnulib.texi: Fix "a idea", and reword.
11682
11683 2011-05-19  Jim Meyering  <meyering@redhat.com>
11684
11685         maint: correct misuse of "a" and "an"
11686         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
11687         * lib/argp-help.c: "an docum...": s/an/a/
11688         * lib/argp-parse.c: "An vector": s/An/A/
11689         * lib/execute.c: "an native": s/an/a/
11690         * lib/spawn-pipe.c: Likewise.
11691         * lib/gc.h: "an Gc_rc": s/an/a/
11692         * lib/unigbrk.in.h: "an grapheme": s/an/a/
11693         * lib/fts.c: "an stat.st_dev": s/an/a/
11694
11695 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11696
11697         intprops-tests: work around HP-UX 11.23 cc bug with constants
11698         * tests/test-intprops.c (VERIFY): New macro.
11699         (main): Use it, instead of verify, to work around the compiler bug; see
11700         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11701
11702         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
11703         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
11704         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
11705         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
11706         (_GL_REMAINDER_OVERFLOW): Use it.
11707
11708         intprops-tests: revert unsigned part of previous change
11709         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
11710         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
11711         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
11712         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
11713
11714 2011-05-19  Bruno Haible  <bruno@clisp.org>
11715
11716         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
11717         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
11718         strerror_r() returned without filling the buffer.
11719         Reported by Eric Blake.
11720
11721 2011-05-19  Eric Blake  <eblake@redhat.com>
11722
11723         strerror_r: guarantee unchanged errno
11724         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
11725         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
11726         failure.
11727         * tests/test-strerror_r.c (main): Enhance test.
11728
11729 2011-05-19  Bruno Haible  <bruno@clisp.org>
11730
11731         strerror_r: Reorder #if blocks.
11732         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
11733         for consistency with the previous commit.
11734
11735 2011-05-19  Bruno Haible  <bruno@clisp.org>
11736
11737         perror: Avoid clobbering the strerror buffer when possible.
11738         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
11739         * lib/strerror.c: Include it.
11740         * modules/strerror (Files): Add lib/strerror-impl.h.
11741         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
11742         (my_strerror): New function, defined through lib/strerror-impl.h.
11743         (perror): Use it instead of strerror.
11744         * modules/perror (Files): Add lib/strerror-impl.h.
11745         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
11746
11747 2011-05-19  Eric Blake  <eblake@redhat.com>
11748
11749         strerror_r: fix on newer cygwin
11750         * lib/strerror_r.c (strerror_r): Cygwin now has
11751         __xpg_strerror_r, use it.
11752
11753 2011-05-19  Bruno Haible  <bruno@clisp.org>
11754
11755         strerror_r: Avoid clobbering the strerror buffer when possible.
11756         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
11757         (sys_nerr, sys_errlist): New declarations.
11758         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
11759         HP-UX, native Win32, IRIX, and 32-bit Solaris.
11760         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
11761
11762 2011-05-19  Bruno Haible  <bruno@clisp.org>
11763
11764         strerror_r: Fix test failure on mingw.
11765         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
11766         EXTEND_STRERROR_R.
11767         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
11768         macros from errno.in.h instead.
11769
11770 2011-05-19  Eric Blake  <eblake@redhat.com>
11771
11772         strerror: relax test for Solaris
11773         * tests/test-strerror.c (main): Permit Solaris behavior.
11774         * tests/test-strerror_r.c (main): Likewise.
11775
11776         strerror: enforce POSIX ruling on strerror(0)
11777         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
11778         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
11779         * lib/strerror_r.c (rpl_strerror_r): Work around it.
11780         * doc/posix-functions/strerror.texi (strerror): Document it.
11781         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
11782         * tests/test-strerror.c (main): Strengthen test.
11783         * tests/test-strerror_r.c (main): Likewise.
11784
11785 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
11786
11787         intprop-tests: port to older and more-pedantic compilers
11788         * modules/intprops-tests (Files): Add tests/macros.h.
11789         * tests/test-intprops.c: Include macros.h.
11790         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
11791         it's no longer documented to expand to an integer constant expression.
11792         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
11793         argument is floating point, as it's no longer documented to expand
11794         to an integer constant expression in that case.
11795         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
11796         compiler bugs reported by Bruno Haible.  See
11797         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11798         (U0, U1): New constants, to work around the same bugs.  Also,
11799         in tests, use e.g., "(unsigned int) 39" rather than "39u".
11800
11801         intprops: work around C compiler bugs
11802         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
11803         bug in Sun C 5.11 2010/08/13 and other compilers; see
11804         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
11805
11806         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
11807         * doc/intprops.texi (Integer Type Determination): Fix
11808         documentation for TYPE_IS_INTEGER: it returns an constant
11809         expression, not an integer constant expression.  Fix doc for
11810         TYPE_SIGNED: it returns an integer constant expression only if its
11811         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
11812         hardly worth documented that way....)
11813
11814 2011-05-18  Bruno Haible  <bruno@clisp.org>
11815
11816         strerror_r: Avoid clobbering the strerror buffer when possible.
11817         * lib/strerror_r.c (strerror_r): Merge the three implementations.
11818         Handle gnulib defined errno values here. When strerror() returns NULL
11819         or an empty string, return EINVAL.
11820         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
11821         gnulib defined errno values here.
11822         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
11823
11824 2011-05-18  Eric Blake  <eblake@redhat.com>
11825
11826         fnmatch: avoid compiler warning
11827         * lib/fnmatch_loop.c (FCT): Use correct type.
11828         Reported by Matthias Bolte.
11829
11830 2011-05-13  Jim Meyering  <meyering@redhat.com>
11831
11832         maint.mk: three new prohibit_<HDR>_without_use rules
11833         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
11834         (sc_prohibit_stdio-safer_without_use): Likewise.
11835         (sc_prohibit_xfreopen_without_use): Likewise.
11836
11837 2011-05-17  Jim Meyering  <meyering@redhat.com>
11838
11839         announce-gen: fail if the NEWS delta is empty
11840         If there's nothing noteworthy in NEWS, then either you forgot
11841         or you shouldn't be releasing.
11842         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
11843
11844 2011-05-17  Pádraig Brady <P@draigBrady.com>
11845
11846         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
11847         reserved symbols starting with double underscore from the check.
11848
11849 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
11850
11851         intprops: add doc
11852         * doc/intprops.texi: New file, documenting intprops.
11853         * doc/gnulib.texi (Particular Modules): Include it.
11854
11855         verify: add doc to gnulib manual and fix example
11856         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
11857         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
11858         (Compile-time Assertions): Fix example so it can't overflow.
11859
11860 2011-05-17  Jim Meyering  <meyering@redhat.com>
11861
11862         warnings.m4: don't usurp save_CPPFLAGS variable name
11863         * m4/warnings.m4: Prefix local temporary variable name with gl_.
11864
11865         doc: fix typo
11866         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
11867
11868 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11869             Bruno Haible  <bruno@clisp.org>
11870
11871         doc: Tweak recent change.
11872         * README (Portability guidelines): Tweak new text.
11873         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
11874         Interix 6.1.
11875
11876 2011-05-16  Eric Blake  <eblake@redhat.com>
11877
11878         inttypes: avoid autoconf warning
11879         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
11880         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11881
11882 2011-05-16  Sam Steingold <sds@gnu.org>
11883         and Eric Blake  <eblake@redhat.com>
11884
11885         vc-list-files: accept multiple directory operands
11886         * build-aux/vc-list-files: Iterate over all remaining operands.
11887
11888 2011-05-16  Bruno Haible  <bruno@clisp.org>
11889
11890         Fix confusion regarding deprecated modules.
11891         * modules/calloc (Status, Notice): Mark module as deprecated, not
11892         obsolete.
11893         * modules/fnmatch-posix (Status, Notice): Likewise.
11894         * modules/getdate (Status, Notice): Likewise.
11895         * modules/getopt (Status, Notice): Likewise.
11896         * modules/malloc (Status, Notice): Likewise.
11897         * modules/pipe (Status, Notice): Likewise.
11898         * modules/realloc (Status, Notice): Likewise.
11899         * modules/rename-dest-slash (Status, Notice): Likewise.
11900         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
11901         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
11902         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
11903         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
11904         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
11905
11906 2011-05-16  Bruno Haible  <bruno@clisp.org>
11907
11908         doc: List the target platforms.
11909         * doc/gnulib-intro.texi (Target Platforms): New section.
11910         * doc/gnulib.texi (Introduction): Update menu.
11911         * README (Portability guidelines): Refer to the new section. Update
11912         statement about oldest supported environment. Remove rationale why
11913         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
11914         unportable C89 function.
11915         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
11916         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
11917
11918 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
11919
11920         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
11921
11922 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
11923
11924         intprops-tests: new module
11925         * modules/intprops-tests, tests/test-intprops.c: New files.
11926
11927         intprops: add safe, portable integer overflow checking
11928         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
11929         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
11930         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
11931         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
11932         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
11933         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
11934         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
11935         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
11936         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
11937         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
11938         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
11939
11940 2011-05-12  James Youngman  <jay@gnu.org>
11941
11942         Add a test for glibc's Bugzilla bug #12378.
11943         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
11944         doesn't allow the literal matching of a lone "[" (which is
11945         required by POSIX).
11946         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
11947
11948 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
11949
11950         Sync glibc change fixing Bugzilla bug #12378.
11951         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
11952         beginning and fall back to matching as normal character if the
11953         string ends before the matching ']' is found.  This is what POSIX
11954         requires.
11955
11956 2011-05-13  Eric Blake  <eblake@redhat.com>
11957
11958         getcwd-lgpl: relax test for FreeBSD
11959         * doc/posix-functions/getcwd.texi (getcwd): Document portability
11960         issue.
11961         * tests/test-getcwd-lgpl.c (main): Relax test.
11962         Reported by Matthias Bolte.
11963
11964 2011-05-11  Eric Blake  <eblake@redhat.com>
11965
11966         test-fflush: silence compiler warning
11967         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
11968
11969 2011-05-11  Bruno Haible  <bruno@clisp.org>
11970
11971         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
11972         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
11973         * modules/canonicalize (Depends-on): Add 'nocrash'.
11974         * modules/canonicalize-lgpl (Depends-on): Likewise.
11975         * doc/posix-functions/realpath.texi: Update platforms list.
11976         Reported by Ryan Schmidt <ryandesign@macports.org>.
11977
11978 2011-05-11  Bruno Haible  <bruno@clisp.org>
11979
11980         group-member: Declare function in <unistd.h>.
11981         * lib/unistd.in.h (group_member): New declaration.
11982         * lib/group-member.h: Remove file.
11983         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
11984         * tests/test-unistd-c++.cc: Check signature of group_member.
11985         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
11986         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
11987         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
11988         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
11989         HAVE_GROUP_MEMBER.
11990         * modules/group-member (Files): Remove lib/group-member.h.
11991         (Depends-on): Add unistd. Specify conditions.
11992         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11993         (Include): Change to <unistd.h>.
11994         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
11995         HAVE_GROUP_MEMBER.
11996         * NEWS: Mention the change.
11997         * lib/euidaccess.c: Don't include group-member.h.
11998
11999 2011-05-11  Bruno Haible  <bruno@clisp.org>
12000
12001         group-member: Document module.
12002         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
12003         module.
12004
12005 2011-05-11  Bruno Haible  <bruno@clisp.org>
12006
12007         fclose: Fix mistake earlier today.
12008         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
12009
12010 2011-05-11  Eric Blake  <eblake@redhat.com>
12011
12012         fclose: preserve fflush errors
12013         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
12014         Reported by Jim Meyering.
12015
12016         bootstrap: support a prereq of 'rpcgen -' on RHEL5
12017         * build-aux/bootstrap (check_versions): When no specific version
12018         is required, merely check that the app produces an exit status
12019         that indicates its existence.
12020
12021         maint.mk: drop redundant check
12022         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
12023         the same but better.
12024
12025 2011-05-11  Bruno Haible  <bruno@clisp.org>
12026
12027         fclose: Fix possible link error.
12028         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
12029         unregister_shadow_fd. Improve comments.
12030         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
12031         Eric Blake.
12032
12033 2011-05-11  Jim Meyering  <meyering@redhat.com>
12034
12035         maint.mk: improve "can not" detection and generalize rule name
12036         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
12037         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
12038         Use the same technique as in sc_prohibit_doubled_word, so that
12039         we recognize "can not" also when the words are separated by a newline.
12040         Suggested by Eric Blake.
12041         (perl_filename_lineno_text_): Define.  Factored out of...
12042         (prohibit_doubled_word_): ...here.  Use the new definition.
12043         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
12044         (prohibit_undesirable_word_seq_RE_): New overridable variable.
12045         (ignore_undesirable_word_sequence_RE_): New overridable variable.
12046
12047 2011-05-10  Eric Blake  <eblake@redhat.com>
12048
12049         fclose: avoid double close race when possible
12050         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
12051         all but WINDOWS_SOCKETS.
12052
12053 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
12054
12055         openat: correct new comment
12056         * lib/openat-proc.c (openat_proc_name): Correct the comment.
12057
12058 2011-05-10  Jim Meyering  <meyering@redhat.com>
12059
12060         openat: add comments
12061         * lib/openat-proc.c (openat_proc_name): Add comments,
12062         mostly from Eric Blake.
12063
12064 2011-05-09  Eric Blake  <eblake@redhat.com>
12065
12066         openat: reduce syscalls in first probe of /proc
12067         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
12068         be a directory.  Simplify the probe for .. bugs.
12069         * modules/openat (Depends-on): Drop same-inode.
12070         Reported by Bastien ROUCARIES.
12071
12072 2011-05-09  Jim Meyering  <meyering@redhat.com>
12073
12074         maint.mk: change semantics/name of tight_scope variables
12075         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
12076         Rename variables to align with semantics that make them more useful.
12077
12078         maint.mk: tweak new rule's name not to impinge
12079         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
12080         (sc_tight_scope): Use new rule name rather than $@-0.
12081
12082         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
12083         * top/maint.mk (sc_tight_scope): New rule.
12084         (sc_tight_scope-0): New rule, ifdef'd out.
12085         (_gl_TS_dir): Default.
12086         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
12087         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
12088
12089 2011-05-09  Simon Josefsson  <simon@josefsson.org>
12090
12091         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
12092         Haible <bruno@clisp.org>.
12093
12094 2011-05-08  Bruno Haible  <bruno@clisp.org>
12095
12096         Comments.
12097         * m4/isnanf.m4: Add comment.
12098         * m4/isnanl.m4: Likewise.
12099
12100 2011-05-08  Bruno Haible  <bruno@clisp.org>
12101
12102         glob: Remove obsolete macro.
12103         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
12104
12105 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
12106
12107         intprops: Sun C 5.11 supports __typeof__
12108         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
12109         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
12110         which is new.
12111         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
12112
12113         intprops: switch to usual gnulib indenting and naming
12114         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
12115         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
12116
12117         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
12118
12119 2011-05-08  Jim Meyering  <meyering@redhat.com>
12120
12121         maint.mk: suppress "Entering/Leaving directory" diag in announcement
12122         * top/maint.mk (release-prep): Use make's --no-print-directory
12123         option when generating the announcement.  This eliminates the
12124         pesky "make[2]: Entering/Leaving directory" diagnostics in the
12125         generated announcement template.
12126
12127 2011-05-08  Bruno Haible  <bruno@clisp.org>
12128
12129         tzset: Fix gettimeofday wrapper on Solaris 2.6.
12130         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
12131         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
12132
12133 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
12134
12135         ignore-value, verify: Omit include files from lib_SOURCES.
12136         * modules/ignore-value, modules/verify (Makefile.am):
12137         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
12138         that leads Automake to duplicate use of am__objects_... variables
12139         in Makefile.in.  See
12140         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
12141
12142 2011-05-07  Bruno Haible  <bruno@clisp.org>
12143
12144         fclose: Simplify autoconf macro.
12145         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
12146         defined.
12147
12148 2011-05-07  Bruno Haible  <bruno@clisp.org>
12149
12150         canonicalize-lgpl: Fix autoconf macro ordering bug.
12151         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
12152         gl_STDLIB_H_DEFAULTS.
12153
12154 2011-05-06  Eric Blake  <eblake@redhat.com>
12155
12156         maintainer-makefile: make sc_po_check easier to tune
12157         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
12158         to probe for strings, such as an alternate location for gnulib.
12159
12160         fclose: guarantee behavior on seekable stdin
12161         * modules/fclose (Depends-on): Add fflush.
12162         * doc/posix-functions/fclose.texi (fclose): Document this.
12163         * tests/test-fclose.c (main): Make test for this unconditional.
12164
12165 2011-05-06  Bruno Haible  <bruno@clisp.org>
12166
12167         fflush, fpurge: Relicense under LGPLv2+.
12168         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
12169         * modules/fpurge (License): Likewise.
12170         With permission from Eric Blake and Jim Meyering.
12171         Suggested by Eric Blake.
12172
12173 2011-05-06  Karl Berry  <karl@gnu.org>
12174
12175         * MODULES.html.sh (func_all_modules): remove exit.
12176
12177 2011-05-06  Jim Meyering  <meyering@redhat.com>
12178
12179         maint.mk: use info-gnu@ as the default only for a stable release
12180         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
12181         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
12182         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
12183         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
12184
12185 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
12186
12187         assert-h: new module, which supports C1X-style static_assert
12188         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
12189         * lib/verify.h: Revamp so that this can be copied into assert.h,
12190         while retaining the ability to use it standalone as before.
12191         Rename private identifiers so as not to encroach on the
12192         standard C namespace, since this is now used by assert.h.
12193         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
12194         the old verify_true.
12195         (_GL_VERIFY_TRUE): New macro, with much of the contents of
12196         the old verify_true.  Use _GL_VERIFY_TYPE.
12197         (_GL_VERIFY): New macro, with much of the contents of the old verify.
12198         (static_assert): New macro, if _GL_STATIC_ASSERT_H
12199         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
12200         defined when this file is copied into the replacement assert.h.
12201         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
12202         and _Static_assert is not built in.
12203         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
12204         defined, and use the new macros mentioned above.
12205         * doc/posix-headers/assert.texi: Document this.
12206
12207 2011-05-05  Bruno Haible  <bruno@clisp.org>
12208
12209         fclose, fflush: Respect rules for use of AC_LIBOBJ.
12210         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
12211         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
12212         gl_REPLACE_FCLOSE here.
12213         * modules/fflush (Depends-on): Remove fclose.
12214         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
12215         combination with module 'fclose'.
12216
12217 2011-05-05  Bruno Haible  <bruno@clisp.org>
12218
12219         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
12220         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
12221         gl_FUNC_FFLUSH.
12222         (gl_FUNC_FFLUSH): Use it.
12223         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
12224         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
12225         gl_REPLACE_FSEEKO here.
12226
12227 2011-05-05  Bruno Haible  <bruno@clisp.org>
12228
12229         tzset: Relicense under LGPL.
12230         * modules/tzset (License): Change to LGPL.
12231         No agreement needed; it's a no-op.
12232
12233         strtoimax, strtoumax: Relicense under LGPL.
12234         * modules/strtoimax (License): Change to LGPL.
12235         * modules/strtoumax (License): Likewise.
12236         With permission from Jim Meyering, Paul Eggert:
12237         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
12238         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
12239
12240         getgroups: Relicense under LGPL.
12241         * modules/getgroups (License): Change to LGPL.
12242         With permission from Jim Meyering, Paul Eggert, Eric Blake:
12243         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
12244         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
12245         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12246
12247         nanosleep: Relicense under LGPL.
12248         * modules/nanosleep (License): Change to LGPL.
12249         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
12250         Haible:
12251         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
12252         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
12253         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12254         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
12255
12256         futimens: Relicense under LGPL.
12257         * modules/futimens (License): Change to LGPL.
12258         With permission from Eric Blake:
12259         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12260
12261         fflush: Relicense under LGPL.
12262         * modules/fflush (License): Change to LGPL.
12263         With permission from Eric Blake, Bruno Haible, Jim Meyering:
12264         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
12265         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
12266         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
12267
12268         tmpfile: Relicense under LGPL.
12269         * modules/tmpfile (License): Change to LGPL.
12270         With permission from Ben Pfaff:
12271         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
12272
12273         isfinite: Relicense under LGPL.
12274         * modules/isfinite (License): Change to LGPL.
12275         With permission from Ben Pfaff, Bruno Haible:
12276         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
12277         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
12278
12279         acosl..tanl: Relicense under LGPL.
12280         * modules/acosl (License): Change to LGPL.
12281         * modules/asinl (License): Likewise.
12282         * modules/atanl (License): Likewise.
12283         * modules/cosl (License): Likewise.
12284         * modules/expl (License): Likewise.
12285         * modules/logl (License): Likewise.
12286         * modules/sinl (License): Likewise.
12287         * modules/sqrtl (License): Likewise.
12288         * modules/tanl (License): Likewise.
12289         Source code originally from glibc and Paolo Bonzini. Agreements:
12290         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
12291         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
12292
12293 2011-05-05  Bruno Haible  <bruno@clisp.org>
12294
12295         signal: Define sighandler_t.
12296         * lib/signal.in.h (sighandler_t): New type.
12297         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
12298         whether sighandler_t is defined.
12299         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
12300         * modules/signal (Depends-on): Add extensions.
12301         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
12302         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
12303         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
12304
12305 2011-05-05  Eric Blake  <eblake@redhat.com>
12306
12307         maint: remove useless REPLACE_*_H macros
12308         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
12309         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
12310         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
12311         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
12312         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
12313         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
12314         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
12315         * m4/btowc.m4: Update callers.
12316         * m4/dirfd.m4: Likewise.
12317         * m4/duplocale.m4: Likewise.
12318         * m4/fchdir.m4: Likewise.
12319         * m4/fdopendir.m4: Likewise.
12320         * m4/inet_ntop.m4: Likewise.
12321         * m4/inet_pton.m4: Likewise.
12322         * m4/ioctl.m4: Likewise.
12323         * m4/mbrlen.m4: Likewise.
12324         * m4/mbrtowc.m4: Likewise.
12325         * m4/mbsinit.m4: Likewise.
12326         * m4/mbsnrtowcs.m4: Likewise.
12327         * m4/mbsrtowcs.m4: Likewise.
12328         * m4/poll.m4: Likewise.
12329         * m4/setlocale.m4: Likewise.
12330         * m4/wcrtomb.m4: Likewise.
12331         * m4/wcsnrtombs.m4: Likewise.
12332         * m4/wcsrtombs.m4: Likewise.
12333         * m4/wctob.m4: Likewise.
12334         * m4/wcwidth.m4: Likewise.
12335         * modules/posix_spawn: Likewise.
12336         * modules/posix_spawn_file_actions_addclose: Likewise.
12337         * modules/posix_spawn_file_actions_adddup2: Likewise.
12338         * modules/posix_spawn_file_actions_addopen: Likewise.
12339         * modules/posix_spawn_file_actions_destroy: Likewise.
12340         * modules/posix_spawn_file_actions_init: Likewise.
12341         * modules/posix_spawnattr_destroy: Likewise.
12342         * modules/posix_spawnattr_getflags: Likewise.
12343         * modules/posix_spawnattr_getpgroup: Likewise.
12344         * modules/posix_spawnattr_getschedparam: Likewise.
12345         * modules/posix_spawnattr_getschedpolicy: Likewise.
12346         * modules/posix_spawnattr_getsigdefault: Likewise.
12347         * modules/posix_spawnattr_getsigmask: Likewise.
12348         * modules/posix_spawnattr_init: Likewise.
12349         * modules/posix_spawnattr_setflags: Likewise.
12350         * modules/posix_spawnattr_setpgroup: Likewise.
12351         * modules/posix_spawnattr_setschedparam: Likewise.
12352         * modules/posix_spawnattr_setschedpolicy: Likewise.
12353         * modules/posix_spawnattr_setsigdefault: Likewise.
12354         * modules/posix_spawnattr_setsigmask: Likewise.
12355         * modules/posix_spawnp: Likewise.
12356
12357 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
12358
12359         Add option to do-release-commit-and-tag to specify branch.
12360         * build-aux/do-release-commit-and-tag: Add --branch.
12361
12362 2011-05-03  Bruno Haible  <bruno@clisp.org>
12363
12364         Avoid unnecessary compilation units, through conditional dependencies.
12365         * modules/accept (Depends-on): Add conditions to the dependencies.
12366         * modules/acosl (Depends-on): Likewise.
12367         * modules/argz (Depends-on): Likewise.
12368         * modules/asinl (Depends-on): Likewise.
12369         * modules/atanl (Depends-on): Likewise.
12370         * modules/atoll (Depends-on): Likewise.
12371         * modules/bind (Depends-on): Likewise.
12372         * modules/btowc (Depends-on): Likewise.
12373         * modules/canonicalize-lgpl (Depends-on): Likewise.
12374         * modules/ceil (Depends-on): Likewise.
12375         * modules/ceilf (Depends-on): Likewise.
12376         * modules/ceill (Depends-on): Likewise.
12377         * modules/chdir-long (Depends-on): Likewise.
12378         * modules/chown (Depends-on): Likewise.
12379         * modules/close (Depends-on): Likewise.
12380         * modules/connect (Depends-on): Likewise.
12381         * modules/cosl (Depends-on): Likewise.
12382         * modules/dirfd (Depends-on): Likewise.
12383         * modules/dprintf (Depends-on): Likewise.
12384         * modules/dprintf-posix (Depends-on): Likewise.
12385         * modules/error (Depends-on): Likewise.
12386         * modules/euidaccess (Depends-on): Likewise.
12387         * modules/expl (Depends-on): Likewise.
12388         * modules/faccessat (Depends-on): Likewise.
12389         * modules/fchdir (Depends-on): Likewise.
12390         * modules/fclose (Depends-on): Likewise.
12391         * modules/fcntl (Depends-on): Likewise.
12392         * modules/fdopendir (Depends-on): Likewise.
12393         * modules/fflush (Depends-on): Likewise.
12394         * modules/floor (Depends-on): Likewise.
12395         * modules/floorf (Depends-on): Likewise.
12396         * modules/floorl (Depends-on): Likewise.
12397         * modules/fnmatch (Depends-on): Likewise.
12398         * modules/fopen (Depends-on): Likewise.
12399         * modules/fprintf-posix (Depends-on): Likewise.
12400         * modules/frexp (Depends-on): Likewise.
12401         * modules/frexp-nolibm (Depends-on): Likewise.
12402         * modules/frexpl (Depends-on): Likewise.
12403         * modules/frexpl-nolibm (Depends-on): Likewise.
12404         * modules/fseek (Depends-on): Likewise.
12405         * modules/fsusage (Depends-on): Likewise.
12406         * modules/ftell (Depends-on): Likewise.
12407         * modules/ftello (Depends-on): Likewise.
12408         * modules/futimens (Depends-on): Likewise.
12409         * modules/getcwd (Depends-on): Likewise.
12410         * modules/getcwd-lgpl (Depends-on): Likewise.
12411         * modules/getdelim (Depends-on): Likewise.
12412         * modules/getdomainname (Depends-on): Likewise.
12413         * modules/getgroups (Depends-on): Likewise.
12414         * modules/gethostname (Depends-on): Likewise.
12415         * modules/getline (Depends-on): Likewise.
12416         * modules/getlogin_r (Depends-on): Likewise.
12417         * modules/getopt-posix (Depends-on): Likewise.
12418         * modules/getpeername (Depends-on): Likewise.
12419         * modules/getsockname (Depends-on): Likewise.
12420         * modules/getsockopt (Depends-on): Likewise.
12421         * modules/getsubopt (Depends-on): Likewise.
12422         * modules/getusershell (Depends-on): Likewise.
12423         * modules/glob (Depends-on): Likewise.
12424         * modules/grantpt (Depends-on): Likewise.
12425         * modules/iconv_open (Depends-on): Likewise.
12426         * modules/iconv_open-utf (Depends-on): Likewise.
12427         * modules/inet_ntop (Depends-on): Likewise.
12428         * modules/inet_pton (Depends-on): Likewise.
12429         * modules/ioctl (Depends-on): Likewise.
12430         * modules/isapipe (Depends-on): Likewise.
12431         * modules/isfinite (Depends-on): Likewise.
12432         * modules/isinf (Depends-on): Likewise.
12433         * modules/lchown (Depends-on): Likewise.
12434         * modules/ldexpl (Depends-on): Likewise.
12435         * modules/link (Depends-on): Likewise.
12436         * modules/linkat (Depends-on): Likewise.
12437         * modules/listen (Depends-on): Likewise.
12438         * modules/logl (Depends-on): Likewise.
12439         * modules/lstat (Depends-on): Likewise.
12440         * modules/mbrlen (Depends-on): Likewise.
12441         * modules/mbrtowc (Depends-on): Likewise.
12442         * modules/mbsinit (Depends-on): Likewise.
12443         * modules/mbsnrtowcs (Depends-on): Likewise.
12444         * modules/mbsrtowcs (Depends-on): Likewise.
12445         * modules/mbtowc (Depends-on): Likewise.
12446         * modules/memcmp (Depends-on): Likewise.
12447         * modules/mkdir (Depends-on): Likewise.
12448         * modules/mkdtemp (Depends-on): Likewise.
12449         * modules/mkfifo (Depends-on): Likewise.
12450         * modules/mkfifoat (Depends-on): Likewise.
12451         * modules/mknod (Depends-on): Likewise.
12452         * modules/mkostemp (Depends-on): Likewise.
12453         * modules/mkostemps (Depends-on): Likewise.
12454         * modules/mkstemp (Depends-on): Likewise.
12455         * modules/mkstemps (Depends-on): Likewise.
12456         * modules/mktime (Depends-on): Likewise.
12457         * modules/nanosleep (Depends-on): Likewise.
12458         * modules/open (Depends-on): Likewise.
12459         * modules/openat (Depends-on): Likewise.
12460         * modules/perror (Depends-on): Likewise.
12461         * modules/poll (Depends-on): Likewise.
12462         * modules/popen (Depends-on): Likewise.
12463         * modules/posix_spawn (Depends-on): Likewise.
12464         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
12465         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
12466         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
12467         * modules/posix_spawnp (Depends-on): Likewise.
12468         * modules/pread (Depends-on): Likewise.
12469         * modules/printf-posix (Depends-on): Likewise.
12470         * modules/ptsname (Depends-on): Likewise.
12471         * modules/putenv (Depends-on): Likewise.
12472         * modules/pwrite (Depends-on): Likewise.
12473         * modules/readline (Depends-on): Likewise.
12474         * modules/readlink (Depends-on): Likewise.
12475         * modules/readlinkat (Depends-on): Likewise.
12476         * modules/recv (Depends-on): Likewise.
12477         * modules/recvfrom (Depends-on): Likewise.
12478         * modules/regex (Depends-on): Likewise.
12479         * modules/remove (Depends-on): Likewise.
12480         * modules/rename (Depends-on): Likewise.
12481         * modules/renameat (Depends-on): Likewise.
12482         * modules/rmdir (Depends-on): Likewise.
12483         * modules/round (Depends-on): Likewise.
12484         * modules/roundf (Depends-on): Likewise.
12485         * modules/roundl (Depends-on): Likewise.
12486         * modules/rpmatch (Depends-on): Likewise.
12487         * modules/select (Depends-on): Likewise.
12488         * modules/send (Depends-on): Likewise.
12489         * modules/sendto (Depends-on): Likewise.
12490         * modules/setenv (Depends-on): Likewise.
12491         * modules/setlocale (Depends-on): Likewise.
12492         * modules/setsockopt (Depends-on): Likewise.
12493         * modules/shutdown (Depends-on): Likewise.
12494         * modules/sigaction (Depends-on): Likewise.
12495         * modules/signbit (Depends-on): Likewise.
12496         * modules/sigprocmask (Depends-on): Likewise.
12497         * modules/sinl (Depends-on): Likewise.
12498         * modules/sleep (Depends-on): Likewise.
12499         * modules/snprintf (Depends-on): Likewise.
12500         * modules/snprintf-posix (Depends-on): Likewise.
12501         * modules/socket (Depends-on): Likewise.
12502         * modules/sprintf-posix (Depends-on): Likewise.
12503         * modules/sqrtl (Depends-on): Likewise.
12504         * modules/stat (Depends-on): Likewise.
12505         * modules/strchrnul (Depends-on): Likewise.
12506         * modules/strdup-posix (Depends-on): Likewise.
12507         * modules/strerror (Depends-on): Likewise.
12508         * modules/strerror_r-posix (Depends-on): Likewise.
12509         * modules/strndup (Depends-on): Likewise.
12510         * modules/strnlen (Depends-on): Likewise.
12511         * modules/strptime (Depends-on): Likewise.
12512         * modules/strsep (Depends-on): Likewise.
12513         * modules/strsignal (Depends-on): Likewise.
12514         * modules/strstr-simple (Depends-on): Likewise.
12515         * modules/strtod (Depends-on): Likewise.
12516         * modules/strtoimax (Depends-on): Likewise.
12517         * modules/strtok_r (Depends-on): Likewise.
12518         * modules/strtoumax (Depends-on): Likewise.
12519         * modules/symlink (Depends-on): Likewise.
12520         * modules/symlinkat (Depends-on): Likewise.
12521         * modules/tanl (Depends-on): Likewise.
12522         * modules/tcgetsid (Depends-on): Likewise.
12523         * modules/tmpfile (Depends-on): Likewise.
12524         * modules/trunc (Depends-on): Likewise.
12525         * modules/truncf (Depends-on): Likewise.
12526         * modules/truncl (Depends-on): Likewise.
12527         * modules/uname (Depends-on): Likewise.
12528         * modules/unlink (Depends-on): Likewise.
12529         * modules/unlockpt (Depends-on): Likewise.
12530         * modules/unsetenv (Depends-on): Likewise.
12531         * modules/usleep (Depends-on): Likewise.
12532         * modules/utimensat (Depends-on): Likewise.
12533         * modules/vasprintf (Depends-on): Likewise.
12534         * modules/vdprintf (Depends-on): Likewise.
12535         * modules/vdprintf-posix (Depends-on): Likewise.
12536         * modules/vfprintf-posix (Depends-on): Likewise.
12537         * modules/vprintf-posix (Depends-on): Likewise.
12538         * modules/vsnprintf (Depends-on): Likewise.
12539         * modules/vsnprintf-posix (Depends-on): Likewise.
12540         * modules/vsprintf-posix (Depends-on): Likewise.
12541         * modules/wcrtomb (Depends-on): Likewise.
12542         * modules/wcscasecmp (Depends-on): Likewise.
12543         * modules/wcscspn (Depends-on): Likewise.
12544         * modules/wcsdup (Depends-on): Likewise.
12545         * modules/wcsncasecmp (Depends-on): Likewise.
12546         * modules/wcsnrtombs (Depends-on): Likewise.
12547         * modules/wcspbrk (Depends-on): Likewise.
12548         * modules/wcsrtombs (Depends-on): Likewise.
12549         * modules/wcsspn (Depends-on): Likewise.
12550         * modules/wcsstr (Depends-on): Likewise.
12551         * modules/wcstok (Depends-on): Likewise.
12552         * modules/wcswidth (Depends-on): Likewise.
12553         * modules/wctob (Depends-on): Likewise.
12554         * modules/wctomb (Depends-on): Likewise.
12555         * modules/wctype (Depends-on): Likewise.
12556         * modules/wcwidth (Depends-on): Likewise.
12557         * modules/write (Depends-on): Likewise.
12558
12559 2011-05-03  Bruno Haible  <bruno@clisp.org>
12560
12561         Support for conditional dependencies.
12562         * doc/gnulib.texi (Module description): Document the syntax of
12563         conditional dependencies.
12564         * gnulib-tool: New option --conditional-dependencies.
12565         (func_usage): Document it.
12566         (cond_dependencies): New variable.
12567         (func_get_automake_snippet_conditional,
12568         func_get_automake_snippet_unconditional): New functions, extracted from
12569         func_get_automake_snippet.
12570         (func_get_automake_snippet): Use them.
12571         (sed_first_32_chars): New variable.
12572         (func_module_shellfunc_name): New function.
12573         (func_module_shellvar_name): New function.
12574         (func_module_conditional_name): New function.
12575         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
12576         func_cond_module_condition): New functions.
12577         (func_modules_transitive_closure): Add support for conditional
12578         dependencies.
12579         (func_emit_lib_Makefile_am): For a conditional module, enclose the
12580         conditional automake snippet in an automake conditional.
12581         (func_emit_autoconf_snippets): Emit shell functions that contain the
12582         code for conditional modules.
12583         (func_import, func_create_testdir): Update specification.
12584
12585 2011-05-03  Eric Blake  <eblake@redhat.com>
12586
12587         test-getaddrinfo: report error information
12588         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
12589
12590 2011-05-03  Jim Meyering  <meyering@redhat.com>
12591
12592         bootstrap: avoid build failure when $GZIP is set
12593         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
12594         program name.  If defined at all, it is supposed to list gzip options.
12595         Reported by Alan Curry in http://debbugs.gnu.org/8609
12596
12597 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
12598
12599         readme-release: new module with release instructions
12600         * modules/readme-release: New module.
12601         * top/README-release: New file, from coreutils, grep, diffutils.
12602         * MODULES.html.sh (Support for maintaining and releasing): Add it.
12603
12604 2011-05-02  Eric Blake  <eblake@redhat.com>
12605
12606         fflush: also replace fclose when fixing fflush
12607         * modules/fflush (Depends-on): Add fclose.
12608         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
12609         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
12610         memstreams with no backing fd.
12611         * doc/posix-functions/fclose.texi (fclose): Document the use of
12612         fflush module to fix the bug.
12613         * tests/test-fclose.c (main): Relax test when fclose is used in
12614         isolation.
12615
12616         fclose: add some tests
12617         * modules/fclose-tests: New test module.
12618         * tests/test-fclose.c: New file.
12619         * doc/posix-functions/fclose.texi (fclose): Document the bug.
12620
12621         fclose: reduced dependencies
12622         * modules/fclose (Depends-on): Switch from fflush/fseeko to
12623         simpler lseek.
12624         * lib/fclose.c (rpl_fclose): Likewise.
12625         Reported by Simon Josefsson.
12626
12627         exit: drop remaining clients
12628         * modules/argmatch (Depends-on): Replace exit with stdlib.
12629         * modules/copy-file (Depends-on): Likewise.
12630         * modules/execute (Depends-on): Likewise.
12631         * modules/exitfail (Depends-on): Likewise.
12632         * modules/obstack (Depends-on): Likewise.
12633         * modules/pagealign_alloc (Depends-on): Likewise.
12634         * modules/pipe-filter-gi (Depends-on): Likewise.
12635         * modules/pipe-filter-ii (Depends-on): Likewise.
12636         * modules/savewd (Depends-on): Likewise.
12637         * modules/spawn-pipe (Depends-on): Likewise.
12638         * modules/wait-process (Depends-on): Likewise.
12639         * modules/xsetenv (Depends-on): Likewise.
12640         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
12641         * modules/git-merge-changelog (Depends-on): Likewise.
12642         * modules/long-options (Depends-on): Likewise.
12643         * modules/pt_chown (Depends-on): Likewise.
12644         * modules/sysexits (Depends-on): Likewise.
12645
12646         freading: relax license from LGPLv3+ to LGPLv2+
12647         * modules/freading (License): Relax LGPL version.
12648
12649 2011-05-02  Bruno Haible  <bruno@clisp.org>
12650
12651         fchdir: Remove unused dependencies.
12652         * modules/fchdir (Depends-on): Remove include_next.
12653
12654 2011-05-02  Bruno Haible  <bruno@clisp.org>
12655
12656         gnulib-tool: Refactor.
12657         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
12658         from func_emit_autoconf_snippets.
12659         (func_emit_autoconf_snippets): Use it.
12660
12661 2011-05-02  Simon Josefsson  <simon@josefsson.org>
12662
12663         * NEWS: Document removal of 'exit'.
12664         * modules/exit: Remove file.
12665
12666 2011-05-01  Bruno Haible  <bruno@clisp.org>
12667
12668         Update DEPENDENCIES.
12669         * DEPENDENCIES (gettext): Recommend the newest release.
12670         Reported by Simon Josefsson.
12671
12672 2011-05-01  Bruno Haible  <bruno@clisp.org>
12673
12674         gnulib-tool: Reduce code duplication.
12675         * gnulib-tool (func_emit_autoconf_snippets): New function.
12676         (func_import, func_create_testdir): Use it.
12677
12678 2011-04-30  Eric Blake  <eblake@redhat.com>
12679
12680         fclose: don't fail on non-seekable input stream
12681         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
12682         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
12683         since fflush is allowed to fail in that case.
12684
12685 2011-04-30  Bruno Haible  <bruno@clisp.org>
12686
12687         dup3: cleanup
12688         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
12689
12690 2011-04-30  Bruno Haible  <bruno@clisp.org>
12691
12692         netdb: Make it work in C++ mode.
12693         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
12694         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
12695         module.
12696         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
12697         gl_MODULE_INDICATOR_FOR_TESTS.
12698         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
12699         * modules/netdb-c++-tests: New file.
12700         * tests/test-netdb-c++.cc: New file.
12701
12702 2011-04-30  Bruno Haible  <bruno@clisp.org>
12703
12704         New modules 'vfscanf', 'vscanf'.
12705         * modules/vfscanf: New file.
12706         * modules/vscanf: New file.
12707         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
12708         here.
12709         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
12710         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
12711
12712 2011-04-30  Bruno Haible  <bruno@clisp.org>
12713
12714         passfd: Add comments.
12715         * lib/passfd.c: Add comments about platforms.
12716
12717 2011-04-30  Bruno Haible  <bruno@clisp.org>
12718
12719         sys_uio: Make <sys/uio.h> self-contained.
12720         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
12721         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
12722
12723 2011-04-30  Bruno Haible  <bruno@clisp.org>
12724
12725         sys_socket: Ensure 'struct iovec' definition.
12726         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
12727         <sys/socket.h>.
12728         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
12729
12730 2011-04-30  Bruno Haible  <bruno@clisp.org>
12731
12732         sys_uio: Protect definition of 'struct iovec'.
12733         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
12734         it as a C struct.
12735
12736 2011-04-30  Bruno Haible  <bruno@clisp.org>
12737
12738         manywarnings: fix indentation
12739         * m4/manywarnings.m4: Indent by 2 spaces consistently.
12740
12741 2011-04-30  Pádraig Brady <P@draigBrady.com>
12742
12743         manywarnings: add -Wno-missing-field-initializers if needed.
12744         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
12745         option if it's needed to allow initialization with { 0, }
12746
12747 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
12748
12749         announce-gen: cosmetic improvement
12750         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
12751
12752 2011-04-29  Jim Meyering  <meyering@redhat.com>
12753
12754         vc-list-files: indent with spaces, not TABs
12755         * build-aux/vc-list-files: Convert leading TABs to spaces,
12756         to match the style of most other files in gnulib.
12757
12758         announce-gen: indent with spaces, not TABs
12759         * build-aux/announce-gen: Convert all TABs to spaces, to match
12760         the style of most other files in gnulib.
12761
12762 2011-04-29  Eric Blake  <eblake@redhat.com>
12763
12764         quotearg: avoid uninitialized variable use
12765         * lib/quotearg.c (quoting_options_from_style): Initialize
12766         remaining fields, and ensure that custom styles are only used via
12767         quoting_options rather than quoting_style.
12768
12769 2011-04-29  Jim Meyering  <meyering@redhat.com>
12770
12771         maint.mk: remove unused VC-tag variable
12772         * top/maint.mk (VC-tag): Remove unused variable.
12773
12774 2011-04-29  Bruno Haible  <bruno@clisp.org>
12775
12776         netdb: fix gai_strerror replacements
12777         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
12778         * modules/netdb: Substitute it.
12779
12780 2011-04-29  Jim Meyering  <meyering@redhat.com>
12781
12782         test-getcwd.c: avoid new set-but-not-used warning
12783         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
12784         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
12785         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
12786         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
12787
12788         test-hash.c: avoid a new shadowing warning
12789         * tests/test-hash.c (main): Don't shadow "dup".
12790
12791 2011-04-28  Eric Blake  <eblake@redhat.com>
12792
12793         getaddrinfo: fix gai_strerror signature
12794         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
12795         and work around mingw with UNICODE defined.
12796         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
12797         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
12798         * modules/netdb (Makefile.am): Substitute it.
12799         * lib/netdb.in.h (gai_strerror): Declare replacement.
12800         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
12801         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
12802         the fix.
12803
12804         getsockopt: avoid compiler warning
12805         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
12806         Reported by Matthias Bolte.
12807
12808         tests: drop unused link dependency
12809         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
12810         * modules/dirent-safer-tests (Makefile.am): Likewise.
12811         * modules/fdopendir-tests (Makefile.am): Likewise.
12812         * modules/mkfifoat-tests (Makefile.am): Likewise.
12813         * modules/openat-safer-tests (Makefile.am): Likewise.
12814         * modules/openat-tests (Makefile.am): Likewise.
12815         * modules/readlinkat-tests (Makefile.am): Likewise.
12816         * modules/symlinkat-tests (Makefile.am): Likewise.
12817         * modules/linkat-tests (Makefile.am): Likewise.
12818         (Depends-on): Switch to filenamecat-lgpl.
12819         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
12820         LIBINTL.
12821         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
12822         * tests/test-linkat.c (main): Don't require xalloc.
12823
12824         hash, mgetgroups: drop xalloc dependency
12825         * lib/hash.c (includes): Adjust includes.
12826         * lib/mgetgroups.c (includes): Likewise.
12827         (xgetgroups): Move...
12828         * lib/xgetgroups.c: ...to new file.
12829         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
12830         * modules/xgetgroups: New file, split from...
12831         * modules/mgetgroups: ...here.
12832         (Depends-on): Add xalloc-oversized.
12833         * modules/hash (Depends-on): Likewise.
12834         * modules/hash-tests (Depends-on): Drop xalloc.
12835         (test_hash_LDADD): Drop unused library.
12836         * tests/test-hash.c (main): Break xalloc dependency.
12837         (includes): Drop unused include.
12838
12839         xalloc-oversized: new module
12840         * modules/xalloc-oversized: New module.
12841         * modules/xalloc (Depends-on): Add it.
12842         * lib/xalloc.h (xalloc_oversized): Move...
12843         * lib/xalloc-oversized.h: ...into new file.
12844
12845         utimecmp: drop dependency on xmalloc
12846         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
12847         due to memory pressure.
12848         * modules/utimecmp (Depends-on): Drop xalloc.
12849
12850 2011-04-27  Eric Blake  <eblake@redhat.com>
12851
12852         getcwd: fix mingw bugs
12853         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
12854         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
12855         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
12856
12857 2011-04-27  Bruno Haible  <bruno@clisp.org>
12858
12859         mkstemps: Ensure declaration on MacOS X 10.5.
12860         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
12861         * doc/glibc-functions/mkstemps.texi: Document header file problem on
12862         MacOS X.
12863
12864 2011-04-27  Bruno Haible  <bruno@clisp.org>
12865
12866         mkstemp: More documentation.
12867         * doc/posix-functions/mkstemp.texi: Document header file problem on
12868         MacOS X.
12869
12870 2011-04-27  Bruno Haible  <bruno@clisp.org>
12871
12872         mkstemp: Tweak configure message when cross-compiling.
12873         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
12874         result as a guess.
12875
12876 2011-04-27  Bruno Haible  <bruno@clisp.org>
12877
12878         clean-temp: Clarify what it does.
12879         * lib/clean-temp.h: Add more comments.
12880         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
12881         module.
12882         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
12883         * doc/glibc-functions/mkstemps.texi: Likewise.
12884         * doc/glibc-functions/mkostemps.texi: Likewise.
12885
12886 2011-04-27  Eric Blake  <eblake@redhat.com>
12887
12888         fchdir: avoid extra chdir and fix test
12889         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
12890         getcwd-lgpl.
12891         * lib/fchdir.c (get_name): Any absolute name will do; it does not
12892         have to be canonical.
12893         (canonicalize_file_name): Drop unused macro.
12894         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
12895
12896         filenamecat-lgpl: fix licence
12897         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
12898         when it was first created.
12899
12900         linkat, renameat: add missing dependency
12901         * modules/linkat (Depends-on): Require getcwd-lgpl.
12902         * modules/renameat (Depends-on): Likewise.
12903
12904         tests: reduce dependencies
12905         * tests/test-linkat.c (main): Use lighter-weight getcwd.
12906         * tests/test-renameat.c (main): Likewise.
12907         * modules/linkat-tests (Depends-on): Relax dependency.
12908         * modules/renameat-tests (Depends-on): Likewise.
12909         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
12910         dependency explicit.
12911
12912         save-cwd: reduce default dependency
12913         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
12914         * lib/save-cwd.c: Update comments.
12915         * NEWS: Document the semantic change.
12916
12917         getcwd: enhance tests
12918         * tests/test-getcwd-lgpl.c: New file, taken from...
12919         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
12920         repeat long path stress tests from m4 probe.
12921         * modules/getcwd-lgpl-tests: New module.
12922         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
12923         * m4/getcwd-abort-bug.m4: Update comment.
12924         * m4/getcwd-path-max.m4: Likewise.
12925
12926         getcwd-lgpl: new module
12927         * modules/getcwd-lgpl: New module.
12928         * lib/getcwd-lgpl.c: New file.
12929         * doc/posix-functions/getcwd.texi (getcwd): Document it.
12930         * MODULES.html.sh (lacking POSIX:2008): Likewise.
12931         * modules/getcwd (configure.ac): Set C witness.
12932         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
12933
12934         getcwd: tweak comments
12935         * m4/getcwd-abort-bug.m4: Fix comments.
12936         * m4/getcwd-path-max.m4: Likewise.
12937         * m4/getcwd.m4: Likewise.
12938
12939 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12940         and Eric Blake  <eblake@redhat.com>
12941
12942         mkstemp: replace if system version uses wrong permissions
12943         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
12944         read/write mode bits set in file created by mkstemp.
12945         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
12946
12947 2011-04-27  Eric Blake  <eblake@redhat.com>
12948
12949         passfd: avoid compiler warning
12950         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
12951         Reported by Laine Stump.
12952
12953 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
12954
12955         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
12956         required by the NetBSD (and perhaps other 4.4BSD derived) join.
12957
12958 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
12959         and Eric Blake  <eblake@redhat.com>
12960
12961         mkstemp: mention clean-temp module
12962         * lib/mkstemp.c: Add comment.
12963         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
12964
12965 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
12966
12967         inttypes: also provide default values for 32-bit tests
12968         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
12969         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
12970
12971 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
12972
12973         strtoumax: remove dependency on strtoimax
12974         This is like the strtoull change of yesterday.
12975         * modules/strtoumax (Files): Add lib/strtoimax.c.
12976         (Depends-on): Remove strtoimax and add verify.
12977
12978         inttypes-incomplete: new module
12979         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
12980         all but the PRI* and SCN* parts of gl_INTTYPES_H.
12981         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
12982         of gl_INTTYPES_H.
12983         (gl_INTTYPES_H): Rewrite in terms of these new macros.
12984         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
12985         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
12986         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
12987         * modules/strtoumax, modules/xstrtol (Depends-on):
12988         Depend on inttypes-incomplete, not inttypes.
12989         * modules/inttypes-incomplete: New module, containing the contents
12990         of the old modules/inttypes module, except that the Files: section
12991         omits m4/inttypes-pri.m4, and the configure.ac section invokes
12992         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
12993         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
12994         (Depends-on): Depend only on inttypes-incomplete.
12995         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
12996
12997         inttypes: omit now-redundant strtoimax and strtoumax work
12998         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
12999         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
13000
13001         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
13002         This supports apps that need pointers to strtoimax and strtoumax,
13003         and ports to HP-UX 11.00 64.bit, which has macros that expand to
13004         nonexistent functions.  See
13005         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
13006         et seq.
13007         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
13008         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
13009         a macro.
13010         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
13011
13012 2011-04-25  Simon Josefsson  <simon@josefsson.org>
13013
13014         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
13015
13016 2011-04-25  Bruno Haible  <bruno@clisp.org>
13017
13018         strtol, strtoul: Mark modules as obsolete.
13019         * modules/strtol (Status, Notice): New sections.
13020         * modules/strtoul (Status, Notice): New sections.
13021
13022 2011-04-25  Bruno Haible  <bruno@clisp.org>
13023
13024         strtod: Remove check for strtod, unless supporting old platforms.
13025         * modules/strtod-obsolete: New file.
13026         * m4/strtod-obsolete.m4: New file.
13027         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
13028         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
13029         * modules/strtod (Depends-on): Add strtod-obsolete.
13030         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
13031
13032 2011-04-25  Bruno Haible  <bruno@clisp.org>
13033
13034         strcase: Make module obsolete.
13035         * modules/strcase (Status, Notice): New sections.
13036
13037 2011-04-25  Bruno Haible  <bruno@clisp.org>
13038
13039         dup2: Remove check for dup2, unless supporting old obsolete platforms.
13040         * modules/dup2-obsolete: New file.
13041         * m4/dup2-obsolete.m4: New file.
13042         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
13043         gl_FUNC_DUP2_OBSOLETE is not also defined.
13044         * modules/dup2 (Depends-on): Add dup2-obsolete.
13045         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
13046
13047 2011-04-25  Bruno Haible  <bruno@clisp.org>
13048
13049         strnlen: Avoid memchr related link error on old obsolete platforms.
13050         * modules/memchr-obsolete: New file.
13051         * m4/memchr-obsolete.m4: New file.
13052         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
13053         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
13054         * modules/memchr (Depends-on): Add memchr-obsolete.
13055         * modules/strnlen (Depends-on): Likewise.
13056         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
13057
13058 2011-04-25  Jim Meyering  <meyering@redhat.com>
13059
13060         maint.mk: makefile_at_at_check extend and clean up
13061         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
13062         in addition to */Makefile.am.
13063         Exempt legitimate uses of @VAR@ notation, e.g.,
13064         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
13065         Remove obsolete coreutils-specific comment.
13066         Prompted by discussion here:
13067         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
13068
13069 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
13070
13071         strtoul: remove dependency on strtol
13072         This is so that 'configure' need not check for strtol merely because
13073         the application needs strtoul.
13074         * modules/strtoul (Files): Add lib/strtol.c.
13075         (Depends-on): Remove strtol.
13076
13077         strtoull: remove dependency on strtoul
13078         This is like the strtoll change.
13079         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
13080         (Depends-on): Remove strtoul.
13081
13082         strtoll: remove dependency on strtol
13083         This is so that 'configure' need not check for strtol merely because
13084         the application needs strtoll.
13085         * modules/strtoll (Files): Add lib/strtol.c.
13086         (Depends-on): Remove strtol.
13087
13088 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13089
13090         inttypes: Move some configure check to module 'imaxdiv'.
13091         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
13092         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
13093         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
13094
13095 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13096
13097         inttypes: Move some configure check to module 'imaxabs'.
13098         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
13099         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
13100         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
13101
13102 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13103
13104         inttypes: Remove configure tests that are not needed since 2009-12-31.
13105         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
13106         gl_cv_header_working_inttypes_h.
13107
13108 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13109
13110         * modules/strnlen (Depends-on): Remove memchr.
13111         The strnlen implementation doesn't need the memchr module's fixes; see
13112         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
13113
13114         strtol: remove dependency on wchar
13115         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
13116         * modules/strtol (Depends-on): Remove wchar.
13117
13118 2011-04-21  Eric Blake  <eblake@redhat.com>
13119
13120         passfd: fix test regression on Linux
13121         * modules/passfd-tests (configure.ac): Correct socketpair check.
13122
13123         passfd: speed up configure and drop unused code
13124         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
13125         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
13126         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
13127         Instead of probing at configure for unix_scm_rights_bsd44_way,
13128         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
13129         check to a struct member probe.
13130         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
13131         (sendfd, recvfd): Update preprocessor checks.
13132         * modules/passfd (Files): Reflect rename, and drop unused file.
13133         (Depends-on): Drop unused dependency.
13134
13135         passfd: allow compilation on mingw
13136         * modules/sys_socket (Depends-on): Add sys_uio.
13137         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
13138         iovec and a minimal struct msghdr.
13139         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
13140         * tests/test-sys_socket.c (main): Enhance test.
13141         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
13142         guaranteed to provide what we need.
13143         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
13144         * modules/passfd-tests (Depends-on): Add sys_wait.
13145         * tests/test-passfd.c (main): Skip test on mingw, for now.
13146         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
13147         partial 'struct msghdr' implementation.
13148
13149         sys_uio: new module
13150         * modules/sys_uio: New module.
13151         * modules/sys_uio-tests: Likewise.
13152         * lib/sys_uio.in.h: New file.
13153         * m4/sys_uio_h.m4: Likewise.
13154         * tests/test-sys_uio.c: Likewise.
13155         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
13156         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
13157
13158 2011-04-20  Jim Meyering  <meyering@redhat.com>
13159
13160         useless-if-before-free: avoid false-positive
13161         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
13162         disjunct so that it too requires a terminating ";".  Without that,
13163         this script would identify as useless one statement from gcc that
13164         was not:
13165           if (aligned_ptr)
13166             free (((void **) aligned_ptr) [-1]);
13167
13168 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
13169
13170         doc: update users.txt.
13171         * users.txt: Add barcode.
13172
13173 2011-04-19  Bruno Haible  <bruno@clisp.org>
13174
13175         ioctl: Remove link dependency on native Windows.
13176         * lib/fd-hook.h: Renamed from lib/close-hook.h.
13177         (gl_close_fn, gl_ioctl_fn): New types.
13178         (struct fd_hook): Renamed from struct close_hook. Change type of
13179         private_close_fn field. Add private_ioctl_fn field.
13180         (close_hook_fn): Add parameter for primary close method.
13181         (execute_close_hooks, execute_all_close_hooks): Likewise.
13182         (ioctl_hook_fn): New type.
13183         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
13184         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
13185         argument.
13186         (unregister_fd_hook): Renamed from unregister_close_hook.
13187         * lib/fd-hook.c: Renamed from lib/close-hook.c.
13188         Don't include <unistd.h>.
13189         (close): Remove undef.
13190         (anchor): Update.
13191         (execute_close_hooks): Add argument for primary close method.
13192         (execute_all_close_hooks): Likewise.
13193         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
13194         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
13195         argument. Allow each argument to be NULL.
13196         (unregister_fd_hook): Renamed from unregister_close_hook.
13197         * lib/close.c (rpl_close): Pass 'close' function pointer to
13198         execute_all_close_hooks.
13199         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
13200         (primary_ioctl): New function.
13201         (ioctl): Don't call ioctlsocket here. Instead, call
13202         execute_all_ioctl_hooks.
13203         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
13204         close method.
13205         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
13206         (fd_sockets_hook): Renamed from close_sockets_hook.
13207         (gl_sockets_startup, gl_sockets_cleanup): Update.
13208         * modules/fd-hook: Renamed from modules/close-hook. Update.
13209         * modules/close (Depends-on): Add fd-hook, remove close-hook.
13210         * modules/sockets (Depends-on): Likewise.
13211         * modules/ioctl (Depends-on): Add fd-hook.
13212         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
13213         GNULIB_SOCKET.
13214
13215 2011-04-19  Bruno Haible  <bruno@clisp.org>
13216
13217         Move the support of O_NONBLOCK in open() to the 'open' module.
13218         * modules/nonblocking (Depends-on): Remove 'open'.
13219         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
13220         gl_cv_have_open_O_NONBLOCK.
13221         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
13222         O_NONBLOCK support.
13223         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
13224
13225 2011-04-17  Bruno Haible  <bruno@clisp.org>
13226
13227         pipe2: Simplify code.
13228         * lib/pipe2.c (pipe2): Reduce code duplication.
13229
13230 2011-04-17  Bruno Haible  <bruno@clisp.org>
13231
13232         nonblocking: Add comment.
13233         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
13234
13235 2011-04-17  Bruno Haible  <bruno@clisp.org>
13236
13237         nonblocking: Add tests for sockets.
13238         * tests/test-nonblocking-socket.sh: New file.
13239         * tests/test-nonblocking-socket-main.c: New file.
13240         * tests/test-nonblocking-socket-child.c: New file.
13241         * tests/test-nonblocking-socket.h: New file.
13242         * tests/socket-server.h: New file.
13243         * tests/socket-client.h: New file.
13244         * modules/nonblocking-socket-tests: New file.
13245         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
13246
13247 2011-04-17  Bruno Haible  <bruno@clisp.org>
13248
13249         nonblocking: Add tests for pipes.
13250         * tests/test-nonblocking-pipe.sh: New file.
13251         * tests/test-nonblocking-pipe-main.c: New file.
13252         * tests/test-nonblocking-pipe-child.c: New file.
13253         * tests/test-nonblocking-pipe.h: New file.
13254         * tests/test-nonblocking-writer.h: New file.
13255         * tests/test-nonblocking-reader.h: New file.
13256         * tests/test-nonblocking-misc.h: New file.
13257         * modules/nonblocking-pipe-tests: New file.
13258         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
13259
13260 2011-04-16  Bruno Haible  <bruno@clisp.org>
13261
13262         gettext: Clarify the needed programmer actions.
13263         * modules/gettext (Notice): New field.
13264         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
13265
13266 2011-04-16  Bruno Haible  <bruno@clisp.org>
13267
13268         strchrnul: Tweak last commit.
13269         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
13270         bug.
13271         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
13272         as in _GL_FUNCDECL_SYS.
13273         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
13274         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
13275
13276 2011-04-15  Eric Blake  <eblake@redhat.com>
13277
13278         strchrnul: work around cygwin bug
13279         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
13280         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
13281         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
13282         * modules/string (Makefile.am): Substitute it.
13283         * lib/string.in.h (strchrnul): Use it.
13284
13285 2011-04-15  Bruno Haible  <bruno@clisp.org>
13286
13287         Don't require lib/stdio-write.c when only module 'stdio' is used.
13288         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
13289         invocation.
13290         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
13291
13292 2011-04-14  Bruno Haible  <bruno@clisp.org>
13293
13294         Support non-blocking pipe I/O in read() on native Windows.
13295         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
13296         (read): New declaration.
13297         * lib/read.c: New file.
13298         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
13299         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
13300         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
13301         vscanf): New declarations.
13302         * lib/stdio-read.c: New file.
13303         * m4/read.m4: New file.
13304         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
13305         REPLACE_READ.
13306         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
13307         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13308         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
13309         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
13310         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
13311         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13312         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
13313         * modules/read: New file.
13314         * modules/nonblocking (Files): Add lib/stdio-read.c.
13315         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
13316         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
13317         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
13318         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
13319         * modules/pread (Depends-on): Add read.
13320         * modules/safe-read (Depends-on): Likewise.
13321         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
13322         gets, scanf, vfscanf, vscanf): Verify signatures.
13323         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
13324         problem with non-blocking pipes.
13325         * doc/posix-functions/fgetc.texi: Likewise.
13326         * doc/posix-functions/fgets.texi: Likewise.
13327         * doc/posix-functions/fread.texi: Likewise.
13328         * doc/posix-functions/fscanf.texi: Likewise.
13329         * doc/posix-functions/getc.texi: Likewise.
13330         * doc/posix-functions/getchar.texi: Likewise.
13331         * doc/posix-functions/gets.texi: Likewise.
13332         * doc/posix-functions/scanf.texi: Likewise.
13333         * doc/posix-functions/vfscanf.texi: Likewise.
13334         * doc/posix-functions/vscanf.texi: Likewise.
13335
13336 2011-04-14  Bruno Haible  <bruno@clisp.org>
13337
13338         Support non-blocking pipe I/O in write() on native Windows.
13339         * lib/write.c (rpl_write): Split a write request that failed merely
13340         because the byte count was larger than the pipe buffer's size.
13341         * doc/posix-functions/write.texi: Mention the problem with large byte
13342         counts.
13343
13344 2011-04-14  Bruno Haible  <bruno@clisp.org>
13345
13346         wchar: Ensure that wchar_t gets defined on uClibc.
13347         * lib/wchar.in.h: On uClibc, include <stddef.h>.
13348         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
13349
13350 2011-04-13  Bruno Haible  <bruno@clisp.org>
13351
13352         safe-write, full-read: Avoid unnecessary compilation units.
13353         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
13354         (Depends-on): Remove safe-read. Add ssize_t.
13355         * modules/full-read (Files): Add lib/full-write.c.
13356         (Depends-on): Add full-write.
13357
13358 2011-04-13  Bruno Haible  <bruno@clisp.org>
13359
13360         Support non-blocking pipe I/O and SIGPIPE in pwrite().
13361         * modules/pwrite (Depends-on): Add 'write'.
13362
13363 2011-04-13  Bruno Haible  <bruno@clisp.org>
13364
13365         Support non-blocking pipe I/O in write() on native Windows.
13366         * lib/unistd.in.h (write): Enable replacement also if
13367         GNULIB_UNISTD_H_NONBLOCKING is 1.
13368         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
13369         (rpl_write): When failing to write on a non-blocking pipe, change
13370         errno from ENOSPC to EAGAIN.
13371         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
13372         putchar, puts, vfprintf, vprintf): Enable replacement also if
13373         GNULIB_STDIO_H_NONBLOCKING is 1.
13374         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
13375         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
13376         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
13377         CALL_WITH_SIGPIPE_EMULATION.
13378         (CALL_WITH_SIGPIPE_EMULATION): Use them.
13379         * m4/nonblocking.m4: New file.
13380         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
13381         for non-blocking I/O support.
13382         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13383         GNULIB_UNISTD_H_NONBLOCKING.
13384         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
13385         required for non-blocking I/O support.
13386         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
13387         * modules/nonblocking (Files): Add m4/nonblocking.m4,
13388         lib/stdio-write.c, m4/asm-underscore.m4.
13389         (Depends-on): Add stdio, unistd.
13390         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
13391         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
13392         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
13393         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
13394         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
13395         problem with non-blocking pipes.
13396         * doc/posix-functions/fputc.texi: Likewise.
13397         * doc/posix-functions/fputs.texi: Likewise.
13398         * doc/posix-functions/fwrite.texi: Likewise.
13399         * doc/posix-functions/printf.texi: Likewise.
13400         * doc/posix-functions/putc.texi: Likewise.
13401         * doc/posix-functions/putchar.texi: Likewise.
13402         * doc/posix-functions/puts.texi: Likewise.
13403         * doc/posix-functions/vfprintf.texi: Likewise.
13404         * doc/posix-functions/vprintf.texi: Likewise.
13405         * doc/posix-functions/write.texi: Likewise.
13406
13407 2011-04-10  Jim Meyering  <meyering@redhat.com>
13408
13409         maint.mk: prohibit doubled words
13410         Detect them also when they're separated by a newline.
13411         There are 3 ways to customize it:
13412           - disable the test on a per file basis, as usual with rules using
13413             $(VC_LIST_EXCEPT)
13414           - replace the default doubled-word-selecting regexp (affects all files)
13415           - ignore a particular file-vs-doubled-word match
13416         I nearly used that last one to ignore the "is is" match in
13417         coreutils' NEWS file, since the text was "ls -is is ..."
13418         To do that, I would have added this line to cfg.mk:
13419           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
13420         but it would have ignored any "is is" match in NEWS.
13421         Low probability, but still...
13422         Instead, I changed the text, slightly:
13423           -  ls -is is now consistent with ls -lis in ignoring values returned
13424           +  "ls -is" is now consistent with ls -lis in ignoring values returned
13425         * top/maint.mk (prohibit_double_word_RE_): Provide default.
13426         (prohibit_doubled_word_): Define.
13427         (sc_prohibit_doubled_word): New rule.
13428         (sc_prohibit_the_the): Remove.  Subsumed by the above.
13429
13430 2011-04-10  Jim Meyering  <meyering@redhat.com>
13431
13432         maint: fix doubled-word typo in comment
13433         * m4/gethostname.m4: s/is is/it is/
13434         * m4/getdomainname.m4: Likewise.
13435
13436 2011-04-10  Jim Meyering  <meyering@redhat.com>
13437
13438         maint: remove doubled word: s/it it/it/
13439         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
13440
13441 2011-04-10  Jim Meyering  <meyering@redhat.com>
13442
13443         maint.mk: remove useless semicolon and backslash
13444         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
13445         semicolon and backslash.
13446
13447 2011-04-10  Bruno Haible  <bruno@clisp.org>
13448
13449         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
13450         * modules/stdint-tests (Depends-on): Add wchar.
13451
13452 2011-04-10  Jim Meyering  <meyering@redhat.com>
13453
13454         maint: remove doubled words in comments, e.g., s/a a/a/
13455         * lib/strptime.c (day_of_the_week): s/the the/the/
13456         * tests/test-chown.h (test_chown): s/a a/a/
13457
13458         test-chown.h: correct a cast
13459         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
13460         when the destination is a stat.st_gid.
13461
13462 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
13463
13464         getaddrinfo: Fix test for sa_len member.
13465         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
13466         include <sys/types.h> before <sys/socket.h>.
13467
13468 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
13469
13470         maint: change "can not" to "cannot"
13471         * doc/posix-functions/iconv.texi (iconv): This one crossed line
13472         boundaries.
13473
13474 2011-04-09  Jim Meyering  <meyering@redhat.com>
13475
13476         maint: change "a a" to "a"
13477         * tests/test-lchown.h (test_lchown): s/a a/a/
13478
13479         maint.mk: prohibit \<the the\>
13480         * top/maint.mk (sc_prohibit_the_the): New rule.
13481
13482         maint: fix "the the" in comment
13483         * lib/count-one-bits.h: s/the the/the/
13484
13485         maint: change "can not" to "cannot"
13486         But do not change the occurrences in maintain.texi or in
13487         build-aux/po/Makefile.in.in, which I presume comes from gettext.
13488         * doc/gnulib-tool.texi: s/can not/cannot/
13489         * doc/posix-functions/accept.texi (accept): Likewise.
13490         * doc/posix-functions/socket.texi (socket): Likewise.
13491         * lib/mbrtowc.c: Likewise.
13492
13493         maint.mk: prohibit use of "can not"
13494         * top/maint.mk (sc_prohibit_can_not): New rule.
13495         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
13496
13497 2011-04-09  Bruno Haible  <bruno@clisp.org>
13498
13499         careadlinkat: Guard against misuse of careadlinkatcwd.
13500         * lib/careadlinkat.c: Include <stdlib.h>.
13501         (careadlinkatcwd): Check that the fd argument is as expected.
13502
13503 2011-04-09  Bruno Haible  <bruno@clisp.org>
13504
13505         careadlinkat: Use common coding style.
13506         * lib/careadlinkat.c: Move gnulib includes after system includes.
13507
13508 2011-04-09  Bruno Haible  <bruno@clisp.org>
13509
13510         careadlinkat: Clarify specification.
13511         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
13512         (careadlinkatcwd): Add comment.
13513         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
13514
13515 2011-04-09  Bruno Haible  <bruno@clisp.org>
13516
13517         areadlinkat: Avoid link error on many platforms.
13518         * modules/areadlinkat (Depends-on): Add areadlink.
13519
13520 2011-04-09  Bruno Haible  <bruno@clisp.org>
13521
13522         allocator, careadlinkat: Fix double-inclusion guard.
13523         * lib/allocator.h: Fix double-inclusion guard.
13524         * lib/careadlinkat.h: Likewise.
13525
13526 2011-04-09  Bruno Haible  <bruno@clisp.org>
13527
13528         relocatable-prog-wrapper: Update after module 'areadlink' changed.
13529         * lib/relocwrapper.c: Update dependencies hierarchy.
13530         * build-aux/install-reloc: Update list of files to be compiled.
13531         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
13532         lib/allocator.[hc].
13533
13534 2011-04-08  Eric Blake  <eblake@redhat.com>
13535
13536         strftime: silence gnulib-tool warning
13537         * modules/strftime-tests (Depends-on): Drop automatic dependency.
13538
13539 2011-04-08  Bruno Haible  <bruno@clisp.org>
13540
13541         verify: Fix syntax error with GCC 4.6 in C++ mode.
13542         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
13543         (HAVE_STATIC_ASSERT): New macro.
13544         (verify_true, verify): Use 'static_assert' if it is supported and
13545         '_Static_assert' is not supported.
13546
13547 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
13548
13549         allocator: New module.
13550         * modules/allocator, lib/allocator.c: New files.
13551         * lib/allocator.h (stdlib_allocator): New decl.
13552         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
13553         Remove.  Do not include <stdlib.h>.
13554         (careadlinkat): Use stdlib_allocator instead of rolling our own.
13555         * modules/careadlinkat (Files): Remove lib/allocator.h.
13556         (Depends-on): Add allocator.
13557
13558         stdlib: let modules use system malloc, realloc
13559         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
13560         if !_GL_USE_STDLIB_ALLOC.
13561         (malloc, realloc): Limit this change to a smaller scope.
13562
13563         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
13564         (malloc, realloc): Don't #undef; no longer needed.
13565         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13566         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13567         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
13568         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13569         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13570         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13571         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
13572         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
13573
13574         careadlinkat: rename members to avoid problem
13575         * lib/allocator.h (struct allocator): Rename members from
13576         malloc/realloc to allocate/reallocate, to avoid problems if malloc
13577         and realloc are #define'd.  Reported by Eric Blake in
13578         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
13579         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
13580
13581 2011-04-08  Eric Blake  <eblake@redhat.com>
13582
13583         nonblocking: reduce dependency
13584         * tests/test-nonblocking.c: Only test sockets when in use.
13585         * modules/nonblocking-tests (Depends-on): Drop socket.
13586         (Makefile.am): Link even if sockets are not present.
13587         * modules/pipe2-tests (Makefile.am): Likewise.
13588         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
13589
13590         pipe2: fix O_NONBLOCK support on mingw
13591         * modules/pipe2 (Depends-on): Add nonblocking.
13592         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
13593         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
13594         * tests/test-nonblocking.c (main): Likewise.
13595         * modules/pipe2-tests (Makefile.am): Avoid link failure.
13596
13597         fcntl-h: fix O_ACCMODE on cygwin
13598         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
13599         * lib/fcntl.in.h (O_ACCMODE): Fix it.
13600
13601         pipe-filter: drop O_NONBLOCK workarounds
13602         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
13603         * modules/pipe-filter-ii (Depends-on): Likewise.
13604         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
13605
13606         nonblocking: provide O_NONBLOCK for mingw
13607         * modules/nonblocking (Depends-on): Add open.
13608         (configure.ac): Set new witness macro.
13609         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
13610         * modules/fcntl-h (Makefile.am): Substitute it.
13611         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
13612         nonblocking module is in use.
13613         * lib/nonblocking.c: Adjust portability test.
13614         * lib/open.c (open): Don't let native open see gnulib flag.
13615         * tests/test-fcntl-h.c (main): Enhance test.
13616         * tests/test-open.h (test_open): Likewise.
13617         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
13618
13619         careadlinkat: fix compilation error on mingw
13620         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
13621         within struct allocator.
13622
13623 2011-04-06  Eric Blake  <eblake@redhat.com>
13624
13625         binary-io: relicense under LGPLv2+
13626         * modules/binary-io (License): Relax to LGPLv2+.
13627         Requested for libvirt, and required by pipe2.
13628
13629 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
13630
13631         verify: use _Static_assert if available
13632         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
13633         (verify_true, verify): Use it if available.  This generates better
13634         diagnostics with GCC 4.6.0 and later.
13635
13636 2011-04-05  Bruno Haible  <bruno@clisp.org>
13637
13638         Remove leftover generated .h files after config.status changed.
13639
13640         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
13641         GL_GENERATE_ALLOCA_H.
13642         * modules/alloca-opt (Makefile.am): Remove alloca.h if
13643         GL_GENERATE_ALLOCA_H evaluates to false.
13644
13645         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
13646         GL_GENERATE_ARGZ_H.
13647         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
13648         evaluates to false.
13649
13650         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
13651         GL_GENERATE_BYTESWAP_H.
13652         * modules/byteswap (Makefile.am): Remove byteswap.h if
13653         GL_GENERATE_BYTESWAP_H evaluates to false.
13654
13655         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
13656         GL_GENERATE_ERRNO_H.
13657         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
13658         evaluates to false.
13659
13660         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
13661         GL_GENERATE_FLOAT_H.
13662         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
13663         evaluates to false.
13664
13665         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
13666         GL_GENERATE_FNMATCH_H.
13667         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
13668         GL_GENERATE_FNMATCH_H evaluates to false.
13669
13670         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
13671         GL_GENERATE_GLOB_H.
13672         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
13673         evaluates to false.
13674
13675         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
13676         automake conditional GL_GENERATE_ICONV_H.
13677         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
13678         evaluates to false.
13679
13680         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
13681         GL_GENERATE_NETINET_IN_H.
13682         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
13683         GL_GENERATE_NETINET_IN_H evaluates to false.
13684
13685         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
13686         conditional GL_GENERATE_PTHREAD_H.
13687         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
13688         * modules/pthread (Makefile.am): Remove pthread.h if
13689         GL_GENERATE_PTHREAD_H evaluates to false.
13690
13691         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
13692         GL_GENERATE_SCHED_H.
13693         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
13694         evaluates to false.
13695
13696         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
13697         conditional GL_GENERATE_SELINUX_CONTEXT_H.
13698         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
13699         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
13700
13701         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
13702         GL_GENERATE_STDARG_H.
13703         * modules/stdarg (Makefile.am): Remove stdarg.h if
13704         GL_GENERATE_STDARG_H evaluates to false.
13705
13706         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
13707         GL_GENERATE_STDBOOL_H.
13708         * modules/stdbool (Makefile.am): Remove stdbool.h if
13709         GL_GENERATE_STDBOOL_H evaluates to false.
13710
13711         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
13712         conditional GL_GENERATE_STDDEF_H.
13713         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
13714         * modules/stddef (Makefile.am): Remove stddef.h if
13715         GL_GENERATE_STDDEF_H evaluates to false.
13716
13717         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
13718         GL_GENERATE_STDINT_H.
13719         * modules/stdint (Makefile.am): Remove stdint.h if
13720         GL_GENERATE_STDINT_H evaluates to false.
13721
13722         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
13723         GL_GENERATE_SYSEXITS_H.
13724         * modules/sysexits (Makefile.am): Remove sysexits.h if
13725         GL_GENERATE_SYSEXITS_H evaluates to false.
13726
13727         Reported by Karl Berry and Ralf Wildenhues.
13728
13729 2011-04-05  Bruno Haible  <bruno@clisp.org>
13730
13731         Ensure to rebuild generated .h files when config.status has changed.
13732         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
13733         config.status.
13734         * modules/ctype (Makefile.am): Likewise.
13735         * modules/dirent (Makefile.am): Likewise.
13736         * modules/errno (Makefile.am): Likewise.
13737         * modules/fcntl-h (Makefile.am): Likewise.
13738         * modules/float (Makefile.am): Likewise.
13739         * modules/getopt-posix (Makefile.am): Likewise.
13740         * modules/glob (Makefile.am): Likewise.
13741         * modules/iconv-h (Makefile.am): Likewise.
13742         * modules/inttypes (Makefile.am): Likewise.
13743         * modules/langinfo (Makefile.am): Likewise.
13744         * modules/locale (Makefile.am): Likewise.
13745         * modules/math (Makefile.am): Likewise.
13746         * modules/netdb (Makefile.am): Likewise.
13747         * modules/netinet_in (Makefile.am): Likewise.
13748         * modules/poll-h (Makefile.am): Likewise.
13749         * modules/pthread (Makefile.am): Likewise.
13750         * modules/pty (Makefile.am): Likewise.
13751         * modules/sched (Makefile.am): Likewise.
13752         * modules/search (Makefile.am): Likewise.
13753         * modules/selinux-h (Makefile.am): Likewise.
13754         * modules/signal (Makefile.am): Likewise.
13755         * modules/spawn (Makefile.am): Likewise.
13756         * modules/stdarg (Makefile.am): Likewise.
13757         * modules/stdbool (Makefile.am): Likewise.
13758         * modules/stddef (Makefile.am): Likewise.
13759         * modules/stdint (Makefile.am): Likewise.
13760         * modules/stdio (Makefile.am): Likewise.
13761         * modules/stdlib (Makefile.am): Likewise.
13762         * modules/string (Makefile.am): Likewise.
13763         * modules/strings (Makefile.am): Likewise.
13764         * modules/sys_file (Makefile.am): Likewise.
13765         * modules/sys_ioctl (Makefile.am): Likewise.
13766         * modules/sys_select (Makefile.am): Likewise.
13767         * modules/sys_socket (Makefile.am): Likewise.
13768         * modules/sys_stat (Makefile.am): Likewise.
13769         * modules/sys_time (Makefile.am): Likewise.
13770         * modules/sys_times (Makefile.am): Likewise.
13771         * modules/sys_utsname (Makefile.am): Likewise.
13772         * modules/sys_wait (Makefile.am): Likewise.
13773         * modules/sysexits (Makefile.am): Likewise.
13774         * modules/termios (Makefile.am): Likewise.
13775         * modules/time (Makefile.am): Likewise.
13776         * modules/unistd (Makefile.am): Likewise.
13777         * modules/wchar (Makefile.am): Likewise.
13778         * modules/wctype-h (Makefile.am): Likewise.
13779         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
13780
13781 2011-04-05  Bruno Haible  <bruno@clisp.org>
13782
13783         pipe2: Relicense under LGPLv2+.
13784         * modules/pipe2 (License): Change to LGPLv2+.
13785         Requested by Eric Blake, for libvirt.
13786
13787 2011-04-05  Bruce Korb  <bkorb@gnu.org>
13788
13789         bootstrap: compute gnulib_extra_files after updating build_aux
13790         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
13791         change build_aux or also supply gnulib_extra_files.  Handle correctly.
13792
13793 2011-04-05  Eric Blake  <eblake@redhat.com>
13794
13795         bootstrap: preserve git whitelist item sorting
13796         * build-aux/bootstrap (sort_patterns): New function.
13797         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
13798
13799 2011-04-05  Simon Josefsson  <simon@josefsson.org>
13800
13801         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
13802         sc_space_tab check.
13803
13804 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
13805
13806         areadlink, areadlinkat: rewrite in terms of careadlinkat
13807         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
13808         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
13809         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
13810         (malloc, realloc): Remove #undefs.
13811         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
13812         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
13813         readlink, ssize_t, stdint, unistd.
13814         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
13815         areadlink, stdint.
13816
13817         careadlinkat: new module
13818         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
13819         * modules/careadlinkat: New files, written by me with
13820         a review and feedback from Ben Pfaff in
13821         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
13822
13823 2011-04-01  Bruno Haible  <bruno@clisp.org>
13824
13825         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
13826         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
13827         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
13828         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
13829         Reported by Bruce Korb <bruce.korb@gmail.com>.
13830
13831 2011-04-01  Bruno Haible  <bruno@clisp.org>
13832
13833         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
13834         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
13835         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
13836         * modules/wcpcpy (Depends-on): Add extensions.
13837         * modules/wcpncpy (Depends-on): Likewise.
13838         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
13839         systems.
13840         * doc/posix-functions/wcpncpy.texi: Likewise.
13841         * doc/posix-functions/wcwidth.texi: Likewise.
13842
13843 2011-03-31  Eric Blake  <eblake@redhat.com>
13844
13845         nonblocking: fix mingw test failures
13846         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
13847         non-blocking flag on regular file.
13848         (get_nonblocking_flag): Set errno on invalid fd.
13849         * tests/test-nonblocking.c (main): Avoid test failure on
13850         directories if fchdir is not active.
13851         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
13852
13853 2011-03-31  Bruno Haible  <bruno@clisp.org>
13854
13855         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
13856         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
13857         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
13858         Reported by Simon Josefsson <simon@josefsson.org>.
13859
13860 2011-03-31  Bruno Haible  <bruno@clisp.org>
13861         and Eric Blake  <eblake@redhat.com>
13862
13863         nonblocking: new module
13864         * modules/nonblocking: New module.
13865         * modules/nonblocking-tests: Likewise.
13866         * lib/nonblocking.h: New file.
13867         * lib/nonblocking.c: Likewise.
13868         * tests/test-nonblocking.c: New test.
13869         * lib/ioctl.c (ioctl) [mingw]: Update comment.
13870
13871 2011-03-30  Bruno Haible  <bruno@clisp.org>
13872
13873         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
13874         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
13875         instead of 'printf' format for GCC >= 4.4.
13876         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
13877         (fprintf, printf, vfprintf, vprintf): Declare with
13878         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
13879         the system's vfprintf() function.
13880         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
13881
13882 2011-03-30  Eric Blake  <eblake@redhat.com>
13883
13884         passfd: fix scoping bug
13885         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
13886         before sendmsg/recvmsg.
13887
13888         passfd: standardize coding conventions
13889         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
13890         can be learned at compile time.
13891         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
13892         ifdefs.
13893         (sendfd, recvfd): Follow gnulib code conventions.
13894
13895         passfd: fix incorrect sendmsg arguments
13896         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
13897         incorrect msg_controllen value.
13898         * modules/passfd-tests (Depends-on): Check for alarm.
13899         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
13900         Reported by Bastien ROUCARIES.
13901
13902 2011-03-30  Bruno Haible  <bruno@clisp.org>
13903
13904         c-strcasestr: Relicense under LGPLv2+.
13905         * modules/c-strcasestr (License): Change to LGPLv2+.
13906         Requested by Eric Blake, for libvirt.
13907
13908 2011-03-30  Simon Josefsson  <simon@josefsson.org>
13909
13910         * users.txt: Add libidn2.  Fix libtasn1 link.
13911
13912 2011-03-30  Jim Meyering  <meyering@redhat.com>
13913
13914         tests: readlink* ("",... fails with EINVAL on newer kernels
13915         readlink and readlinkat have typically failed with ENOENT for
13916         the invalid, empty file name,  "".  However, with the advent
13917         of linux-2.6.39, they fail with EINVAL.
13918         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
13919         when operating on the empty file name.
13920         * tests/test-readlink.h (test_readlink): Likewise.
13921
13922 2011-03-29  Bruno Haible  <bruno@clisp.org>
13923
13924         Relicense some modules under LGPLv2+, for libidn2.
13925         * modules/array-mergesort (License): Change to LGPLv2+.
13926         * modules/c-strcaseeq (License): Likewise.
13927         * modules/striconveh (License): Likewise.
13928         * modules/striconveha (License): Likewise.
13929         * modules/uniconv/base (License): Likewise.
13930         * modules/uniconv/u8-conv-from-enc (License): Likewise.
13931         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
13932         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
13933         * modules/unictype/base (License): Likewise.
13934         * modules/unictype/bidiclass-of (License): Likewise.
13935         * modules/unictype/category-M (License): Likewise.
13936         * modules/unictype/category-none (License): Likewise.
13937         * modules/unictype/category-of (License): Likewise.
13938         * modules/unictype/category-test (License): Likewise.
13939         * modules/unictype/category-test-withtable (License): Likewise.
13940         * modules/unictype/combining-class (License): Likewise.
13941         * modules/unictype/joiningtype-of (License): Likewise.
13942         * modules/unictype/scripts (License): Likewise.
13943         * modules/uninorm/base (License): Likewise.
13944         * modules/uninorm/canonical-decomposition (License): Likewise.
13945         * modules/uninorm/composition (License): Likewise.
13946         * modules/uninorm/decompose-internal (License): Likewise.
13947         * modules/uninorm/decomposition-table (License): Likewise.
13948         * modules/uninorm/nfc (License): Likewise.
13949         * modules/uninorm/nfd (License): Likewise.
13950         * modules/uninorm/u32-normalize (License): Likewise.
13951         * modules/unistr/base (License): Likewise.
13952         * modules/unistr/u32-cpy (License): Likewise.
13953         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
13954         * modules/unistr/u32-to-u8 (License): Likewise.
13955         * modules/unistr/u32-uctomb (License): Likewise.
13956         * modules/unistr/u8-check (License): Likewise.
13957         * modules/unistr/u8-mblen (License): Likewise.
13958         * modules/unistr/u8-mbtouc (License): Likewise.
13959         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
13960         * modules/unistr/u8-mbtoucr (License): Likewise.
13961         * modules/unistr/u8-prev (License): Likewise.
13962         * modules/unistr/u8-strlen (License): Likewise.
13963         * modules/unistr/u8-to-u32 (License): Likewise.
13964         * modules/unistr/u8-uctomb (License): Likewise.
13965         * modules/unitypes (License): Likewise.
13966         Requested by Simon Josefsson.
13967
13968 2011-03-29  Simon Josefsson  <simon@josefsson.org>
13969
13970         lib-symbol-visibility: Add a notice.
13971         * modules/lib-symbol-visibility (Notice): New field.
13972
13973 2011-03-29  Bruno Haible  <bruno@clisp.org>
13974
13975         getaddrinfo: Doc fix.
13976         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
13977         section "fixed in Gnulib".
13978
13979 2011-03-28  Simon Josefsson  <simon@josefsson.org>
13980
13981         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
13982         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
13983
13984 2011-03-26  Bruno Haible  <bruno@clisp.org>
13985
13986         unictype/property-byname: Reduce the number of load-time relocations.
13987         * lib/unictype/pr_byname.c: Include <stdlib.h>.
13988         (UC_PROPERTY_INDEX_*): New enumeration values.
13989         (uc_property_byname): Convert an index from the lookup table to an
13990         uc_property_t.
13991         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
13992         values.
13993
13994 2011-03-26  Bruno Haible  <bruno@clisp.org>
13995
13996         unictype/property-byname: Allow omitted word separators and aliases.
13997         * lib/unictype/pr_byname.gperf: Add property names without word
13998         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
13999         for 'space'.
14000
14001 2011-03-26  Bruno Haible  <bruno@clisp.org>
14002
14003         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
14004         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
14005         also hyphens to space.
14006         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
14007         without spaces.
14008         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
14009
14010 2011-03-26  Bruno Haible  <bruno@clisp.org>
14011
14012         unictype/joiningtype-byname: Recognize long names as well.
14013         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
14014         a long name.
14015         * lib/unictype/joiningtype_byname.c: Include <string.h>,
14016         unictype/joiningtype_byname.h.
14017         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
14018         * lib/unictype/joiningtype_byname.gperf: New file.
14019         * modules/unictype/joiningtype-byname (Files): Add
14020         lib/unictype/joiningtype_byname.gperf.
14021         (Depends-on): Add gperf.
14022         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
14023         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
14024         long names.
14025
14026         Tests for module 'unictype/joiningtype-longname'.
14027         * modules/unictype/joiningtype-longname-tests: New file.
14028         * tests/unictype/test-joiningtype_longname.c: New file.
14029
14030         New module 'unictype/joiningtype-longname'.
14031         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
14032         * lib/unictype/joiningtype_longname.c: New file.
14033         * modules/unictype/joiningtype-longname: New file.
14034         * modules/unictype/joiningtype-all (Depends-on): Add
14035         unictype/joiningtype-longname.
14036
14037 2011-03-26  Bruno Haible  <bruno@clisp.org>
14038
14039         unictype/bidiclass-byname: Recognize long names as well.
14040         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
14041         name.
14042         * lib/unictype/bidi_byname.c: Include <string.h>,
14043         unictype/bidi_byname.h.
14044         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
14045         * lib/unictype/bidi_byname.gperf: New file.
14046         * modules/unictype/bidiclass-byname (Files): Add
14047         lib/unictype/bidi_byname.gperf.
14048         (Depends-on): Add gperf.
14049         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
14050         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
14051         long names.
14052
14053         Tests for module 'unictype/bidiclass-longname'.
14054         * modules/unictype/bidiclass-longname-tests: New file.
14055         * tests/unictype/test-bidi_longname.c: New file.
14056
14057         New module 'unictype/bidiclass-longname'.
14058         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
14059         * lib/unictype/bidi_longname.c: New file.
14060         * modules/unictype/bidiclass-longname: New file.
14061         * modules/unictype/bidiclass-all (Depends-on): Add
14062         unictype/bidiclass-longname.
14063
14064 2011-03-26  Bruno Haible  <bruno@clisp.org>
14065
14066         unictype/bidi*: Rename modules.
14067         * modules/unictype/bidiclass-all: Renamed from
14068         modules/unictype/bidicategory-all.
14069         * modules/unictype/bidiclass-name: Renamed from
14070         modules/unictype/bidiclass-name.
14071         (Description): Update.
14072         * modules/unictype/bidiclass-name-tests: Renamed from
14073         modules/unictype/bidicategory-name-tests.
14074         * modules/unictype/bidiclass-byname: Renamed from
14075         modules/unictype/bidicategory-byname.
14076         (Description): Update.
14077         * modules/unictype/bidiclass-byname-tests: Renamed from
14078         modules/unictype/bidicategory-byname-tests.
14079         * modules/unictype/bidiclass-of: Renamed from
14080         modules/unictype/bidicategory-of.
14081         (Description): Update.
14082         * modules/unictype/bidiclass-of-tests: Renamed from
14083         modules/unictype/bidicategory-of-tests.
14084         * modules/unictype/bidiclass-test: Renamed from
14085         modules/unictype/bidicategory-test.
14086         (Description): Update.
14087         * modules/unictype/bidiclass-test-tests: Renamed from
14088         modules/unictype/bidicategory-test-tests.
14089         * modules/unictype/bidicategory-all: New file, a simple redirection.
14090         * modules/unictype/bidicategory-name: Likewise.
14091         * modules/unictype/bidicategory-byname: Likewise.
14092         * modules/unictype/bidicategory-of: Likewise.
14093         * modules/unictype/bidicategory-test: Likewise.
14094         * modules/unictype/property-bidi-* (Dependencies): Update.
14095         * lib/unictype/bidi_*.c: Update comment.
14096
14097 2011-03-26  Bruno Haible  <bruno@clisp.org>
14098
14099         unictype/bidi*: Rename functions, part 2.
14100         * modules/unictype/bidicategory-name (configure.ac): Update required
14101         libunistring version.
14102         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
14103
14104 2011-03-25  Bruno Haible  <bruno@clisp.org>
14105
14106         New module 'unictype/combining-class-all'.
14107         * modules/unictype/combining-class-all: New file.
14108
14109         Tests for module 'unictype/combining-class-byname'.
14110         * modules/unictype/combining-class-byname-tests: New file.
14111         * tests/unictype/test-combiningclass_byname.c: New file.
14112
14113         New module 'unictype/combining-class-byname'.
14114         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
14115         * lib/unictype/combiningclass_byname.c: New file.
14116         * lib/unictype/combiningclass_byname.gperf: New file.
14117         * modules/unictype/combining-class-byname: New file.
14118
14119         Tests for module 'unictype/combining-class-longname'.
14120         * modules/unictype/combining-class-longname-tests: New file.
14121         * tests/unictype/test-combiningclass_longname.c: New file.
14122
14123         New module 'unictype/combining-class-longname'.
14124         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
14125         * lib/unictype/combiningclass_longname.c: New file.
14126         * modules/unictype/combining-class-longname: New file.
14127
14128         Tests for module 'unictype/combining-class-name'.
14129         * modules/unictype/combining-class-name-tests: New file.
14130         * tests/unictype/test-combiningclass_name.c: New file.
14131
14132         New module 'unictype/combining-class-name'.
14133         * lib/unictype.in.h (uc_combining_class_name): New declaration.
14134         * lib/unictype/combiningclass_name.c: New file.
14135         * modules/unictype/combining-class-name: New file.
14136
14137 2011-03-25  Bruno Haible  <bruno@clisp.org>
14138
14139         unictype/combining-class: Rename source files.
14140         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
14141         of unictype/combining.h.
14142         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
14143         Update.
14144         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
14145         * modules/unictype/combining-class (Description): Fix.
14146         (Files, Makefile.am): Update.
14147         * tests/unictype/test-combiningclass.c: Renamed from
14148         tests/unictype/test-combining.c.
14149         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
14150
14151 2011-03-25  Bruno Haible  <bruno@clisp.org>
14152
14153         unictype: Update list of canonical combining classes.
14154         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
14155
14156 2011-03-25  Bruno Haible  <bruno@clisp.org>
14157
14158         unictype/category-byname: Recognize long names as well.
14159         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
14160         a long name.
14161         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
14162         unictype/categ_byname.h.
14163         (UC_CATEGORY_INDEX_*): New enumeration values.
14164         (uc_general_category_byname): Use uc_general_category_lookup and
14165         convert from index to value.
14166         * lib/unictype/categ_byname.gperf: New file.
14167         * modules/unictype/category-byname (Files): Add
14168         lib/unictype/categ_byname.gperf.
14169         (Depends-on): Add gperf.
14170         (Makefile.am): Add rule for generating unictype/categ_byname.h.
14171         * tests/unictype/test-categ_byname.c (main): Test the recognition of
14172         long names.
14173
14174         Tests for module 'unictype/category-longname'.
14175         * modules/unictype/category-longname-tests: New file.
14176         * tests/unictype/test-categ_longname.c: New file.
14177
14178         New module 'unictype/category-longname'.
14179         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
14180         * lib/unictype/categ_longname.c: New file.
14181         * modules/unictype/category-longname: New file.
14182         * modules/unictype/category-all (Depends-on): Add it.
14183
14184 2011-03-25  Bruno Haible  <bruno@clisp.org>
14185
14186         Tests for module 'unictype/category-LC'.
14187         * modules/unictype/category-LC-tests: New file.
14188         * tests/unictype/test-categ_LC.c: New file, automatically generated.
14189
14190         New module 'unictype/category-LC'.
14191         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
14192         (UC_CATEGORY_LC): New declaration.
14193         (UC_CASED_LETTER): New macro.
14194         * lib/gen-uni-tables.c (is_category_LC): New function.
14195         (output_categories): Also handle category LC.
14196         (UC_CATEGORY_MASK_LC): New enumeration value.
14197         (general_category_byname): Also handle category LC.
14198         * lib/unictype/categ_LC.c: New file.
14199         * lib/unictype/categ_LC.h: New file, automatically generated.
14200         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
14201         category LC.
14202         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
14203         * modules/unictype/category-LC: New file.
14204         * modules/unictype/category-byname (Depends-on): Add
14205         unictype/category-LC.
14206         * modules/unictype/category-all (Depends-on): Likewise.
14207
14208 2011-03-25  Eric Blake  <eblake@redhat.com>
14209
14210         xmalloc: revert yesterday's regression
14211         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
14212         realloc's underlying behavior (allowing allocation of zero-size
14213         objects, especially if malloc-gnu is also in use).
14214
14215 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
14216
14217         maint.mk: add missing version to VC-tag
14218         * top/maint.mk: git tag was missing actual tag name; add it.
14219
14220         valgrind: do leak checking, and exit with code 1 on error (not 0)
14221         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
14222         to VALGRIND.
14223
14224 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
14225
14226         posix-modules: say what it does.
14227         * posix-modules: Add a line to the --help output saying what it does.
14228
14229 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
14230
14231         xmalloc: Do not leak if underlying realloc is C99 compatible.
14232         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
14233         This avoids a leak on C99-based systems.  See
14234         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
14235
14236 2011-03-24  Eric Blake  <eblake@redhat.com>
14237
14238         realloc: document portability problem
14239         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
14240         passing 0 size to realloc.
14241
14242 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
14243
14244         doc: update users.txt
14245         * users.txt: Add cvsps, tmpwatch
14246
14247 2011-03-23  Matt Rice  <ratmice@gmail.com>
14248
14249         doc: update users.txt
14250         * users.txt: Add gdb.
14251
14252 2011-03-23  Jim Meyering  <meyering@redhat.com>
14253
14254         doc: update users.txt
14255         Looking through matches up to the following URL (there are still
14256         several more pages), I found several projects that use gnulib:
14257         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
14258         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
14259         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
14260
14261 2011-03-22  Bruno Haible  <bruno@clisp.org>
14262
14263         unictype/bidi*: Rename functions.
14264         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
14265         uc_bidi_class, uc_is_bidi_class): New declarations.
14266         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
14267         uc_bidi_category_byname.
14268         (uc_bidi_category_byname): New function.
14269         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
14270         u_bidi_category_name.
14271         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
14272         (uc_bidi_category_name): New function.
14273         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
14274         uc_bidi_category.
14275         (uc_bidi_category): New function.
14276         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
14277         uc_is_bidi_category. Invoke uc_bidi_class.
14278         (uc_is_bidi_category): New function.
14279         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
14280         instead of uc_bidi_category_byname.
14281         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
14282         instead of uc_bidi_category_name.
14283         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
14284         uc_bidi_category.
14285         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
14286         instead of uc_is_bidi_category.
14287
14288 2011-03-21  Bruno Haible  <bruno@clisp.org>
14289
14290         New module 'unictype/joininggroup-all'.
14291         * modules/unictype/joininggroup-all: New file.
14292
14293         Tests for module 'unictype/joininggroup-of'.
14294         * modules/unictype/joininggroup-of-tests: New file.
14295         * tests/unictype/test-joininggroup_of.c: New file.
14296         * tests/unictype/test-joininggroup_of.h: New file, automatically
14297         generated by gen-uni-tables.
14298
14299         New module 'unictype/joininggroup-of'.
14300         * modules/unictype/joininggroup-of: New file.
14301         * lib/unictype/joininggroup_of.c: New file.
14302         * lib/unictype/joininggroup_of.h: New file, automatically generated by
14303         gen-uni-tables.
14304
14305         Tests for module 'unictype/joininggroup-byname'.
14306         * modules/unictype/joininggroup-byname-tests: New file.
14307         * tests/unictype/test-joininggroup_byname.c: New file.
14308
14309         New module 'unictype/joininggroup-byname'.
14310         * modules/unictype/joininggroup-byname: New file.
14311         * lib/unictype/joininggroup_byname.c: New file.
14312         * lib/unictype/joininggroup_byname.gperf: New file.
14313
14314         Tests for module 'unictype/joininggroup-name'.
14315         * modules/unictype/joininggroup-name-tests: New file.
14316         * tests/unictype/test-joininggroup_name.c: New file.
14317
14318         New module 'unictype/joininggroup-name'.
14319         * modules/unictype/joininggroup-name: New file.
14320         * lib/unictype/joininggroup_name.c: New file.
14321         * lib/unictype/joininggroup_name.h: New file.
14322
14323         New module 'unictype/joiningtype-all'.
14324         * modules/unictype/joiningtype-all: New file.
14325
14326         Tests for module 'unictype/joiningtype-of'.
14327         * modules/unictype/joiningtype-of-tests: New file.
14328         * tests/unictype/test-joiningtype_of.c: New file.
14329         * tests/unictype/test-joiningtype_of.h: New file, automatically
14330         generated by gen-uni-tables.
14331
14332         New module 'unictype/joiningtype-of'.
14333         * modules/unictype/joiningtype-of: New file.
14334         * lib/unictype/joiningtype_of.c: New file.
14335         * lib/unictype/joiningtype_of.h: New file, automatically generated by
14336         gen-uni-tables.
14337
14338         Tests for module 'unictype/joiningtype-byname'.
14339         * modules/unictype/joiningtype-byname-tests: New file.
14340         * tests/unictype/test-joiningtype_byname.c: New file.
14341
14342         New module 'unictype/joiningtype-byname'.
14343         * modules/unictype/joiningtype-byname: New file.
14344         * lib/unictype/joiningtype_byname.c: New file.
14345
14346         Tests for module 'unictype/joiningtype-name'.
14347         * modules/unictype/joiningtype-name-tests: New file.
14348         * tests/unictype/test-joiningtype_name.c: New file.
14349
14350         New module 'unictype/joiningtype-name'.
14351         * modules/unictype/joiningtype-name: New file.
14352         * lib/unictype/joiningtype_name.c: New file.
14353
14354         unictype: Add support for Arabic shaping properties.
14355         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
14356         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
14357         declarations.
14358         (UC_JOINING_GROUP_*): New enumeration values.
14359         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
14360         declarations.
14361         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
14362         (unicode_joining_type): New variable.
14363         (UC_JOINING_GROUP_*): New enumeration values.
14364         (unicode_joining_group): New variable.
14365         (fill_arabicshaping, joining_type_as_c_identifier,
14366         output_joining_type_test, output_joining_type,
14367         joining_group_as_c_identifier, output_joining_group_test,
14368         output_joining_group): New functions.
14369         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
14370         fill_arabicshaping and output_joining_type_test, output_joining_type,
14371         output_joining_group_test, output_joining_group.
14372         Reported by Simon Josefsson.
14373
14374 2011-03-21  Jim Meyering  <meyering@redhat.com>
14375
14376         strftime: fix a bug in yesterday's change
14377         * lib/strftime.c (add): Accommodate width's initial value of -1.
14378         Otherwise, nstrftime would copy uninitialized data into
14379         the result buffer.
14380
14381 2011-03-21  Jim Meyering  <meyering@redhat.com>
14382
14383         tests: add strftime-tests module
14384         * tests/test-strftime.c: New file.
14385         * modules/strftime-tests: New module.
14386
14387 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14388
14389         strftime: don't assume a byte count fits in 'int'
14390         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
14391         found this problem by static analysis, using gcc -Wstrict-overflow
14392         (GCC 4.5.2, x86-64).  This reported an optimization that depended
14393         on an integer overflow having undefined behavior, but it turns out
14394         that the argument is a size, which might not fit in 'int' anyway,
14395
14396 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14397
14398         stdio: don't require ignore_value around fwrite
14399
14400         This patch works around libc bug 11959
14401         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
14402         Without this patch, applications must often write
14403         ignore_value (fwrite (...)) even though the ignore_value is
14404         not helpful here.  It's common to write many objects, using
14405         fwrite/printf/etc., and then use ferror to detect output error.
14406
14407         I considered making this patch optional, but decided against it,
14408         because libc is obviously being inconsistent here: there is no
14409         reason libc should insist that user code must inspect fwrite
14410         return's value without also insisting that it inspect printf's,
14411         putchar's, etc.  If user code wants to have a strict style where
14412         all these functions' values are checked (so that ferror need not
14413         be checked), we could add support for that style in a new gnulib
14414         module, but in the meantime it's better to be consistent and to
14415         support common usage.
14416
14417         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
14418         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
14419         that we are compiling in checking mode, and if not C++, and
14420         if not already wrapping fwrite for some other reason.
14421         (fwrite): #define to rpl_fwrite if the latter is defined.
14422
14423 2011-03-20  Bruno Haible  <bruno@clisp.org>
14424
14425         verror: Fix compilation error introduced on 2011-02-13.
14426         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
14427         instead of __attribute__.
14428         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14429
14430 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
14431             Bruno Haible  <bruno@clisp.org>
14432
14433         socklen: do not depend on sys_socket
14434         While trying to modify Emacs to use gnulib's socklen module,
14435         I discovered a circular dependency: socklen depends on sys_socket
14436         and vice versa.  Emacs can use socklen, but it does not need
14437         sys_socket because it has its own substitute for sys/socket.h.
14438         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
14439         gl_TYPE_SOCKLEN_T.
14440         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
14441         gl_PREREQ_SYS_H_SOCKET.
14442         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
14443         gl_PREREQ_SYS_H_SOCKET.
14444         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
14445         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
14446         * modules/socklen (Depends-on): Do not depend on sys_socket.
14447         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
14448
14449 2011-03-20  Jim Meyering  <meyering@redhat.com>
14450
14451         maint.mk: sort file names *after* new transformation
14452         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
14453         prefix would have led to an unwarranted failure in GNU parted.
14454         Sort after that transformation.
14455
14456 2011-03-19  Jim Meyering  <meyering@redhat.com>
14457
14458         maint.mk: fix po-file syntax-check rule
14459         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
14460         Patch by Bruno Haible.
14461
14462 2011-03-19  Bruno Haible  <bruno@clisp.org>
14463
14464         socklen: Update comment.
14465         * m4/socklen.m4: Update comment about platforms.
14466
14467 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14468             Bruno Haible  <bruno@clisp.org>
14469
14470         inet_ntop, inet_pton: Simplify.
14471         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
14472         documented to provide socklen_t and we already depend on sys_socket.
14473         * modules/inet_pton (Depends-on): Likewise.
14474         * lib/arpa_inet.in.h: Adjust comment.
14475
14476 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14477             Bruno Haible  <bruno@clisp.org>
14478
14479         netdb: Simplify.
14480         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
14481         documented to provide socklen_t and we already depend on sys_socket.
14482         * lib/netdb.in.h: Adjust comment.
14483
14484 2011-03-19  Bruno Haible  <bruno@clisp.org>
14485
14486         sys_socket, netdb: Document problem with socklen_t.
14487         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
14488         platforms.
14489         * doc/posix-headers/netdb.texi: Likewise.
14490
14491 2011-03-18  Eric Blake  <eblake@redhat.com>
14492
14493         maint.mk: let po check work in VPATH build
14494         * top/maint.mk (po_file): Allow cfg.mk override.
14495         (sc_po_check): Allow VPATH use.
14496         Reported by Jiri Denemark.
14497
14498 2011-03-16  Jim Meyering  <meyering@redhat.com>
14499
14500         maint.mk: allow fine-grained syntax-check exclusion via Make variables
14501         Before, you would have had to create one .x-sc_ file per rule in order
14502         to exempt offending files.  Now, you may instead use a Make variable --
14503         usually defined in cfg.mk -- whose name identifies the affected rule.
14504         * top/maint.mk (_sc_excl): Define.
14505         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
14506         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
14507
14508 2011-03-13  Bruno Haible  <bruno@clisp.org>
14509
14510         ignore-value tests: Avoid warnings.
14511         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
14512         empty for gcc < 3.4.
14513
14514 2011-03-13  Bruno Haible  <bruno@clisp.org>
14515
14516         passfd: Fix link error on Solaris.
14517         * modules/passfd (Description): Correct.
14518         (Depends-on): Add socketlib.
14519         (Link): New section.
14520         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
14521
14522 2011-03-13  Bruno Haible  <bruno@clisp.org>
14523
14524         passfd: Fix link error on AIX 5.2.
14525         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
14526
14527 2011-03-13  Bruno Haible  <bruno@clisp.org>
14528
14529         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
14530         * lib/sys_socket.in.h: Include <stddef.h>.
14531         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
14532         CMSG_FIRSTHDR. Remove unused variable.
14533
14534 2011-03-13  Bruno Haible  <bruno@clisp.org>
14535
14536         passfd: Fix compilation error on OpenBSD.
14537         * lib/passfd.c: Include <sys/uio.h>.
14538
14539 2011-03-13  Bruno Haible  <bruno@clisp.org>
14540
14541         passfd test: Fix warnings.
14542         * tests/test-passfd.c: Include <sys/wait.h>.
14543         (main): Fix typo.
14544
14545 2011-03-13  Bruno Haible  <bruno@clisp.org>
14546
14547         passfd module, part 4, tweaks.
14548         * tests/test-passfd.c: Reorder includes.
14549         (main): Fix perror and printf calls.
14550
14551 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14552
14553         passfd module, part 4.
14554         * modules/passfd-tests: New file.
14555         * tests/test-passfd.c: New file.
14556
14557 2011-03-13  Jim Meyering  <meyering@redhat.com>
14558
14559         Makefile: rely on GNU make; derive syntax-check rule names
14560         Rather than requiring that each sc_ rule be listed as a dependent
14561         of "check", use features of GNU make to derive the list.
14562         * Makefile (syntax-check-rules): Define.
14563         (check): Depend on the new variable, not the hard-coded list.
14564
14565 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
14566             Bruno Haible  <bruno@clisp.org>
14567
14568         passfd module, part 3.
14569         * lib/passfd.h (recvfd): Add a flags argument.
14570         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
14571         (recvfd): Add a flags argument.
14572         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
14573         exists.
14574         * modules/passfd (Depends-on): Add cloexec.
14575         Suggested by Eric Blake.
14576
14577 2011-03-13  Bruno Haible  <bruno@clisp.org>
14578
14579         passfd module, part 2, tweaks.
14580         * modules/passfd (Files): Reorder.
14581         (Depends-on): Remove errno.
14582         (Include): Remove <sys/socket.h>, <sys/un.h>.
14583         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
14584         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
14585         specification header. Include <sys/socket.h> always. Don't include
14586         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
14587         (sendfd): Clarify that it sets errno when it fails.
14588         (recvfd): Fix specification.
14589
14590 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14591
14592         passfd module, part 2.
14593         * modules/passfd: New file.
14594         * lib/passfd.h: New file.
14595         * lib/passfd.c: New file.
14596
14597 2011-03-12  Bruno Haible  <bruno@clisp.org>
14598
14599         wcswidth, mbswidth: Avoid integer overflow.
14600         * lib/wcswidth.c: Include <limits.h>.
14601         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
14602         * lib/mbswidth.c: Include <limits.h>.
14603         (mbsnwidth): Avoid 'int' overflow.
14604         Reported by Jim Meyering.
14605
14606 2011-03-12  Bruno Haible  <bruno@clisp.org>
14607
14608         futimens, utimensat: Avoid endless recursion on Solaris 10.
14609         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
14610         Solaris.
14611         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
14612         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
14613
14614 2011-03-11  Jim Meyering  <meyering@redhat.com>
14615
14616         maint.mk: relax a regexp to accommodate other formatting styles
14617         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
14618         between "ngettext" and the following "(".
14619
14620 2011-03-11  Pádraig Brady <P@draigBrady.com>
14621
14622         maint.mk: suppress a false positive warning
14623         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
14624         diagnostics are marked with ngettext.
14625
14626 2011-03-10  Eric Blake  <eblake@redhat.com>
14627
14628         wchar: add explicit dependencies, for Tru64
14629         * modules/mbmemcasecoll (Depends-on): Add wchar.
14630         * modules/mbtowc (Depends-on): Likewise.
14631         * modules/vasnprintf (Depends-on): Likewise.
14632         * modules/unistdio/u-printf-args (Depends-on): Likewise.
14633         * modules/wctomb (Depends-on): Likewise.
14634         Reported by Peter O'Gorman.
14635
14636 2011-03-08  Bruno Haible  <bruno@clisp.org>
14637
14638         passfd module, part 1, tweaks.
14639         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
14640         Improve indentation. Improve AC_MSG_CHECKING messages.
14641         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
14642         gl_SOCKET_FAMILIES.
14643
14644 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
14645
14646         passfd module, part 1.
14647         * m4/afunix.m4: New file.
14648         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
14649         sockets.
14650
14651 2011-03-08  Bruno Haible  <bruno@clisp.org>
14652
14653         regex-quote: New API.
14654         * lib/regex-quote.h: Include <stdbool.h>.
14655         (struct regex_quote_spec): New type.
14656         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
14657         New declarations.
14658         (regex_quote_length, regex_quote_copy, regex_quote): Take a
14659         'const struct regex_quote_spec *' argument.
14660         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
14661         (pcre_special): New constant.
14662         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
14663         New functions.
14664         (regex_quote_length, regex_quote_copy, regex_quote): Take a
14665         'const struct regex_quote_spec *' argument.
14666         * modules/regex-quote (Depends-on): Add stdbool.
14667         * tests/test-regex-quote.c (check): Update for new API. Add test for
14668         anchored results.
14669         * NEWS: Mention the API change.
14670         Reported by Reuben Thomas and Eric Blake.
14671
14672 2011-03-06  Bruno Haible  <bruno@clisp.org>
14673
14674         regex-quote: Fix creation of POSIX extended regular expressions.
14675         * lib/regex-quote.c (ere_special): Add grouping and alternation
14676         operators.
14677
14678 2011-03-05  Bruno Haible  <bruno@clisp.org>
14679
14680         doc: Improve doc regarding autopoint vs. gnulib.
14681         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
14682         disable autopoint while running autoreconf.
14683         Suggested by Ralf Wildenhues.
14684
14685 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14686
14687         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
14688         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
14689
14690 2011-03-03  Bruce Korb  <bkorb@gnu.org>
14691
14692         parse-duration: remove xalloc.h dependency
14693         * lib/parse-duration.c (parse_period): handle NULL return from
14694         strdup instead of calling xstrdup().
14695         * modules/parse-duration: remove "xalloc" dependency
14696
14697 2011-03-03  Matthew Booth  <mbooth@redhat.com>
14698
14699         bootstrap: honor m4_base when running aclocal
14700         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
14701
14702 2011-03-02  Jim Meyering  <meyering@redhat.com>
14703
14704         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
14705         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
14706         on request from Matt Booth.
14707
14708 2011-03-01  Eric Blake  <eblake@redhat.com>
14709
14710         test-link: work on Hurd
14711         * tests/test-link.h (test_link): Hurd rejects linking directories
14712         with EISDIR instead of the POSIX-mandated EPERM.
14713
14714 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
14715
14716         stdio: simplify by moving files to printf-posix, sigpipe
14717         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
14718         since this symbol is needed only if printf is replaced.
14719         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
14720         Require gl_ASM_SYMBOL_PREFIX.
14721         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
14722         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
14723         (Depends-on): Add 'raise'.
14724         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
14725         * modules/stdio (Files): Remove lib/stdio-write.c,
14726         m4/asm-underscore.m4.
14727         (Depends-on): Remove 'raise'.
14728
14729         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
14730         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
14731         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
14732         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
14733
14734 2011-02-28  Bruno Haible  <bruno@clisp.org>
14735
14736         localcharset: Assume ANSI C behaviour of free().
14737         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
14738         calling free().
14739         Suggested by Simon Josefsson <simon@josefsson.org>.
14740
14741 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
14742             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
14743             Bruno Haible  <bruno@clisp.org>  (tiny change)
14744
14745         On Cygwin, use /proc file system instead of win32 API.
14746         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
14747         Win32 file names.
14748         (DllMain): Simplify by removing Cygwin specific code.
14749         (find_shared_library_fullname): Use Linux specific implementation also
14750         for Cygwin.
14751         (get_shared_library_fullname): Update accordingly.
14752         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
14753         Win32 file names.
14754         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
14755         Cygwin specific code.
14756
14757 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
14758             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
14759
14760         Fix OpenMP flag detection for various Fortran compilers.
14761         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
14762         OpenMP-conditional compilation construct, to force compile
14763         failure with missing OpenMP flag.
14764         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
14765
14766 2011-02-25  Eric Blake  <eblake@redhat.com>
14767
14768         strstr: expand test coverage
14769         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
14770         compilation.
14771         * tests/test-memmem.c (main): Duplicate tests.
14772         * tests/test-strcasestr.c (main): Likewise.
14773         * tests/test-c-strcasestr.c (main): Likewise.
14774
14775 2011-02-25  Jim Meyering  <meyering@redhat.com>
14776
14777         maint.mk: detect missing-NL-at-EOF, too
14778         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
14779         it also detects when a file lacks a newline at EOF.
14780         (require_exactly_one_NL_at_EOF_): Renamed from
14781         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
14782         since people may well have .x-sc_... file names tied to the
14783         existing name.  Suggested by Eric Blake.
14784
14785 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
14786
14787         dirname: move m4/dos.m4 functionality into lib/dosname.h
14788
14789         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
14790         extracts symbols from it, puts them into config.h; but it's much
14791         easier to use the symbols directly.  filename.h already does this,
14792         but it disagrees with dos.m4 in some respects.  This patch
14793         introduces a different include file dosname.h that packages up
14794         dos.m4, and then later we can work on merging filename.h and
14795         dosname.h.  Applications that need only the easy-to-configure
14796         symbols should consider including dosname.h rather than dirname.h.
14797         * NEWS: Mention incompatible changes.
14798         * m4/dos.m4: Remove.
14799         * lib/dosname.h, modules/dosname: New files.
14800         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
14801         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
14802         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
14803         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
14804         Include dosname.h, not dirname.h.
14805         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
14806         Include dosname.h, for definitions of symbols like ISSLASH
14807         that used to be in config.h.
14808         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
14809         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14810         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14811         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14812         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
14813         * modules/rmdir (Files): Likewise.
14814         * modules/stat (Files): Likewise.
14815         * modules/unlink (Files): Likewise.
14816         * modules/dirname-lgpl (Depends-on): Add dosname.
14817         * modules/lstat (Depends-on): Likewise.
14818         * modules/openat (Depends-on): Likewise.
14819         * modules/rmdir (Depends-on): Likewise.
14820         * modules/savewd (Depends-on): Likewise.
14821         * modules/stat (Depends-on): Likewise.
14822         * modules/unlink (Depends-on): Likewise.
14823         * modules/openat (Depends-on): Remove dirname-lgpl.
14824         * modules/savewd (Depends-on): Likewise.
14825         * tests/test-dirname.c: Do not use removed symbols like
14826         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
14827         the remaining symbols, e.g., ISSLASH ('\\').
14828
14829 2011-02-25  Eric Blake  <eblake@redhat.com>
14830
14831         strstr: revert patches that introduced bug and pessimization
14832         * lib/str-two-way.h: Add another reference.
14833         (two_way_short_needle, two_way_long_needle): Revert changes from
14834         2011-02-24; they pessimize search speed.
14835         (critical_factorization): Partially revert changes from
14836         2010-06-22; they violate the requirement that the left half of the
14837         needle be smaller than the period of the needle.
14838
14839 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
14840
14841         filenamecat: remove unnecessary dependency on dirname-lgpl
14842         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
14843         is no direct dependency, just an indirect one via filenamecat-lgpl.
14844
14845         remove: remove unnecessary use of m4/dos.m4
14846         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
14847         * modules/remove (FILES): Remove m4/dos.m4.
14848
14849         * lib/openat-proc.c: Don't include dirname.h; not needed.
14850
14851         backupfile: remove unnecessary use of m4/dos.m4
14852         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
14853         of its symbols are used by the backupfile code.  backupfile.c does
14854         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
14855         for the rare case of programs that want all their backup file
14856         names to live within 8+3 limits, and dos.m4 doesn't address that.
14857         * modules/backupfile (Files): Remove m4/dos.m4.
14858
14859 2011-02-24  Jim Meyering  <meyering@redhat.com>
14860
14861         strstr: fix a bug whereby strstr would mistakenly return NULL
14862         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
14863         in period calculation.
14864         (two_way_long_needle): Likewise.
14865         The original problem was reported by Mike Stump in
14866         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
14867         Ralf Wildenhues provided the short needle and haystack.
14868         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
14869         Add a more involved test to trigger the bug in two_way_long_needle.
14870
14871 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
14872
14873         gnulib-tool: remove use of bold display in help screen
14874         * gnulib-tool (func_usage): Do not use bold display anymore in the
14875         help screen.  That was just meant to be a temporary emphasis for a
14876         backward-incompatible change.
14877
14878 2011-02-23  Bruno Haible  <bruno@clisp.org>
14879
14880         Fix misindentation of preprocessor directives.
14881         * lib/argp-namefrob.h: Reindent preprocessor directives.
14882         * lib/getopt_int.h (struct _getopt_data): Likewise.
14883         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
14884         * lib/vasnprintf.c (decode_long_double): Likewise.
14885         * tests/test-argmatch.c: Insert blank lines, for clarity.
14886         * tests/test-exclude.c: Likewise.
14887
14888 2011-02-22  Bruno Haible  <bruno@clisp.org>
14889
14890         ioctl: Fix for MacOS X in 64-bit mode.
14891         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
14892         value.
14893         Suggested by Eric Blake.
14894         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
14895
14896 2011-02-22  Jim Meyering  <meyering@redhat.com>
14897
14898         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
14899         * Makefile (sc_cpp_indent_check): Don't limit the check to files
14900         in lib/.
14901
14902 2011-02-22  Eric Blake  <eblake@redhat.com>
14903
14904         maint: avoid any CDPATH issue
14905         * Makefile (sc_cpp_indent_check): Anchor cd argument.
14906
14907         maint: adjust cpp indentation for my modules, as well
14908         * Makefile (sc_cpp_indent_check): Add my name.
14909         * lib/fbufmode.c: Filter through cppi.
14910         * lib/fpurge.c: Likewise.
14911         * lib/freadable.c: Likewise.
14912         * lib/freading.c: Likewise.
14913         * lib/fwritable.c: Likewise.
14914         * lib/fwriting.c: Likewise.
14915         * lib/sigaction.c: Likewise.
14916
14917 2011-02-22  Jim Meyering  <meyering@redhat.com>
14918
14919         maint: adjust cpp indentation to reflect nesting depth
14920         I.e., in a block of code that begins with an unnested "#if",
14921         put one space between the "#" in column 1 and following token.
14922         For example,
14923         -#include <sys/vfs.h>
14924         +# include <sys/vfs.h>
14925         Do this only in .c files that are part of a module I maintain.
14926         * lib/linkat.c: Filter through cppi.
14927         * lib/nanosleep.c: Likewise.
14928         * lib/openat.c: Likewise.
14929         * lib/openat-die.c: Likewise.
14930         * lib/dup3.c: Likewise.
14931         * lib/fchownat.c: Likewise.
14932         * lib/flock.c: Likewise.
14933         * lib/fsync.c: Likewise.
14934         * lib/fts.c: Likewise.
14935         * lib/getpass.c: Likewise.
14936         * lib/gettimeofday.c: Likewise.
14937         * lib/userspec.c: Likewise.
14938         * Makefile (sc_cpp_indent_check): New rule, to check this.
14939
14940 2011-02-22  Bruno Haible  <bruno@clisp.org>
14941
14942         New module 'wctomb'.
14943         * lib/stdlib.in.h (wctomb): New declaration.
14944         * lib/wctomb.c: New file.
14945         * lib/wctomb-impl.h: New file.
14946         * m4/wctomb.m4: New file.
14947         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
14948         REPLACE_WCTOMB.
14949         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
14950         REPLACE_WCTOMB.
14951         * modules/wctomb: New file.
14952         * tests/test-stdlib-c++.cc: Test signature of wctomb.
14953         * doc/posix-functions/wctomb.texi: Mention the new module.
14954         * modules/wctob (Depends-on): Add wctomb.
14955
14956 2011-02-22  Bruno Haible  <bruno@clisp.org>
14957
14958         New module 'mbtowc'.
14959         * lib/stdlib.in.h (mbtowc): New declaration.
14960         * lib/mbtowc.c: New file.
14961         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
14962         * m4/mbtowc.m4: New file.
14963         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
14964         REPLACE_MBTOWC.
14965         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
14966         REPLACE_MBTOWC.
14967         * modules/mbtowc: New file.
14968         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
14969         * doc/posix-functions/mbtowc.texi: Mention the new module.
14970         * modules/btowc (Depends-on): Add mbtowc.
14971
14972 2011-02-22  Bruno Haible  <bruno@clisp.org>
14973
14974         wcrtomb: Add more tests for native Windows platforms.
14975         * tests/test-wcrtomb-w32-1.sh: New file.
14976         * tests/test-wcrtomb-w32-2.sh: New file.
14977         * tests/test-wcrtomb-w32-3.sh: New file.
14978         * tests/test-wcrtomb-w32-4.sh: New file.
14979         * tests/test-wcrtomb-w32-5.sh: New file.
14980         * tests/test-wcrtomb-w32.c: New file.
14981         * modules/wcrtomb-tests (Files): Add them.
14982         (Makefile.am): Arrange to run these tests.
14983         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
14984         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
14985
14986 2011-02-20  Bruno Haible  <bruno@clisp.org>
14987
14988         wcrtomb: Enhance test.
14989         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
14990
14991 2011-02-20  Bruno Haible  <bruno@clisp.org>
14992
14993         mbrtowc: Tiny optimization.
14994         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
14995
14996 2011-02-20  Jim Meyering  <meyering@redhat.com>
14997
14998         test-exclude.c: remove unmatched #endif
14999         * tests/test-exclude.c: Remove stray #endif, left over from
15000         the change of a week ago.
15001
15002 2011-02-19  Jim Meyering  <meyering@redhat.com>
15003
15004         git-version-gen: skip "-dirty" check when appropriate
15005         * build-aux/git-version-gen: Don't run any git commands when the
15006         version string comes from .tarball-version.  Prior to this, we
15007         would run git update-index --refresh even from a just-unpacked
15008         tarball directory, and that could affect a .git/ directory in a
15009         parent of the build directory.  Reported by Mike Frysinger.
15010
15011 2011-02-19  Bruno Haible  <bruno@clisp.org>
15012
15013         unictype/property-byname: Reduce the size of the 'data' segment.
15014         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
15015
15016 2011-02-19  Bruno Haible  <bruno@clisp.org>
15017
15018         unictype/scripts: Reduce the size of the 'data' segment.
15019         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
15020         '%pic'.
15021         * lib/unictype/scripts_byname.gperf: Regenerated.
15022
15023 2011-02-19  Bruno Haible  <bruno@clisp.org>
15024
15025         stdint: Update documentation.
15026         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
15027
15028 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
15029
15030         stdint: omit redundant check for wchar.h
15031         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
15032         always tests whether wchar.h exists, so remove the now-redundant test.
15033
15034 2011-02-18  Bruno Haible  <bruno@clisp.org>
15035
15036         stdint: Cut dependency to module 'wchar'.
15037         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
15038         include the necessary prerequisites.
15039         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
15040         * modules/stdint (Depends-on): Remove wchar.
15041         (Makefile.am): Substitute HAVE_WCHAR_H.
15042         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
15043
15044 2011-02-18  Eric Blake  <eblake@redhat.com>
15045
15046         longlong: skip, rather than fail, on cross-compilation
15047         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
15048         when cross-compiling; regression from 2011-02-16.
15049
15050 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
15051
15052         * NEWS: Mention 2011-02-08 change to stdlib.
15053
15054 2011-02-17  Bruno Haible  <bruno@clisp.org>
15055
15056         getloadavg: Add comments about platforms.
15057         * m4/getloadavg.m4: Add comment.
15058         * lib/getloadavg.c: Likewise.
15059
15060 2011-02-17  Bruno Haible  <bruno@clisp.org>
15061
15062         getloadavg: Fix link error on Solaris 2.6.
15063         * modules/getloadavg (Link): New section.
15064         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
15065         linking test-getloadavg.
15066         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
15067         getloadavg.
15068
15069 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
15070
15071         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
15072         It was 'int', but this doesn't match the IRIX 6.5 manual.
15073         Suggested by Bruno Haible in
15074         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
15075
15076 2011-02-17  Bruno Haible  <bruno@clisp.org>
15077
15078         havelib: Fix comments.
15079         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
15080         change.
15081
15082 2011-02-17  Bruno Haible  <bruno@clisp.org>
15083
15084         havelib: Update config.rpath.
15085         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
15086
15087 2011-02-17  Bruno Haible  <bruno@clisp.org>
15088
15089         getloadavg test: Add some plausibility checks.
15090         * tests/test-getloadavg.c (check_avg): Print a warning when the value
15091         is improbable.
15092
15093 2011-02-16  Eric Blake  <eblake@redhat.com>
15094
15095         maintainer-makefile: make syntax-check a no-op from tarballs
15096         * top/maint.mk (no-vc-detected): New rule.
15097         (local-checks-available): Use it to avoid hanging if someone tries
15098         'make syntax-check' from a tarball.  Also append to any non-syntax
15099         checks already defined in cfg.mk.
15100
15101 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
15102
15103         longlong: tune, particularly for common case of c99
15104
15105         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
15106         or running anything if c99, or if unsigned long long int does not
15107         work.  In either case, we know the answer without further tests.
15108         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
15109         it at most once, and use its results for both long long int and
15110         unsigned long long int.  This is more likely to be efficient in
15111         the common case where the program wants to check for both long
15112         long int and unsigned long long int.
15113         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
15114         since the answer is already known.
15115
15116 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
15117
15118         getloadavg: set errno
15119         * lib/getloadavg.c: Set errno when returning -1.  If no other
15120         error number looks appropriate, set it to ENOSYS if the getloadavg
15121         looks like it can't possibly ever work, ENOTSUP otherwise.
15122         Suggested by Bruno Haible in
15123         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
15124
15125         getloadavg: trim unused parts and speed up 'configure'
15126         * NEWS: Document this.
15127         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
15128         always compiled if getloadavg is absent.
15129         Move test code to ...
15130         * tests/test-getloadavg.c: New file, containing previous
15131         contents of test from lib/getloadavg.c.  It also contains
15132         suggestions by Bruno Haible in
15133         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
15134         * modules/getloadavg-tests: New file.
15135         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
15136         Do tests in the same order as they're needed for getloadavg.c.
15137         Omit setgid-related tests that generate symbols KMEM_GROUP,
15138         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
15139         Do only the tests that are needed to see whether the system has
15140         getloadavg, moving the other tests into ...
15141         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
15142         NLIST_NAME_UNION; nobody should be using it.  Do not define
15143         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
15144         relevant, as the user of this module shouldn't care how getloadavg
15145         is implemented.
15146
15147         getloadavg: omit unused var
15148         * lib/getloadavg.c (getloadavg): Omit unused local variable.
15149
15150 2011-02-15  Jim Meyering  <meyering@redhat.com>
15151
15152         doc: update users.txt
15153         * users.txt: Update iwhd's URL.
15154
15155 2011-02-13  Bruno Haible  <bruno@clisp.org>
15156
15157         Consistent macro naming for macros that use GCC __attribute__.
15158         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
15159         _ATTRIBUTE_NONNULL_.
15160         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
15161         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
15162         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
15163         ATTRIBUTE_DEPRECATED.
15164         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
15165         ATTRIBUTE_NORETURN.
15166         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15167         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15168         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15169         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
15170         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
15171         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
15172         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
15173         ATTRIBUTE_SENTINEL.
15174         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
15175         ATTRIBUTE_RETURN_CHECK.
15176         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
15177         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
15178         ATTRIBUTE_NORETURN.
15179         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
15180         Reported by Paul Eggert.
15181
15182 2011-02-13  Bruno Haible  <bruno@clisp.org>
15183
15184         Don't interfere with a program's definition of __attribute__.
15185         * lib/argp.h (__attribute__): Remove definition.
15186         (_GL_ATTRIBUTE_FORMAT): New macro.
15187         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
15188         * lib/argp-fmtstream.h (__attribute__): Remove definition.
15189         (_GL_ATTRIBUTE_FORMAT): New macro.
15190         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
15191         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
15192         GCC 3 or newer.
15193         * lib/error.h (__attribute__): Remove definition.
15194         (_GL_ATTRIBUTE_FORMAT): New macro.
15195         (error, error_at_line): Use it.
15196         * lib/hash.h (__attribute__): Remove definition.
15197         (ATTRIBUTE_WUR): Update definition. Define always.
15198         * lib/openat.h (__attribute__): Remove definition.
15199         (ATTRIBUTE_NORETURN): Update definition. Define always.
15200         * lib/sigpipe-die.h (__attribute__): Remove definition.
15201         (ATTRIBUTE_NORETURN): Update definition. Define always.
15202         * lib/vasnprintf.h (__attribute__): Remove definition.
15203         (_GL_ATTRIBUTE_FORMAT): New macro.
15204         (asnprintf, vasnprintf): Use it.
15205         * lib/xalloc.h (__attribute__): Remove definition.
15206         (ATTRIBUTE_NORETURN): Update definition. Define always.
15207         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
15208         * lib/xmemdup0.h (__attribute__): Remove definition.
15209         (ATTRIBUTE_NORETURN): Update definition. Define always.
15210         * lib/xprintf.h (__attribute__): Remove definition.
15211         (_GL_ATTRIBUTE_FORMAT): New macro.
15212         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
15213         * lib/xstrtol.h (__attribute__): Remove definition.
15214         (ATTRIBUTE_NORETURN): Update definition. Define always.
15215         * lib/xvasprintf.h (__attribute__): Remove definition.
15216         (_GL_ATTRIBUTE_FORMAT): New macro.
15217         (xasprintf, xvasprintf): Use it.
15218         * tests/test-argmatch.c (__attribute__): Remove definition.
15219         (ATTRIBUTE_NORETURN): Update definition. Define always.
15220         * tests/test-exclude.c (__attribute__): Remove definition.
15221         (ATTRIBUTE_NORETURN): Update definition. Define always.
15222         Reported by Paul Eggert.
15223
15224 2011-02-13  Bruno Haible  <bruno@clisp.org>
15225
15226         mbrtowc: Add more tests for native Windows platforms.
15227         * tests/test-mbrtowc-w32-1.sh: New file.
15228         * tests/test-mbrtowc-w32-2.sh: New file.
15229         * tests/test-mbrtowc-w32-3.sh: New file.
15230         * tests/test-mbrtowc-w32-4.sh: New file.
15231         * tests/test-mbrtowc-w32-5.sh: New file.
15232         * tests/test-mbrtowc-w32.c: New file.
15233         * modules/mbrtowc-tests (Files): Add them.
15234         (Makefile.am): Arrange to run these tests.
15235         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
15236         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
15237
15238 2011-02-13  Bruno Haible  <bruno@clisp.org>
15239
15240         mbrtowc: Work around native Windows bug.
15241         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
15242         guess when no suitable locale for testing was found.
15243         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
15244
15245 2011-02-13  Bruno Haible  <bruno@clisp.org>
15246
15247         mbsinit: Work around mingw bug.
15248         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
15249         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
15250         Windows.
15251         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
15252
15253 2011-02-13  Bruno Haible  <bruno@clisp.org>
15254
15255         mbsinit: Don't crash for a NULL argument.
15256         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
15257         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
15258
15259 2011-02-13  Bruno Haible  <bruno@clisp.org>
15260
15261         Don't interfere with a program's definition of __attribute__.
15262         * lib/stdio.in.h (__attribute__): Remove definition.
15263         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
15264         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
15265         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
15266         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
15267         * lib/string.in.h (__attribute__): Remove definition.
15268         Reported by Paul Eggert.
15269
15270 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
15271
15272         stdlib: don't get in the way of non-GCC __attribute__
15273         See thread starting at
15274         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
15275         Revert previous stdlib change, installing the following instead:
15276         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
15277         to get in the way of a non-GCC compiler that supports __attribute__.
15278         (_GL_ATTRIBUTE_RETURN): New macro.
15279         (_Exit): Use it instead of __attribute__.
15280
15281 2011-02-12  Bruno Haible  <bruno@clisp.org>
15282
15283         quotearg test: Avoid test failure on mingw.
15284         * tests/test-quotearg.sh: Convert the locale identifier from native
15285         Windows syntax to Unix syntax.
15286
15287 2011-02-12  Bruno Haible  <bruno@clisp.org>
15288
15289         setlocale: Prefer gnulib's override over libintl's override.
15290         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
15291         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
15292         GNULIB_defined_setlocale is set.
15293
15294 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
15295
15296         stdlib: support non-GCC __attribute__
15297
15298         Fix a serious and tricky problem encountered when attempting to
15299         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
15300         5.5, but it crashed due to memory corruption on Solaris 10 with
15301         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
15302         bits that are otherwise zero.  This tagging is optional inside
15303         Emacs but is preferred and is used when __attribute__ ((__aligned
15304         (8))) works, as it does with both recent-enough GCC and with Sun C
15305         5.11.  However, Sun C 5.11 is not GCC and does not #define
15306         __GNUC__ and __GNUC_MINOR__.
15307
15308         When I added the getloadavg module to Emacs, it brought in
15309         stdlib.in.h, which contained this fragment:
15310
15311            #ifndef __attribute__
15312            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
15313            #  define __attribute__(Spec)   /* empty */
15314            # endif
15315            #endif
15316
15317         When files that include <stdlib.h> were compiled with Sun C 5.11,
15318         the above code disabled __attribute__ ((__aligned (8))), which
15319         caused variables to not be properly aligned, which eventually led
15320         to the pointer corruption mentioned above.  (This was a bit hard
15321         to diagnose, unfortunately.)
15322
15323         Several "#define __attribute__(X) /* empty */" code snippets need
15324         to be eradicated from Gnulib to work with non-GCC compilers that
15325         support __attribute__.  The Autoconf way to do this is to test for
15326         each kind of attribute that we want support for, and selectively
15327         enable that in source code.
15328
15329         Fix this problem just for stdlib.h, by adding a test for the
15330         __noreturn__ attribute, and change stdlib.in.h to use that test
15331         when needed.  This technique can be easily generalized to the
15332         other *.in.h files and attributes, and a similar technique can be
15333         used for *.h and *.c files.  This patch is enough to solve the
15334         problem for Emacs + getloadavg, and I thought I'd publish it for
15335         feedback before undertaking further, similar fixes in other
15336         modules.
15337
15338         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
15339         because it's not needed for stdlib.h.  It merely substitutes the
15340         value directly into stdlib.h.  We may well need to #define it, or
15341         similar symbols, for other modules, but it's nice to also have an
15342         option to not #define it for applications like Emacs that do not
15343         need it.
15344
15345         * lib/stdlib.in.h (__attribute__): Do not #define.
15346         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
15347         be defined only if the _Exit module is also used.
15348         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
15349         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
15350         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
15351         platforms.
15352         * modules/_Exit (Files): Add m4/attribute.m4.
15353         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
15354         * m4/attribute.m4: New file.
15355
15356 2011-02-12  Bruno Haible  <bruno@clisp.org>
15357
15358         wcsrtombs: Work around bug on native Windows.
15359         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
15360         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
15361         instead of len.
15362         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
15363
15364 2011-02-12  Bruno Haible  <bruno@clisp.org>
15365
15366         mbsrtowcs: Work around bug on native Windows.
15367         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
15368         against mingw bug.
15369         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
15370
15371 2011-02-12  Bruno Haible  <bruno@clisp.org>
15372
15373         Avoid setlocale bugs in tests.
15374         * modules/btowc (Dependencies): Add setlocale.
15375         * modules/c-strcase (Dependencies): Likewise.
15376         * modules/mbmemcasecmp (Dependencies): Likewise.
15377         * modules/mbmemcasecoll (Dependencies): Likewise.
15378         * modules/mbrtowc (Dependencies): Likewise.
15379         * modules/mbscasecmp (Dependencies): Likewise.
15380         * modules/mbscasestr (Dependencies): Likewise.
15381         * modules/mbschr (Dependencies): Likewise.
15382         * modules/mbscspn (Dependencies): Likewise.
15383         * modules/mbsinit (Dependencies): Likewise.
15384         * modules/mbsncasecmp (Dependencies): Likewise.
15385         * modules/mbsnrtowcs (Dependencies): Likewise.
15386         * modules/mbspbrk (Dependencies): Likewise.
15387         * modules/mbspcasecmp (Dependencies): Likewise.
15388         * modules/mbsrchr (Dependencies): Likewise.
15389         * modules/mbsrtowcs (Dependencies): Likewise.
15390         * modules/mbsspn (Dependencies): Likewise.
15391         * modules/mbsstr (Dependencies): Likewise.
15392         * modules/nl_langinfo (Dependencies): Likewise.
15393         * modules/quotearg (Dependencies): Likewise.
15394         * modules/unicase/locale-language (Dependencies): Likewise.
15395         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
15396         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
15397         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
15398         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
15399         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
15400         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
15401         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
15402         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
15403         * modules/vasnprintf-posix (Dependencies): Likewise.
15404         * modules/wcrtomb (Dependencies): Likewise.
15405         * modules/wcsnrtombs (Dependencies): Likewise.
15406         * modules/wcsrtombs (Dependencies): Likewise.
15407
15408 2011-02-12  Bruno Haible  <bruno@clisp.org>
15409
15410         setlocale: Workaround native Windows bug.
15411         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
15412         succeeds but sets LC_CTYPE to "C", report a failure.
15413         * tests/test-setlocale2.sh: New file.
15414         * tests/test-setlocale2.c: New file.
15415         * modules/setlocale-tests (Files): Add the new files.
15416         (Makefile.am): Enable test-setlocale2.sh test.
15417         * doc/posix-functions/setlocale.texi: Mention workaround.
15418
15419 2011-02-11  Bruno Haible  <bruno@clisp.org>
15420
15421         Tests for module 'setlocale'.
15422         * modules/setlocale-tests: New file.
15423         * tests/test-setlocale1.sh: New file.
15424         * tests/test-setlocale1.c: New file.
15425
15426         New module 'setlocale'.
15427         * lib/locale.in.h (setlocale): New declaration.
15428         * lib/setlocale.c: New file, based on
15429         gettext/gettext-runtime/intl/setlocale.c.
15430         * m4/setlocale.m4: New file.
15431         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
15432         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
15433         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
15434         REPLACE_SETLOCALE.
15435         * modules/setlocale: New file.
15436         * tests/test-locale-c++.cc: Test the declaration of setlocale.
15437         * doc/posix-functions/setlocale.texi: Mention the new module.
15438
15439 2011-02-11  Bruno Haible  <bruno@clisp.org>
15440
15441         Prepare for locale dependent tests on mingw.
15442         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
15443         because it has the wrong locale encoding.
15444         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
15445         French_France.1252 instead of "fr".
15446         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
15447         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
15448         because it has the wrong locale encoding.
15449         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
15450         native Windows, try Turkish_Turkey.65001.
15451         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
15452         Chinese_China.54936.
15453
15454         Prepare for locale dependent tests on mingw.
15455         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
15456         differently.
15457         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
15458         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
15459         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
15460         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15461
15462 2011-02-11  Eric Blake  <eblake@redhat.com>
15463
15464         strptime: avoid compiler warnings
15465         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
15466         compiler warnings about dead code.
15467         Reported by Daniel P. Berrange.
15468
15469 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
15470
15471         doc: update users.txt
15472         * users.txt: Add rcs.
15473
15474 2011-02-10  John W. Eaton  <jwe@gnu.org>
15475
15476         doc: update users.txt
15477         * users.txt: Add octave.
15478
15479 2011-02-10  Jim Meyering  <meyering@redhat.com>
15480
15481         doc: update users.txt
15482         * users.txt: Add iwhd.
15483
15484 2011-02-09  Bruno Haible  <bruno@clisp.org>
15485
15486         gnulib-tool: Make copyright notice adjustment more robust.
15487         * gnulib-tool (func_import): In sed_transform_main_lib_file,
15488         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
15489         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
15490         License".
15491         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
15492
15493 2011-02-06  Bruno Haible  <bruno@clisp.org>
15494
15495         New module 'towctrans'.
15496         * modules/towctrans: New file.
15497         * lib/wctype.in.h (towctrans): New declaration.
15498         * lib/towctrans.c: New file.
15499         * lib/towctrans-impl.h: New file.
15500         * m4/towctrans.m4: New file.
15501         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
15502         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
15503         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
15504         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
15505         * doc/posix-functions/towctrans.texi: Mention the new module.
15506
15507 2011-02-06  Bruno Haible  <bruno@clisp.org>
15508
15509         New module 'wctrans'.
15510         * modules/wctrans: New file.
15511         * lib/wctype.in.h (wctrans): New declaration.
15512         * lib/wctrans.c: New file.
15513         * lib/wctrans-impl.h: New file.
15514         * m4/wctrans.m4: New file.
15515         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
15516         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
15517         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
15518         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
15519         * doc/posix-functions/wctrans.texi: Mention the new module.
15520
15521 2011-02-06  Bruno Haible  <bruno@clisp.org>
15522
15523         New module 'iswctype'.
15524         * modules/iswctype: New file.
15525         * lib/wctype.in.h (iswctype): New declaration.
15526         * lib/iswctype.c: New file.
15527         * lib/iswctype-impl.h: New file.
15528         * m4/iswctype.m4: New file.
15529         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
15530         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
15531         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
15532         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
15533         * doc/posix-functions/iswctype.texi: Mention the new module and the
15534         HP-UX 11.00 problem.
15535
15536 2011-02-06  Bruno Haible  <bruno@clisp.org>
15537
15538         New module 'wctype'.
15539         * modules/wctype: Change to represent the wctype() substitute.
15540         * lib/wctype.in.h (wctype): New declaration.
15541         * lib/wctype.c: New file.
15542         * lib/wctype-impl.h: New file.
15543         * m4/wctype.m4: New file.
15544         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
15545         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
15546         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
15547         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
15548         * doc/posix-functions/wctype.texi: Mention the new module and the
15549         HP-UX 11.00 problem.
15550
15551 2011-02-06  Bruno Haible  <bruno@clisp.org>
15552
15553         wctype-h: Ensure wctype_t and wctrans_t are defined.
15554         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
15555         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
15556         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
15557         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
15558         HAVE_WCTRANS_T.
15559         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
15560
15561 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
15562
15563         flock: fix license typo
15564
15565         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
15566         omitted.
15567
15568 2011-02-08  Bruno Haible  <bruno@clisp.org>
15569
15570         Split large sed scripts, for HP-UX sed.
15571         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
15572         to avoid HP-UX limit of 99 commands, in the near future.
15573         * modules/stdlib (Makefile.am): Likewise.
15574         * modules/unistd (Makefile.am): Likewise.
15575         * modules/wchar (Makefile.am): Likewise.
15576         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15577         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
15578         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
15579
15580 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15581             Bruno Haible  <bruno@clisp.org>
15582
15583         stdlib: improve random_r modularization
15584         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
15585         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
15586         you also need the random_r module to get this material right.
15587         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
15588         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
15589         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
15590
15591 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15592
15593         stdlib: don't depend on stdint
15594         * lib/stdlib.in.h: Don't include <stdint.h> merely because
15595         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
15596         be independent of whether stdint.h is needed.
15597         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
15598         here, instead of ...
15599         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
15600         struct random_data should be using the random_r module, not just
15601         the stdlib module (which wouldn't make sense: what package needs
15602         just struct random_data without also needing random_r?).
15603         * modules/stdlib (Depends-on): Remove stdint.
15604
15605         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
15606         See the thread rooted at
15607         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
15608         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
15609         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
15610         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
15611         __VMS)); previously it was always included (via fcntl--.h).
15612         (getloadavg): Do not use c_strtod.  Instead, approximate it by
15613         hand; this is good enough for load averages.  Also, do not use
15614         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
15615         flags directly if available and don't bother otherwise.  (Packages
15616         that need the extra reliability should use the modules that define
15617         these flags on older platforms that lack them.)
15618         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
15619         fcntl-safer.
15620
15621 2011-02-08  Jim Meyering  <meyering@redhat.com>
15622
15623         di-set.h, ino-map.h: add multiple-inclusion guard
15624         Technically, the guard is required only for ino-map.h, due to its
15625         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
15626         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
15627         * lib/ino-map.h: Likewise.
15628
15629 2011-02-06  Bruno Haible  <bruno@clisp.org>
15630
15631         iswblank: Ensure declaration on glibc systems.
15632         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
15633         * modules/iswblank (Dependencies): Add 'extensions'.
15634         * doc/posix-functions/iswblank.texi: Document the glibc problem.
15635
15636 2011-02-06  Bruno Haible  <bruno@clisp.org>
15637
15638         New module 'iswblank'.
15639         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
15640         * modules/iswblank: New file.
15641         * modules/wctype-h (Files): Remove lib/iswblank.c.
15642         (Makefile.am): Substitute GNULIB_ISWBLANK.
15643         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
15644         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
15645         (gl_WCTYPE_H_DEFAULTS): New macro.
15646         (gl_WCTYPE_H): Require it. Remove iswblank related code.
15647         * modules/iswblank-tests: New file.
15648         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
15649         * tests/test-wctype-h.c (main): Remove iswblank tests.
15650         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
15651         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
15652         of 'wctype-h'.
15653         * NEWS: Mention the change.
15654         * modules/mbchar (Depends-on): Add iswblank.
15655
15656 2011-02-08  Bruno Haible  <bruno@clisp.org>
15657
15658         di-set tests: Refactor.
15659         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
15660         unnecessary includes.
15661         (ASSERT): Remove macro.
15662         (main): Make C90 compliant by avoiding variable declaration after
15663         statement.
15664         * modules/di-set-tests (Files): Add tests/macros.h.
15665
15666 2011-02-08  Bruno Haible  <bruno@clisp.org>
15667
15668         ino-map tests: Refactor.
15669         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
15670         unnecessary includes.
15671         (ASSERT): Remove macro.
15672         (main): Make C90 compliant by avoiding variable declaration after
15673         statement.
15674         * modules/ino-map-tests (Files): Add tests/macros.h.
15675
15676 2011-02-08  Jim Meyering  <meyering@redhat.com>
15677
15678         di-set: add "const" to a cast
15679         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
15680         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
15681
15682 2011-02-06  Bruno Haible  <bruno@clisp.org>
15683
15684         Rename module 'wctype' to 'wctype-h'.
15685         * modules/wctype-h: Renamed from modules/wctype.
15686         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
15687         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
15688         (Files, Depends-on, Makefile.am): Update.
15689         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
15690         (Files, Makefile.am): Update.
15691         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
15692         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
15693         * doc/posix-headers/wctype.texi: Update.
15694         * doc/posix-functions/iswalnum.texi: Update.
15695         * doc/posix-functions/iswalpha.texi: Update.
15696         * doc/posix-functions/iswblank.texi: Update.
15697         * doc/posix-functions/iswcntrl.texi: Update.
15698         * doc/posix-functions/iswdigit.texi: Update.
15699         * doc/posix-functions/iswgraph.texi: Update.
15700         * doc/posix-functions/iswlower.texi: Update.
15701         * doc/posix-functions/iswprint.texi: Update.
15702         * doc/posix-functions/iswpunct.texi: Update.
15703         * doc/posix-functions/iswspace.texi: Update.
15704         * doc/posix-functions/iswupper.texi: Update.
15705         * doc/posix-functions/iswxdigit.texi: Update.
15706         * doc/posix-functions/towlower.texi: Update.
15707         * doc/posix-functions/towupper.texi: Update.
15708         * NEWS: Mention the change.
15709         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
15710         * modules/mbchar (Dependencies): Likewise.
15711         * modules/mbswidth (Dependencies): Likewise.
15712         * modules/quotearg (Dependencies): Likewise.
15713         * modules/regex (Dependencies): Likewise.
15714         * modules/wcscasecmp (Dependencies): Likewise.
15715         * modules/wcsncasecmp (Dependencies): Likewise.
15716         * modules/wcwidth (Dependencies): Likewise.
15717
15718 2011-02-06  Bruno Haible  <bruno@clisp.org>
15719
15720         New module 'wcswidth'.
15721         * modules/wcswidth: New file.
15722         * lib/wchar.in.h (wcswidth): New declaration.
15723         * lib/wcswidth.c: New file.
15724         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
15725         * m4/wcswidth.m4: New file.
15726         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
15727         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
15728         REPLACE_WCSWIDTH.
15729         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
15730         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
15731         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
15732         * doc/posix-functions/wcswidth.texi: Mention the new module.
15733
15734 2011-02-06  Bruno Haible  <bruno@clisp.org>
15735
15736         New module 'wcstok'.
15737         * modules/wcstok: New file.
15738         * lib/wchar.in.h (wcstok): New declaration.
15739         * lib/wcstok.c: New file.
15740         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
15741         * m4/wcstok.m4: New file.
15742         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
15743         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
15744         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
15745         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
15746         * doc/posix-functions/wcstok.texi: Mention the new module.
15747
15748 2011-02-06  Bruno Haible  <bruno@clisp.org>
15749
15750         New module 'wcsstr'.
15751         * modules/wcsstr: New file.
15752         * lib/wchar.in.h (wcsstr): New declaration.
15753         * lib/wcsstr.c: New file.
15754         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
15755         * m4/wcsstr.m4: New file.
15756         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
15757         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
15758         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
15759         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
15760         * doc/posix-functions/wcsstr.texi: Mention the new module.
15761
15762 2011-02-06  Bruno Haible  <bruno@clisp.org>
15763
15764         New module 'wcspbrk'.
15765         * modules/wcspbrk: New file.
15766         * lib/wchar.in.h (wcspbrk): New declaration.
15767         * lib/wcspbrk.c: New file.
15768         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
15769         * m4/wcspbrk.m4: New file.
15770         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
15771         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
15772         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
15773         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
15774         * doc/posix-functions/wcspbrk.texi: Mention the new module.
15775
15776 2011-02-06  Bruno Haible  <bruno@clisp.org>
15777
15778         New module 'wcsspn'.
15779         * modules/wcsspn: New file.
15780         * lib/wchar.in.h (wcsspn): New declaration.
15781         * lib/wcsspn.c: New file.
15782         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
15783         * m4/wcsspn.m4: New file.
15784         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
15785         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
15786         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
15787         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
15788         * doc/posix-functions/wcsspn.texi: Mention the new module.
15789
15790 2011-02-06  Bruno Haible  <bruno@clisp.org>
15791
15792         New module 'wcscspn'.
15793         * modules/wcscspn: New file.
15794         * lib/wchar.in.h (wcscspn): New declaration.
15795         * lib/wcscspn.c: New file.
15796         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
15797         * m4/wcscspn.m4: New file.
15798         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
15799         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
15800         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
15801         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
15802         * doc/posix-functions/wcscspn.texi: Mention the new module.
15803
15804 2011-02-06  Bruno Haible  <bruno@clisp.org>
15805
15806         New module 'wcsrchr'.
15807         * modules/wcsrchr: New file.
15808         * lib/wchar.in.h (wcsrchr): New declaration.
15809         * lib/wcsrchr.c: New file.
15810         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
15811         * m4/wcsrchr.m4: New file.
15812         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
15813         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
15814         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
15815         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
15816         * doc/posix-functions/wcsrchr.texi: Mention the new module.
15817
15818 2011-02-06  Bruno Haible  <bruno@clisp.org>
15819
15820         New module 'wcschr'.
15821         * modules/wcschr: New file.
15822         * lib/wchar.in.h (wcschr): New declaration.
15823         * lib/wcschr.c: New file.
15824         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
15825         * m4/wcschr.m4: New file.
15826         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
15827         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
15828         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
15829         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
15830         * doc/posix-functions/wcschr.texi: Mention the new module.
15831
15832 2011-02-06  Bruno Haible  <bruno@clisp.org>
15833
15834         New module 'wcsdup'.
15835         * modules/wcsdup: New file.
15836         * lib/wchar.in.h (wcsdup): New declaration.
15837         * lib/wcsdup.c: New file.
15838         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
15839         * m4/wcsdup.m4: New file.
15840         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
15841         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
15842         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
15843         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
15844         * doc/posix-functions/wcsdup.texi: Mention the new module.
15845
15846 2011-02-06  Bruno Haible  <bruno@clisp.org>
15847
15848         New module 'wcsxfrm'.
15849         * modules/wcsxfrm: New file.
15850         * lib/wchar.in.h (wcsxfrm): New declaration.
15851         * lib/wcsxfrm.c: New file.
15852         * lib/wcsxfrm-impl.h: New file.
15853         * m4/wcsxfrm.m4: New file.
15854         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
15855         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
15856         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
15857         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
15858         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
15859
15860 2011-02-06  Bruno Haible  <bruno@clisp.org>
15861
15862         New module 'wcscoll'.
15863         * modules/wcscoll: New file.
15864         * lib/wchar.in.h (wcscoll): New declaration.
15865         * lib/wcscoll.c: New file.
15866         * lib/wcscoll-impl.h: New file.
15867         * m4/wcscoll.m4: New file.
15868         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
15869         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
15870         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
15871         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
15872         * doc/posix-functions/wcscoll.texi: Mention the new module.
15873
15874 2011-02-06  Bruno Haible  <bruno@clisp.org>
15875
15876         New module 'wcsncasecmp'.
15877         * modules/wcsncasecmp: New file.
15878         * lib/wchar.in.h (wcsncasecmp): New declaration.
15879         * lib/wcsncasecmp.c: New file.
15880         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
15881         * m4/wcsncasecmp.m4: New file.
15882         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
15883         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
15884         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
15885         HAVE_WCSNCASECMP.
15886         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
15887         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
15888
15889 2011-02-06  Bruno Haible  <bruno@clisp.org>
15890
15891         New module 'wcscasecmp'.
15892         * modules/wcscasecmp: New file.
15893         * lib/wchar.in.h (wcscasecmp): New declaration.
15894         * lib/wcscasecmp.c: New file.
15895         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
15896         * m4/wcscasecmp.m4: New file.
15897         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
15898         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
15899         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
15900         HAVE_WCSCASECMP.
15901         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
15902         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
15903
15904 2011-02-05  Bruno Haible  <bruno@clisp.org>
15905
15906         New module 'wcsncmp'.
15907         * modules/wcsncmp: New file.
15908         * lib/wchar.in.h (wcsncmp): New declaration.
15909         * lib/wcsncmp.c: New file.
15910         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
15911         * m4/wcsncmp.m4: New file.
15912         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
15913         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
15914         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
15915         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
15916         * doc/posix-functions/wcsncmp.texi: Mention the new module.
15917
15918 2011-02-05  Bruno Haible  <bruno@clisp.org>
15919
15920         New module 'wcscmp'.
15921         * modules/wcscmp: New file.
15922         * lib/wchar.in.h (wcscmp): New declaration.
15923         * lib/wcscmp.c: New file.
15924         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
15925         * m4/wcscmp.m4: New file.
15926         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
15927         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
15928         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
15929         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
15930         * doc/posix-functions/wcscmp.texi: Mention the new module.
15931
15932 2011-02-05  Bruno Haible  <bruno@clisp.org>
15933
15934         New module 'wcsncat'.
15935         * modules/wcsncat: New file.
15936         * lib/wchar.in.h (wcsncat): New declaration.
15937         * lib/wcsncat.c: New file.
15938         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
15939         * m4/wcsncat.m4: New file.
15940         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
15941         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
15942         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
15943         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
15944         * doc/posix-functions/wcsncat.texi: Mention the new module.
15945
15946 2011-02-05  Bruno Haible  <bruno@clisp.org>
15947
15948         New module 'wcscat'.
15949         * modules/wcscat: New file.
15950         * lib/wchar.in.h (wcscat): New declaration.
15951         * lib/wcscat.c: New file.
15952         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
15953         * m4/wcscat.m4: New file.
15954         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
15955         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
15956         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
15957         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
15958         * doc/posix-functions/wcscat.texi: Mention the new module.
15959
15960 2011-02-05  Bruno Haible  <bruno@clisp.org>
15961
15962         New module 'wcpncpy'.
15963         * modules/wcpncpy: New file.
15964         * lib/wchar.in.h (wcpncpy): New declaration.
15965         * lib/wcpncpy.c: New file.
15966         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
15967         * m4/wcpncpy.m4: New file.
15968         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
15969         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
15970         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
15971         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
15972         * doc/posix-functions/wcpncpy.texi: Mention the new module.
15973
15974 2011-02-05  Bruno Haible  <bruno@clisp.org>
15975
15976         New module 'wcsncpy'.
15977         * modules/wcsncpy: New file.
15978         * lib/wchar.in.h (wcsncpy): New declaration.
15979         * lib/wcsncpy.c: New file.
15980         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
15981         * m4/wcsncpy.m4: New file.
15982         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
15983         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
15984         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
15985         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
15986         * doc/posix-functions/wcsncpy.texi: Mention the new module.
15987
15988 2011-02-05  Bruno Haible  <bruno@clisp.org>
15989
15990         New module 'wcpcpy'.
15991         * modules/wcpcpy: New file.
15992         * lib/wchar.in.h (wcpcpy): New declaration.
15993         * lib/wcpcpy.c: New file.
15994         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
15995         * m4/wcpcpy.m4: New file.
15996         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
15997         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
15998         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
15999         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
16000         * doc/posix-functions/wcpcpy.texi: Mention the new module.
16001
16002 2011-02-05  Bruno Haible  <bruno@clisp.org>
16003
16004         New module 'wcscpy'.
16005         * modules/wcscpy: New file.
16006         * lib/wchar.in.h (wcscpy): New declaration.
16007         * lib/wcscpy.c: New file.
16008         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
16009         * m4/wcscpy.m4: New file.
16010         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
16011         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
16012         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
16013         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
16014         * doc/posix-functions/wcscpy.texi: Mention the new module.
16015
16016 2011-02-05  Bruno Haible  <bruno@clisp.org>
16017
16018         New module 'wcsnlen'.
16019         * modules/wcsnlen: New file.
16020         * lib/wchar.in.h (wcsnlen): New declaration.
16021         * lib/wcsnlen.c: New file.
16022         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
16023         * m4/wcsnlen.m4: New file.
16024         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
16025         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
16026         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
16027         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
16028         * doc/posix-functions/wcsnlen.texi: Mention the new module.
16029
16030 2011-02-05  Bruno Haible  <bruno@clisp.org>
16031
16032         New module 'wcslen'.
16033         * modules/wcslen: New file.
16034         * lib/wchar.in.h (wcslen): New declaration.
16035         * lib/wcslen.c: New file.
16036         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
16037         * m4/wcslen.m4: New file.
16038         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
16039         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
16040         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
16041         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
16042         * doc/posix-functions/wcslen.texi: Mention the new module.
16043
16044 2011-02-05  Bruno Haible  <bruno@clisp.org>
16045
16046         New module 'wmemset'.
16047         * modules/wmemset: New file.
16048         * lib/wchar.in.h (wmemset): New declaration.
16049         * lib/wmemset.c: New file.
16050         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
16051         * m4/wmemset.m4: New file.
16052         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
16053         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
16054         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
16055         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
16056         * doc/posix-functions/wmemset.texi: Mention the new module.
16057
16058 2011-02-05  Bruno Haible  <bruno@clisp.org>
16059
16060         New module 'wmemmove'.
16061         * modules/wmemmove: New file.
16062         * lib/wchar.in.h (wmemmove): New declaration.
16063         * lib/wmemmove.c: New file.
16064         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
16065         * m4/wmemmove.m4: New file.
16066         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
16067         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
16068         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
16069         HAVE_WMEMMOVE.
16070         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
16071         * doc/posix-functions/wmemmove.texi: Mention the new module.
16072
16073 2011-02-05  Bruno Haible  <bruno@clisp.org>
16074
16075         New module 'wmemcpy'.
16076         * modules/wmemcpy: New file.
16077         * lib/wchar.in.h (wmemcpy): New declaration.
16078         * lib/wmemcpy.c: New file.
16079         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
16080         * m4/wmemcpy.m4: New file.
16081         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
16082         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
16083         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
16084         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
16085         * doc/posix-functions/wmemcpy.texi: Mention the new module.
16086
16087 2011-02-05  Bruno Haible  <bruno@clisp.org>
16088
16089         New module 'wmemcmp'.
16090         * modules/wmemcmp: New file.
16091         * lib/wchar.in.h (wmemcmp): New declaration.
16092         * lib/wmemcmp.c: New file.
16093         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
16094         * m4/wmemcmp.m4: New file.
16095         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
16096         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
16097         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
16098         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
16099         * doc/posix-functions/wmemcmp.texi: Mention the new module.
16100
16101 2011-02-07  Jim Meyering  <meyering@redhat.com>
16102
16103         di-set, ino-map: new modules, from coreutils
16104         * lib/di-set.c: New file.
16105         * lib/di-set.h: Likewise.
16106         * lib/ino-map.c: Likewise.
16107         * lib/ino-map.h: Likewise.
16108         * modules/di-set: Likewise.
16109         * modules/di-set-tests: Likewise.
16110         * modules/ino-map: Likewise.
16111         * modules/ino-map-tests: Likewise.
16112         * tests/test-di-set.c: Likewise.
16113         * tests/test-ino-map.c: Likewise.
16114
16115 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
16116
16117         getloadavg: merge minor changes from Emacs
16118
16119         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
16120         (getloadavg): Use memset, not bzero.
16121
16122         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
16123         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
16124         clash (bug#86).
16125
16126 2010-11-14  Bruno Haible  <bruno@clisp.org>
16127
16128         Allow multiple gnulib generated replacements to coexist.
16129         * lib/getopt.in.h (struct option): Avoid identical redefinition.
16130         * lib/inttypes.in.h (imaxdiv_t): Likewise.
16131         * lib/langinfo.in.h (nl_item): Likewise.
16132         * lib/math.in.h (_NaN, NAN): Likewise.
16133         * lib/netdb.in.h (struct addrinfo): Likewise.
16134         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
16135         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
16136         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
16137         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
16138         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
16139         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
16140         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
16141         pthread_mutexattr_init, pthread_mutexattr_settype,
16142         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
16143         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
16144         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
16145         pthread_spin_trylock, pthread_spin_unlock): Likewise.
16146         * lib/sched.in.h (struct sched_param): Likewise.
16147         * lib/se-selinux.in.h (security_class_t, security_context_t,
16148         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
16149         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
16150         lsetfilecon, fsetfilecon, security_check_context,
16151         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
16152         Likewise.
16153         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
16154         Likewise.
16155         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
16156         _gl_function_taking_int_returning_void_t, union sigval,
16157         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
16158         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
16159         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
16160         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
16161         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
16162         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
16163         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
16164         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
16165         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
16166         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
16167         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
16168         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
16169         socklen_t, rpl_fd_isset): Likewise.
16170         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
16171         * lib/sys_time.in.h (struct timeval): Likewise.
16172         * lib/sys_times.in.h (struct tms): Likewise.
16173         * lib/sys_utsname.in.h (struct utsname):
16174         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
16175         * lib/unistd.in.h (getpagesize): Likewise.
16176         * lib/wchar.in.h (mbstate_t): Likewise.
16177         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
16178         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
16179         towlower, towupper): Likewise.
16180         Reported by Sam Steingold <sds@gnu.org>.
16181
16182 2011-02-05  Eric Blake  <eblake@redhat.com>
16183
16184         unsetenv: work around Haiku issues
16185         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
16186         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
16187
16188 2010-12-30  Bruce Korb  <bkorb@gnu.org>
16189
16190         libposix: avoid calling error() within libposix
16191         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
16192         is defined.
16193
16194 2011-02-05  Eric Blake  <eblake@redhat.com>
16195
16196         strerror_r-posix: port to cygwin
16197         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
16198         implementation.
16199         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
16200         * tests/test-strerror_r.c (main): Fix test.
16201         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
16202         issue.
16203
16204 2011-02-05  Bruno Haible  <bruno@clisp.org>
16205
16206         New module 'wmemchr'.
16207         * modules/wmemchr: New file.
16208         * lib/wchar.in.h (wmemchr): New declaration.
16209         * lib/wmemchr.c: New file.
16210         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
16211         * m4/wmemchr.m4: New file.
16212         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
16213         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
16214         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
16215         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
16216         * doc/posix-functions/wmemchr.texi: Mention the new module.
16217
16218 2011-02-04  Eric Blake  <eblake@redhat.com>
16219
16220         fdopendir: detect FreeBSD bug
16221         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
16222         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
16223
16224 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
16225
16226         stdbool: do not define HAVE_STDBOOL_H
16227         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
16228         AC_HEADER_STDBOOL.  All uses changed.  Do not define
16229         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
16230         imported from the latest Autoconf git.  It was motivated by Emacs,
16231         which uses gnulib but does not need HAVE_STDBOOL_H.
16232
16233 2011-02-04  Bruno Haible  <bruno@clisp.org>
16234
16235         wcsnrtombs: Prepare for new module wwcsnrtombs.
16236         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
16237         * lib/wcsnrtombs.c: Include it.
16238         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
16239
16240         wcsrtombs: Prepare for new module wwcsrtombs.
16241         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
16242         * lib/wcsrtombs.c: Include it.
16243         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
16244
16245         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
16246         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
16247         * lib/mbsnrtowcs.c: Include it.
16248         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
16249
16250         mbsrtowcs: Prepare for new module mbsrtowwcs.
16251         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
16252         * lib/mbsrtowcs.c: Include it.
16253         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
16254
16255 2011-02-04  Bruno Haible  <bruno@clisp.org>
16256
16257         vasnprintf: Reduce use of malloc for small format strings.
16258         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
16259         (arguments): Add room for the first 7 arguments.
16260         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
16261         (char_directives, u8_directives, u16_directives, u32_directives): Add
16262         room for the first 7 directives.
16263         * lib/printf-parse.c: Include <string.h>.
16264         (PRINTF_PARSE): Change memory handling code so that it uses the first
16265         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
16266         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
16267         Reported by Pádraig Brady <P@draigbrady.com>.
16268
16269 2011-01-31  Eric Blake  <eblake@redhat.com>
16270
16271         dup2: work around Haiku bug
16272         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
16273         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
16274         * doc/posix-functions/dup2.texi (dup2): Document the bug.
16275         * tests/test-dup2.c (main): Enhance test.
16276
16277 2011-01-31  Simon Josefsson  <simon@josefsson.org>
16278
16279         doc: off_t is not available in eglibc 2.11.2 stdio.h.
16280         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
16281         declared by eglibc 2.11.2.
16282         * lib/stdio.in.h: Likewise.
16283
16284 2011-01-31  Eric Blake  <eblake@redhat.com>
16285
16286         ignore-value: add missing test dependency
16287         * tests/test-ignore-value.c: Revert previous change; stdio.h
16288         provides off_t.
16289         * modules/ignore-value-tests (Depends-on): Add missing dependency.
16290
16291 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
16292
16293         mktime: clarify long_int width checking
16294         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
16295         the top level, to make it clearer that the assumption about
16296         long_int width is being checked.  See
16297         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
16298
16299 2011-01-30  Simon Josefsson  <simon@josefsson.org>
16300
16301         ignore-value: Fix self-test.
16302         * tests/test-ignore-value.c: Include sys/types.h for off_t.
16303
16304 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
16305
16306         TYPE_MAXIMUM: avoid theoretically undefined behavior
16307         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
16308         negative number, which the C Standard says has undefined behavior.
16309         In practice this is not a problem, but might as well do it by the book.
16310         Reported by Rich Felker and Eric Blake; see
16311         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
16312         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
16313         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
16314         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16315         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
16316         * m4/stdint.m4 (gl_STDINT_H): Likewise.
16317         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
16318
16319         mktime: #undef mktime before #defining it
16320         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
16321
16322         mktime: systematically normalize tm_isdst comparisons
16323         * lib/mktime.c (isdst_differ): New function.
16324         (__mktime_internal): Use it systematically for all isdst comparisons.
16325         This completes the fix for libc BZ #6723, and removes the need for
16326         normalizing tm_isdst.  See
16327         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
16328         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
16329
16330         mktime: fix some integer overflow issues and sidestep the rest
16331
16332         This was prompted by a bug report by Benjamin Lindner for MinGW
16333         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
16334         His bug is due to signed integer overflow (0 - INT_MIN), and I
16335         I scanned through mktime.c looking for other integer overflow
16336         problems, fixing all the bugs I found.
16337
16338         Although the C Standard says the resulting code is still not safe
16339         in the presence of integer overflow, in practice it should be good
16340         enough for all real-world two's-complement implementations, except
16341         for debugging environments that deliberately trap on integer
16342         overflow (e.g., gcc -ftrapv).
16343
16344         * lib/mktime.c (WRAPV): New macro.
16345         (SHR): Also check that long_int and time_t shift right in the
16346         usual way, before using the fast-but-unportable method.
16347         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
16348         used.  The code already assumed two's complement, so there's
16349         no need to test for alternatives.  All uses removed.
16350         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
16351         the C standard.  Problem reported by Rich Felker in
16352         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
16353         (twos_complement_arithmetic): Also check long_int and time_t.
16354         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
16355         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
16356         (__mktime_internal): Avoid integer overflow with unary subtraction
16357         in two instances where -1 - X is an adequate replacement for -X,
16358         since the calculations are approximate.
16359
16360 2011-01-29  Eric Blake  <eblake@redhat.com>
16361
16362         mktime: avoid infinite loop
16363         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
16364         type; behavior is still undefined but portable to all known targets.
16365         Reported by Rich Felker.
16366
16367 2011-01-29  Simon Josefsson  <simon@josefsson.org>
16368
16369         rename, unlink, same-inode: Relicense.
16370         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
16371         * modules/unlink (License): Likewise.
16372         * modules/same-inode (License): Likewise.
16373
16374 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
16375
16376         mktime: avoid problems on NetBSD 5 / i386
16377         * lib/mktime.c (long_int): New type.  This works around a problem
16378         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
16379         but time_t is 64 bits, and where I expect the existing code is
16380         wrong in some cases.
16381         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
16382         (ydhms_diff): Bring back the compile-time check for wide-enough
16383         year and yday.
16384
16385         mktime: fix misspelling in comment
16386         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
16387         This merges all recent glibc changes of importance.
16388
16389 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16390
16391         move-if-change: cope with concurrent mv of identical file.
16392         * build-aux/move-if-change (CMPPROG): Accept environment
16393         variable as an override for `cmp'.
16394         (usage): Document CMPPROG.
16395         Adjust comparison to drop stdout.  Cope with failure of mv if
16396         the target file exists and is identical to the source, for
16397         parallel builds.
16398         Report from H.J. Lu against binutils in PR binutils/12283.
16399
16400 2011-01-28  Bruce Korb  <bkorb@gnu.org>
16401
16402         * users.txt: Mention sharutils.
16403
16404 2011-01-28  Simon Josefsson  <simon@josefsson.org>
16405
16406         * users.txt: Mention OATH Toolkit.
16407
16408 2011-01-27  Bruno Haible  <bruno@clisp.org>
16409
16410         Prepare for supporting FreeBSD 10.
16411         * build-aux/config.libpath: Remove handling of freebsd1*.
16412
16413 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
16414
16415         Prepare for supporting FreeBSD 10.
16416         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
16417         match FreeBSD 10.0.
16418
16419 2011-01-27  Bruno Haible  <bruno@clisp.org>
16420
16421         vma-iter, get-rusage-as: Add OpenBSD support.
16422         * modules/vma-iter (configure.ac): Test for mquery.
16423         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
16424         * lib/vma-iter.c: Include <sys/mman.h>.
16425         (vma_iterate): Add an implementation based on mquery().
16426         * lib/resource-ext.h (get_rusage_as): Update comments.
16427         * lib/get-rusage-as.c: Likewise.
16428         * lib/get-rusage-data.c: Likewise.
16429
16430 2011-01-26  Karl Berry  <karl@gnu.org>
16431
16432         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
16433         variables to make it easier to override the makeinfo program used.
16434
16435 2011-01-26  Eric Blake  <eblake@redhat.com>
16436
16437         fcntl: work around Haiku F_DUPFD bugs
16438         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
16439         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
16440         cloexec bit on duplication.
16441         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
16442
16443 2011-01-26  Bruno Haible  <bruno@clisp.org>
16444
16445         Enable memory leak tests on AIX.
16446         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
16447         * tests/test-fprintf-posix3.c (main): Likewise.
16448
16449 2011-01-26  Bruno Haible  <bruno@clisp.org>
16450
16451         Tests for module 'get-rusage-data'.
16452         * modules/get-rusage-data-tests: New file.
16453         * tests/test-get-rusage-data.c: New file.
16454
16455         New module 'get-rusage-data'.
16456         * lib/resource-ext.h (get_rusage_data): New declaration.
16457         * lib/get-rusage-data.c: New file.
16458         * modules/get-rusage-data: New file.
16459
16460 2011-01-25  Bruno Haible  <bruno@clisp.org>
16461
16462         get-rusage-as: Allow for easier testing.
16463         * lib/resource-ext.h (get_rusage_as): Add comment.
16464         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
16465         (main): New function for interactive testing.
16466
16467 2011-01-25  Bruno Haible  <bruno@clisp.org>
16468
16469         vma-iter: Treat Haiku like BeOS.
16470         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
16471         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
16472
16473 2011-01-25  Eric Blake  <eblake@redhat.com>
16474
16475         c-stack: fix regression on cygwin when libsigsegv is present
16476         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
16477
16478 2011-01-24  Bruno Haible  <bruno@clisp.org>
16479
16480         vma-iter: Avoid empty intervals.
16481         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
16482         on an empty interval.
16483
16484 2011-01-24  Jim Meyering  <meyering@redhat.com>
16485
16486         u64: remove unnecessary #include
16487         * lib/u64.h: Don't include <stddef.h>.  It was not used.
16488
16489 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
16490
16491         Allow the user to avoid the HAVE_RAW_DECL_* macros.
16492         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
16493
16494 2011-01-23  Bruno Haible  <bruno@clisp.org>
16495
16496         New module 'vma-iter'.
16497         * lib/vma-iter.h: New file.
16498         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
16499         * modules/vma-iter: New file.
16500         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
16501         for get_rusage_as_via_iterator.
16502         (vma_iterate_callback): New function.
16503         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
16504         * modules/get-rusage-as (Depends-on): Add vma-iter.
16505
16506 2011-01-23  Bruno Haible  <bruno@clisp.org>
16507
16508         uninorm: Tweak includes.
16509         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
16510         Reported by Jim Meyering.
16511
16512 2011-01-23  Bruno Haible  <bruno@clisp.org>
16513
16514         get-rusage-as: Improve on NetBSD.
16515         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
16516         /proc, like on FreeBSD.
16517
16518 2011-01-23  Jim Meyering  <meyering@redhat.com>
16519
16520         xreadlink.h: remove unnecessary #include
16521         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
16522
16523         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
16524         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
16525
16526 2011-01-23  Bruno Haible  <bruno@clisp.org>
16527
16528         get-rusage-as: Fix bug.
16529         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
16530         original limit when aborting the first loop.
16531
16532 2011-01-23  Bruno Haible  <bruno@clisp.org>
16533
16534         wctype: Ensure valid C syntax.
16535         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
16536         unconditionally, instead of gl_NEXT_HEADERS conditionally.
16537
16538 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
16539
16540         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
16541         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
16542         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
16543         as they are needed only for configure's test case.
16544         This removes two unnecessary symbols from config.h.
16545
16546         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
16547         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
16548         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
16549         AC_CHECK_HEADERS_ONCE on a header that we also invoke
16550         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
16551         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
16552         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
16553         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
16554         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
16555         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
16556         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
16557         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16558         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
16559         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
16560         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
16561         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
16562         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
16563         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
16564
16565 2011-01-21  Eric Blake  <eblake@redhat.com>
16566
16567         maintainer-makefile: work with older git for submodule check
16568         * top/maint.mk (public-submodule-commit): Rewrite to avoid
16569         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
16570         Reported by Matthias Bolte.
16571
16572         bootstrap: minor portability fixes
16573         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
16574         (usage): Omit leading capital and trailing . on help phrases, per
16575         GNU Coding Standards.
16576         (check_versions, top level): Prefix messages with script name.
16577
16578 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
16579
16580         bootstrap: support --no-git option
16581         * build-aux/bootstrap: Add --no-git option, to be used when
16582         --gnulib-srcdir points to the exact desired checkout.
16583
16584 2011-01-21  Eric Blake  <eblake@redhat.com>
16585
16586         strerror_r-posix: work with glibc 2.13
16587         * lib/strerror_r.c (strerror_r): Fix return type.
16588
16589 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16590             Bruno Haible  <bruno@clisp.org>
16591
16592         uN_strstr: New unit tests.
16593         * modules/unistr/u8-strstr-tests: New file.
16594         * modules/unistr/u16-strstr-tests: New file.
16595         * modules/unistr/u32-strstr-tests: New file.
16596         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
16597         * tests/unistr/test-u8-strstr.c: New file.
16598         * tests/unistr/test-u16-strstr.c: New file.
16599         * tests/unistr/test-u32-strstr.c: New file.
16600
16601 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16602             Bruno Haible  <bruno@clisp.org>
16603
16604         Make uN_strstr functions O(n) worst-case.
16605         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
16606         16-bit and 32-bit unit cases, use the unibyte algorithm from
16607         lib/mbsstr.c.
16608         * lib/unistr/u8-strstr.c: Include <string.h>.
16609         (UNIT_IS_UINT8_T): New macro.
16610         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
16611         (U_STRLEN, U_STRNLEN): New macros.
16612         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
16613         (U_STRLEN, U_STRNLEN): New macros.
16614         * modules/unistr/u8-strstr (Depends-on): Add strstr.
16615         (configure.ac): Update required libunistring version.
16616         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
16617         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
16618         malloca.
16619         (configure.ac): Update required libunistring version.
16620         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
16621         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
16622         malloca.
16623         (configure.ac): Update required libunistring version.
16624
16625 2011-01-21  Pádraig Brady  <P@draigBrady.com>
16626             Bruno Haible  <bruno@clisp.org>
16627
16628         Prepare for faster uN_strstr functions.
16629         * lib/str-kmp.h: Support definable UNITs.
16630         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
16631         needle_len argument.
16632         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
16633         * lib/mbscasestr.c (mbscasestr): Likewise.
16634
16635 2011-01-21  Pádraig Brady <P@draigBrady.com>
16636
16637         malloca-tests: make faster by unsetting MALLOC_PERTURB_
16638         * tests/test-malloca.c (main): Unset the environment variable
16639         to greatly speed up the test.
16640         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
16641         * modules/malloca-tests: Depend on unsetenv.
16642
16643 2011-01-21  Pádraig Brady <P@draigBrady.com>
16644
16645         ignore-value: remove stdint dependency
16646         * lib/ignore-value.h: Remove <stdint.h>
16647         * modules/ignore-value: Remove stdint dependency.
16648
16649 2011-01-21  Jim Meyering  <meyering@redhat.com>
16650
16651         maint.mk: adjust variable name to be consistent with other gl_ vars
16652         * top/maint.mk (gl_public_submodule_commit): Rename the variable
16653         to be lower case.
16654
16655 2011-01-20  Jim Meyering  <meyering@redhat.com>
16656
16657         maint.mk: make "check" depend on public-submodule-commit by default
16658         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
16659
16660 2011-01-20  Bruno Haible  <bruno@clisp.org>
16661
16662         mbfile, mbiter: Complete change from 2008-12-21.
16663         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
16664         * m4/mbiter.m4 (gl_MBITER): Likewise.
16665
16666 2011-01-20  Jim Meyering  <meyering@redhat.com>
16667
16668         init.sh: insert space between each function name and "()"
16669         * tests/init.sh: Make it a little easier to see that a function's
16670         name is "warn_", and not "warn" when looking at the first part of
16671         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
16672
16673 2011-01-20  Jim Meyering  <meyering@redhat.com>
16674
16675         mountlist: clean up code formatting
16676         * lib/mountlist.c (read_file_system_list): Split a long line,
16677         correct bracing style, use NULL in place of "(struct statfs *)0",
16678         don't parenthesize return value, add spaces around "=" and after
16679         ";-in-for-stmt".
16680
16681 2011-01-14  Markus Duft <mduft@gentoo.org>
16682
16683         mountlist: add support for Interix
16684         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
16685         Apply statvfs to all entries of /dev/fs.
16686         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
16687         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
16688
16689 2011-01-20  Jim Meyering  <meyering@redhat.com>
16690
16691         maint.mk: improve the public-submodule-commit rule
16692         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
16693         to suppress printing of its commands... unless V=1.
16694         Add git submodule's --quiet option to suppress printing of e.g.,
16695         "Entering gnulib" output.
16696         "cd" into $(srcdir) before running git submodule.
16697
16698 2011-01-20  Bruno Haible  <bruno@clisp.org>
16699
16700         include_next: Fix bug introduced on 2011-01-18.
16701         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
16702         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
16703         ac_cv_header_... variable if the second argument is not 'check'.
16704         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
16705         gl_NEXT_HEADERS_INTERNAL.
16706
16707 2011-01-20  Bruno Haible  <bruno@clisp.org>
16708
16709         Allow the user to avoid the GNULIB_TEST_* macros.
16710         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
16711         Suggested by Paul Eggert.
16712
16713 2011-01-14  Jim Meyering  <meyering@redhat.com>
16714
16715         bootstrap: avoid failure when there is no .gitmodules file
16716         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
16717         has been assigned to, even when its value is the empty string.
16718         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
16719         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
16720         Reported by John W. Eaton <jwe@gnu.org>.
16721
16722 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
16723
16724         assume <ctype.h>, ..., <time.h> exist
16725         For years gnulib has been assuming the existence of the headers
16726         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
16727         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
16728         them, since they don't appear to be needed.
16729         * README (Portability guidelines): Document this.
16730         * lib/flock.c: Assume <fcntl.h> exists.
16731         * lib/regex_internal.h: Assume <locale.h> exists.
16732         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
16733         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
16734         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
16735         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
16736         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
16737         * m4/regex.m4 (gl_REGEX): Likewise.
16738         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
16739         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
16740         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
16741         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
16742         * tests/test-argp.c: Likewise.
16743         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
16744
16745         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
16746         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
16747         AA_APPLE_UNIVERSAL_BUILD.  See
16748         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
16749         * NEWS: Document this.
16750
16751 2011-01-19  Eric Blake  <eblake@redhat.com>
16752
16753         c-stack: assume stack overflow if SA_SIGINFO unsupported
16754         * lib/c-stack.c (SIGACTION_WORKS): Rename...
16755         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
16756         sigaction will work.
16757         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
16758         behavior match Linux.
16759         * tests/test-c-stack.c (main): Prefer NULL for pointers.
16760
16761         stdbool-tests: accomodate Haiku
16762         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
16763
16764         binary-io: fix O_TEXT on Haiku
16765         * modules/binary-io (Depends-on): Add fcntl-h.
16766         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
16767         than blindly undefining O_TEXT.
16768         Reported by Scott McCreary.
16769
16770 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16771
16772         include_next: do not check for standard headers like stddef.h
16773
16774         I found this problem when modifying Emacs to use gnulib.
16775         I noticed that it added HAVE_STDDEF_H to config.h, even though
16776         gnulib always assumes <stddef.h> exists as per README and this
16777         symbol is unnecessary.
16778         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
16779         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
16780         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
16781         faster for headers like stddef.h that are known to exist.
16782         (gl_CHECK_NEXT_HEADERS): Use it.
16783         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
16784         rather than gl_CHECK_NEXT_HEADERS.
16785         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
16786         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
16787
16788 2011-01-18  Eric Blake  <eblake@redhat.com>
16789
16790         ansi-c++-opt: skip C++ dependency style if C++ is unused
16791         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
16792         tests when we know C++ compilation is not desired.
16793         Reported by Scott McCreary.
16794
16795 2011-01-18  Bruno Haible  <bruno@clisp.org>
16796
16797         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
16798         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
16799         (main): Perform test also when getrlimit and setrlimit don't exist or
16800         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
16801         limiting the address space size using setrlimit, compare the address
16802         space size before and after the the test.
16803         * tests/test-dprintf-posix2.c: Likewise.
16804         * tests/test-fprintf-posix3.sh: Update skip messages.
16805         * tests/test-dprintf-posix2.sh: Likewise.
16806         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
16807         * modules/dprintf-posix-tests (Depends-on): Likewise.
16808         Reported by Bruce Korb <bkorb@gnu.org> and
16809         Gary V. Vaughan <gary@gnu.org>.
16810
16811 2011-01-18  Bruno Haible  <bruno@clisp.org>
16812
16813         get-rusage-as: Improvement for Cygwin.
16814         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
16815         areas that are merely reserved.
16816
16817 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
16818
16819         strftime: remove dependencies on multibyte modules
16820
16821         strftime depended on mbrlen, mbsinit, and wchar, but these modules
16822         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
16823         only if __osf__ is defined, and I suspect OSF doesn't need these
16824         other modules.  If my guess is wrong, we'll need to come up with a
16825         variant of strftime that doesn't need the multibyte modules.
16826
16827         I discovered this problem when attempting modify Emacs to use the
16828         strftime module.  With the previous gnulib, this caused Emacs to
16829         need 31 new files, ranging from lib/config.charset to
16830         m4/wint_t.m4.  This was overkill and I expect would be offputting
16831         to the Emacs maintainers.  After this change, only 6 new files are
16832         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
16833         stdbool.m4, and tm_gmtoff.m4.
16834
16835         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
16836         Suggested by Bruno Haible in
16837         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
16838         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
16839         and do not check for wchar.h.
16840         * modules/strftime (Files): Remove m4/mbstate_t.m4.
16841         (Depends-on): Remove mbrlen, mbsinit, wchar.
16842
16843 2011-01-18  Bruno Haible  <bruno@clisp.org>
16844
16845         Tests for module 'get-rusage-as'.
16846         * modules/get-rusage-as-tests: New file.
16847         * tests/test-get-rusage-as.c: New file.
16848
16849         New module 'get-rusage-as'.
16850         * modules/get-rusage-as: New file.
16851         * lib/resource-ext.h: New file.
16852         * lib/get-rusage-as.c: New file.
16853
16854 2011-01-17  Eric Blake  <eblake@redhat.com>
16855
16856         sigaction: relax license from LGPLv3+ to LGPLv2+
16857         * modules/sigaction (License): Relax to LGPLv2+.
16858
16859 2011-01-14  Bruno Haible  <bruno@clisp.org>
16860
16861         filemode: Make function declarations usable in C++ mode.
16862         * lib/filemode.h: Enclose function declarations in extern "C" block.
16863         Reported by John W. Eaton <jwe@gnu.org>.
16864
16865 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
16866
16867         save-cwd: no longer include "xgetcwd.h"
16868         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
16869         This avoids a compilation failure in projects that use save-cwd
16870         without also using the xgetcwd module.
16871
16872 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16873
16874         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
16875         This is so that a program like Emacs, which needs only dtoastr,
16876         does not have to bother with distributing and compiling ftoastr
16877         and ldtoastr.
16878         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
16879         * modules/dtoastr, modules/ldtoastr: New files.
16880         * modules/ftoastr: Now works just for 'float'.
16881         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
16882         (Makefile.am): Remove ftoastr.h (not needed and no effect),
16883         dtoastr.c, ldtoastr.c.
16884
16885 2011-01-11  Jim Meyering  <meyering@redhat.com>
16886
16887         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
16888         There is no need to work around the lack of the fchdir function,
16889         since gnulib can now provide a replacement when required.
16890         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
16891         * modules/save-cwd (Depends-on): Add fchdir.
16892
16893 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
16894
16895         openat, save-cwd: avoid xmalloc
16896
16897         This removes a direct (but undocumented) dependency of openat on
16898         xalloc, along with an indirect dependency via save-cwd.  It also
16899         removes a dependency of save-cwd on xgetcwd, and thereby
16900         indirectly on xalloc.  This change causes the openat substitute
16901         to fall back on save_cwd when memory is tight, and for save_cwd to
16902         fail instead of dying when memory is tight, but that's good enough.
16903         Problem and initial idea for fix reported by Bastien Roucaries in
16904         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
16905
16906         * lib/openat-proc.c: Include stdlib.h (for malloc), not
16907         xalloc.h (for xmalloc).
16908         (openat_proc_name): Use malloc, not xmalloc.
16909         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
16910         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
16911
16912         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
16913         This avoids heap allocation for file names whose lengths are in
16914         the range 512..1023, with the upper bound increasing to at most
16915         4031 depending on the platform's PATH_MAX.  (We do not want
16916         pathmax.h here as it might supply a non-constant PATH_MAX.)
16917         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
16918         Perhaps they should be moved to malloca.h?
16919         (OPENAT_BUFFER_SIZE): Use them.
16920
16921 2011-01-10  Bruno Haible  <bruno@clisp.org>
16922
16923         doc: Update users.txt.
16924         * users.txt: Add recutils.
16925
16926 2011-01-09  Karl Berry  <karl@gnu.org>
16927
16928         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
16929
16930         * doc/configmake.texi: New file.
16931         * doc/gnulib.texi: Include it.
16932         * modules/configmake: Move documentation from here.
16933
16934 2011-01-09  Bruno Haible  <bruno@clisp.org>
16935
16936         Update to Unicode 6.0.0.
16937         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
16938         (get_lbp): Update for Unicode 6.0.0.
16939         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
16940         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
16941         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
16942         U+11001, U+11038..U+11046. Remove U+06DE.
16943         (uc_width): Fix bounds of planes.
16944         * tests/uniwidth/test-uc_width2.sh: Same updates as in
16945         lib/uniwidth/width.c.
16946         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
16947         trailing whitespace removed.
16948         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
16949         without comments, but with the original copyright notice.
16950         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
16951         * lib/unicase/ignorable.h: Likewise.
16952         * lib/unicase/tocasefold.h: Likewise.
16953         * lib/unicase/tolower.h: Likewise.
16954         * lib/unicase/totitle.h: Likewise.
16955         * lib/unicase/toupper.h: Likewise.
16956         * lib/unictype/bidi_of.h: Likewise.
16957         * lib/unictype/blocks.h: Likewise.
16958         * lib/unictype/categ_C.h: Likewise.
16959         * lib/unictype/categ_Cn.h: Likewise.
16960         * lib/unictype/categ_L.h: Likewise.
16961         * lib/unictype/categ_Ll.h: Likewise.
16962         * lib/unictype/categ_Lm.h: Likewise.
16963         * lib/unictype/categ_Lo.h: Likewise.
16964         * lib/unictype/categ_Lu.h: Likewise.
16965         * lib/unictype/categ_M.h: Likewise.
16966         * lib/unictype/categ_Mc.h: Likewise.
16967         * lib/unictype/categ_Me.h: Likewise.
16968         * lib/unictype/categ_Mn.h: Likewise.
16969         * lib/unictype/categ_N.h: Likewise.
16970         * lib/unictype/categ_Nd.h: Likewise.
16971         * lib/unictype/categ_No.h: Likewise.
16972         * lib/unictype/categ_P.h: Likewise.
16973         * lib/unictype/categ_Po.h: Likewise.
16974         * lib/unictype/categ_S.h: Likewise.
16975         * lib/unictype/categ_Sc.h: Likewise.
16976         * lib/unictype/categ_Sk.h: Likewise.
16977         * lib/unictype/categ_Sm.h: Likewise.
16978         * lib/unictype/categ_So.h: Likewise.
16979         * lib/unictype/categ_of.h: Likewise.
16980         * lib/unictype/combining.h: Likewise.
16981         * lib/unictype/ctype_alnum.h: Likewise.
16982         * lib/unictype/ctype_alpha.h: Likewise.
16983         * lib/unictype/ctype_graph.h: Likewise.
16984         * lib/unictype/ctype_lower.h: Likewise.
16985         * lib/unictype/ctype_print.h: Likewise.
16986         * lib/unictype/ctype_punct.h: Likewise.
16987         * lib/unictype/ctype_upper.h: Likewise.
16988         * lib/unictype/decdigit.h: Likewise.
16989         * lib/unictype/digit.h: Likewise.
16990         * lib/unictype/numeric.h: Likewise.
16991         * lib/unictype/pr_alphabetic.h: Likewise.
16992         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
16993         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
16994         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
16995         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
16996         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
16997         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
16998         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
16999         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
17000         * lib/unictype/pr_case_ignorable.h: Likewise.
17001         * lib/unictype/pr_cased.h: Likewise.
17002         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
17003         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
17004         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
17005         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
17006         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
17007         * lib/unictype/pr_combining.h: Likewise.
17008         * lib/unictype/pr_composite.h: Likewise.
17009         * lib/unictype/pr_currency_symbol.h: Likewise.
17010         * lib/unictype/pr_decimal_digit.h: Likewise.
17011         * lib/unictype/pr_deprecated.h: Likewise.
17012         * lib/unictype/pr_format_control.h: Likewise.
17013         * lib/unictype/pr_grapheme_base.h: Likewise.
17014         * lib/unictype/pr_grapheme_extend.h: Likewise.
17015         * lib/unictype/pr_grapheme_link.h: Likewise.
17016         * lib/unictype/pr_id_continue.h: Likewise.
17017         * lib/unictype/pr_id_start.h: Likewise.
17018         * lib/unictype/pr_ideographic.h: Likewise.
17019         * lib/unictype/pr_lowercase.h: Likewise.
17020         * lib/unictype/pr_math.h: Likewise.
17021         * lib/unictype/pr_numeric.h: Likewise.
17022         * lib/unictype/pr_other_alphabetic.h: Likewise.
17023         * lib/unictype/pr_other_id_continue.h: Likewise.
17024         * lib/unictype/pr_other_math.h: Likewise.
17025         * lib/unictype/pr_punctuation.h: Likewise.
17026         * lib/unictype/pr_sentence_terminal.h: Likewise.
17027         * lib/unictype/pr_terminal_punctuation.h: Likewise.
17028         * lib/unictype/pr_unassigned_code_value.h: Likewise.
17029         * lib/unictype/pr_unified_ideograph.h: Likewise.
17030         * lib/unictype/pr_uppercase.h: Likewise.
17031         * lib/unictype/pr_xid_continue.h: Likewise.
17032         * lib/unictype/pr_xid_start.h: Likewise.
17033         * lib/unictype/scripts.h: Likewise.
17034         * lib/unictype/scripts_byname.gperf: Likewise.
17035         * lib/unictype/sy_java_ident.h: Likewise.
17036         * lib/unigbrk/gbrkprop.h: Likewise.
17037         * lib/unilbrk/lbrkprop1.h: Likewise.
17038         * lib/unilbrk/lbrkprop2.h: Likewise.
17039         * lib/uninorm/decomposition-table2.h: Likewise.
17040         * lib/uniwbrk/wbrkprop.h: Likewise.
17041         * tests/unicase/test-cased.c: Likewise.
17042         * tests/unicase/test-ignorable.c: Likewise.
17043         * tests/unicase/test-uc_tolower.c: Likewise.
17044         * tests/unicase/test-uc_totitle.c: Likewise.
17045         * tests/unicase/test-uc_toupper.c: Likewise.
17046         * tests/unictype/test-categ_C.c: Likewise.
17047         * tests/unictype/test-categ_Cn.c: Likewise.
17048         * tests/unictype/test-categ_L.c: Likewise.
17049         * tests/unictype/test-categ_Ll.c: Likewise.
17050         * tests/unictype/test-categ_Lm.c: Likewise.
17051         * tests/unictype/test-categ_Lo.c: Likewise.
17052         * tests/unictype/test-categ_Lu.c: Likewise.
17053         * tests/unictype/test-categ_M.c: Likewise.
17054         * tests/unictype/test-categ_Mc.c: Likewise.
17055         * tests/unictype/test-categ_Me.c: Likewise.
17056         * tests/unictype/test-categ_Mn.c: Likewise.
17057         * tests/unictype/test-categ_N.c: Likewise.
17058         * tests/unictype/test-categ_Nd.c: Likewise.
17059         * tests/unictype/test-categ_No.c: Likewise.
17060         * tests/unictype/test-categ_P.c: Likewise.
17061         * tests/unictype/test-categ_Po.c: Likewise.
17062         * tests/unictype/test-categ_S.c: Likewise.
17063         * tests/unictype/test-categ_Sc.c: Likewise.
17064         * tests/unictype/test-categ_Sk.c: Likewise.
17065         * tests/unictype/test-categ_Sm.c: Likewise.
17066         * tests/unictype/test-categ_So.c: Likewise.
17067         * tests/unictype/test-ctype_alnum.c: Likewise.
17068         * tests/unictype/test-ctype_alpha.c: Likewise.
17069         * tests/unictype/test-ctype_graph.c: Likewise.
17070         * tests/unictype/test-ctype_lower.c: Likewise.
17071         * tests/unictype/test-ctype_print.c: Likewise.
17072         * tests/unictype/test-ctype_punct.c: Likewise.
17073         * tests/unictype/test-ctype_upper.c: Likewise.
17074         * tests/unictype/test-decdigit.h: Likewise.
17075         * tests/unictype/test-digit.h: Likewise.
17076         * tests/unictype/test-numeric.h: Likewise.
17077         * tests/unictype/test-pr_alphabetic.c: Likewise.
17078         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
17079         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
17080         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
17081         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
17082         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
17083         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
17084         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
17085         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
17086         * tests/unictype/test-pr_case_ignorable.c: Likewise.
17087         * tests/unictype/test-pr_cased.c: Likewise.
17088         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
17089         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
17090         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
17091         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
17092         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
17093         * tests/unictype/test-pr_combining.c: Likewise.
17094         * tests/unictype/test-pr_composite.c: Likewise.
17095         * tests/unictype/test-pr_currency_symbol.c: Likewise.
17096         * tests/unictype/test-pr_decimal_digit.c: Likewise.
17097         * tests/unictype/test-pr_deprecated.c: Likewise.
17098         * tests/unictype/test-pr_format_control.c: Likewise.
17099         * tests/unictype/test-pr_grapheme_base.c: Likewise.
17100         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
17101         * tests/unictype/test-pr_grapheme_link.c: Likewise.
17102         * tests/unictype/test-pr_id_continue.c: Likewise.
17103         * tests/unictype/test-pr_id_start.c: Likewise.
17104         * tests/unictype/test-pr_ideographic.c: Likewise.
17105         * tests/unictype/test-pr_lowercase.c: Likewise.
17106         * tests/unictype/test-pr_math.c: Likewise.
17107         * tests/unictype/test-pr_numeric.c: Likewise.
17108         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
17109         * tests/unictype/test-pr_other_id_continue.c: Likewise.
17110         * tests/unictype/test-pr_other_math.c: Likewise.
17111         * tests/unictype/test-pr_punctuation.c: Likewise.
17112         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
17113         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
17114         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
17115         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
17116         * tests/unictype/test-pr_uppercase.c: Likewise.
17117         * tests/unictype/test-pr_xid_continue.c: Likewise.
17118         * tests/unictype/test-pr_xid_start.c: Likewise.
17119         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
17120         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
17121         changes.
17122         * lib/unictype/categ_Cc.h: Likewise.
17123         * lib/unictype/categ_Cf.h: Likewise.
17124         * lib/unictype/categ_Co.h: Likewise.
17125         * lib/unictype/categ_Cs.h: Likewise.
17126         * lib/unictype/categ_Lt.h: Likewise.
17127         * lib/unictype/categ_Nl.h: Likewise.
17128         * lib/unictype/categ_Pc.h: Likewise.
17129         * lib/unictype/categ_Pd.h: Likewise.
17130         * lib/unictype/categ_Pe.h: Likewise.
17131         * lib/unictype/categ_Pf.h: Likewise.
17132         * lib/unictype/categ_Pi.h: Likewise.
17133         * lib/unictype/categ_Ps.h: Likewise.
17134         * lib/unictype/categ_Z.h: Likewise.
17135         * lib/unictype/categ_Zl.h: Likewise.
17136         * lib/unictype/categ_Zp.h: Likewise.
17137         * lib/unictype/categ_Zs.h: Likewise.
17138         * lib/unictype/ctype_blank.h: Likewise.
17139         * lib/unictype/ctype_cntrl.h: Likewise.
17140         * lib/unictype/ctype_digit.h: Likewise.
17141         * lib/unictype/ctype_space.h: Likewise.
17142         * lib/unictype/ctype_xdigit.h: Likewise.
17143         * lib/unictype/mirror.h: Likewise.
17144         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
17145         * lib/unictype/pr_bidi_block_separator.h: Likewise.
17146         * lib/unictype/pr_bidi_common_separator.h: Likewise.
17147         * lib/unictype/pr_bidi_control.h: Likewise.
17148         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
17149         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
17150         * lib/unictype/pr_bidi_european_digit.h: Likewise.
17151         * lib/unictype/pr_bidi_pdf.h: Likewise.
17152         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
17153         * lib/unictype/pr_bidi_whitespace.h: Likewise.
17154         * lib/unictype/pr_dash.h: Likewise.
17155         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
17156         * lib/unictype/pr_diacritic.h: Likewise.
17157         * lib/unictype/pr_extender.h: Likewise.
17158         * lib/unictype/pr_hex_digit.h: Likewise.
17159         * lib/unictype/pr_hyphen.h: Likewise.
17160         * lib/unictype/pr_ids_binary_operator.h: Likewise.
17161         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
17162         * lib/unictype/pr_ignorable_control.h: Likewise.
17163         * lib/unictype/pr_iso_control.h: Likewise.
17164         * lib/unictype/pr_join_control.h: Likewise.
17165         * lib/unictype/pr_left_of_pair.h: Likewise.
17166         * lib/unictype/pr_line_separator.h: Likewise.
17167         * lib/unictype/pr_logical_order_exception.h: Likewise.
17168         * lib/unictype/pr_non_break.h: Likewise.
17169         * lib/unictype/pr_not_a_character.h: Likewise.
17170         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
17171         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
17172         * lib/unictype/pr_other_id_start.h: Likewise.
17173         * lib/unictype/pr_other_lowercase.h: Likewise.
17174         * lib/unictype/pr_other_uppercase.h: Likewise.
17175         * lib/unictype/pr_paired_punctuation.h: Likewise.
17176         * lib/unictype/pr_paragraph_separator.h: Likewise.
17177         * lib/unictype/pr_pattern_syntax.h: Likewise.
17178         * lib/unictype/pr_pattern_white_space.h: Likewise.
17179         * lib/unictype/pr_private_use.h: Likewise.
17180         * lib/unictype/pr_quotation_mark.h: Likewise.
17181         * lib/unictype/pr_radical.h: Likewise.
17182         * lib/unictype/pr_soft_dotted.h: Likewise.
17183         * lib/unictype/pr_space.h: Likewise.
17184         * lib/unictype/pr_titlecase.h: Likewise.
17185         * lib/unictype/pr_variation_selector.h: Likewise.
17186         * lib/unictype/pr_white_space.h: Likewise.
17187         * lib/unictype/pr_zero_width.h: Likewise.
17188         * lib/unictype/sy_c_ident.h: Likewise.
17189         * lib/unictype/sy_c_whitespace.h: Likewise.
17190         * lib/unictype/sy_java_whitespace.h: Likewise.
17191         * lib/uninorm/composition-table.gperf: Likewise.
17192         * lib/uninorm/decomposition-table1.h: Likewise.
17193         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
17194         LB8.
17195         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
17196         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
17197         * modules/unictype/*: Bump version number of expected libunistring
17198         version.
17199
17200 2011-01-09  Bruno Haible  <bruno@clisp.org>
17201
17202         Update to Unicode 5.2.0.
17203         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
17204         trailing whitespace removed.
17205
17206 2011-01-09  Bruno Haible  <bruno@clisp.org>
17207
17208         New Unicode character properties, from Unicode 5.2.0.
17209         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
17210         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
17211         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
17212         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
17213         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
17214         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
17215         uc_is_property_cased, uc_is_property_case_ignorable,
17216         uc_is_property_changes_when_lowercased,
17217         uc_is_property_changes_when_uppercased,
17218         uc_is_property_changes_when_titlecased,
17219         uc_is_property_changes_when_casefolded,
17220         uc_is_property_changes_when_casemapped): New declarations.
17221         * lib/unictype/pr_byname.gperf: Add the new properties.
17222         * modules/unictype/property-byname (Depends-on): Depend on the new
17223         properties modules.
17224         * modules/unictype/property-all (Depends-on): Likewise.
17225         * MODULES.html.sh (Unicode string functions): Add
17226         unictype/property-case-ignorable, unictype/property-cased,
17227         unictype/property-changes-when-casefolded,
17228         unictype/property-changes-when-casemapped,
17229         unictype/property-changes-when-lowercased,
17230         unictype/property-changes-when-titlecased,
17231         unictype/property-changes-when-uppercased.
17232
17233         New module 'unictype/property-changes-when-casemapped'.
17234         * modules/unictype/property-changes-when-casemapped: New file.
17235         * lib/unictype/pr_changes_when_casemapped.c: New file.
17236         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
17237         generated by gen-uni-tables.
17238         * modules/unictype/property-changes-when-casemapped-tests: New file.
17239         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
17240         automatically generated by gen-uni-tables.
17241
17242         New module 'unictype/property-changes-when-casefolded'.
17243         * modules/unictype/property-changes-when-casefolded: New file.
17244         * lib/unictype/pr_changes_when_casefolded.c: New file.
17245         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
17246         generated by gen-uni-tables.
17247         * modules/unictype/property-changes-when-casefolded-tests: New file.
17248         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
17249         automatically generated by gen-uni-tables.
17250
17251         New module 'unictype/property-changes-when-titlecased'.
17252         * modules/unictype/property-changes-when-titlecased: New file.
17253         * lib/unictype/pr_changes_when_titlecased.c: New file.
17254         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
17255         generated by gen-uni-tables.
17256         * modules/unictype/property-changes-when-titlecased-tests: New file.
17257         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
17258         automatically generated by gen-uni-tables.
17259
17260         New module 'unictype/property-changes-when-uppercased'.
17261         * modules/unictype/property-changes-when-uppercased: New file.
17262         * lib/unictype/pr_changes_when_uppercased.c: New file.
17263         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
17264         generated by gen-uni-tables.
17265         * modules/unictype/property-changes-when-uppercased-tests: New file.
17266         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
17267         automatically generated by gen-uni-tables.
17268
17269         New module 'unictype/property-changes-when-lowercased'.
17270         * modules/unictype/property-changes-when-lowercased: New file.
17271         * lib/unictype/pr_changes_when_lowercased.c: New file.
17272         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
17273         generated by gen-uni-tables.
17274         * modules/unictype/property-changes-when-lowercased-tests: New file.
17275         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
17276         automatically generated by gen-uni-tables.
17277
17278         New module 'unictype/property-case-ignorable'.
17279         * modules/unictype/property-case-ignorable: New file.
17280         * lib/unictype/pr_case_ignorable.c: New file.
17281         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
17282         by gen-uni-tables.
17283         * modules/unictype/property-case-ignorable-tests: New file.
17284         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
17285         generated by gen-uni-tables.
17286
17287         New module 'unictype/property-cased'.
17288         * modules/unictype/property-cased: New file.
17289         * lib/unictype/pr_cased.c: New file.
17290         * lib/unictype/pr_cased.h: New file, automatically generated by
17291         gen-uni-tables.
17292         * modules/unictype/property-cased-tests: New file.
17293         * tests/unictype/test-pr_cased.c: New file, automatically generated by
17294         gen-uni-tables.
17295
17296 2011-01-09  Bruno Haible  <bruno@clisp.org>
17297
17298         Update to Unicode 5.2.0.
17299         * lib/gen-uni-tables.c (output_predicate, output_category,
17300         output_combclass, output_bidi_category, output_decimal_digit_test,
17301         output_decimal_digit, output_digit_test, output_digit,
17302         output_numeric_test, output_numeric, output_mirror, output_scripts,
17303         output_scripts_byname, output_blocks, output_ident_category): Fix
17304         comment header.
17305         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
17306         get_wbp.
17307         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
17308         items.
17309         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
17310         Changes_When_Lowercased, Changes_When_Uppercased,
17311         Changes_When_Titlecased, Changes_When_Casefolded,
17312         Changes_When_Casemapped.
17313         (is_property_alphabetic, is_property_default_ignorable_code_point):
17314         Update for Unicode 5.2.0.
17315         (is_property_cased, is_property_case_ignorable,
17316         is_property_changes_when_lowercased,
17317         is_property_changes_when_uppercased,
17318         is_property_changes_when_titlecased,
17319         is_property_changes_when_casefolded,
17320         is_property_changes_when_casemapped): New functions.
17321         (output_properties): Output also the properties cased, case_ignorable,
17322         changes_when_lowercased, changes_when_uppercased,
17323         changes_when_titlecased, changes_when_casefolded,
17324         changes_when_casemapped.
17325         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
17326         Unicode TR#11 revision 17 -> 19.
17327         (LBP_CP): New enumeration value.
17328         (LBP_*): Adjust values accordingly.
17329         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
17330         TR#14 revision 22 -> 24.
17331         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
17332         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
17333         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
17334         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
17335         is_WBP_MIDLETTER.
17336         (output_composition_tables): Allow for 24 bits instead of 16 bits in
17337         the code1 and code2 of each composition rule.
17338         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
17339         * lib/unicase/ignorable.h: Likewise.
17340         * lib/unicase/tocasefold.h: Likewise.
17341         * lib/unicase/tolower.h: Likewise.
17342         * lib/unicase/totitle.h: Likewise.
17343         * lib/unicase/toupper.h: Likewise.
17344         * lib/unictype/bidi_of.h: Likewise.
17345         * lib/unictype/blocks.h: Likewise.
17346         * lib/unictype/categ_C.h: Likewise.
17347         * lib/unictype/categ_Cf.h: Likewise.
17348         * lib/unictype/categ_Cn.h: Likewise.
17349         * lib/unictype/categ_L.h: Likewise.
17350         * lib/unictype/categ_Ll.h: Likewise.
17351         * lib/unictype/categ_Lm.h: Likewise.
17352         * lib/unictype/categ_Lo.h: Likewise.
17353         * lib/unictype/categ_Lu.h: Likewise.
17354         * lib/unictype/categ_M.h: Likewise.
17355         * lib/unictype/categ_Mc.h: Likewise.
17356         * lib/unictype/categ_Mn.h: Likewise.
17357         * lib/unictype/categ_N.h: Likewise.
17358         * lib/unictype/categ_Nd.h: Likewise.
17359         * lib/unictype/categ_Nl.h: Likewise.
17360         * lib/unictype/categ_No.h: Likewise.
17361         * lib/unictype/categ_P.h: Likewise.
17362         * lib/unictype/categ_Pd.h: Likewise.
17363         * lib/unictype/categ_Po.h: Likewise.
17364         * lib/unictype/categ_S.h: Likewise.
17365         * lib/unictype/categ_Sc.h: Likewise.
17366         * lib/unictype/categ_So.h: Likewise.
17367         * lib/unictype/categ_of.h: Likewise.
17368         * lib/unictype/combining.h: Likewise.
17369         * lib/unictype/ctype_alnum.h: Likewise.
17370         * lib/unictype/ctype_alpha.h: Likewise.
17371         * lib/unictype/ctype_graph.h: Likewise.
17372         * lib/unictype/ctype_lower.h: Likewise.
17373         * lib/unictype/ctype_print.h: Likewise.
17374         * lib/unictype/ctype_punct.h: Likewise.
17375         * lib/unictype/ctype_upper.h: Likewise.
17376         * lib/unictype/decdigit.h: Likewise.
17377         * lib/unictype/digit.h: Likewise.
17378         * lib/unictype/numeric.h: Likewise.
17379         * lib/unictype/pr_alphabetic.h: Likewise.
17380         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
17381         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
17382         * lib/unictype/pr_bidi_european_digit.h: Likewise.
17383         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
17384         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
17385         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
17386         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
17387         * lib/unictype/pr_combining.h: Likewise.
17388         * lib/unictype/pr_composite.h: Likewise.
17389         * lib/unictype/pr_currency_symbol.h: Likewise.
17390         * lib/unictype/pr_dash.h: Likewise.
17391         * lib/unictype/pr_decimal_digit.h: Likewise.
17392         * lib/unictype/pr_deprecated.h: Likewise.
17393         * lib/unictype/pr_diacritic.h: Likewise.
17394         * lib/unictype/pr_extender.h: Likewise.
17395         * lib/unictype/pr_grapheme_base.h: Likewise.
17396         * lib/unictype/pr_grapheme_extend.h: Likewise.
17397         * lib/unictype/pr_grapheme_link.h: Likewise.
17398         * lib/unictype/pr_id_continue.h: Likewise.
17399         * lib/unictype/pr_id_start.h: Likewise.
17400         * lib/unictype/pr_ideographic.h: Likewise.
17401         * lib/unictype/pr_ignorable_control.h: Likewise.
17402         * lib/unictype/pr_logical_order_exception.h: Likewise.
17403         * lib/unictype/pr_lowercase.h: Likewise.
17404         * lib/unictype/pr_numeric.h: Likewise.
17405         * lib/unictype/pr_other_alphabetic.h: Likewise.
17406         * lib/unictype/pr_punctuation.h: Likewise.
17407         * lib/unictype/pr_sentence_terminal.h: Likewise.
17408         * lib/unictype/pr_terminal_punctuation.h: Likewise.
17409         * lib/unictype/pr_unassigned_code_value.h: Likewise.
17410         * lib/unictype/pr_unified_ideograph.h: Likewise.
17411         * lib/unictype/pr_uppercase.h: Likewise.
17412         * lib/unictype/pr_xid_continue.h: Likewise.
17413         * lib/unictype/pr_xid_start.h: Likewise.
17414         * lib/unictype/pr_zero_width.h: Likewise.
17415         * lib/unictype/scripts.h: Likewise.
17416         * lib/unictype/scripts_byname.gperf: Likewise.
17417         * lib/unictype/sy_java_ident.h: Likewise.
17418         * lib/unigbrk/gbrkprop.h: Likewise.
17419         * lib/unilbrk/lbrkprop1.h: Likewise.
17420         * lib/unilbrk/lbrkprop2.h: Likewise.
17421         * lib/unilbrk/lbrktables.h: Likewise.
17422         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
17423         LBP_CP. Implement rule LB30.
17424         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
17425         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
17426         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
17427         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
17428         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
17429         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
17430         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
17431         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
17432         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
17433         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
17434         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
17435         bits instead of 16 bits in the code1 and code2 of each composition
17436         rule.
17437         (uc_composition): Update for Unicode 5.2.0.
17438         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
17439         * lib/uninorm/decomposition-table2.h: Likewise.
17440         * lib/uniwbrk/wbrkprop.h: Likewise.
17441         * tests/unicase/test-cased.c: Likewise.
17442         * tests/unicase/test-ignorable.c: Likewise.
17443         * tests/unicase/test-uc_tolower.c: Likewise.
17444         * tests/unicase/test-uc_totitle.c: Likewise.
17445         * tests/unicase/test-uc_toupper.c: Likewise.
17446         * tests/unictype/test-categ_C.c: Likewise.
17447         * tests/unictype/test-categ_Cf.c: Likewise.
17448         * tests/unictype/test-categ_Cn.c: Likewise.
17449         * tests/unictype/test-categ_L.c: Likewise.
17450         * tests/unictype/test-categ_Ll.c: Likewise.
17451         * tests/unictype/test-categ_Lm.c: Likewise.
17452         * tests/unictype/test-categ_Lo.c: Likewise.
17453         * tests/unictype/test-categ_Lu.c: Likewise.
17454         * tests/unictype/test-categ_M.c: Likewise.
17455         * tests/unictype/test-categ_Mc.c: Likewise.
17456         * tests/unictype/test-categ_Mn.c: Likewise.
17457         * tests/unictype/test-categ_N.c: Likewise.
17458         * tests/unictype/test-categ_Nd.c: Likewise.
17459         * tests/unictype/test-categ_Nl.c: Likewise.
17460         * tests/unictype/test-categ_No.c: Likewise.
17461         * tests/unictype/test-categ_P.c: Likewise.
17462         * tests/unictype/test-categ_Pd.c: Likewise.
17463         * tests/unictype/test-categ_Po.c: Likewise.
17464         * tests/unictype/test-categ_S.c: Likewise.
17465         * tests/unictype/test-categ_Sc.c: Likewise.
17466         * tests/unictype/test-categ_So.c: Likewise.
17467         * tests/unictype/test-ctype_alnum.c: Likewise.
17468         * tests/unictype/test-ctype_alpha.c: Likewise.
17469         * tests/unictype/test-ctype_graph.c: Likewise.
17470         * tests/unictype/test-ctype_lower.c: Likewise.
17471         * tests/unictype/test-ctype_print.c: Likewise.
17472         * tests/unictype/test-ctype_punct.c: Likewise.
17473         * tests/unictype/test-ctype_upper.c: Likewise.
17474         * tests/unictype/test-decdigit.h: Likewise.
17475         * tests/unictype/test-digit.h: Likewise.
17476         * tests/unictype/test-numeric.h: Likewise.
17477         * tests/unictype/test-pr_alphabetic.c: Likewise.
17478         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
17479         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
17480         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
17481         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
17482         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
17483         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
17484         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
17485         * tests/unictype/test-pr_combining.c: Likewise.
17486         * tests/unictype/test-pr_composite.c: Likewise.
17487         * tests/unictype/test-pr_currency_symbol.c: Likewise.
17488         * tests/unictype/test-pr_dash.c: Likewise.
17489         * tests/unictype/test-pr_decimal_digit.c: Likewise.
17490         * tests/unictype/test-pr_deprecated.c: Likewise.
17491         * tests/unictype/test-pr_diacritic.c: Likewise.
17492         * tests/unictype/test-pr_extender.c: Likewise.
17493         * tests/unictype/test-pr_grapheme_base.c: Likewise.
17494         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
17495         * tests/unictype/test-pr_grapheme_link.c: Likewise.
17496         * tests/unictype/test-pr_id_continue.c: Likewise.
17497         * tests/unictype/test-pr_id_start.c: Likewise.
17498         * tests/unictype/test-pr_ideographic.c: Likewise.
17499         * tests/unictype/test-pr_ignorable_control.c: Likewise.
17500         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
17501         * tests/unictype/test-pr_lowercase.c: Likewise.
17502         * tests/unictype/test-pr_numeric.c: Likewise.
17503         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
17504         * tests/unictype/test-pr_punctuation.c: Likewise.
17505         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
17506         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
17507         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
17508         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
17509         * tests/unictype/test-pr_uppercase.c: Likewise.
17510         * tests/unictype/test-pr_xid_continue.c: Likewise.
17511         * tests/unictype/test-pr_xid_start.c: Likewise.
17512         * tests/unictype/test-pr_zero_width.c: Likewise.
17513         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
17514         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
17515         changed behaviour: line breaking is now disallowed between a letter
17516         or '=' and '('.
17517         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
17518         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
17519         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
17520         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
17521         * tests/uniwidth/test-uc_width2.sh: Same updates as in
17522         lib/uniwidth/width.c.
17523         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
17524         without comments, but with the original copyright notice.
17525         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
17526         changes.
17527         * lib/unictype/categ_Cc.h: Likewise.
17528         * lib/unictype/categ_Co.h: Likewise.
17529         * lib/unictype/categ_Cs.h: Likewise.
17530         * lib/unictype/categ_Lt.h: Likewise.
17531         * lib/unictype/categ_Me.h: Likewise.
17532         * lib/unictype/categ_Pc.h: Likewise.
17533         * lib/unictype/categ_Pe.h: Likewise.
17534         * lib/unictype/categ_Pf.h: Likewise.
17535         * lib/unictype/categ_Pi.h: Likewise.
17536         * lib/unictype/categ_Ps.h: Likewise.
17537         * lib/unictype/categ_Sk.h: Likewise.
17538         * lib/unictype/categ_Sm.h: Likewise.
17539         * lib/unictype/categ_Z.h: Likewise.
17540         * lib/unictype/categ_Zl.h: Likewise.
17541         * lib/unictype/categ_Zp.h: Likewise.
17542         * lib/unictype/categ_Zs.h: Likewise.
17543         * lib/unictype/ctype_blank.h: Likewise.
17544         * lib/unictype/ctype_cntrl.h: Likewise.
17545         * lib/unictype/ctype_digit.h: Likewise.
17546         * lib/unictype/ctype_space.h: Likewise.
17547         * lib/unictype/ctype_xdigit.h: Likewise.
17548         * lib/unictype/mirror.h: Likewise.
17549         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
17550         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
17551         * lib/unictype/pr_bidi_block_separator.h: Likewise.
17552         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
17553         * lib/unictype/pr_bidi_common_separator.h: Likewise.
17554         * lib/unictype/pr_bidi_control.h: Likewise.
17555         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
17556         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
17557         * lib/unictype/pr_bidi_pdf.h: Likewise.
17558         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
17559         * lib/unictype/pr_bidi_whitespace.h: Likewise.
17560         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
17561         * lib/unictype/pr_format_control.h: Likewise.
17562         * lib/unictype/pr_hex_digit.h: Likewise.
17563         * lib/unictype/pr_hyphen.h: Likewise.
17564         * lib/unictype/pr_ids_binary_operator.h: Likewise.
17565         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
17566         * lib/unictype/pr_iso_control.h: Likewise.
17567         * lib/unictype/pr_join_control.h: Likewise.
17568         * lib/unictype/pr_left_of_pair.h: Likewise.
17569         * lib/unictype/pr_line_separator.h: Likewise.
17570         * lib/unictype/pr_math.h: Likewise.
17571         * lib/unictype/pr_non_break.h: Likewise.
17572         * lib/unictype/pr_not_a_character.h: Likewise.
17573         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
17574         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
17575         * lib/unictype/pr_other_id_continue.h: Likewise.
17576         * lib/unictype/pr_other_id_start.h: Likewise.
17577         * lib/unictype/pr_other_lowercase.h: Likewise.
17578         * lib/unictype/pr_other_math.h: Likewise.
17579         * lib/unictype/pr_other_uppercase.h: Likewise.
17580         * lib/unictype/pr_paired_punctuation.h: Likewise.
17581         * lib/unictype/pr_paragraph_separator.h: Likewise.
17582         * lib/unictype/pr_pattern_syntax.h: Likewise.
17583         * lib/unictype/pr_pattern_white_space.h: Likewise.
17584         * lib/unictype/pr_private_use.h: Likewise.
17585         * lib/unictype/pr_quotation_mark.h: Likewise.
17586         * lib/unictype/pr_radical.h: Likewise.
17587         * lib/unictype/pr_soft_dotted.h: Likewise.
17588         * lib/unictype/pr_space.h: Likewise.
17589         * lib/unictype/pr_titlecase.h: Likewise.
17590         * lib/unictype/pr_variation_selector.h: Likewise.
17591         * lib/unictype/pr_white_space.h: Likewise.
17592         * lib/unictype/sy_c_ident.h: Likewise.
17593         * lib/unictype/sy_c_whitespace.h: Likewise.
17594         * lib/unictype/sy_java_whitespace.h: Likewise.
17595         * modules/uni*/*: Bump version number of expected libunistring version.
17596         Reported by Simon Josefsson.
17597
17598 2011-01-09  Karl Heuer  <kwzh@gnu.org>
17599
17600         useless-if-before-free: fix typo in --help and make the internal,
17601         automatic version date update process work once again.
17602         --help output contained a NUL character instead of the
17603         backslash-zero that was intended.  Also, the "must lie within
17604         the first 8 lines" line is on line 9, and hence not getting
17605         automatically updated.
17606         * build-aux/useless-if-before-free: Fix the former by adding a
17607         backslash, and the latter by condensing the three lines of what-it-does
17608         to a single line, leaving one line of slack for the future.
17609
17610 2011-01-09  Bruno Haible  <bruno@clisp.org>
17611
17612         uniwidth/width: Fix width of U+1D173..U+1D17A.
17613         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
17614         symbolic_width, output_width_property_test): New functions.
17615         (main): Invoke output_nonspacing_property, output_width_property_test.
17616         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
17617         U+1D173..U+1D17A.
17618         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
17619         1.
17620         * modules/uniwidth/*: Bump version number of expected libunistring
17621         version.
17622         * modules/unilbrk/*: Likewise.
17623
17624 2011-01-08  Bruno Haible  <bruno@clisp.org>
17625
17626         uninorm tests: Preserve copyright of Unicode data file.
17627         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
17628         Mention modifications.
17629
17630 2011-01-08  Bruno Haible  <bruno@clisp.org>
17631
17632         gen-uni-tables: Prepare for Unicode 5.2.0.
17633         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
17634         (debug_output_lbp, output_lbp): Update.
17635
17636 2011-01-08  Bruno Haible  <bruno@clisp.org>
17637
17638         unilbrk: Clarify gen-uni-tables.c code.
17639         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
17640         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
17641         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
17642
17643 2011-01-07  Bruno Haible  <bruno@clisp.org>
17644
17645         strtod: Restore errno when successfully parsing Infinity or NaN.
17646         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
17647         restore the original errno.
17648
17649 2011-01-07  Bruno Haible  <bruno@clisp.org>
17650
17651         remove test: Avoid failure on HP-UX 11.
17652         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
17653
17654 2011-01-07  Bruno Haible  <bruno@clisp.org>
17655
17656         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
17657         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
17658         error code.
17659
17660 2011-01-07  Pádraig Brady <P@draigBrady.com>
17661
17662         ignore-value: fixup comments, and add Eric Blake
17663         as an author since he rewrote the macros.
17664         * lib/ignore-value.h (ignore_value):  State that
17665         we now support aggregates.  Also specify exactly
17666         when the GCC warn_unused_result feature was added.
17667
17668 2011-01-06  Eric Blake  <eblake@redhat.com>
17669
17670         ignore-value: support aggregate types
17671         * lib/ignore-value.h (ignore_value): Provide separate gcc
17672         definition.
17673         * modules/ignore-value-tests: New test module.
17674         * tests/test-ignore-value.c: New test.
17675
17676         maint.mk: improve sc_prohibit_strcmp regex
17677         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
17678         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
17679         definition of STRNEQ.
17680
17681         signal: work around Haiku issue with SIGBUS
17682         * lib/siglist.h: Add comment.
17683         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
17684         strsignal's favoring of SIGSEGV.
17685         * tests/test-signal.c (main): Avoid test failure.
17686         * doc/posix-headers/signal.texi (signal.h): Document the issue.
17687         Reported by Scott McCreary.
17688
17689         maint.mk: add pre-release check to ensure submodule commits are public
17690         * top/maint.mk (public-submodule-commit): New rule.
17691         (submodule-checks): New variable.
17692         (alpha beta stable): Depend on the variable.
17693
17694 2011-01-05  Pádraig Brady <P@draigBrady.com>
17695         and Jim Meyering  <meyering@redhat.com>
17696
17697         ignore-value: make ignore_value more generic; deprecate ignore_ptr
17698         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
17699         (ATTRIBUTE_DEPRECATED): Define.
17700         (_ignore_case): New function.
17701         (ignore_value): New macro, to replace the old function.
17702         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
17703         * modules/ignore-value (Depends-on): Add stdint.
17704
17705 2011-01-04  Eric Blake  <eblake@redhat.com>
17706
17707         doc: regenerate INSTALL
17708         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
17709         @firstparagraphindent support, now that autoconf dropped it.
17710         (INSTALL_PRELUDE): Reinstate old macro.
17711         * doc/install.texi: Resync from autoconf.
17712         * doc/INSTALL: Reflect recent autoconf update.
17713         * doc/INSTALL.ISO: Likewise.
17714         * doc/INSTALL.UTF-8: Likewise.
17715         Reported by Karl Berry.
17716
17717 2011-01-04  Bruce Korb  <address@hidden>
17718
17719         git-version-gen: avoid a sub-shell
17720         * build-aux/git-version-gen: Redirect stderr in `...` via
17721         "exec 2>...", rather than via an added sub-shell.
17722
17723 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
17724
17725         git-version-gen: use (...) rather than sh -c '...'
17726         * build-aux/git-version-gen: Rather than hard-coding a shell's name
17727         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
17728
17729 2011-01-03  Jim Meyering  <meyering@redhat.com>
17730
17731         git-version-gen: convert leading TABs to spaces
17732         * build-aux/git-version-gen: Expand leading TABs.
17733
17734         git-version-gen: handle failed "git rev-list"
17735         * build-aux/git-version-gen: Rather than leaking a "fatal" error
17736         from git and proceeding as if it had succeeded but printed no SHA1
17737         checksums, suppress the diagnostic and handle the failure.
17738         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
17739
17740         git-version-gen: include command name in one more diagnostic
17741         * build-aux/git-version-gen: When the required .tarball-version file
17742         was missing or unreadable, you might see the diagnostic from "cat",
17743         but no trace of the name of the invoking script.  Now, you still see
17744         the diagnostic from cat, but also get one from "git-version-gen: ".
17745         Inspired by a patch from Bruce Korb.
17746
17747         update-copyright: adjust test to match changed code
17748         * tests/test-update-copyright.sh: Change test's expected output
17749         to match new actual output.
17750
17751 2011-01-02  Bruno Haible  <bruno@clisp.org>
17752
17753         getlogin_r: Avoid test failure on HP-UX 11.
17754         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
17755         ERANGE when the second argument is zero.
17756         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
17757         portability problem.
17758
17759 2011-01-02  Bruce Korb  <bkorb@gnu.org>
17760
17761         * build-aux/update-copyright: doc Simon's changes
17762
17763 2011-01-02  Simon Josefsson  <simon@josefsson.org>
17764
17765         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
17766         environment variable.
17767
17768 2011-01-02  Bruno Haible  <bruno@clisp.org>
17769
17770         unigbrk: Avoid gcc warnings.
17771         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
17772         unused variable.
17773         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
17774         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
17775         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
17776         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
17777         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
17778         Change type of first argument to 'const char *'.
17779         (main): Remove unused variable.
17780         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
17781         type of first argument to 'const char *'.
17782         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
17783         Likewise.
17784         (main): Change type of variable 's'.
17785         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
17786         to 'int'.
17787
17788 2011-01-02  Bruno Haible  <bruno@clisp.org>
17789
17790         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
17791         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
17792         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
17793         bug.
17794         * lib/pwrite.c: Undo 2010-12-31 patch.
17795         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
17796
17797 2011-01-02  Bruno Haible  <bruno@clisp.org>
17798
17799         pread: Fix test whether it works.
17800         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
17801
17802 2011-01-02  Bruno Haible  <bruno@clisp.org>
17803
17804         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
17805         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
17806         ends in "6". Don't require a specific month name. Try also the locale
17807         names found on HP-UX 11 and Solaris 7.
17808
17809 2011-01-02  Bruno Haible  <bruno@clisp.org>
17810
17811         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
17812         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
17813         C linkage.
17814         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
17815
17816 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17817
17818         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
17819         for consistency, since the "cluster" term is not used elsewhere.
17820         * lib/unigbrk.in.h: Update name.
17821         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
17822         * lib/unigbrk/u16-grapheme-next.c: Update name.
17823         * lib/unigbrk/u16-grapheme-prev.c: Update name.
17824         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
17825         * lib/unigbrk/u32-grapheme-next.c: Update name.
17826         * lib/unigbrk/u32-grapheme-prev.c: Update name.
17827         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
17828         * lib/unigbrk/u8-grapheme-next.c: Update name.
17829         * lib/unigbrk/u8-grapheme-prev.c: Update name.
17830         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
17831         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
17832         Suggested by Bruno Haible.
17833
17834 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17835
17836         Remove module 'u8-grapheme-len' as too redundant with
17837         'u8-grapheme-next'.
17838         * modules/unigbrk/u8-grapheme-len: Delete file.
17839         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
17840         * lib/unigbrk.in.h: Remove prototype for deleted function.
17841         * lib/unigbrk/u8-grapheme-len.c: Delete file.
17842         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
17843
17844         Remove module 'u16-grapheme-len' as too redundant with
17845         'u16-grapheme-next'.
17846         * modules/unigbrk/u16-grapheme-len: Delete file.
17847         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
17848         * lib/unigbrk.in.h: Remove prototype for deleted function.
17849         * lib/unigbrk/u16-grapheme-len.c: Delete file.
17850         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
17851
17852         Remove module 'u32-grapheme-len' as too redundant with
17853         'u32-grapheme-next'.
17854         * modules/unigbrk/u32-grapheme-len: Delete file.
17855         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
17856         * lib/unigbrk.in.h: Remove prototype for deleted function.
17857         * lib/unigbrk/u32-grapheme-len.c: Delete file.
17858         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
17859
17860         Suggested by Bruno Haible.
17861
17862 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
17863
17864         * unigbrk.in.h: Fix typo: "ben" => "been".
17865         Reported by Bruno Haible.
17866
17867 2011-01-01  Jim Meyering  <meyering@redhat.com>
17868
17869         maint: update almost all copyright ranges to include 2011
17870         Run the new "make update-copyright" rule.
17871
17872 2011-01-01  Jim Meyering  <meyering@redhat.com>
17873
17874         maint: update-copyright: exempt doc/INSTALL*
17875         * Makefile (update-copyright): Also exclude doc/INSTALL*,
17876         since they are generated.  Suggested by Bruno Haible.
17877
17878 2011-01-01  Jim Meyering  <meyering@redhat.com>
17879
17880         maint: refine the update-copyright rule
17881         * Makefile (update-copyright): Also exclude any file that includes
17882         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
17883         code that merely generates the comment.
17884
17885 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
17886
17887         New module 'u8-grapheme-len'.
17888         * modules/unigbrk/u8-grapheme-len: New file.
17889         * modules/unigbrk/u8-grapheme-len-tests: New file.
17890         * lib/unigbrk.in.h: Add prototype for new function.
17891         * lib/unigbrk/u8-grapheme-len.c: New file.
17892         * tests/unigbrk/test-u8-grapheme-len.c: New file.
17893
17894         New module 'u16-grapheme-len'.
17895         * modules/unigbrk/u16-grapheme-len: New file.
17896         * modules/unigbrk/u16-grapheme-len-tests: New file.
17897         * lib/unigbrk.in.h: Add prototype for new function.
17898         * lib/unigbrk/u16-grapheme-len.c: New file.
17899         * tests/unigbrk/test-u16-grapheme-len.c: New file.
17900
17901         New module 'u32-grapheme-len'.
17902         * modules/unigbrk/u32-grapheme-len: New file.
17903         * modules/unigbrk/u32-grapheme-len-tests: New file.
17904         * lib/unigbrk.in.h: Add prototype for new function.
17905         * lib/unigbrk/u32-grapheme-len.c: New file.
17906         * tests/unigbrk/test-u32-grapheme-len.c: New file.
17907
17908         New module 'u8-grapheme-next'.
17909         * modules/unigbrk/u8-grapheme-next: New file.
17910         * modules/unigbrk/u8-grapheme-next-tests: New file.
17911         * lib/unigbrk.in.h: Add prototype for new function.
17912         * lib/unigbrk/u8-grapheme-next.c: New file.
17913         * tests/unigbrk/test-u8-grapheme-next.c: New file.
17914
17915         New module 'u16-grapheme-next'.
17916         * modules/unigbrk/u16-grapheme-next: New file.
17917         * modules/unigbrk/u16-grapheme-next-tests: New file.
17918         * lib/unigbrk.in.h: Add prototype for new function.
17919         * lib/unigbrk/u16-grapheme-next.c: New file.
17920         * tests/unigbrk/test-u16-grapheme-next.c: New file.
17921
17922         New module 'u32-grapheme-next'.
17923         * modules/unigbrk/u32-grapheme-next: New file.
17924         * modules/unigbrk/u32-grapheme-next-tests: New file.
17925         * lib/unigbrk.in.h: Add prototype for new function.
17926         * lib/unigbrk/u32-grapheme-next.c: New file.
17927         * tests/unigbrk/test-u32-grapheme-next.c: New file.
17928
17929         New module 'u8-grapheme-prev'.
17930         * modules/unigbrk/u8-grapheme-prev: New file.
17931         * modules/unigbrk/u8-grapheme-prev-tests: New file.
17932         * lib/unigbrk.in.h: Add prototype for new function.
17933         * lib/unigbrk/u8-grapheme-prev.c: New file.
17934         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
17935
17936         New module 'u16-grapheme-prev'.
17937         * modules/unigbrk/u16-grapheme-prev: New file.
17938         * modules/unigbrk/u16-grapheme-prev-tests: New file.
17939         * lib/unigbrk.in.h: Add prototype for new function.
17940         * lib/unigbrk/u16-grapheme-prev.c: New file.
17941         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
17942
17943         New module 'u32-grapheme-prev'.
17944         * modules/unigbrk/u32-grapheme-prev: New file.
17945         * modules/unigbrk/u32-grapheme-prev-tests: New file.
17946         * lib/unigbrk.in.h: Add prototype for new function.
17947         * lib/unigbrk/u32-grapheme-prev.c: New file.
17948         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
17949
17950         New module 'u8-grapheme-breaks'.
17951         * modules/unigbrk/u8-grapheme-breaks: New file.
17952         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
17953         * lib/unigbrk.in.h: Add prototype for new function.
17954         * lib/unigbrk/u8-grapheme-breaks.c: New file.
17955         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
17956
17957         New module 'u16-grapheme-breaks'.
17958         * modules/unigbrk/u16-grapheme-breaks: New file.
17959         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
17960         * lib/unigbrk.in.h: Add prototype for new function.
17961         * lib/unigbrk/u16-grapheme-breaks.c: New file.
17962         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
17963
17964         New module 'u32-grapheme-breaks'.
17965         * modules/unigbrk/u32-grapheme-breaks: New file.
17966         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
17967         * lib/unigbrk.in.h: Add prototype for new function.
17968         * lib/unigbrk/u32-grapheme-breaks.c: New file.
17969         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
17970
17971         New module 'ulc-grapheme-breaks'.
17972         * modules/unigbrk/ulc-grapheme-breaks: New file.
17973         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
17974         * m4/locale-ar.m4: New file.
17975         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
17976         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
17977         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
17978
17979 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
17980
17981         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
17982         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
17983         modified how this file was generated before I initially submitted
17984         the module, but failed to regenerate it.  This meant that several
17985         of the level2 entries were wrong.
17986         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
17987         Remove the division-by-2 that is folded into the table now that
17988         gbrkprop.h has been regenerated properly.  Now -1 entries are
17989         handled correctly.
17990
17991         New module 'unigbrk/uc-gbrk-prop-tests'.
17992         * modules/unigbrk/uc-gbrk-prop-tests: New file.
17993         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
17994         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
17995         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
17996
17997 2011-01-01  Bruno Haible  <bruno@clisp.org>
17998
17999         Avoid use of hexadecimal escapes.
18000         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
18001         instead of hexadecimal escapes.
18002
18003 2011-01-01  Jim Meyering  <meyering@redhat.com>
18004
18005         maint: new rule to update copyright year ranges
18006         * Makefile (update-copyright): New rule.
18007
18008         maint: indent with TABs in Makefile
18009         * Makefile: Expand leading sequences of spaces to TABs
18010
18011         version-etc: update the copyright year it reports
18012         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
18013
18014 2010-12-31  Bruno Haible  <bruno@clisp.org>
18015
18016         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
18017         * lib/isfinite.c (zerof, zerod, zerol): New variables.
18018         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
18019         zero.
18020
18021 2010-12-31  Bruno Haible  <bruno@clisp.org>
18022
18023         pwrite: Work around HP-UX 11.11 bug.
18024         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
18025         works and set REPLACE_PWRITE if not.
18026         * lib/pwrite.c (pwrite): Add an implementation that uses the system
18027         function.
18028         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
18029
18030 2010-12-31  Bruno Haible  <bruno@clisp.org>
18031
18032         pread: Work around HP-UX 11 bugs.
18033         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
18034         and set REPLACE_PREAD if not.
18035         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
18036
18037 2010-12-31  Eric Blake  <eblake@redhat.com>
18038
18039         nl_langinfo: fix YESEXPR on Irix 6.5
18040         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
18041         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
18042         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
18043         it.
18044
18045 2010-12-31  Bruno Haible  <bruno@clisp.org>
18046
18047         iconv: Document HP-UX 11 bug.
18048         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
18049
18050 2010-12-31  Bruno Haible  <bruno@clisp.org>
18051
18052         ldexpl: Fix link error on HP-UX 11.
18053         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
18054         LDEXPL_LIBM, using $ISNANL_LIBM.
18055
18056 2010-12-31  Eric Blake  <eblake@redhat.com>
18057
18058         ftello: avoid compilation failure with SunStudio c89
18059         * lib/ftello.c (ftello): Use lseek, not llseek.
18060
18061         tests: avoid failing coreutils tests on cygwin
18062         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
18063         (create_exe_shims_): Return 0 when skipping.
18064
18065 2010-12-31  Bruno Haible  <bruno@clisp.org>
18066
18067         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
18068         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
18069
18070 2010-12-31  Bruno Haible  <bruno@clisp.org>
18071
18072         waitpid: Fix link error in C++ mode.
18073         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
18074
18075 2010-12-31  Bruno Haible  <bruno@clisp.org>
18076
18077         isnan: Use GCC built-ins when possible.
18078         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
18079         __builtin_isnan.
18080         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
18081         (isnan): Define using GCC built-ins for GCC >= 4.0.
18082
18083 2010-12-31  Bruno Haible  <bruno@clisp.org>
18084
18085         isnand: Fix mistake.
18086         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
18087         __builtin_isnand.
18088
18089 2010-12-31  Bruno Haible  <bruno@clisp.org>
18090
18091         open: Avoid C++ error on HP-UX 11.
18092         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
18093
18094 2010-12-31  Bruno Haible  <bruno@clisp.org>
18095
18096         time_r: Add missing declarations on HP-UX 11.
18097         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
18098         instead of HAVE_LOCALTIME_R.
18099         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
18100         HAVE_LOCALTIME_R always.
18101         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
18102         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
18103         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
18104         HAVE_LOCALTIME_R.
18105         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
18106         * doc/posix-functions/localtime_r.texi: Likewise.
18107
18108 2010-12-29  Eric Blake  <eblake@redhat.com>
18109
18110         mountlist: tweak previous commit
18111         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
18112         Reported by Paul Eggert.
18113
18114         mountlist: fix local drive detection on cygwin
18115         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
18116         that works for cygwin.
18117
18118 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
18119
18120         ftoastr, snprintf: ftoastr + snprintf module
18121         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
18122         since the snprintf module now should be good enough here.
18123         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
18124         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
18125         and gl_MODULE_INDICATOR([snprintf]), but the former enables
18126         GNULIB_SNPRINTF only for the test directory, and the latter
18127         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
18128         seems to suffice by itself.
18129
18130 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
18131
18132         alloca: one step towards thread-safety
18133         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
18134         need for a static variable.  All callers changed.  This does not
18135         make the alloca replacement thread-safe, but it's one step.
18136
18137         tests: minor indenting change
18138         * tests/init.sh: Sync from coreutils housekeeping patch
18139         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
18140         to keep lines within 80 columns.
18141
18142 2010-12-28  Jim Meyering  <meyering@redhat.com>
18143
18144         regex: don't infloop on persistent failing calloc
18145         * lib/regexec.c (build_trtable): Return failure indication upon
18146         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
18147         In glibc, this was fixed for version 2.13:
18148         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
18149
18150 2010-12-28  Bruno Haible  <bruno@clisp.org>
18151             Paul Eggert <eggert@cs.ucla.edu>
18152
18153         linkat: Make implementation robust against system behaviour variations.
18154         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
18155         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
18156         way, and to -2 if it needs a generic runtime test.
18157         * lib/linkat.c (solaris_optimized_link_immediate,
18158         solaris_optimized_link_follow): New functions.
18159         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
18160         (check_same_link): Use it.
18161
18162 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
18163
18164         New module 'unigbrk/base'.
18165         * modules/unigbrk/base: New file.
18166         * lib/unigbrk.in.h: New file.
18167
18168         New module 'unigbrk/uc-gbrk-prop'.
18169         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
18170         * modules/unigbrk/uc-gbrk-prop: New file.
18171         * lib/unigbrk/gbrkprop.h: New file.
18172         * lib/unigbrk/uc-gbrk-prop.c: New file.
18173
18174         New module 'unigbrk/uc-is-grapheme-break'.
18175         * modules/unigbrk/uc-is-grapheme-break: New file.
18176         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
18177         * lib/unigbrk/uc-is-grapheme-break.c: New file.
18178         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
18179         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
18180         * tests/unigbrk/GraphemeBreakTest.txt: New file.
18181
18182         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
18183
18184 2010-12-27  Bruno Haible  <bruno@clisp.org>
18185
18186         linkat test: Avoid failure on Solaris 11 2010-11.
18187         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
18188
18189 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18190
18191         utimens: work around glibc rounding bug on more platforms
18192         * lib/utimens.c (fdutimens): Work around rounding bug even if
18193         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
18194         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
18195
18196 2010-12-27  Bruno Haible  <bruno@clisp.org>
18197
18198         select tests: Improve comments.
18199         * tests/test-select.c (do_select): Add comments.
18200
18201 2010-12-27  Bruno Haible  <bruno@clisp.org>
18202
18203         select tests: Safer way of handling timeout.
18204         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
18205         at every invocation.
18206
18207 2010-12-27  Bruno Haible  <bruno@clisp.org>
18208
18209         select tests: Use 'bool' where appropriate.
18210         * tests/test-select.c (connect_to_socket): Change argument type to
18211         'bool'.
18212
18213 2010-12-27  Bruno Haible  <bruno@clisp.org>
18214
18215         select tests: Use existing modules.
18216         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
18217         (configure.ac): Don't test for unistd.h.
18218         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
18219         declared in <unistd.h>.
18220
18221 2010-12-27  Bruno Haible  <bruno@clisp.org>
18222
18223         mbrtowc: Work around a Solaris 7 bug.
18224         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
18225         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
18226         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
18227         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
18228         MBRTOWC_NULL_ARG1_BUG.
18229         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
18230         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
18231         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
18232         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
18233
18234 2010-12-27  Jim Meyering  <meyering@redhat.com>
18235
18236         read-file.c: tweak syntax
18237         * lib/read-file.c (fread_file): Remove space after "*" in function
18238         definitions.
18239
18240 2010-12-27  Bruno Haible  <bruno@clisp.org>
18241
18242         times test: Avoid gcc warnings on OSF/1.
18243         * tests/test-times.c (main): Cast printf arguments from clock_t to
18244         'long int'.
18245
18246 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
18247
18248         utimens: work around glibc rounding bug on older Linux kernels
18249         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
18250         on Linux with a glibc whose utimes might not work, then work
18251         around a longstanding glibc bug involving rounding rather than
18252         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
18253         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
18254
18255 2010-12-26  Bruno Haible  <bruno@clisp.org>
18256
18257         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
18258         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
18259         _GL_CXXALIAS_SYS.
18260         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18261
18262 2010-12-26  Bruno Haible  <bruno@clisp.org>
18263
18264         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
18265         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
18266         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
18267         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
18268         looking for the declaration.
18269         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
18270         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
18271         problem.
18272         * doc/posix-functions/inet_pton.texi: Likewise.
18273
18274 2010-12-26  Bruno Haible  <bruno@clisp.org>
18275
18276         arpa_inet: Use the common idioms with C++ support.
18277         * lib/arpa_inet.in.h: Include c++defs.h.
18278         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
18279         support.
18280         * modules/arpa_inet (Depends-on): Add c++defs.
18281         (Makefile.am): Substitute the contents of c++defs.h.
18282         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
18283         * modules/arpa_inet-c++-tests: New file.
18284         * tests/test-arpa_inet-c++.cc: New file.
18285
18286 2010-12-25  Bruno Haible  <bruno@clisp.org>
18287
18288         Fix more C++ link errors on Solaris 8.
18289         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
18290         $(LIB_EACCESS).
18291         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
18292         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
18293         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
18294         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
18295         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
18296
18297 2010-12-25  Bruno Haible  <bruno@clisp.org>
18298
18299         printf-posix: Fix link error when a non-GCC compiler is used.
18300         * lib/stdio.in.h (printf): When not using GCC, override printf
18301         correctly.
18302         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18303
18304 2010-12-25  Bruno Haible  <bruno@clisp.org>
18305
18306         strerror_r-posix: Update doc.
18307         * doc/posix-functions/strerror_r.texi: Update doc about the return
18308         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
18309
18310 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
18311
18312         utimens: simplify the logic of the previous change
18313         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
18314         This should not affect whether the test succeeds or fails.
18315
18316         utimens: configure better on hosts with NFS clock skew
18317         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
18318         uses the clock of the local host.  It might use the clock of the
18319         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
18320         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
18321
18322 2010-12-25  Bruno Haible  <bruno@clisp.org>
18323
18324         ptsname test: Avoid failure on Solaris.
18325         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
18326         open a pseudo-terminal; don't use BSD-style ptys.
18327         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
18328
18329 2010-12-25  Bruno Haible  <bruno@clisp.org>
18330
18331         ptsname: Avoid ERANGE failure on some systems.
18332         * lib/ptsname.c (buffer): Increase size.
18333
18334 2010-12-25  Bruno Haible  <bruno@clisp.org>
18335
18336         rename, renameat: Avoid test failures at NFS mounted locations.
18337         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
18338         so that subsequent mkdir calls succeed.
18339
18340 2010-12-25  Bruno Haible  <bruno@clisp.org>
18341
18342         iswblank: Fix C++ link error on Solaris 8.
18343         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
18344         _GL_FUNCDECL_SYS.
18345
18346 2010-12-25  Bruno Haible  <bruno@clisp.org>
18347
18348         unistd: Fix C++ link error on Solaris 8.
18349         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
18350
18351 2010-12-25  Bruno Haible  <bruno@clisp.org>
18352
18353         readlink doc: Mention an old glibc bug.
18354         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
18355
18356 2010-12-25  Bruno Haible  <bruno@clisp.org>
18357
18358         fcntl-h: Fix for use of C++ on glibc systems.
18359         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
18360         also on glibc systems in C++ mode.
18361         Reported by Gary V. Vaughan <gary@gnu.org>.
18362
18363 2010-12-25  Bruno Haible  <bruno@clisp.org>
18364
18365         roundl-ieee: Make it work on OSF/1 5.1 with cc.
18366         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
18367
18368 2010-12-25  Bruno Haible  <bruno@clisp.org>
18369
18370         truncl-ieee: Make it work on OSF/1 5.1 with cc.
18371         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
18372         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
18373         test whether truncl works according to ISO C 99 with IEC 60559.
18374         * m4/truncl-ieee.m4: New file.
18375         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
18376         m4/signbit.m4.
18377         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
18378
18379 2010-12-25  Bruno Haible  <bruno@clisp.org>
18380
18381         ceill-ieee: Make it work on OSF/1 5.1 with cc.
18382         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
18383         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
18384         test whether ceill works according to ISO C 99 with IEC 60559.
18385         * m4/ceill-ieee.m4: New file.
18386         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
18387         m4/signbit.m4.
18388         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
18389
18390 2010-12-25  Bruno Haible  <bruno@clisp.org>
18391
18392         Ensure all prerequisites of <wchar.h> are included.
18393         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
18394         before <wchar.h>.
18395         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
18396         gl_MBRLEN_NUL_RETVAL): Likewise.
18397         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
18398         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
18399         AC_FUNC_MBRTOWC): Likewise.
18400         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
18401         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
18402         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
18403         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
18404         Likewise.
18405         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
18406         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
18407         (gl_WCHAR_H): Improve comments.
18408         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
18409
18410 2010-12-25  Bruno Haible  <bruno@clisp.org>
18411
18412         strtok_r: Fix C syntax error in autoconf macro.
18413         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
18414         characters in test program.
18415
18416 2010-12-24  Bruno Haible  <bruno@clisp.org>
18417
18418         ceil, trunc, round: Fix gcc warnings.
18419         * lib/ceil.c (MIN): Undefine before redefining.
18420         * lib/trunc.c (MIN): Likewise.
18421         * lib/round.c (MIN): Likewise.
18422         Include <math.h> first.
18423
18424 2010-12-24  Bruno Haible  <bruno@clisp.org>
18425
18426         select tests: Avoid failures on OSF/1 5.1.
18427         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
18428         failure of closing the last socket; it may fail with ECONNRESET.
18429
18430 2010-12-24  Eric Blake  <eblake@redhat.com>
18431
18432         stdint: avoid HP-UX 10.20 preprocessor bug
18433         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
18434         than #if.
18435         * tests/test-floor2.c (main): Likewise.
18436         Reported by Peter O'Gorman.
18437
18438         pipe: make obsoletion transition easier
18439         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
18440         * modules/pipe (Files): Include revived file.
18441         (Include): Drop reference, to mirror getdate's behavior.
18442
18443 2010-12-24  Bruno Haible  <bruno@clisp.org>
18444
18445         sys_socket: Hide mismatch of declarations on NonStop Kernel.
18446         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
18447         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
18448         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18449
18450 2010-12-24  Bruno Haible  <bruno@clisp.org>
18451
18452         gethostname: Ensure declaration on NonStop Kernel.
18453         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
18454         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18455
18456 2010-12-24  Bruno Haible  <bruno@clisp.org>
18457
18458         sys_select: Ensure all necessary types on NonStop Kernel.
18459         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
18460         include <sys/time.h>.
18461         * doc/posix-headers/sys_select.texi: Mention that it's missing on
18462         NonStop Kernel.
18463         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18464
18465 2010-12-24  Bruno Haible  <bruno@clisp.org>
18466
18467         sys_select: Remove unneeded include.
18468         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
18469         have <sys/select.h>.
18470
18471 2010-12-24  Bruno Haible  <bruno@clisp.org>
18472
18473         gethostname: Provide a fallback for HOST_NAME_MAX.
18474         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
18475         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
18476         instead.
18477         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18478
18479 2010-12-24  Bruno Haible  <bruno@clisp.org>
18480
18481         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
18482         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
18483         (SA_RESTART): Likewise.
18484         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18485
18486 2010-12-24  Bruno Haible  <bruno@clisp.org>
18487
18488         signal: Define NSIG.
18489         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
18490         * tests/test-signal.c (nsig): New variable.
18491         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18492
18493 2010-12-24  Bruno Haible  <bruno@clisp.org>
18494
18495         rename, renameat: Avoid test failures on OSF/1 5.1.
18496         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
18497         alternative error codes.
18498         * tests/test-renameat.c (main): Likewise.
18499
18500 2010-12-24  Bruno Haible  <bruno@clisp.org>
18501
18502         *printf: Detect large precisions bug on Solaris 10/SPARC.
18503         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
18504         by Paul Eggert.
18505         * tests/test-snprintf-posix.h (test_function): Add this test code here
18506         too.
18507         * tests/test-sprintf-posix.h (test_function): Likewise.
18508         * tests/test-vasnprintf-posix.c (test_function): Likewise.
18509         * tests/test-vasprintf-posix.c (test_function): Likewise.
18510         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
18511         around by gnulib.
18512         * doc/posix-functions/printf.texi: Likewise.
18513         * doc/posix-functions/snprintf.texi: Likewise.
18514         * doc/posix-functions/sprintf.texi: Likewise.
18515         * doc/posix-functions/vfprintf.texi: Likewise.
18516         * doc/posix-functions/vprintf.texi: Likewise.
18517         * doc/posix-functions/vsnprintf.texi: Likewise.
18518         * doc/posix-functions/vsprintf.texi: Likewise.
18519         * doc/posix-functions/dprintf.texi: Undo last commit.
18520         * doc/posix-functions/vdprintf.texi: Likewise.
18521
18522 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
18523
18524         tests: port test-fdutimensat.c to Solaris 8
18525         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
18526         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
18527         On Solaris 8, it fails with errno == ENOSYS, because there is no
18528         futimens (so it can't use the fd), and there is no lutimens (so it
18529         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
18530
18531         vsnprintf: make more consistent with snprintf; doc fixes
18532
18533         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
18534         the byte count return problem was promoted from the snprintf-posix
18535         to the snprintf module.
18536         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
18537         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
18538         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
18539         * tests/test-snprintf.c (main): Check the byte count returned.
18540         * tests/test-vsnprintf.c (main): Likewise.
18541
18542 2010-12-23  Eric Blake  <eblake@redhat.com>
18543
18544         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
18545         * modules/sigpipe (License): Relax license.
18546
18547 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18548
18549         doc: document Solaris printf bug with large float precisions
18550         * doc/posix-functions/dprintf.texi (dprintf):
18551         * doc/posix-functions/fprintf.texi (fprintf):
18552         * doc/posix-functions/printf.texi (printf):
18553         * doc/posix-functions/snprintf.texi (snprintf):
18554         * doc/posix-functions/sprintf.texi (sprintf):
18555         * doc/posix-functions/vdprintf.texi (vdprintf):
18556         * doc/posix-functions/vfprintf.texi (vfprintf):
18557         * doc/posix-functions/vprintf.texi (vprintf):
18558         * doc/posix-functions/vsnprintf.texi (vsnprintf):
18559         * doc/posix-functions/vsprintf.texi (vsprintf):
18560         Mention that these functions mishandle large floating point
18561         precisions on Solaris 10.  The same bug is also present in Solaris
18562         8, and I assume earlier.  This causes "cd gnulib-tests; make
18563         check" to fail on Solaris 8 (and I assume, later) when building
18564         the latest coreutils, in test-vasprintf-posix's call to
18565         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
18566         the wide flavors (e.g., wprintf) so this patch just updates the
18567         documentation for the narrow ones.
18568
18569         test-posixtm.c: add two tests
18570         * tests/test-posixtm.c: Add two tests, to highlight the
18571         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
18572         around this bug; this is merely to document it.
18573
18574 2010-12-22  Bruno Haible  <bruno@clisp.org>
18575
18576         getlogin_r: Work around portability problem on OSF/1.
18577         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
18578         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
18579         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
18580         test for a truncated result.
18581         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
18582         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
18583         * modules/getlogin_r (Depends-on): Add memchr.
18584         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
18585
18586 2010-12-22  Bruno Haible  <bruno@clisp.org>
18587
18588         ptsname: Avoid test failure on OSF/1 5.1.
18589         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
18590         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
18591         (same_slave): New function.
18592         (main): Use it to compare ptsname's result with the expected file name.
18593
18594 2010-12-22  Bruno Haible  <bruno@clisp.org>
18595
18596         Port extended stdio modules to HP NonStop Kernel.
18597         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
18598         macros.
18599         * lib/fbufmode.c: Update comments.
18600         * lib/fflush.c: Likewise.
18601         * lib/fpurge.c: Likewise.
18602         * lib/freadable.c: Likewise.
18603         * lib/freadahead.c: Likewise.
18604         * lib/freading.c: Likewise.
18605         * lib/freadptr.c: Likewise.
18606         * lib/freadseek.c: Likewise.
18607         * lib/fseeko.c: Likewise.
18608         * lib/fseterr.c: Likewise.
18609         * lib/fwritable.c: Likewise.
18610         * lib/fwriting.c: Likewise.
18611         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
18612
18613 2010-12-22  Bruno Haible  <bruno@clisp.org>
18614
18615         ttyname_r: Work around bug on OSF/1 5.1.
18616         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
18617         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
18618         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
18619         present.
18620         * lib/ttyname_r.c (ttyname_r): Update comments.
18621
18622 2010-12-22  Bruno Haible  <bruno@clisp.org>
18623
18624         round: Implement result sign according to IEEE 754.
18625         * lib/round.c (MIN, MINUS_ZERO): New macros.
18626         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
18627         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
18628         * tests/test-round-ieee.c (main): Likewise.
18629         * tests/test-roundl-ieee.c (main): Likewise.
18630
18631         trunc: Implement result sign according to IEEE 754.
18632         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
18633         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
18634         * tests/test-trunc2.c: Include minus-zero.h.
18635         (MINUS_ZERO): New macro.
18636         (trunc_reference): Keep in sync with lib/trunc.c.
18637         * tests/test-truncf2.c: Include minus-zero.h.
18638         (MINUS_ZERO): New macro.
18639         (truncf_reference): Keep in sync with lib/trunc.c.
18640         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
18641         * tests/test-trunc-ieee.c (main): Likewise.
18642         * tests/test-truncl-ieee.c (main): Likewise.
18643
18644         ceil: Implement result sign according to IEEE 754.
18645         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
18646         (FUNC): Return -0.0 for -1 < x < 0.
18647         * tests/test-ceil2.c: Include minus-zero.h.
18648         (MINUS_ZERO): New macro.
18649         (ceil_reference): Keep in sync with lib/ceil.c.
18650         * tests/test-ceilf2.c: Include minus-zero.h.
18651         (MINUS_ZERO): New macro.
18652         (ceilf_reference): Keep in sync with lib/ceil.c.
18653         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
18654         * tests/test-ceil-ieee.c (main): Likewise.
18655         * tests/test-ceill-ieee.c (main): Likewise.
18656
18657         floor: Implement result sign according to IEEE 754.
18658         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
18659         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
18660         * tests/test-floorf2.c (floorf_reference): Likewise.
18661         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
18662         * tests/test-floor-ieee.c (main): Likewise.
18663         * tests/test-floorl-ieee.c (main): Likewise.
18664
18665 2010-12-22  Bruno Haible  <bruno@clisp.org>
18666
18667         getaddrinfo: Update doc.
18668         * doc/posix-functions/gai_strerror.texi: Return type is also different
18669         on AIX and HP-UX.
18670
18671 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
18672
18673         getaddrinfo, inet_ntop: Update doc for Solaris.
18674         * doc/posix-functions/gai_strerror.texi: Return type is also an
18675         issue on Solaris 9 and earlier.
18676         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
18677         on Solaris 10 and earlier.
18678
18679 2010-12-21  Bruno Haible  <bruno@clisp.org>
18680
18681         New module 'roundl-ieee'.
18682         * modules/roundl-ieee: New file.
18683         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
18684         test whether roundl works according to ISO C 99 with IEC 60559.
18685         * m4/roundl-ieee.m4: New file.
18686         * modules/roundl-ieee-tests: New file.
18687         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
18688         * tests/test-roundl.c (main): Remove signbit tests.
18689         * modules/roundl-tests (Depends-on): Remove signbit.
18690         * doc/posix-functions/roundl.texi: Mention the new module.
18691
18692 2010-12-21  Bruno Haible  <bruno@clisp.org>
18693
18694         New module 'truncl-ieee'.
18695         * modules/truncl-ieee: New file.
18696         * modules/truncl-ieee-tests: New file.
18697         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
18698         * tests/test-truncl.c (main): Remove signbit tests.
18699         * modules/truncl-tests (Depends-on): Remove signbit.
18700         * doc/posix-functions/truncl.texi: Mention the new module.
18701
18702 2010-12-21  Bruno Haible  <bruno@clisp.org>
18703
18704         New module 'ceill-ieee'.
18705         * modules/ceill-ieee: New file.
18706         * modules/ceill-ieee-tests: New file.
18707         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
18708         * tests/test-ceill.c (main): Remove signbit tests.
18709         * modules/ceill-tests (Depends-on): Remove signbit.
18710         * doc/posix-functions/ceill.texi: Mention the new module.
18711
18712 2010-12-21  Bruno Haible  <bruno@clisp.org>
18713
18714         New module 'floorl-ieee'.
18715         * modules/floorl-ieee: New file.
18716         * modules/floorl-ieee-tests: New file.
18717         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
18718         * tests/test-floorl.c (main): Remove signbit tests.
18719         * modules/floorl-tests (Depends-on): Remove signbit.
18720         * doc/posix-functions/floorl.texi: Mention the new module.
18721
18722 2010-12-21  Bruno Haible  <bruno@clisp.org>
18723
18724         New module 'round-ieee'.
18725         * modules/round-ieee: New file.
18726         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
18727         whether round works according to ISO C 99 with IEC 60559.
18728         * m4/round-ieee.m4: New file.
18729         * modules/round-ieee-tests: New file.
18730         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
18731         * tests/test-round1.c (main): Remove signbit tests.
18732         * modules/round-tests (Depends-on): Remove 'signbit'.
18733         * doc/posix-functions/round.texi: Mention the new module.
18734
18735 2010-12-21  Bruno Haible  <bruno@clisp.org>
18736
18737         New module 'trunc-ieee'.
18738         * modules/trunc-ieee: New file.
18739         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
18740         whether trunc works according to ISO C 99 with IEC 60559.
18741         * m4/trunc-ieee.m4: New file.
18742         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
18743         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
18744         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
18745         * modules/trunc-ieee-tests: New file.
18746         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
18747         * tests/test-trunc1.c (main): Remove signbit tests.
18748         * modules/trunc-tests (Depends-on): Remove 'signbit'.
18749         * doc/posix-functions/trunc.texi: Mention the new module.
18750
18751 2010-12-21  Bruno Haible  <bruno@clisp.org>
18752
18753         New module 'ceil-ieee'.
18754         * modules/ceil-ieee: New file.
18755         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
18756         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
18757         ISO C 99 with IEC 60559.
18758         * m4/ceil-ieee.m4: New file.
18759         * modules/ceil (Files): Add lib/ceil.c.
18760         (Depends-on): Add 'float'.
18761         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18762         * lib/math.in.h (ceil): New declaration.
18763         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
18764         REPLACE_CEIL.
18765         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
18766         * modules/ceil-ieee-tests: New file.
18767         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
18768         * tests/test-math-c++.cc: Check the signature of 'ceil'.
18769         * doc/posix-functions/ceil.texi: Mention the new module.
18770
18771 2010-12-21  Bruno Haible  <bruno@clisp.org>
18772
18773         New module 'floor-ieee'.
18774         * modules/floor-ieee: New file.
18775         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
18776         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
18777         ISO C 99 with IEC 60559.
18778         * m4/floor-ieee.m4: New file.
18779         * modules/floor (Files): Add lib/floor.c.
18780         (Depends-on): Add 'float'.
18781         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18782         * lib/math.in.h (floor): New declaration.
18783         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
18784         REPLACE_FLOOR.
18785         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
18786         * modules/floor-ieee-tests: New file.
18787         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
18788         * tests/test-math-c++.cc: Check the signature of 'floor'.
18789         * doc/posix-functions/floor.texi: Mention the new module.
18790
18791 2010-12-21  Bruno Haible  <bruno@clisp.org>
18792
18793         New module 'roundf-ieee'.
18794         * modules/roundf-ieee: New file.
18795         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
18796         test whether roundf works according to ISO C 99 with IEC 60559.
18797         * m4/roundf-ieee.m4: New file.
18798         * modules/roundf-ieee-tests: New file.
18799         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
18800         * tests/test-roundf1.c (main): Remove signbit tests.
18801         * modules/roundf-tests (Depends-on): Remove 'signbit'.
18802         * doc/posix-functions/roundf.texi: Mention the new module.
18803
18804 2010-12-21  Bruno Haible  <bruno@clisp.org>
18805
18806         New module 'truncf-ieee'.
18807         * modules/truncf-ieee: New file.
18808         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
18809         test whether truncf works according to ISO C 99 with IEC 60559.
18810         * m4/truncf-ieee.m4: New file.
18811         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
18812         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
18813         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
18814         * modules/truncf-ieee-tests: New file.
18815         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
18816         * tests/test-truncf1.c (main): Remove signbit tests.
18817         * modules/truncf-tests (Depends-on): Remove 'signbit'.
18818         * doc/posix-functions/truncf.texi: Mention the new module.
18819
18820 2010-12-21  Bruno Haible  <bruno@clisp.org>
18821
18822         New module 'ceilf-ieee'.
18823         * modules/ceilf-ieee: New file.
18824         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
18825         test whether ceilf works according to ISO C 99 with IEC 60559.
18826         * m4/ceilf-ieee.m4: New file.
18827         * modules/ceilf-ieee-tests: New file.
18828         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
18829         * tests/test-ceilf1.c (main): Remove signbit tests.
18830         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
18831         * doc/posix-functions/ceilf.texi: Mention the new module.
18832
18833 2010-12-21  Bruno Haible  <bruno@clisp.org>
18834
18835         New module 'floorf-ieee'.
18836         * modules/floorf-ieee: New file.
18837         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
18838         test whether floorf works according to ISO C 99 with IEC 60559.
18839         * m4/floorf-ieee.m4: New file.
18840         * modules/floorf-ieee-tests: New file.
18841         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
18842         * tests/test-floorf1.c (main): Remove signbit tests.
18843         * modules/floorf-tests (Depends-on): Remove 'signbit'.
18844         * doc/posix-functions/floorf.texi: Mention the new module.
18845
18846 2010-12-21  Bruno Haible  <bruno@clisp.org>
18847
18848         Support for minus zero in autoconf macros.
18849         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
18850         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
18851         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
18852         * tests/minus-zero.h: Update comments.
18853
18854 2010-12-21  Bruno Haible  <bruno@clisp.org>
18855
18856         Tests for module 'ceil'.
18857         * modules/ceil-tests: New file.
18858         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
18859         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
18860
18861 2010-12-21  Bruno Haible  <bruno@clisp.org>
18862
18863         Tests for module 'floor'.
18864         * modules/floor-tests: New file.
18865         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
18866         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
18867
18868 2010-12-21  Bruno Haible  <bruno@clisp.org>
18869
18870         math: Fix indentation.
18871         * lib/math.in.h (floorf): Fix indentation.
18872
18873 2010-12-21  Bruno Haible  <bruno@clisp.org>
18874
18875         Fix cross-compilation guesses on Solaris.
18876         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
18877         not match "solaris2.10".
18878         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
18879         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
18880         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
18881
18882 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
18883
18884         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
18885         This fixes a problem observed with the latest coreutils snapshot
18886         that caused a test to fail on Solaris 8.  src/csplit.c's call
18887         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
18888         earlier, instead of returning the number of bytes that would have
18889         been generated; this causes csplit to incorrectly report memory
18890         exhaustion.
18891         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
18892         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
18893         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
18894         comments to match.
18895         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
18896         Fix typo in matching older versions of Solaris: "solaris2.10"
18897         is matched by the shell pattern "solaris2.[0-9]*".  This matters
18898         only for guessing while cross-compiling.
18899         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
18900
18901 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
18902
18903         ftoastr: fix comment again
18904         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
18905         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
18906         Also, simplify example a bit by using flags = 0.
18907
18908 2010-12-20  Bruno Haible  <bruno@clisp.org>
18909
18910         round*, trunc*: Update documentation regarding glibc.
18911         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
18912         * doc/posix-functions/round.texi: Likewise.
18913         * doc/posix-functions/roundl.texi: Likewise.
18914         * doc/posix-functions/truncf.texi: Likewise.
18915         * doc/posix-functions/trunc.texi: Likewise.
18916         * doc/posix-functions/truncl.texi: Likewise.
18917
18918 2010-12-20  Bruno Haible  <bruno@clisp.org>
18919
18920         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
18921         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
18922         * doc/posix-functions/round.texi: Likewise.
18923         * doc/posix-functions/roundl.texi: Likewise.
18924
18925 2010-12-20  Bruno Haible  <bruno@clisp.org>
18926
18927         ttyname_r: Add missing declaration on HP-UX 11.
18928         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
18929         HAVE_TTYNAME_R.
18930         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
18931         declared. Set HAVE_TTYNAME_R always.
18932         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18933         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
18934         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
18935         HAVE_TTYNAME_R.
18936         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
18937
18938 2010-12-20  Bruno Haible  <bruno@clisp.org>
18939
18940         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
18941         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
18942         * doc/posix-functions/getlogin_r.texi: Likewise.
18943         * tests/test-getlogin.c: Include <errno.h>.
18944         (main): Avoid test failure on HP-UX 11.11.
18945         * tests/test-getlogin_r.c (main): Likewise.
18946
18947 2010-12-20  Bruno Haible  <bruno@clisp.org>
18948
18949         getlogin_r: Add missing declaration on HP-UX 11.
18950         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
18951         declared also when it exists as a function.
18952         * doc/posix-functions/getlogin_r.texi: Document this workaround.
18953
18954 2010-12-20  Bruno Haible  <bruno@clisp.org>
18955
18956         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
18957         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
18958         through wcrtomb.
18959
18960 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
18961
18962         ftoastr: fix comment
18963         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
18964         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
18965
18966 2010-12-19  Bruno Haible  <bruno@clisp.org>
18967
18968         isnan: Ensure it is a macro.
18969         * lib/math.in.h (isnan): Define as a macro if not already a macro.
18970         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
18971         Solaris.
18972
18973 2010-12-19  Bruno Haible  <bruno@clisp.org>
18974
18975         ldexpl test: Fix link error on OSF/1 5.1.
18976         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
18977
18978 2010-12-19  Bruno Haible  <bruno@clisp.org>
18979
18980         wctype: Make it work in C++ mode on OSF/1 5.1.
18981         * lib/wctype.in.h (iswblank): Declare but not define here.
18982         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
18983         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
18984         * modules/wctype (Files): Add lib/iswblank.c.
18985
18986 2010-12-19  Bruno Haible  <bruno@clisp.org>
18987
18988         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
18989         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
18990         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
18991
18992 2010-12-19  Bruno Haible  <bruno@clisp.org>
18993
18994         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
18995         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
18996         _POSIX_PII_SOCKET.
18997         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
18998         * doc/posix-functions/recvfrom.texi: Likewise.
18999         * doc/posix-functions/send.texi: Likewise.
19000         * doc/posix-functions/sendto.texi: Likewise.
19001
19002 2010-12-19  Bruno Haible  <bruno@clisp.org>
19003
19004         tcgetsid: Add missing declaration on OSF/1 5.1.
19005         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
19006         HAVE_TCGETSID.
19007         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
19008         Don't set HAVE_TCGETSID.
19009         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
19010         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
19011         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
19012         HAVE_TCGETSID.
19013         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
19014
19015 2010-12-19  Bruno Haible  <bruno@clisp.org>
19016
19017         stdio: Fix problem with popen() declaration on OSF/1 5.1.
19018         * lib/stdio.in.h: During the include_next statement, let recursive
19019         includes of this file include only the system header file.
19020
19021 2010-12-19  Bruno Haible  <bruno@clisp.org>
19022
19023         iconv_open: Fix regression from 2010-12-04.
19024         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
19025         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
19026
19027 2010-12-19  Bruno Haible  <bruno@clisp.org>
19028
19029         stdbool test: Avoid a gcc warning.
19030         * tests/test-stdbool.c (main): Fail if e1 is false.
19031         Reported by Jim Meyering.
19032
19033 2010-12-19  Jim Meyering  <meyering@redhat.com>
19034
19035         setenv: restore to working order
19036         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
19037         mistakenly removed.
19038         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
19039         HAVE_SETENV.
19040         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
19041         HAVE_SETENV.
19042
19043 2010-12-19  Bruno Haible  <bruno@clisp.org>
19044
19045         Document some different function declarations on OSF/1 5.1.
19046         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
19047         * doc/posix-functions/inet_ntop.texi: Likewise.
19048         * doc/posix-functions/gethostname.texi: Likewise.
19049         * lib/unistd.in.h (gethostname): Update comment.
19050
19051 2010-12-19  Bruno Haible  <bruno@clisp.org>
19052
19053         doc: Mention vasprintf-posix module.
19054         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
19055         the 'vasprintf-posix' module.
19056         * doc/glibc-functions/vasprintf.texi: Likewise.
19057
19058 2010-12-19  Bruno Haible  <bruno@clisp.org>
19059
19060         unsetenv: Add missing declaration on OSF/1 5.1.
19061         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
19062         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
19063         Don't set HAVE_UNSETENV. In the test program, set _BSD.
19064         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
19065         not HAVE_UNSETENV.
19066         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
19067         HAVE_UNSETENV.
19068         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
19069
19070 2010-12-19  Bruno Haible  <bruno@clisp.org>
19071
19072         setenv: Add missing declaration on OSF/1 5.1.
19073         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
19074         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
19075         declared. Don't set HAVE_SETENV.
19076         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
19077         not HAVE_SETENV.
19078         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
19079         HAVE_SETENV.
19080         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
19081
19082 2010-12-19  Bruno Haible  <bruno@clisp.org>
19083
19084         nl_langinfo tests: Avoid gcc warning.
19085         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
19086
19087 2010-12-19  Bruno Haible  <bruno@clisp.org>
19088
19089         mknod: Avoid error in C++ mode on OSF/1 with GCC.
19090         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
19091         _GL_CXXALIAS_SYS.
19092
19093 2010-12-19  Bruno Haible  <bruno@clisp.org>
19094
19095         stdbool: Relax test.
19096         * tests/test-stdbool.c (e): Don't require that casts from a variable's
19097         address to 'bool' work in static initializer, for compilers other than
19098         GCC.
19099
19100 2010-12-19  Bruno Haible  <bruno@clisp.org>
19101
19102         ftello: Add missing declaration on OSF/1 5.1.
19103         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
19104         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
19105         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
19106         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
19107         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
19108
19109 2010-12-19  Bruno Haible  <bruno@clisp.org>
19110
19111         fseeko: Add missing declaration on OSF/1 5.1.
19112         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
19113         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
19114         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
19115         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
19116         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
19117
19118 2010-12-19  Bruno Haible  <bruno@clisp.org>
19119
19120         fchdir: Add missing declaration on OSF/1 5.1.
19121         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
19122         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
19123         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
19124         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
19125         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
19126
19127 2010-12-19  Bruno Haible  <bruno@clisp.org>
19128
19129         relocatable-prog-wrapper: Separate from relocatable-prog.
19130         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
19131         uninstall-relocwrapper rule here.
19132         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
19133         Reported by Ian Beckwith <ianb@erislabs.net>.
19134
19135 2010-12-19  Bruno Haible  <bruno@clisp.org>
19136
19137         unistr/u8-mbsnlen: Add missing dependency.
19138         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
19139         Reported by Ian Beckwith <ianb@erislabs.net>.
19140
19141 2010-12-19  Bruno Haible  <bruno@clisp.org>
19142
19143         iconv: Make it possible again to use this module without 'iconv-h'.
19144         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
19145         if it is not defined.
19146         Reported by Ian Beckwith <ianb@erislabs.net>.
19147
19148 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
19149
19150         acl: port to Solaris 8 when copying from tmpfs to ufs
19151         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
19152         error number.  Problem observed on Solaris 8 with latest
19153         coreutils, with "mv A B", where A is on a tmpfs file system and B
19154         is on a ufs file system.  This caused coreutils' mv/part-symlink
19155         test to fail.
19156
19157         tests: set fail=0 at start
19158         * tests/init.sh (setup_): Move fail=0 initialization here ...
19159         (mktempd_): ... from here, so that tests can rely on fail being
19160         set to 0 initially.  This fixes a problem in coreutils; see:
19161         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
19162
19163 2010-12-18  Bruno Haible  <bruno@clisp.org>
19164
19165         memmem-simple: Stylistic changes.
19166         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
19167         Fix preprocessor directive indentation.
19168
19169 2010-12-15  Pádraig Brady <P@draigBrady.com>
19170
19171         memmem, memmem-simple: reorganize and expand empty needle check
19172         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
19173         functional checks to memmem-simple so that one has a fully functional
19174         memmem by using just this module.
19175         Restrict the performance only check to the memmem module.
19176         Also expand the empty needle check to ensure the correct
19177         pointer is returned, not just a non NULL pointer.
19178         * doc/glibc-functions/memmem.texi: Rearrange the portability
19179         documentation to correlate with the rearranged checks.
19180         Clarify exactly how the memmem and memmem-simple modules
19181         relate to each other.
19182
19183 2010-12-15  Pádraig Brady <P@draigBrady.com>
19184             Bruno Haible  <bruno@clisp.org>
19185
19186         Improve cross-compilation guesses for uClibc.
19187         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
19188         that uClibc does not have the glibc bug.
19189         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
19190         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
19191
19192 2010-12-14  Eric Blake  <eblake@redhat.com>
19193
19194         configmake: provide fallbacks for oldest supported autotools
19195         * m4/configmake.m4: New file.
19196         * modules/configmake (Files): Ship it.
19197         (configure.ac): Use it to guarantee fallbacks.
19198
19199 2010-12-13  Pádraig Brady <P@draigBrady.com>
19200
19201         read-file: Improve handling of large files
19202         * lib/read-file.c (fread_file): Minimize realloc()s
19203         for regular files, and better manage sizes around SIZE_MAX.
19204
19205 2010-12-13  Eric Blake  <eblake@redhat.com>
19206
19207         cloexec, fcntl: relax license
19208         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
19209         consent from all contributors.
19210         * modules/fcntl (License): Likewise.
19211
19212 2010-12-10  Bruno Haible  <bruno@clisp.org>
19213
19214         Tests for module 'pipe-posix'.
19215         * modules/pipe-posix-tests: New file.
19216         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
19217
19218 2010-12-10  Bruno Haible  <bruno@clisp.org>
19219
19220         pipe-posix: Make it work in C++ mode.
19221         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
19222         (pipe): Use common idiom, not a macro definition.
19223         * lib/pipe.c: New file.
19224         * m4/pipe.m4: New file.
19225         * modules/pipe-posix (Description): Enhance.
19226         (Files): Add lib/pipe.c, m4/pipe.m4.
19227         (configure.ac): Invoke gl_FUNC_PIPE.
19228         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
19229         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
19230         * tests/test-unistd-c++.cc: Check the signature of pipe.
19231
19232 2010-12-10  Bruno Haible  <bruno@clisp.org>
19233
19234         Rename module 'pipe' to 'spawn-pipe'.
19235         * modules/spawn-pipe: New file, renamed from modules/pipe.
19236         (Files, configure.ac, Makefile.am): Update.
19237         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
19238         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
19239         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
19240         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
19241         "spawn-pipe.h" instead of "pipe.h".
19242         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
19243         to gl_SPAWN_PIPE.
19244         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
19245         (Files, Makefile.am): Update.
19246         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
19247         Update.
19248         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
19249         Include "spawn-pipe.h" instead of "pipe.h".
19250         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
19251         * lib/javacomp.c: Likewise.
19252         * lib/javaversion.c: Likewise.
19253         * lib/pipe-filter-gi.c: Likewise.
19254         * lib/pipe-filter-ii.c: Likewise.
19255         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
19256         * modules/javacomp (Depends-on): Likewise.
19257         * modules/javaversion (Depends-on): Likewise.
19258         * modules/pipe-filter-gi (Depends-on): Likewise.
19259         * modules/pipe-filter-ii (Depends-on): Likewise.
19260         * MODULES.html.sh (Executing programs): Update.
19261         * NEWS: Mention the change.
19262
19263 2010-12-10  Eric Blake  <eblake@redhat.com>
19264
19265         pipe-posix: new module
19266         * modules/pipe-posix: New file.
19267         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
19268         (gl_UNISTD_H): Check for declaration.
19269         * modules/unistd (Makefile.am): Substitute it.
19270         * lib/unistd.in.h (pipe): Provide it for mingw.
19271         * doc/posix-functions/pipe.texi (pipe): Update documentation.
19272         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
19273
19274 2010-12-07  Bruno Haible  <bruno@clisp.org>
19275
19276         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
19277         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
19278         u8_strcmp_gnu.
19279         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
19280
19281 2010-12-06  Bruno Haible  <bruno@clisp.org>
19282
19283         Update internal documentation.
19284         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
19285
19286 2010-12-04  Bruno Haible  <bruno@clisp.org>
19287
19288         Put more information about failed tests into the test return codes.
19289         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
19290         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
19291         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
19292         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
19293         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
19294         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19295         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19296         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
19297         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
19298         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19299         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
19300         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
19301         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
19302         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19303         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
19304         returns a bit mask.
19305         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
19306         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
19307         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
19308         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
19309         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
19310         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
19311         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
19312         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
19313         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
19314         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
19315         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
19316         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
19317         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
19318         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
19319         * m4/link.m4 (gl_FUNC_LINK): Likewise.
19320         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
19321         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
19322         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
19323         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19324         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
19325         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19326         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
19327         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
19328         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19329         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19330         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
19331         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
19332         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
19333         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
19334         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
19335         gl_PRINTF_PRECISION): Likewise.
19336         * m4/regex.m4 (gl_REGEX): Likewise.
19337         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
19338         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19339         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
19340         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19341         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19342         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19343         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
19344         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
19345         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19346         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19347         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
19348         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
19349         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
19350         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
19351         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19352         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
19353         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
19354         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19355         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
19356         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
19357         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
19358         enumerated value.
19359         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
19360
19361 2010-12-04  Bruno Haible  <bruno@clisp.org>
19362
19363         Update for Solaris 11 2010-11.
19364         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
19365         Express, released in November 2010.
19366
19367 2010-12-04  Bruno Haible  <bruno@clisp.org>
19368
19369         nproc: Relax license.
19370         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
19371         and Paul Eggert.
19372         Requested by Ludovic Courtès <ludo@gnu.org>.
19373
19374 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
19375
19376         utimecmp: fine-grained src to nearby coarse-grained dest
19377
19378         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
19379         and the source is on a file system with higher-resolution time
19380         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
19381         not work, and the time stamps are close together, the algorithm to
19382         determine the exact resolution from the read-back mtime was buggy:
19383         it had a "!=" where it should have had an "==".  This bug has been
19384         in the code ever since it was introduced to gnulib.
19385         Problem reported by Dan Jacobson in
19386         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
19387
19388 2010-11-30  Bruno Haible  <bruno@clisp.org>
19389
19390         strerror_r-posix: Fix autoconf test.
19391         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
19392
19393 2010-11-28  Bruno Haible  <bruno@clisp.org>
19394             Paul Eggert  <eggert@cs.ucla.edu>
19395
19396         Tests for module 'getdomainname'.
19397         * modules/getdomainname-tests: New file.
19398         * tests/test-getdomainname.c: New file, based on
19399         tests/test-gethostname.c.
19400
19401 2010-11-28  Bruno Haible  <bruno@clisp.org>
19402             Paul Eggert  <eggert@cs.ucla.edu>
19403
19404         getdomainname: Use the system function when possible.
19405         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
19406         (getdomainname): Replace if needed. Provide the declaration if it is
19407         missing. Don't use _GL_CXXALIAS_SYS_CAST.
19408         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
19409         (getdomainname): When the system has getdomainname, call the system
19410         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
19411         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
19412         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
19413         found in libnsl. Look for the declaration also in <netdb.h>. Replace
19414         the function if its second argument is of type 'int' or if it is found
19415         in libnsl.
19416         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
19417         <sys/systeminfo.h> and sysinfo().
19418         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
19419         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19420         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
19421         HAVE_GETDOMAINNAME.
19422         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
19423         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
19424         * doc/glibc-functions/getdomainname.texi: Document the problems with
19425         the getdomainname declaration.
19426
19427 2010-11-28  Bruno Haible  <bruno@clisp.org>
19428
19429         sys_socket: Ensure ss_family field on AIX.
19430         * lib/sys_socket.in.h (ss_family): New macro definition.
19431         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
19432         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
19433         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19434         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
19435         * modules/sys_socket (Makefile.am): Substitute
19436         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
19437         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
19438
19439 2010-11-27  Bruno Haible  <bruno@clisp.org>
19440
19441         readline: Improve configure output.
19442         * m4/readline.m4 (gl_FUNC_READLINE): Make the
19443         "checking for readline..." result understandable.
19444
19445 2010-11-27  Bruno Haible  <bruno@clisp.org>
19446
19447         *printf-posix: Detect a bug on Solaris 10/x86.
19448         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
19449         for floating-point output.
19450         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
19451         directive.
19452         * tests/test-snprintf-posix.h (test_function): Likewise.
19453         * tests/test-sprintf-posix.h (test_function): Likewise.
19454         * tests/test-vasprintf-posix.c (test_function): Likewise.
19455         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
19456         * doc/posix-functions/printf.texi: Likewise.
19457         * doc/posix-functions/snprintf.texi: Likewise.
19458         * doc/posix-functions/sprintf.texi: Likewise.
19459         * doc/posix-functions/vfprintf.texi: Likewise.
19460         * doc/posix-functions/vprintf.texi: Likewise.
19461         * doc/posix-functions/vsnprintf.texi: Likewise.
19462         * doc/posix-functions/vsprintf.texi: Likewise.
19463         * doc/glibc-functions/obstack_printf.texi: Likewise.
19464         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
19465
19466 2010-11-27  Bruno Haible  <bruno@clisp.org>
19467
19468         Fix link error when module libunistring-optional is in use.
19469         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
19470         * modules/striconveha-tests (Makefile.am): Likewise.
19471
19472 2010-11-27  Bruno Haible  <bruno@clisp.org>
19473
19474         regex: Mention link dependencies.
19475         * modules/regex (Link): New section.
19476         * modules/rpmatch (Link): Likewise.
19477         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
19478
19479 2010-11-27  Bruno Haible  <bruno@clisp.org>
19480
19481         ftoastr: Fix compilation error on Solaris.
19482         * lib/ftoastr.c: Include <config.h>.
19483
19484 2010-11-27  Bruno Haible  <bruno@clisp.org>
19485
19486         getloadavg: Update documentation.
19487         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
19488
19489 2010-11-27  Bruno Haible  <bruno@clisp.org>
19490
19491         sys_socket: Fix test whether the functions are declared.
19492         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
19493         not <sys/select.h>.
19494
19495 2010-11-27  Bruno Haible  <bruno@clisp.org>
19496
19497         getpass: Make sure to get system declaration on some platforms.
19498         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
19499         gl_USE_SYSTEM_EXTENSIONS.
19500         * modules/getpass (Depends-on): Add extensions.
19501
19502 2010-11-26  Bruno Haible  <bruno@clisp.org>
19503
19504         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
19505         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
19506         'iconv' module is present.
19507         (ICONV_CONST): New macro.
19508         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
19509         ICONV_CONST.
19510         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
19511         set ICONV_CONST.
19512         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
19513         here.
19514         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
19515         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
19516         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
19517         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
19518         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
19519         present.
19520
19521 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
19522
19523         ftoastr: comment fix
19524         * lib/ftoastr.c: "little" -> "little or no" in comment
19525
19526 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
19527
19528         stdint: port to GCC 4.3 + OSX + Octave
19529         On this platform, stdint.h is buggy and defines int64_t to long
19530         long int.  The replacement defined it to long int, causing
19531         problems with C++ style name mangling.  Instead, trust the system
19532         definition if INT64_MAX is defined, and likewise for the unsigned
19533         variant.   Problem reported by Jarno Rajahalme in
19534         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
19535         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
19536         and don't mess with int64_t and INT64_MAX in this case.
19537         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
19538
19539 2010-11-24  Bruno Haible  <bruno@clisp.org>
19540
19541         doc: Corrections regarding MacOS X 10.4 and 10.5.
19542         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
19543         MacOS X.
19544         Reported by Simon Josefsson.
19545
19546 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
19547
19548         Uninstall ".bin" files installed by relocwrapper.
19549         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
19550         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
19551         unless it is already there.
19552
19553 2010-11-21  Bruno Haible  <bruno@clisp.org>
19554
19555         Update for NetBSD 5.0.
19556         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
19557         NetBSD; the test fails on NetBSD 5.0.
19558         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
19559         about NetBSD.
19560
19561 2010-11-21  Bruno Haible  <bruno@clisp.org>
19562
19563         Update for HP-UX 11.23 and HP-UX 11.31.
19564         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
19565         HP-UX.
19566
19567 2010-11-21  Bruno Haible  <bruno@clisp.org>
19568
19569         Update for MacOS X 10.5.
19570         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
19571         MacOS X; the test fails on MacOS X 10.5.8.
19572         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
19573         about MacOS X.
19574
19575 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
19576
19577         bootstrap: add bootstrap_sync option.
19578         See discussion at
19579         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
19580         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
19581         * build-aux/bootstrap: Accept --bootstrap-sync to update
19582         bootstrap if it is not identical to the local gnulib's
19583         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
19584         enable this by default.  Accept --no-bootstrap-sync to disable
19585         it.
19586
19587 2010-11-20  Bruno Haible  <bruno@clisp.org>
19588
19589         Ensure that <features.h> is included before __GLIBC__ is tested.
19590         * lib/printf-parse.h: Include <features.h>.
19591         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
19592         Reported by Mike Frysinger <vapier@gentoo.org>.
19593
19594         Ensure that <features.h> is included before __GLIBC__ is tested.
19595         * lib/wchar.in.h: Include <features.h>.
19596         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
19597         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
19598         Reported by Mike Frysinger <vapier@gentoo.org>.
19599
19600         Ensure that <features.h> is included before __GLIBC__ is tested.
19601         * lib/arpa_inet.in.h: Include <features.h>.
19602         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
19603         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
19604         Reported by Mike Frysinger <vapier@gentoo.org>.
19605
19606         Ensure that <features.h> is included before __GLIBC__ is tested.
19607         * build-aux/link-warning.h: Include <features.h>.
19608         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
19609         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
19610         Reported by Mike Frysinger <vapier@gentoo.org>.
19611
19612         Ensure that <features.h> is included before __GLIBC__ is tested.
19613         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
19614         Reported by Mike Frysinger <vapier@gentoo.org>.
19615
19616 2010-11-20  Bruno Haible  <bruno@clisp.org>
19617
19618         memmem: Fix autoconf test.
19619         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
19620
19621 2010-11-20  Bruno Haible  <bruno@clisp.org>
19622
19623         Port to uClibc.
19624         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
19625         * lib/fcntl.in.h: Likewise.
19626         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
19627         * lib/mbrtowc.c (mbrtowc): Likewise.
19628         * lib/relocatable.c (find_shared_library_fullname): Likewise.
19629         * lib/strerror_r.c: Likewise.
19630         * lib/unistr/u8-strnlen.c: Likewise.
19631         * lib/vasnprintf.c (decimal_point_char): Likewise.
19632         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
19633         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
19634         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
19635         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
19636         * tests/test-sigaction.c (handler, main): Likewise.
19637         * lib/freading.h: Treat uClibc like a non-glibc platform.
19638         * lib/freading.c: Likewise.
19639         * lib/gettext.h: Likewise.
19640         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
19641         Likewise.
19642         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
19643         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
19644         * lib/propername.c (proper_name_utf8): Likewise.
19645         * lib/spawn.in.h: Likewise.
19646         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
19647         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
19648         mem_cd_iconveh_internal): Likewise.
19649         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
19650         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
19651         strstr, strcasestr): Likewise.
19652         * lib/unicodeio.c (unicode_to_mb): Likewise.
19653         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
19654         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
19655         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
19656         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
19657         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
19658         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
19659         * lib/unistr/u8-stpncpy.c: Likewise.
19660         * lib/vasnprintf.c (VASNPRINTF): Likewise.
19661         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
19662         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19663         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
19664         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
19665         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
19666         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
19667         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
19668         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
19669         Likewise.
19670         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
19671         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
19672         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
19673         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19674         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
19675         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19676         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19677         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
19678         * tests/test-getopt.h (OPTIND_MIN): Likewise.
19679         * tests/test-striconveha.c (main): Likewise.
19680         * tests/test-vasnprintf-posix.c (test_function): Likewise.
19681         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
19682         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
19683         * doc/posix-functions/getline.texi: Likewise.
19684         Reported by Mike Frysinger <vapier@gentoo.org>.
19685
19686 2010-11-20  Bruno Haible  <bruno@clisp.org>
19687
19688         nproc: Fix condition.
19689         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
19690         HAVE_PTHREAD_AFFINITY_NP.
19691
19692 2010-11-20  Bruno Haible  <bruno@clisp.org>
19693
19694         Fix a comment.
19695         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
19696
19697 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
19698
19699         ftoastr: don't assume snprintf
19700         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
19701         Implement a subset of snprintf here, by using sprintf safely.
19702         * modules/ftoastr (Depends-on): Remove snprintf.
19703
19704 2010-11-19  Jim Meyering  <meyering@redhat.com>
19705
19706         test-rename.h: fix compilation failure
19707         * tests/test-rename.h (test_rename): Add omitted "}".
19708
19709 2010-11-17  Jim Meyering  <meyering@redhat.com>
19710
19711         maint.mk: add a URL discussing the no-@acronym policy
19712         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
19713
19714 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
19715
19716         ftoastr: depend on snprintf, improve comments
19717         * lib/ftoastr.c: Also mention Loitsch's draft.
19718         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
19719         needed in the current implementation, but it might simplify
19720         speeding up the code later.
19721         * modules/ftoastr: Depend on snprintf; this improves portability.
19722         Suggested by Bruno Haible in the same email.
19723
19724         ftoastr: port to hosts lacking strtof and strtold
19725         Problem reported by Bruno Haible in
19726         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
19727         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
19728         environment and strtold (and presumably strtof) are not available.
19729         * modules/ftoastr (Files): Add m4/c-strtod.m4.
19730         (configure.ac): Require gl_C99_STRTOLD.
19731
19732 2010-11-18  Bruno Haible  <bruno@clisp.org>
19733
19734         c-strtold: Avoid link error on AIX 7.
19735         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
19736         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
19737         (gl_C_STRTOLD): Test whether strtold_l exists.
19738         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19739
19740 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
19741
19742         intprops: new macro INT_BITS_STRLEN_BOUND
19743         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
19744         ftoastr.h.  This exposes an internal of intprops.h that was formerly
19745         not exposed.  Also, it uses a slightly tighter bound than before;
19746         though this makes no practical difference, we might as well be as
19747         tight as we easily can.
19748
19749         ftoastr: new module, for lossless conversion of floats to short strings
19750         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
19751         * modules/ftoastr: New files.
19752
19753 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
19754
19755         bootstrap: port to Solaris sed
19756         * build-aux/bootstrap (get_version): Port to Solaris sed.
19757         See Ralf Wildenhues's note in
19758         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
19759
19760 2010-11-14  Jim Meyering  <meyering@redhat.com>
19761
19762         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
19763         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
19764         and move definition closer to sole use.
19765
19766 2010-11-13  Jim Meyering  <meyering@redhat.com>
19767
19768         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
19769         Now we require at least autoconf-2.59, which means the work-around
19770         is no longer needed.
19771         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
19772         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
19773         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
19774         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
19775         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
19776
19777 2010-11-13  Bruno Haible  <bruno@clisp.org>
19778
19779         rename, renameat: Avoid test failures at NFS mounted locations.
19780         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
19781         functions.
19782         (test_rename): Use assert_nonexistent.
19783         * tests/test-rename.c: Include <dirent.h>.
19784         * tests/test-renameat.c: Likewise.
19785         Reported by Gary V. Vaughan <gary@gnu.org>.
19786
19787         rename, renameat: Document Linux bug with NFS
19788         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
19789         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
19790         * doc/posix-functions/renameat.texi: Likewise.
19791         Suggested by Eric Blake.
19792
19793 2010-11-13  Bruno Haible  <bruno@clisp.org>
19794
19795         rename test: Add comments.
19796         * tests/test-rename.h (test_rename): Add structure and comments.
19797
19798 2010-11-13  Eric Blake  <eblake@redhat.com>
19799
19800         maintainer-makefile: cover a few more files
19801         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
19802         scripts generated within C files, for libvirt.
19803
19804 2010-11-13  Bruno Haible  <bruno@clisp.org>
19805
19806         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
19807         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
19808         character, return the number of bytes that belong together, not always
19809         1.
19810         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
19811         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
19812         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
19813         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
19814         number of bytes of an invalid character.
19815         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
19816         (main): Invoke it.
19817         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
19818         results.
19819         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
19820         malformed byte sequences.
19821         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
19822         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
19823         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
19824         Reported by Ben Pfaff and Paolo Bonzini.
19825
19826 2010-11-13  Bruno Haible  <bruno@clisp.org>
19827
19828         openat: Work around glibc bug with fchownat() and empty file names.
19829         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
19830         (gl_FUNC_FCHOWNAT): Invoke it.
19831         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
19832         * doc/posix-functions/fchownat.texi: Document the glibc bug.
19833         Reported by Gary V. Vaughan <gary@gnu.org>.
19834
19835 2010-11-13  Bruno Haible  <bruno@clisp.org>
19836
19837         openat: Ensure autoconf macro ordering.
19838         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
19839         gl_USE_SYSTEM_EXTENSIONS.
19840         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
19841
19842 2010-11-13  Bruno Haible  <bruno@clisp.org>
19843
19844         Update comments.
19845         * lib/unistr/u8-check.c: Update file name in comments.
19846         * lib/unistr/u8-mblen.c: Likewise.
19847         * lib/unistr/u8-prev.c: Likewise.
19848         * lib/unistr/u8-strmblen.c: Likewise.
19849         * lib/unistr/u8-strmbtouc.c: Likewise.
19850
19851 2010-11-13  Jim Meyering  <meyering@redhat.com>
19852
19853         tests: avoid test failure on Solaris 10 due to lack of PATH export
19854         * tests/test-update-copyright.sh: Don't forget to export PATH.
19855
19856         init.sh: ensure that IFS is defined, just in case...
19857         * tests/init.sh (setup_): Ensure that IFS is defined,
19858         so that saving and restoring it works as expected.  This
19859         appears to be useful at least for an old version of dash
19860         from a long time ago (RH 6).  See here for details:
19861         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
19862
19863         maint.mk: tighten "test a == b" check
19864         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
19865         test to files that contain something like #!/bin/sh.
19866         Without this, coreutils would get two false positives in
19867         the comments of C source files.
19868
19869 2010-11-12  Eric Blake  <eblake@redhat.com>
19870
19871         bootstrap: fix typo in previous attempt
19872         * build-aux/bootstrap (buildreq): Correct the grouping.
19873         Reported by Paul Eggert.
19874
19875         maintainer-makefile: prohibit test x == x
19876         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
19877         Based on a report by Matthias Bolte.
19878
19879         bootstrap: allow FreeBSD gzip
19880         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
19881         which has no '.' and goes to stderr.
19882         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
19883         Reported by Matthias Bolte.
19884
19885         maintainer-makefile: check for i18n setup
19886         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
19887         will likely work.
19888
19889 2010-11-12  Bruno Haible  <bruno@clisp.org>
19890
19891         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
19892         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
19893         * lib/nanosleep.c (nanosleep): Likewise.
19894
19895 2010-11-11  Bruno Haible  <bruno@clisp.org>
19896
19897         fcntl-h: Fix for use of C++ on glibc systems.
19898         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
19899         also on glibc systems in C++ mode.
19900         Reported by Gary V. Vaughan <gary@gnu.org>.
19901
19902 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
19903
19904         mknod: avoid false failure with dash
19905         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
19906
19907 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
19908
19909         unlink: Fix "is it should" typo in diagnostic.
19910         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
19911         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
19912
19913 2010-11-11  Bruno Haible  <bruno@clisp.org>
19914
19915         Tests for module 'strerror_r-posix'.
19916         * modules/strerror_r-posix-tests: New file.
19917         * tests/test-strerror_r.c: New file.
19918         * tests/test-string-c++.cc: Check the signature of strerror_r.
19919
19920         New module 'strerror_r-posix'.
19921         * lib/string.in.h (strerror_r): New declaration.
19922         * lib/strerror_r.c: New file.
19923         * m4/strerror_r.m4: New file.
19924         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
19925         of strerror_r.
19926         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
19927         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19928         * modules/strerror_r-posix: New file.
19929         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
19930         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
19931         * doc/posix-functions/strerror_r.texi: Mention the new module and the
19932         portability problems.
19933
19934 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
19935
19936         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
19937         line is also considered for output. Quoted function name in shell
19938         command, so temporary files for functions like MyClass::operator()
19939         are removed correctly without errors.
19940
19941 2010-11-09  Bruno Haible  <bruno@clisp.org>
19942
19943         * doc/posix-functions/strerror.texi: List more failing platforms.
19944
19945         * doc/posix-functions/strerror.texi: Add a comment.
19946
19947 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
19948
19949         fdopendir: fix bug on MacOS X when low on file descriptors
19950
19951         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
19952         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
19953         All callers changed.
19954         (fdopendir): Invoke save_cwd at the top level, not after using
19955         multiple dup() calls to use up file descriptors.  Then retry
19956         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
19957         less than the maximum number of open file descriptors, because
19958         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
19959         on Mac OS X 10.6.4 for tar 1.24
19960         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
19961         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
19962         and for tar 1.25
19963         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
19964
19965 2010-11-07  Bruno Haible  <bruno@clisp.org>
19966
19967         vasnprintf: Support I flag on glibc systems.
19968         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
19969         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
19970         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
19971         snprintf function.
19972         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
19973         glibc systems.
19974         * tests/test-vasnprintf-posix3.c: New file.
19975         * modules/vasnprintf-posix-tests (Files): Add it.
19976         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
19977
19978 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
19979
19980         [html] Fix copy/paste bug: Use unique name for compiler warnings.
19981         * MODULES.html.sh: For compiler warnings, use name
19982         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
19983
19984 2010-11-05  Eric Blake  <eblake@redhat.com>
19985
19986         ceil, floor: avoid spurious failure with icc
19987         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
19988         [denormals-as-zero] when optimizing without -mieee-fp option.
19989         * tests/test-floorf2.c (floorf_reference): Likewise.
19990         * tests/test-ceilf1.c (dummy): New function.
19991         (main): Use it to outsmart icc's optimization.
19992         * tests/test-floorf1.c (dummy, main): Likewise.
19993
19994         tests: require working signbit
19995         * modules/ceilf-tests (Depends-on): Add signbit.
19996         * modules/ceill-tests (Depends-on): Likewise.
19997         * modules/floorf-tests (Depends-on): Likewise.
19998         * modules/floorl-tests (Depends-on): Likewise.
19999         * modules/round-tests (Depends-on): Likewise.
20000         * modules/roundf-tests (Depends-on): Likewise.
20001         * modules/roundl-tests (Depends-on): Likewise.
20002         * modules/trunc-tests (Depends-on): Likewise.
20003         * modules/truncf-tests (Depends-on): Likewise.
20004         * modules/truncl-tests (Depends-on): Likewise.
20005
20006         strtod: work around icc bug
20007         * lib/strtod.c (minus_zero): Define to working value.
20008         (strtod): Use it to avoid icc bug.
20009
20010         copysign: enhance tests
20011         * modules/copysign-tests (Files): Add minus-zero.h.
20012         * tests/test-copysign.c (main): Also test zeros.
20013
20014 2010-11-04  Eric Blake  <eblake@redhat.com>
20015
20016         ceil, floor, round, trunc: enhance tests of -0
20017         * tests/test-ceilf1.c (main): Ensure correct sign of result.
20018         * tests/test-ceill.c (main): Likewise.
20019         * tests/test-floorf1.c (main): Likewise.
20020         * tests/test-floorl.c (main): Likewise.
20021         * tests/test-round1.c (main): Likewise.
20022         * tests/test-roundf1.c (main): Likewise.
20023         * tests/test-roundl.c (main): Likewise.
20024         * tests/test-trunc1.c (main): Likewise.
20025         * tests/test-truncf1.c (main): Likewise.
20026         * tests/test-truncl.c (main): Likewise.
20027
20028 2010-11-04  Eric Blake  <eblake@redhat.com>
20029
20030         frexp, tests: work around ICC bug with -zero
20031         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
20032         works with more compilers.
20033         * tests/minus-zero.h: New file.
20034         * modules/ceilf-tests (Files): Include it.
20035         * modules/ceill-tests (Files): Likewise.
20036         * modules/floorf-tests (Files): Likewise.
20037         * modules/floorl-tests (Files): Likewise.
20038         * modules/frexp-nolibm-tests (Files): Likewise.
20039         * modules/frexp-tests (Files): Likewise.
20040         * modules/frexpl-nolibm-tests (Files): Likewise.
20041         * modules/frexpl-tests (Files): Likewise.
20042         * modules/isnan-tests (Files): Likewise.
20043         * modules/isnand-nolibm-tests (Files): Likewise.
20044         * modules/isnand-tests (Files): Likewise.
20045         * modules/isnanf-nolibm-tests (Files): Likewise.
20046         * modules/isnanf-tests (Files): Likewise.
20047         * modules/isnanl-nolibm-tests (Files): Likewise.
20048         * modules/isnanl-tests (Files): Likewise.
20049         * modules/round-tests (Files): Likewise.
20050         * modules/roundf-tests (Files): Likewise.
20051         * modules/roundl-tests (Files): Likewise.
20052         * modules/ldexpl-tests (Files): Likewise.
20053         * modules/signbit-tests (Files): Likewise.
20054         * modules/snprintf-posix-tests (Files): Likewise.
20055         * modules/sprintf-posix-tests (Files): Likewise.
20056         * modules/strtod-tests (Files): Likewise.
20057         * modules/trunc-tests (Files): Likewise.
20058         * modules/truncf-tests (Files): Likewise.
20059         * modules/truncl-tests (Files): Likewise.
20060         * modules/vsnprintf-posix-tests (Files): Likewise.
20061         * modules/vsprintf-posix-tests (Files): Likewise.
20062         * modules/vasnprintf-posix-tests (Files): Likewise.
20063         * modules/vasprintf-posix-tests (Files): Likewise.
20064         * tests/test-ceilf1.c (main): Use it.
20065         * tests/test-ceill.c (main): Likewise.
20066         * tests/test-floorf1.c (main): Likewise.
20067         * tests/test-floorl.c (main): Likewise.
20068         * tests/test-frexp.c (main): Likewise.
20069         * tests/test-frexpl.c (main): Likewise.
20070         * tests/test-isnan.c (main): Likewise.
20071         * tests/test-isnand.h (main): Likewise.
20072         * tests/test-isnanf.h (main): Likewise.
20073         * tests/test-isnanl.h (main): Likewise.
20074         * tests/test-ldexpl.c (main): Likewise.
20075         * tests/test-round.c (main): Likewise.
20076         * tests/test-roundf.c (main): Likewise.
20077         * tests/test-roundl.c (main): Likewise.
20078         * tests/test-signbit.c (test_signbitf, test_signbitd)
20079         (test_signbitl): Likewise.
20080         * tests/test-snprintf-posix.h (test_function): Likewise.
20081         * tests/test-sprintf-posix.h (test_function): Likewise.
20082         * tests/test-strtod.c (main): Likewise.
20083         * tests/test-trunc1.c (main): Likewise.
20084         * tests/test-truncf1.c (main): Likewise.
20085         * tests/test-truncl.c (main): Likewise.
20086
20087         isnanl: work around icc bug
20088         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
20089
20090 2010-11-03  Eric Blake  <eblake@redhat.com>
20091
20092         tests: fix compiler warnings
20093         * tests/test-getopt.h (test_getopt): Fix condition.
20094         * tests/test-getopt_long.h (test_getopt_long): Likewise.
20095         * tests/test-pipe2.c (main): Likewise.
20096         * tests/test-quotearg-simple.c (main): Avoid icc warning.
20097
20098         utimens: fix broken m4 test
20099         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
20100
20101 2010-10-28  Bruno Haible  <bruno@clisp.org>
20102
20103         posix_spawn*, getdtablesize: Relax license.
20104         * modules/posix_spawn (License): Change to LGPLv2+.
20105         * modules/posix_spawnp (License): Likewise.
20106         * modules/posix_spawn-internal (License): Likewise.
20107         * modules/posix_spawnattr_init (License): Likewise.
20108         * modules/posix_spawnattr_getflags (License): Likewise.
20109         * modules/posix_spawnattr_setflags (License): Likewise.
20110         * modules/posix_spawnattr_getpgroup (License): Likewise.
20111         * modules/posix_spawnattr_setpgroup (License): Likewise.
20112         * modules/posix_spawnattr_getschedparam (License): Likewise.
20113         * modules/posix_spawnattr_setschedparam (License): Likewise.
20114         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
20115         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
20116         * modules/posix_spawnattr_getsigdefault (License): Likewise.
20117         * modules/posix_spawnattr_setsigdefault (License): Likewise.
20118         * modules/posix_spawnattr_getsigmask (License): Likewise.
20119         * modules/posix_spawnattr_setsigmask (License): Likewise.
20120         * modules/posix_spawnattr_destroy (License): Likewise.
20121         * modules/posix_spawn_file_actions_init (License): Likewise.
20122         * modules/posix_spawn_file_actions_addclose (License): Likewise.
20123         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
20124         * modules/posix_spawn_file_actions_addopen (License): Likewise.
20125         * modules/posix_spawn_file_actions_destroy (License): Likewise.
20126         * modules/getdtablesize (License): Likewise.
20127         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
20128
20129 2010-10-26  Bruno Haible  <bruno@clisp.org>
20130
20131         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
20132         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
20133         Cygwin and mingw.
20134         Suggested by Eric Blake.
20135
20136 2010-10-26  Bruno Haible  <bruno@clisp.org>
20137
20138         stdio: Work around compilation error due to renameat() on Solaris 10.
20139         * lib/stdio.in.h: Include <unistd.h> on Solaris.
20140         * lib/renameat.c: Don't include <unistd.h> here.
20141         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
20142         Reported by Paul Eggert and Eric Blake.
20143
20144 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
20145
20146         renameat: port to Solaris 10, which declares renameat in unistd.h
20147
20148         * lib/renameat.c: Include unistd.h before stdio.h, because
20149         Solaris 10 declares renameat in unistd.h.  Problem encountered
20150         when building GNU tar 1.24 on Solaris 10.
20151
20152 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
20153
20154         fdopendir: fix C89 compilation
20155         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
20156         compilers.
20157
20158 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
20159
20160         inttostr: simplify by removing unnecessary redundancy
20161         * lib/anytostr.c: Don't include verify.h.
20162         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
20163         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
20164         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
20165         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
20166         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
20167         Likewise.
20168         * modules/inttostr (Depends-on): Remove 'verify'.
20169
20170 2010-10-23  Bruno Haible  <bruno@clisp.org>
20171
20172         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
20173         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
20174         Reported by Eric Blake.
20175
20176 2010-10-23  Bruno Haible  <bruno@clisp.org>
20177
20178         Tests: Fix LOCALE_JA on MirBSD 10.
20179         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
20180         to an UTF-8 locale.
20181         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
20182         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20183         Reported by Eric Blake.
20184
20185 2010-10-21  Bruno Haible  <bruno@clisp.org>
20186
20187         nl_langinfo test: Avoid test failure on NetBSD 5.
20188         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
20189         Reported by Eric Blake.
20190
20191 2010-10-21  Eric Blake  <eblake@redhat.com>
20192
20193         c-stack: work around libsigsegv 2.8 bug
20194         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
20195         overflow on at least PowerPC64.
20196
20197 2010-10-17  Bruno Haible  <bruno@clisp.org>
20198
20199         userspec: Drop redundant file.
20200         * modules/userspec (Files): Remove lib/inttostr.h.
20201
20202 2010-10-17  Bruno Haible  <bruno@clisp.org>
20203
20204         nl_langinfo tests: Silence some warnings.
20205         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
20206         Reported by Jim Meyering.
20207
20208 2010-10-17  Bruno Haible  <bruno@clisp.org>
20209
20210         Make use of GCC's attribute __alloc_size__.
20211         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
20212         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
20213         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
20214         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
20215         __alloc_size__.
20216         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
20217         Suggested by Jim Meyering.
20218
20219 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
20220
20221         bootstrap: anchor .gitignore entries.
20222         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
20223         with...
20224         (insert_vc_ignore): ... this new function, which prepends `/' to
20225         all .gitignore entries before passing them to
20226         insert_sorted_if_absent.
20227
20228 2010-10-16  Bruno Haible  <bruno@clisp.org>
20229
20230         nextafter: Fix configure check.
20231         * modules/nextafter (configure.ac): Correct expected prototype.
20232
20233 2010-10-16  Bruno Haible  <bruno@clisp.org>
20234
20235         termios: Update documentation.
20236         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
20237
20238 2010-10-16  Bruno Haible  <bruno@clisp.org>
20239
20240         tests: Make them compile with TinyCC.
20241         * tests/test-strstr.c (main): Remove parentheses around array
20242         initializer.
20243
20244 2010-10-15  Eric Blake  <eblake@redhat.com>
20245
20246         ignore-value: make header idempotent
20247         * lib/ignore-value.h: Add double-inclusion guards.
20248         Reported by Stefan Berger.
20249
20250 2010-10-15  Jim Meyering  <meyering@redhat.com>
20251
20252         GNUmakefile: handle "stable" target, not "major"
20253         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
20254         lists in maint.mk and announce-gen.  Without this, "make stable"
20255         would fail to ensure that $(VERSION) is up to date.
20256
20257 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
20258
20259         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
20260         & co.
20261
20262 2010-10-14  Bruno Haible  <bruno@clisp.org>
20263
20264         vasnprintf: Don't set errno to 0.
20265         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
20266         block that sets it to 0.
20267         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
20268
20269 2010-10-14  Bruno Haible  <bruno@clisp.org>
20270
20271         socketlib: Fix.
20272         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
20273         gl_PREREQ_SYS_H_WINSOCK2.
20274         Reported by Ian Beckwith <ianb@erislabs.net>.
20275
20276 2010-10-13  Jim Meyering  <meyering@redhat.com>
20277
20278         test-select-stdin.c: avoid warn_unused_result warnings
20279         * tests/test-select-stdin.c: Include "macros.h".
20280         ASSERT that read and fflush succeed.
20281
20282 2010-10-13  Jim Meyering  <meyering@redhat.com>
20283
20284         git-version-gen: do require git-VC'd files in cwd
20285         * build-aux/git-version-gen: Reject a git version string
20286         if there are no commits associated with the current directory.
20287         This avoids an unlikely false-positive (unrelated dir whose parent
20288         repository also contains a tag matching v*), as pointed out
20289         by Giuseppe Scrivano in
20290         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
20291
20292 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
20293
20294         argv-iter: omit nonconforming declaration
20295         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
20296         enum arg_iter_err declaration, which doesn't conform to C99.
20297         Solaris 10 cc warns about this.
20298
20299 2010-10-13  Eric Blake  <eblake@redhat.com>
20300
20301         termios: fix compilation on mingw
20302         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
20303         (gl_TERMIOS_H): Adjust it on mingw.
20304         * modules/termios (Makefile.am): Substitute new key.
20305         * lib/termios.in.h (includes): Make include_next conditional.
20306         * doc/posix-headers/termios.texi (termios.h): Update
20307         documentation.
20308         Reported by Daniel P. Berrange.
20309
20310 2010-10-13  Jim Meyering  <meyering@redhat.com>
20311
20312         git-version-gen: don't require that .git/ be in the current dir
20313         * build-aux/git-version-gen: Adjust this script so that it works
20314         when run from any working directory beneath the top-level .git/-
20315         containing directory.  Inspired by a patch from Giuseppe Scrivano,
20316         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
20317
20318         test-select: avoid warn_unused_result warnings
20319         * tests/test-select.c: Include "macros.h".
20320         ASSERT that each call to read, write, and pipe succeeds.
20321         While not technically required, also check each "close".
20322         * modules/select-tests (Files): Add tests/macros.h.
20323
20324         test-symlinkat: remove declaration of unused local
20325         * tests/test-symlinkat.c (main): Remove unused local, "buf".
20326
20327         test-inttostr: avoid shadowing warnings
20328         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
20329         and use malloc rather than the stack for the same reason as
20330         mentioned in the comment justifying the other allocation.
20331
20332 2010-10-11  Bruno Haible  <bruno@clisp.org>
20333
20334         stdlib: Allow multiple gnulib generated replacements to coexist.
20335         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
20336         Reported by Sam Steingold <sds@gnu.org>.
20337
20338 2010-10-11  Jim Meyering  <meyering@redhat.com>
20339
20340         fix a documentation typo
20341         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
20342
20343 2010-10-11  Eric Blake  <eblake@redhat.com>
20344
20345         futimens: work around Solaris 11 bug
20346         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
20347         * tests/test-futimens.h (test_futimens): Enhance, rather than
20348         weaken test.
20349         * doc/posix-functions/futimens.texi (futimens): Document the bug.
20350
20351 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
20352
20353         Indentation.
20354         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
20355         higher-level operators more to the left.
20356
20357 2010-10-11  Jim Meyering  <meyering@redhat.com>
20358
20359         test-futimens: avoid unwarranted test failure on Solaris 5.11
20360         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
20361         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
20362         because it tries to dereference the NULL name argument.
20363
20364 2010-10-11  Bruno Haible  <bruno@clisp.org>
20365
20366         Indentation.
20367         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
20368         indentation.
20369
20370 2010-10-11  Jim Meyering  <meyering@redhat.com>
20371
20372         spawn.in.h: make indentation consistent with parentheses
20373         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
20374         Make indentation consistent with parentheses.
20375
20376 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
20377
20378         Fix mismatched parens in previous commit
20379         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
20380         parens.
20381
20382 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
20383
20384         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
20385
20386         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
20387         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
20388         * lib/malloca.c: Include "verify.h".
20389         (verify1): Remove, replacing with a verify call.
20390         * lib/relocwrapper.c (verify1): Likewise.
20391         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
20392         Likewise.
20393         * modules/malloca (Depends-on): Add 'verify'.
20394         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
20395         * modules/vasnprintf (Depends-on): Add 'verify'.
20396         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
20397         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20398         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20399         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20400         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20401         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20402         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20403
20404         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
20405
20406         Formerly the style was sometimes 2*X - 1, because the C standard
20407         was wrongly thought to disallow ?: in integral constant expressions.
20408         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
20409         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
20410         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
20411         * lib/stdint.in.h (_verify_intmax_size): Likewise.
20412         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
20413         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
20414         verify that time_t cannot be floating.
20415
20416 2010-10-08  Eric Blake  <eblake@redhat.com>
20417
20418         time: enforce recent POSIX ruling that time_t is integral
20419         * lib/time.in.h (__time_t_must_be_integral): Detect any
20420         problematic systems, allowing the rest of gnulib to assume POSIX.
20421
20422 2010-10-08  Jim Meyering  <meyering@redhat.com>
20423
20424         fdopendir: fix a bug on systems lacking openat and /proc support
20425         OpenBSD 4.7 is one such system.  The most noticeable effect was
20426         failure of any application making nontrivial use of fts: rm, du,
20427         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
20428           ./rm: traversal failed: `a': Bad file descriptor
20429         Debugging that, you see that even though FD 6 was closed just
20430         prior to the opendir call in fd_clone_opendir, its resulting
20431         dir->dd_fd was 8, rather than the expected value of 6:
20432
20433         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
20434         93                close (fd);
20435         (gdb) n
20436         94                dir = fd_clone_opendir (dupfd);
20437         (gdb) n
20438         95                saved_errno = errno;
20439         (gdb) p dir->dd_fd
20440         $11 = 8
20441
20442         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
20443         The problem is that on OpenBSD, fd_clone_opendir has to resort
20444         to using the old-style save/restore CWD mechanism, due to its
20445         lack of openat/proc support, and *that* would steal the FD (6)
20446         that opendir was supposed to use.
20447
20448         The fix is to squirrel away the desired FD so that save_cwd uses a
20449         different one, and then free the dest FD right before calling opendir.
20450         That guarantees opendir will use the required file descriptor.
20451
20452         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
20453
20454 2010-10-08  Bruno Haible  <bruno@clisp.org>
20455
20456         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
20457         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
20458
20459 2010-10-08  Bruno Haible  <bruno@clisp.org>
20460
20461         nanosleep: Make replacement POSIX compliant.
20462         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
20463         is out of range.
20464         Reported by Jim Meyering.
20465
20466 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
20467
20468         bootstrap: add hook for altering gnulib.mk, for Bison
20469         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
20470         the Bison bootstrapping process can rewrite file names and variables
20471         in this file before later parts of 'bootstrap' use the file.
20472         Bison wants to include lib/gnulib.mk from the top-level makefile,
20473         so it needs the file names in this file to be relative to the top
20474         level, not relative to lib; plus it needs variable names to be
20475         rewritten.
20476         (slurp): Use the new function.
20477
20478         bootstrap: reformat for readability
20479         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
20480
20481 2010-10-08  Eric Blake  <eblake@redhat.com>
20482
20483         docs: update cygwin progress
20484         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
20485         1.7.7.
20486         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
20487         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
20488         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
20489         * doc/posix-functions/carg.texi (carg): Likewise.
20490         * doc/posix-functions/cargf.texi (cargf): Likewise.
20491         * doc/posix-functions/casin.texi (casin): Likewise.
20492         * doc/posix-functions/casinf.texi (casinf): Likewise.
20493         * doc/posix-functions/casinh.texi (casinh): Likewise.
20494         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
20495         * doc/posix-functions/catan.texi (catan): Likewise.
20496         * doc/posix-functions/catanf.texi (catanf): Likewise.
20497         * doc/posix-functions/catanh.texi (catanh): Likewise.
20498         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
20499         * doc/posix-functions/ccos.texi (ccos): Likewise.
20500         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
20501         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
20502         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
20503         * doc/posix-functions/cexp.texi (cexp): Likewise.
20504         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
20505         * doc/posix-functions/cimag.texi (cimag): Likewise.
20506         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
20507         * doc/posix-functions/clog.texi (clog): Likewise.
20508         * doc/posix-functions/clogf.texi (clogf): Likewise.
20509         * doc/posix-functions/conj.texi (conj): Likewise.
20510         * doc/posix-functions/conjf.texi (conjf): Likewise.
20511         * doc/posix-functions/cpow.texi (cpow): Likewise.
20512         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
20513         * doc/posix-functions/cproj.texi (cproj): Likewise.
20514         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
20515         * doc/posix-functions/creal.texi (creal): Likewise.
20516         * doc/posix-functions/crealf.texi (crealf): Likewise.
20517         * doc/posix-functions/csin.texi (csin): Likewise.
20518         * doc/posix-functions/csinf.texi (csinf): Likewise.
20519         * doc/posix-functions/csinh.texi (csinh): Likewise.
20520         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
20521         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
20522         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
20523         * doc/posix-functions/ctan.texi (ctan): Likewise.
20524         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
20525         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
20526         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
20527         * doc/posix-headers/complex.texi (complex.h): Likewise.
20528
20529 2010-10-07  Jim Meyering  <meyering@redhat.com>
20530
20531         parse-datetime: avoid compilation failure on OpenBSD 4.7
20532         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
20533         This works around a compilation failure on OpenBSD 4.7:
20534         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
20535
20536 2010-10-07  Eric Blake  <eblake@redhat.com>
20537
20538         docs: update cygwin progress
20539         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
20540         1.7.6.
20541         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
20542         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
20543         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
20544         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
20545         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
20546         Likewise.
20547         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
20548         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
20549         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
20550         Likewise.
20551         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
20552         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
20553         Likewise.
20554         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
20555         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
20556         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
20557         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
20558         Likewise.
20559         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
20560         Likewise.
20561         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
20562
20563         docs: update parse-datetime history
20564         * doc/parse-datetime.texi (Authors of parse_datetime): Better
20565         documentation of this function's history and alternatives.
20566
20567         cygwin: use more robust version check
20568         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
20569         exclude an eventual cygwin 1.9.1.
20570         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20571         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
20572         (gl_FUNC_STRCASESTR): Likewise.
20573         Reported by Bruno Haible.
20574
20575 2010-10-06  Bruno Haible  <bruno@clisp.org>
20576
20577         string, sys_select: Avoid #including large headers unless necessary.
20578         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
20579         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
20580         OSF/1, BeOS, Haiku.
20581         Reported by Jim Meyering.
20582
20583 2010-10-05  Eric Blake  <eblake@redhat.com>
20584
20585         memmem, strstr, strcasestr: fix bug with long periodic needle
20586         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
20587         periodic needle having false positive.
20588         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
20589         and cygwin 1.7.7.
20590         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
20591         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
20592         (gl_FUNC_STRCASESTR): Likewise.
20593         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20594         * tests/test-memmem.c (main): Expose the bug.
20595         * tests/test-strcasestr.c (main): Likewise.
20596         * tests/test-strstr.c (main): Likewise.
20597         * tests/test-c-strcasestr.c (main): Likewise.
20598         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
20599         * doc/posix-functions/strstr.texi (strstr): Likewise.
20600         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
20601         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
20602
20603 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20604
20605         parse-datetime: do some more renaming
20606         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
20607         parse_datetime, not get_date.  Mention the renaming.
20608         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
20609         in comments.
20610         * m4/bison.m4: Likewise.
20611
20612 2010-10-05  Eric Blake  <eblake@redhat.com>
20613
20614         parse-datetime: better name than get_date
20615         * NEWS: Reword the deprecation notice.
20616         * modules/get_date: Rename to modules/parse-datetime.
20617         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
20618         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
20619         * lib/get_date.y: Rename to lib/parse-datetime.y.
20620         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
20621         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
20622         * doc/getdate.texi: Provide fallback wrapper.
20623         * lib/getdate.h: Move guts, and wrap...
20624         * lib/parse-datetime.h: ...new file.
20625         * lib/parse-datetime.y (get_date): Rename...
20626         (parse_datetime): ...to this.
20627         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
20628         (gl_PARSE_DATETIME): ...to this.
20629         * doc/posix-functions/getdate.texi (get_date): Provide fallback
20630         documentation.
20631         * modules/getdate (Files): Provide fallback docs and header.
20632         (Notice, Depends-on): Update references.
20633         * tests/test-parse-datetime.c: Likewise.
20634         * DEPENDENCIES: Likewise.
20635         * MODULES.html.sh (Date and time <time.h>): Likewise.
20636         * doc/parse-datetime.texi (Date input formats)
20637         (Authors of parse_datetime): Likewise.
20638         * modules/parse-datetime (Files, configure.ac, Makefile.am)
20639         (Include): Likewise.
20640         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
20641         * gnulib-tool: Likewise.
20642         * m4/bison.m4 (gl_BISON): Likewise.
20643         Suggested by Bruno Haible.
20644
20645 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
20646
20647         more ports to Solaris tr, which needs [] around ranges
20648         * gnulib-tool: Solaris tr needs [] around ranges.
20649         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
20650         * tests/test-pipe-filter-gi1.c (main): Likewise.
20651         * tests/test-pipe-filter-ii1.c (main): Likewise.
20652
20653 2010-10-05  Eric Blake  <eblake@redhat.com>
20654
20655         bootstrap: fix Solaris regression
20656         * build-aux/bootstrap (check_versions): Solaris tr still needs []
20657         around ranges.
20658         Reported by Pádraig Brady.
20659
20660         bootstrap: work with pkg-config
20661         * build-aux/bootstrap (check_versions): Also transliterate - in
20662         prerequisite name.
20663         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
20664         prerequisites that were already found, to avoid confusion.
20665         Reported by Justin Clift.
20666
20667         faccessat: remove unused wrappers
20668         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
20669         presence of these wrappers dragged in -lgen on Solaris.
20670         Reported by Clemens Brogi; fix suggested by Paul Eggert.
20671
20672 2010-10-05  Jim Meyering  <meyering@redhat.com>
20673
20674         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
20675         * Makefile (sc_pragma_columns): New syntax-check rule.
20676
20677 2010-10-04  Bruno Haible  <bruno@clisp.org>
20678
20679         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
20680         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
20681         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
20682         Reported by Bruce Korb and Eric Blake.
20683
20684 2010-10-04  Bruno Haible  <bruno@clisp.org>
20685
20686         threadlib: Make option --with-libpth-prefix work.
20687         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
20688         use $LIBPTH, not just -lpth.
20689
20690 2010-10-04  Bruno Haible  <bruno@clisp.org>
20691
20692         Avoid line length limitation from HP NonStop system header files.
20693         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
20694         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
20695         * lib/ctype.in.h: Likewise.
20696         * lib/dirent.in.h: Likewise.
20697         * lib/errno.in.h: Likewise.
20698         * lib/fcntl.in.h: Likewise.
20699         * lib/float.in.h: Likewise.
20700         * lib/getopt.in.h: Likewise.
20701         * lib/iconv.in.h: Likewise.
20702         * lib/inttypes.in.h: Likewise.
20703         * lib/langinfo.in.h: Likewise.
20704         * lib/locale.in.h: Likewise.
20705         * lib/math.in.h: Likewise.
20706         * lib/netdb.in.h: Likewise.
20707         * lib/netinet_in.in.h: Likewise.
20708         * lib/poll.in.h: Likewise.
20709         * lib/pthread.in.h: Likewise.
20710         * lib/pty.in.h: Likewise.
20711         * lib/sched.in.h: Likewise.
20712         * lib/se-selinux.in.h: Likewise.
20713         * lib/search.in.h: Likewise.
20714         * lib/signal.in.h: Likewise.
20715         * lib/spawn.in.h: Likewise.
20716         * lib/stdarg.in.h: Likewise.
20717         * lib/stddef.in.h: Likewise.
20718         * lib/stdint.in.h: Likewise.
20719         * lib/stdio.in.h: Likewise.
20720         * lib/stdlib.in.h: Likewise.
20721         * lib/string.in.h: Likewise.
20722         * lib/strings.in.h: Likewise.
20723         * lib/sys_file.in.h: Likewise.
20724         * lib/sys_ioctl.in.h: Likewise.
20725         * lib/sys_select.in.h: Likewise.
20726         * lib/sys_socket.in.h: Likewise.
20727         * lib/sys_stat.in.h: Likewise.
20728         * lib/sys_time.in.h: Likewise.
20729         * lib/sys_times.in.h: Likewise.
20730         * lib/sys_utsname.in.h: Likewise.
20731         * lib/sys_wait.in.h: Likewise.
20732         * lib/sysexits.in.h: Likewise.
20733         * lib/termios.in.h: Likewise.
20734         * lib/time.in.h: Likewise.
20735         * lib/unistd.in.h: Likewise.
20736         * lib/wchar.in.h: Likewise.
20737         * lib/wctype.in.h: Likewise.
20738         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
20739         * modules/ctype (Makefile.am): Likewise.
20740         * modules/dirent (Makefile.am): Likewise.
20741         * modules/errno (Makefile.am): Likewise.
20742         * modules/fcntl-h (Makefile.am): Likewise.
20743         * modules/float (Makefile.am): Likewise.
20744         * modules/getopt-posix (Makefile.am): Likewise.
20745         * modules/iconv-h (Makefile.am): Likewise.
20746         * modules/inttypes (Makefile.am): Likewise.
20747         * modules/langinfo (Makefile.am): Likewise.
20748         * modules/locale (Makefile.am): Likewise.
20749         * modules/math (Makefile.am): Likewise.
20750         * modules/netdb (Makefile.am): Likewise.
20751         * modules/netinet_in (Makefile.am): Likewise.
20752         * modules/poll-h (Makefile.am): Likewise.
20753         * modules/pthread (Makefile.am): Likewise.
20754         * modules/pty (Makefile.am): Likewise.
20755         * modules/sched (Makefile.am): Likewise.
20756         * modules/search (Makefile.am): Likewise.
20757         * modules/selinux-h (Makefile.am): Likewise.
20758         * modules/signal (Makefile.am): Likewise.
20759         * modules/spawn (Makefile.am): Likewise.
20760         * modules/stdarg (Makefile.am): Likewise.
20761         * modules/stddef (Makefile.am): Likewise.
20762         * modules/stdint (Makefile.am): Likewise.
20763         * modules/stdio (Makefile.am): Likewise.
20764         * modules/stdlib (Makefile.am): Likewise.
20765         * modules/string (Makefile.am): Likewise.
20766         * modules/strings (Makefile.am): Likewise.
20767         * modules/sys_file (Makefile.am): Likewise.
20768         * modules/sys_ioctl (Makefile.am): Likewise.
20769         * modules/sys_select (Makefile.am): Likewise.
20770         * modules/sys_socket (Makefile.am): Likewise.
20771         * modules/sys_stat (Makefile.am): Likewise.
20772         * modules/sys_time (Makefile.am): Likewise.
20773         * modules/sys_times (Makefile.am): Likewise.
20774         * modules/sys_utsname (Makefile.am): Likewise.
20775         * modules/sys_wait (Makefile.am): Likewise.
20776         * modules/sysexits (Makefile.am): Likewise.
20777         * modules/termios (Makefile.am): Likewise.
20778         * modules/time (Makefile.am): Likewise.
20779         * modules/unistd (Makefile.am): Likewise.
20780         * modules/wchar (Makefile.am): Likewise.
20781         * modules/wctype (Makefile.am): Likewise.
20782
20783 2010-10-04  Bruno Haible  <bruno@clisp.org>
20784
20785         read-file tests: Avoid a test failure on NonStop Kernel.
20786         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
20787         a regular file.
20788         Reported by Joachim Schmitz <schmitz@hp.com>.
20789
20790 2010-10-03  Bruno Haible  <bruno@clisp.org>
20791
20792         gnulib-tool: Fixes for --create-testdir with --libtool.
20793         * gnulib-tool (func_get_automake_snippet): Don't augment
20794         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
20795         an executable.
20796         (func_create_testdir): Handle module 'alloca' like func_import.
20797         Reported by Bruce Korb <bruce.korb@gmail.com>.
20798
20799 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
20800
20801         Avoid some lines longer than 80 characters.
20802         * lib/stdint.in.h: Break long comment lines.
20803         * lib/math.in.h: Likewise.
20804         (_GL_NUM_UINT_WORDS): New macro, for readability.
20805         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
20806         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
20807         * lib/stdlib.in.h: Likewise.
20808         * lib/spawn.in.h: Likewise.
20809         * lib/sys_socket.in.h: Update an URL.
20810         * lib/sys_stat.in.h: Break long line.
20811
20812 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
20813
20814         Improve pmccabe2html.
20815         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
20816         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
20817         when the sources change. Remove the line in the HTML about "Used
20818         ranges" (which implied that there might be other unused ranges),
20819         rename "Resume" to "Summary" (easier to understand for more users).
20820         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
20821         styles, and some unnecessary blank lines.
20822
20823 2010-10-03  Bruno Haible  <bruno@clisp.org>
20824             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
20825
20826         acl: Add support for ACLs on NonStop Kernel.
20827         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
20828         Check whether the function aclsort() exists.
20829         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
20830         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
20831         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20832         (acl_nontrivial [HAVE_ACLSORT]: New function.
20833         (file_has_acl): Implement for NonStop Kernel.
20834         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20835         (qset_acl): Implement for NonStop Kernel.
20836         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
20837         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
20838         (main): Implement for NonStop Kernel.
20839         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
20840         Kernel. Handle this flavor.
20841         * tests/test-set-mode-acl.sh: Likewise.
20842         * tests/test-copy-acl.sh: Likewise.
20843         * tests/test-copy-file.sh: Likewise.
20844
20845 2010-10-03  Bruno Haible  <bruno@clisp.org>
20846
20847         Info about ACLs on NonStop Kernel.
20848         * doc/acl-resources.txt: Add info about NonStop Kernel.
20849         References by Joachim Schmitz <schmitz@hp.com>.
20850
20851 2010-10-02  Bruno Haible  <bruno@clisp.org>
20852
20853         Define missing EDQUOT on NonStop Kernel.
20854         * lib/errno.in.h (EDQUOT): Assign a value if missing.
20855         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
20856         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
20857         missing.
20858         * doc/posix-headers/errno.texi: Mention the NSK bug.
20859         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
20860         Reported by Joachim Schmitz <schmitz@hp.com>.
20861
20862 2010-10-02  Bruno Haible  <bruno@clisp.org>
20863
20864         Update doc for POSIX:2008.
20865         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
20866         Update URL of POSIX specification.
20867
20868 2010-10-02  Bruno Haible  <bruno@clisp.org>
20869
20870         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
20871         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
20872         from gnulib, not from Automake.
20873
20874 2010-10-02  Bruno Haible  <bruno@clisp.org>
20875
20876         New module 'system-posix'.
20877         * modules/system-posix: New file.
20878         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
20879         module is present.
20880         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
20881         GNULIB_SYSTEM_POSIX.
20882         * modules/stdlib (Depends-on): Remove sys_wait.
20883         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
20884         * doc/posix-functions/system.texi: Mention the new module.
20885         * doc/posix-headers/stdlib.texi: Likewise.
20886         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
20887         define test_sys_wait_macros to a no-op.
20888         Reported by Sam Steingold <sds@gnu.org>.
20889
20890 2010-09-30  Bruno Haible  <bruno@clisp.org>
20891
20892         More renaming from 'getdate' to 'get_date'.
20893         * doc/get_date.texi: Renamed from doc/getdate.texi.
20894         * modules/get_date (Files): Update.
20895         * MODULES.html.sh (Date and time <time.h>): Update.
20896         * DEPENDENCIES: Update.
20897         * gnulib-tool: Update comment.
20898         * m4/bison.m4 (gl_BISON): Likewise.
20899         * m4/get_date.m4 (gl_GET_DATE): Likewise.
20900
20901 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
20902
20903         bootstrap: support ACLOCAL_FLAGS during aclocal
20904         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
20905         can add additional -I dir for third-party .m4 files.
20906
20907 2010-09-30  Eric Blake  <eblake@redhat.com>
20908
20909         bootstrap: use glibtoolize on MacOS
20910         * build-aux/bootstrap (check_versions): Convert libtool into
20911         libtoolize.
20912         (tool search): Move libtool check earlier, and look for
20913         glibtoolize for MacOS.
20914         (gnulib_tool_options): Auto-add --libtool when appropriate.
20915         Reported by Justin Clift.
20916
20917         poll: fix typo that broke test on MacOS
20918         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
20919         Reported by Justin Clift.
20920
20921         getdate: rename to get_date
20922         Note: getdate.h is not renamed, to minimize client impact.
20923         * modules/getdate: Mark obsolete.  Move old contents...
20924         * modules/get_date: ...to new module name.
20925         * modules/getdate-tests: Move...
20926         * modules/get_date-tests: ...here.
20927         * m4/getdate.m4: Move...
20928         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
20929         * lib/getdate.y: Move...
20930         * lib/get_date.y: ...here.
20931         * tests/test-getdate.c: Move...
20932         * tests/test-get_date.c: ...here.
20933         * doc/posix-functions/getdate.texi (getdate): Update name.
20934         * NEWS: Mention the change.
20935
20936 2010-09-29  Bruno Haible  <bruno@clisp.org>
20937
20938         Separate the module 'waitpid' from the module 'sys_wait'.
20939         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
20940         present.
20941         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
20942         gl_MODULE_INDICATOR_FOR_TESTS.
20943         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
20944         * modules/sys_wait (Depends-on): Remove waitpid.
20945         (Makefile.am): Substitute GNULIB_WAITPID.
20946         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
20947         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
20948         signature only if the 'waitpid' module is present.
20949         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
20950         * NEWS: Mention the change.
20951         * modules/grantpt (Depends-on): Add waitpid.
20952         * modules/wait-process (Depends-on): Likewise.
20953
20954 2010-09-29  Bruno Haible  <bruno@clisp.org>
20955
20956         More tests for module 'sys_wait'.
20957         * modules/sys_wait-c++-tests: New file.
20958         * tests/test-sys_wait-c++.cc: New file.
20959         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
20960         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
20961
20962 2010-09-29  Bruno Haible  <bruno@clisp.org>
20963
20964         New module 'waitpid'.
20965         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
20966         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
20967         Don't include <process.h>.
20968         (waitpid): Declare only, using modern idiom.
20969         * m4/waitpid.m4: New file.
20970         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
20971         * modules/waitpid: New file.
20972         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
20973         (Makefile.am): Update.
20974         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
20975
20976 2010-09-28  Bruno Haible  <bruno@clisp.org>
20977
20978         poll: Assume ANSI C.
20979         * lib/poll.c (poll): Use an ANSI C declaration.
20980
20981 2010-09-28  Bruno Haible  <bruno@clisp.org>
20982
20983         poll-h: Create poll.h on all platforms.
20984         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
20985         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
20986         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
20987         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
20988         (gl_REPLACE_POLL_H): Don't set POLL_H.
20989         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
20990         * modules/poll-h (Depends-on): Add include_next.
20991         (Makefile.am): Create poll.h unconditionally. Substitute also
20992         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
20993
20994 2010-09-28  Bruno Haible  <bruno@clisp.org>
20995
20996         Tests for module 'poll-h'.
20997         * modules/poll-h-c++-tests: New file.
20998         * tests/test-poll-h-c++.cc: New file.
20999
21000         Tests for module 'poll-h'.
21001         * modules/poll-h-tests: New file.
21002         * tests/test-poll-h.c: New file.
21003
21004 2010-09-28  Bruno Haible  <bruno@clisp.org>
21005
21006         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
21007         * modules/poll-h (Depends-on): Add 'extensions'.
21008
21009 2010-09-28  Bruno Haible  <bruno@clisp.org>
21010
21011         New module 'poll-h'.
21012         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
21013         (poll): Use modern idiom.
21014         * modules/poll-h: New file.
21015         * modules/poll (Files): Remove lib/poll.in.h.
21016         (Depends-on): Add poll-h.
21017         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
21018         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
21019         * m4/poll_h.m4: New file.
21020         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
21021         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
21022         and invoke gl_REPLACE_POLL_H.
21023         * lib/poll.c: Use common idiom.
21024         * tests/test-poll.c: Likewise.
21025         * doc/posix-headers/poll.texi: Mention the poll-h module.
21026         Suggested by Eric Blake.
21027
21028 2010-09-26  Bruno Haible  <bruno@clisp.org>
21029
21030         sys_wait: Implement WSTOPSIG.
21031         * lib/sys_wait.in.h (WSTOPSIG): New macro.
21032         Reported by Simon Josefsson.
21033
21034 2010-09-26  Simon Josefsson  <simon@josefsson.org>
21035
21036         stdlib, sys_wait: Avoid compilation error on mingw.
21037         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
21038
21039 2010-09-26  Bruno Haible  <bruno@clisp.org>
21040
21041         stdlib tests: Avoid code duplication.
21042         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
21043         * modules/sys_wait-tests (Files): Likewise.
21044         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
21045         * tests/test-stdlib.c: Include test-sys_wait.h.
21046         (main): Invoke test_sys_wait_macros.
21047         * tests/test-sys_wait.c: Include test-sys_wait.h.
21048         (main): Invoke test_sys_wait_macros.
21049
21050 2010-09-25  Simon Josefsson  <simon@josefsson.org>
21051
21052         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
21053         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
21054         sure Windows sockets are working before calling getaddrinfo.
21055         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
21056         * doc/gnulib.texi (Windows sockets): Fix typo.
21057
21058 2010-09-25  Bruno Haible  <bruno@clisp.org>
21059
21060         Tests for module 'regex-quote'.
21061         * modules/regex-quote-tests: New file.
21062         * tests/test-regex-quote.c: New file.
21063
21064         New module 'regex-quote'.
21065         * lib/regex-quote.h: New file.
21066         * lib/regex-quote.c: New file.
21067         * modules/regex-quote: New file.
21068         Suggested by Reuben Thomas <rrt@sc3d.org>.
21069
21070 2010-09-24  Bruno Haible  <bruno@clisp.org>
21071
21072         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
21073         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
21074
21075 2010-09-23  Bruno Haible  <bruno@clisp.org>
21076
21077         setenv: Relax license.
21078         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
21079         Blake.
21080         Requested by Eric Blake.
21081
21082 2010-09-22  Bruno Haible  <bruno@clisp.org>
21083
21084         termios: Relax license.
21085         * modules/termios (License): Change to LGPLv2+.
21086         Requested by Eric Blake.
21087
21088 2010-09-22  Bruno Haible  <bruno@clisp.org>
21089
21090         threadlib: Allow the package to change the default to 'no'.
21091         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
21092         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
21093         Reported by Paul Eggert.
21094
21095 2010-09-22  Pádraig Brady  <P@draigbrady.com>
21096             Bruno Haible  <bruno@clisp.org>
21097
21098         Fix endless loop in mbmemcasecoll.
21099         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
21100         byte.
21101         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
21102
21103 2010-09-22  Bruno Haible  <bruno@clisp.org>
21104
21105         Tests for module 'memcoll'.
21106         * modules/memcoll-tests: New file.
21107         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
21108
21109         memcoll, xmemcoll: Clarify size vs. length.
21110         * modules/memcoll.c (memcoll0): Clarify specification.
21111         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
21112         passed to collate_error.
21113
21114 2010-09-22  Bruno Haible  <bruno@clisp.org>
21115
21116         Tests for module 'memcasecmp'.
21117         * modules/memcasecmp-tests: New file.
21118         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
21119
21120 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
21121
21122         * lib/pthread.in.h: Add split double-inclusion guard, and include
21123         system <pthread.h> if there is one.  Use @@-style as in other
21124         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
21125         pthread.h doesn't.
21126         (pthread_mutexattr_destroy, pthread_mutexattr_init):
21127         (pthread_mutexattr_settype, pthread_mutex_trylock):
21128         New static inline functions, if there's no system <pthread.h>.
21129         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
21130         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
21131         Approximate with mutexes if the system lacks spinlocks, as in
21132         MacOS.
21133         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
21134         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
21135         @@-style.  Check for spinlocks separately.
21136         (gl_PTHREAD_DEFAULTS): New macro.
21137         * modules/pthread: Redo to use a more typical style for in.h files.
21138
21139 2010-09-21  Eric Blake  <eblake@redhat.com>
21140
21141         net_if: enhance tests
21142         * tests/test-net_if.c (main): Move signature checks earlier.
21143         Print failures to stderr.
21144         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
21145         Document the bug that we do not yet fix.
21146
21147 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
21148
21149         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
21150         about gnulib, not GSS.
21151
21152 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
21153
21154         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
21155         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
21156         for Emacs.
21157         * build-aux/pmccabe2html: Make Makefile.am example code more
21158         cut-and-paste friendly.
21159
21160 2010-09-21  Simon Josefsson  <simon@josefsson.org>
21161
21162         * tests/test-net_if.c: New file.
21163         * modules/net_if-tests: New file.
21164
21165 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
21166
21167         pthread: add pthread_spin_destroy
21168         * lib/pthread.in.h (pthread_spin_destroy): New function.
21169
21170 2010-09-19  Bruno Haible  <bruno@clisp.org>
21171
21172         gnulib-tool: Fix --help output.
21173         * gnulib-tool (func_usage): Fix help message.
21174         Reported by Reuben Thomas <rrt@sc3d.org>.
21175
21176 2010-09-18  Jim Meyering  <meyering@redhat.com>
21177
21178         maint.mk: avoid unexpanded \n in two diagnostics
21179         * top/maint.mk (sc_prohibit_always_true_header_tests):
21180         Don't use a literal \n in a halt=... assignment.  It would not be
21181         expanded, and the two \n bytes would appear in the diagnostic output
21182         rather than the desired newline.  Use halt=$$(printf ... instead.
21183         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
21184
21185 2010-09-18  Bruno Haible  <bruno@clisp.org>
21186
21187         netinet_in: Doc tweak.
21188         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
21189         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21190
21191 2010-09-18  Jim Meyering  <meyering@redhat.com>
21192
21193         init.sh: correct an outdated comment
21194         * tests/init.sh (create_exe_shims_):  s/function/alias/
21195
21196         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
21197         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
21198         a file named "*.exe" is removed between the glob expansion and the
21199         processing of that oddly named file.
21200
21201 2010-09-17  Eric Blake  <eblake@redhat.com>
21202
21203         mirbsd: add some more support
21204         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
21205         in BSD family.
21206         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
21207         devices as OpenBSD.
21208         * m4/host-os.m4 (mirbsd): Add MirBSD.
21209
21210         tests: fix unportable assumption on sys/wait.h
21211         * tests/test-sys_wait.c (main): Relax test.
21212         * tests/test-stdlib.c (main): Likewise.
21213
21214         init.sh: accomodate directory with no .exes
21215         * tests/init.sh: Accomodate directory containing only scripts.
21216
21217         tests: avoid compiler warning
21218         * tests/test-stdlib.c (main): Use the variable.
21219
21220         fdutimens, fdutimensat: update signature, again
21221         * lib/utimens.h (gl_futimens): Delete, and move signature...
21222         (fdutimens): ...here.
21223         (fdutimensat): Rearrange signature.
21224         (lutimensat): Rename variable for clarity.
21225         * lib/fdutimensat.c (fdutimensat): Update signature.
21226         * lib/utimens.c (fdutimens): Likewise.
21227         (gl_futimens): Delete.
21228         (utimens, lutimens): Update callers.
21229         * lib/futimens.c (futimens): Likewise.
21230         * tests/test-fdutimensat.c: Likewise.
21231         * tests/test-utimens.c: Likewise.
21232         * tests/test-futimens.h: Update comment.
21233         * NEWS: Mention this.
21234         Suggested by Paul Eggert.
21235
21236 2010-09-17  Bruno Haible  <bruno@clisp.org>
21237
21238         Take over the maintenance of some older macros from Autoconf.
21239         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
21240         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
21241         GNU Autoconf.
21242         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
21243         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
21244
21245 2010-09-17  Eric Blake  <eblake@redhat.com>
21246
21247         fdutimensat: drop atflag validation
21248         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
21249         with valid fd, to close a race scenario where futimens is
21250         unsupported and FILE was replaced by a symlink.
21251         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
21252         accordingly.
21253         Suggested by Paul Eggert.
21254
21255 2010-09-16  Bruno Haible  <bruno@clisp.org>
21256
21257         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
21258         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
21259
21260 2010-09-16  Bruno Haible  <bruno@clisp.org>
21261
21262         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
21263         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
21264         login_tty exists.
21265         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21266
21267 2010-09-16  Bruno Haible  <bruno@clisp.org>
21268
21269         login_tty: Make the replacement code work on BSD systems.
21270         * lib/login_tty.c: Include <sys/ioctl.h>.
21271         (login_tty): Use ioctl TIOCSCTTY when available.
21272         * modules/login_tty (Depends-on): Add sys_ioctl.
21273         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21274
21275 2010-09-16  Bruno Haible  <bruno@clisp.org>
21276
21277         login_tty: Stricter unit test.
21278         * modules/login_tty-tests (Depends-on): Add tcgetsid.
21279         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
21280         and tcgetsid() after login_tty.
21281         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21282
21283 2010-09-16  Bruno Haible  <bruno@clisp.org>
21284
21285         New module 'tcgetsid'.
21286         * lib/tcgetsid.c: New file.
21287         * m4/tcgetsid.m4: New file.
21288         * modules/tcgetsid: New file.
21289         * modules/termios (Depends-on): Add c++defs, warn-on-use.
21290         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
21291         GNULIB_TCGETSID, HAVE_TCGETSID.
21292         * lib/termios.in.h: Include <sys/types.h>.
21293         (tcgetsid): New declaration.
21294         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
21295         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
21296         * doc/posix-functions/tcgetsid.texi: Mention the new module.
21297         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
21298
21299 2010-09-16  Bruno Haible  <bruno@clisp.org>
21300
21301         Tests for module 'termios'.
21302         * modules/termios-c++-tests: New file.
21303         * modules/termios-tests: New file.
21304         * tests/test-termios-c++.cc: New file.
21305         * tests/test-termios.c: New file.
21306
21307         New module 'termios'.
21308         * modules/termios: New file.
21309         * lib/termios.in.h: New file.
21310         * m4/termios_h.m4: New file.
21311         * doc/posix-headers/termios.texi: Mention the new module.
21312
21313 2010-09-16  Eric Blake  <eblake@redhat.com>
21314
21315         fdutimensat: add an atflag parameter
21316         * lib/fdutimensat.c (fdutimensat): Add new parameter.
21317         * lib/utimens.h (fdutimensat): Update prototype.
21318         * tests/test-fdutimensat.c: Adjust test to match.
21319         * NEWS: Document the change.
21320         Suggested by Paul Eggert.
21321
21322 2010-09-16  Bruno Haible  <bruno@clisp.org>
21323
21324         Fix typos in comments.
21325         * lib/striconveh.h: Fix typo in comment.
21326         * lib/login_tty.c (login_tty): Likewise.
21327
21328 2010-09-15  Bruno Haible  <bruno@clisp.org>
21329
21330         stdlib: clarify MirBSD WEXITSTATUS bug
21331         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
21332         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21333
21334 2010-09-15  Eric Blake  <eblake@redhat.com>
21335
21336         stdlib: work around MirBSD WEXITSTATUS bug
21337         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
21338         * modules/stdlib (Depends-on): Add sys_wait.
21339         * tests/test-sys_wait.c (main): Enhance test.
21340         * tests/test-stdlib.c (main): Likewise.
21341         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
21342
21343         docs: mention MacOS issue with WEXITSTATUS(constant)
21344         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
21345         issue.
21346         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
21347
21348         strnlen: add tests
21349         * modules/strnlen-tests: New file.
21350         * tests/test-strnlen.c: Likewise.
21351
21352 2010-09-14  Bruno Haible  <bruno@clisp.org>
21353
21354         unistr/base: Avoid link errors when module 'libunistring' is also used.
21355         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
21356         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
21357         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
21358         Declare also when HAVE_LIBUNISTRING is set.
21359         Reported by Pádraig Brady <P@draigbrady.com>.
21360
21361 2010-09-14  Eric Blake  <eblake@redhat.com>
21362
21363         test-rawmemchr: make more robust
21364         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
21365         (Depends-on, configure.ac): Add needed prerequisites to use it.
21366         * modules/memchr-tests (Files, Depends-on, configure.ac):
21367         Likewise, to avoid implicit reliance on memchr module prereqs.
21368         * tests/test-memchr.c (main): Ensure proper masking.
21369         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
21370         reads.
21371
21372         memchr: detect glibc Alpha bug
21373         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
21374         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
21375         Alpha.
21376         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
21377         * tests/test-memchr.c (main): Enhance test.
21378         Reported by Nelson H. F. Beebe.
21379
21380 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21381
21382         fts, getcwd, glob: audit for dirfd returning -1
21383         * lib/fts.c (opendir): Remove #define; no longer used.
21384         (opendirat): New arg PDIR_FD.  All callers changed.
21385         (fts_build, _opendir2): Use new opendirat to avoid the need for
21386         dirfd, or for checking whether dirfd returns a negative value.
21387         Don't use opendir; always use openat followed by fdopendir.
21388         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
21389         it.
21390         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
21391         returns -1 here.
21392         * modules/fts (Depends-on): Remove dirfd.
21393         * modules/getcwd (Depends-on): Likewise.
21394
21395 2010-09-13  Eric Blake  <eblake@redhat.com>
21396
21397         float: fix broken MirBSD header
21398         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
21399         * doc/posix-headers/float.texi (float.h): Document it.
21400
21401 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21402
21403         fts: use O_NOFOLLOW to avoid race condition when opening a directory
21404         * lib/fts.c (opendirat): New arg extra_flags.
21405         (__opendir2): Use it to avoid following symlinks when opening
21406         a directory, if symlinks are not supposed to be followed.  See
21407         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
21408
21409         fdopendir: preserve argument fd before returning
21410         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
21411         (fdopendir_with_dup, fd_clone_opendir): New static functions.
21412         (fdopendir): Use them, arranging for FD to be open to the same
21413         directory that it was when it started.  (It might be temporarily
21414         closed while fdopendir is running, so this not thread- or
21415         signal-safe.)  Be careful to do the right thing even when file
21416         descriptors are scarce and dup fails with errno == EMFILE.  See
21417         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
21418
21419 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
21420
21421         regex: Pass the system regex if its only problem is 32-bit regoff_t.
21422         * NEWS: Document change.
21423         * m4/regex.m4: Disable test for regoff_t size.
21424
21425 2010-09-13  Jim Meyering  <meyering@redhat.com>
21426
21427         fts: don't operate on an invalid file descriptor after failed dup
21428         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
21429         negative file descriptor.
21430
21431 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
21432
21433         savedir: add streamsavedir, deprecate fdsavedir
21434         * NEWS: Mention deprecation of fdsavedir.
21435         * lib/savedir.c (streamsavedir): New extern function, whose name
21436         ends in "savedir" to be consistent with the others.  This differs
21437         from savedirstream in that it doesn't close its argument.  The
21438         next version of GNU tar will use this instead of fdsavedir, to
21439         avoid some race conditions and conserve file descriptors.
21440         (savedirstream): Reimplement as a wrapper around streamsavedir.
21441         (fdsavedir): Add a comment deprecating this function.  As far as
21442         I know, only GNU tar used it, and GNU tar doesn't need it any more.
21443         * lib/savedir.h (streamsavedir): New decl.
21444         (fdsavedir): Add a comment deprecating this.
21445
21446 2010-09-10  Bruno Haible  <bruno@clisp.org>
21447
21448         langinfo: Fix last commit.
21449         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
21450         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
21451         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21452
21453 2010-09-10  Bruno Haible  <bruno@clisp.org>
21454
21455         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
21456         * lib/progreloc.c (O_EXEC): Define fallback.
21457
21458 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
21459
21460         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
21461         * NEWS: Document recent changes to fcntl-h.
21462         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
21463         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
21464         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
21465         Similarly for O_SEARCH; this last was already true, but not documented.
21466         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
21467         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
21468         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
21469         Likewise.
21470         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
21471         is zero, not whether it is defined.
21472         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
21473         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
21474         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
21475
21476 2010-09-10  Bruno Haible  <bruno@clisp.org>
21477
21478         langinfo, nl_langinfo: Fix for IRIX 5.3.
21479         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
21480         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
21481         HAVE_LANGINFO_YESEXPR.
21482         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
21483         HAVE_LANGINFO_YESEXPR.
21484         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
21485         HAVE_LANGINFO_T_FMT_AMPM is 0.
21486         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
21487         HAVE_LANGINFO_YESEXPR is 0.
21488         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
21489         NOEXPR.
21490         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
21491         * doc/posix-functions/nl_langinfo.texi: Likewise.
21492         Reported by Eric Blake.
21493
21494 2010-09-10  Bruno Haible  <bruno@clisp.org>
21495
21496         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
21497         * doc/glibc-functions/login_tty.texi: Mention the include file problem
21498         on FreeBSD 8.0 and OpenBSD 4.6.
21499         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
21500         * m4/pty_h.m4 (gl_PTY_H): Likewise.
21501         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
21502         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
21503         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
21504         ac_includes_default.
21505         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
21506
21507 2010-09-09  Eric Blake  <eblake@redhat.com>
21508
21509         strsignal: work around NetBSD bug
21510         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
21511         * lib/string.in.h (includes): Likewise.
21512         * doc/posix-functions/strsignal.texi (strsignal): Document the
21513         bug.
21514         Reported by Nelson H. F. Beebe.
21515
21516         gnulib-tool: work with NetBSD /bin/sh
21517         * gnulib-tool (func_cache_var, func_cache_lookup_module)
21518         (func_get_description, func_get_comment, func_get_status)
21519         (func_get_notice, func_get_applicability, func_get_filelist)
21520         (func_get_dependencies, func_get_autoconf_early_snippet)
21521         (func_get_autoconf_snippet, func_get_automake_snippet)
21522         (func_get_include_directive, func_get_link_directive)
21523         (func_get_license, func_get_maintainer, func_import): Avoid
21524         shell syntax errors from parsing syntax extensions.
21525
21526 2010-09-09  Bruno Haible  <bruno@clisp.org>
21527
21528         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
21529         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
21530         a reliable way to determine whether the 'alias' command works.
21531
21532 2010-09-08  Jim Meyering  <meyering@redhat.com>
21533
21534         init.sh: penalize a set-x-impaired shell; don't disqualify it
21535         * tests/init.sh: Too many shells corrupt application stderr when
21536         you set -x, so we can't afford to disqualify them, since at least
21537         on Irix-6.5, that would disqualify all bourne shells.
21538         Instead, use a two-pass approach.
21539         On the first pass, try to find a shell that meets the stricter
21540         condition that set -x does not corrupt stderr.
21541         If no shell meets the stricter condition, retest each candidate
21542         shell, but without that extra condition.  Finally, when
21543         VERBOSE=yes is requested and set -x might cause trouble, simply
21544         issue a warning and refrain from enabling debug output.
21545
21546 2010-09-08  Eric Blake  <eblake@redhat.com>
21547
21548         unsetenv: fix OpenBSD bug
21549         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
21550         * doc/posix-functions/unsetenv.texi (unsetenv): Update
21551         documentation.
21552         Reported by Jim Meyering.
21553
21554         strtod: work around IRIX 6.5 bug
21555         * lib/strtod.c (strtod): Reparse number on shorter string if
21556         exponent parse was invalid.
21557         * tests/test-strtod.c (main): Add check for "0x1p 2".
21558         Reported by Tom G. Christensen.
21559
21560         getopt: optimize previous patch
21561         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
21562         empty variable.  Speed up awk script.
21563         Reported by Paolo Bonzini.
21564
21565 2010-09-08  Jim Meyering  <meyering@redhat.com>
21566
21567         test.sh: disqualify shells for which set -x corrupts stderr
21568         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
21569         and OpenBSD 4.7.  They make it so with "set -x", environment settings
21570         appear in stderr output.  For example, this command:
21571             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
21572         prints "P=1" on those two systems:
21573
21574 2010-09-08  Bruno Haible  <bruno@clisp.org>
21575
21576         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
21577         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
21578         commands, because some shells ignore redirections when there is an
21579         error in the command lookup.
21580         Reported by Eric Blake.
21581
21582 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
21583
21584         * lib/regex.h: Fix a mention of `regex_compile' (should be
21585         `re_compile_pattern').
21586         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
21587         (re_set_registers): Correct name of parameter in comment.
21588
21589         * doc/regex.texi: Add documentation for missing syntax flags.
21590         Remove commented-out documentation of defunct syntax option
21591         RE_NO_EMPTY_ALTS.
21592         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
21593         Add documentation of re_set_registers.
21594         Document trick to re-use a pattern buffer by setting fastmap manually.
21595         Update documentation of struct re_pattern_buffer per public members.
21596         Uncomment documentation of equivalence class operators and
21597         collating symbol operators, since they are now implemented,
21598         Explain leftmost-longest matching in relation to alternatives.
21599         Tidy documentation of substring matching.
21600         Remove POSIX documentation, which is done better in
21601         glibc, and refer the reader there. Keep BSD API documentation, as
21602         that is not readily available elsewhere.
21603
21604 2010-09-07  Eric Blake  <eblake@redhat.com>
21605
21606         getopt: handle POSIXLY_CORRECT set but not exported
21607         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
21608         export state of POSIXLY_CORRECT, due to bash set -o posix.
21609         Reported by Dustin J. Mitchell.
21610
21611 2010-09-05  Bruno Haible  <bruno@clisp.org>
21612
21613         gnulib-tool: Highlight the changed options.
21614         * gnulib-tool (func_usage): Display the --import, --add-import,
21615         --remove-import explanations in bold font.
21616
21617 2010-09-06  Karl Berry  <karl@gnu.org>
21618
21619         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
21620
21621 2010-09-05  Bruno Haible  <bruno@clisp.org>
21622
21623         uniwidth/width: Update comment.
21624         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
21625         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
21626
21627 2010-09-05  Bruno Haible  <bruno@clisp.org>
21628
21629         isinf, isnan: Relax license.
21630         * modules/isinf (License): Change from GPL to LGPL, with consent from
21631         Ben Pfaff.
21632         * modules/isnan (License): Likewise.
21633         Requested by Ludovic Courtès.
21634
21635 2010-09-04  Bruno Haible  <bruno@clisp.org>
21636
21637         gnulib-tool: Help migration from --import to --add-import or --update.
21638         * gnulib-tool: Emit a verbose error message when --import is used
21639         without any module name.
21640
21641 2010-09-04  Bruno Haible  <bruno@clisp.org>
21642
21643         Update doc about gnulib-tool.
21644         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
21645         'gnulib-tool --update' in more detail.
21646         Reported by Eric Blake.
21647
21648 2010-09-04  Bruno Haible  <bruno@clisp.org>
21649
21650         gnulib-tool: Change --import. New options --add/remove-import.
21651         * gnulib-tool: New options --add-import, --remove-import.
21652         (func_usage): Document them.
21653         (have_associative): Define always.
21654         (func_import): In import mode, don't merge the specified settings with
21655         the cached settings. Implement remove-import mode.
21656         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
21657         Explain when to use them versus --import.
21658         (Simple update): Use --add-import instead of --import.
21659         * NEWS: Mention the change.
21660
21661 2010-09-04  Bruno Haible  <bruno@clisp.org>
21662
21663         * doc/gnulib-tool.texi (Initial import): Update paragraph about
21664         separate gnulib.mk.
21665
21666 2010-09-04  Bruno Haible  <bruno@clisp.org>
21667
21668         gnulib-tool: Don't talk about CVS any more.
21669         * gnulib-tool (func_usage, func_import): Write "version control"
21670         instead of CVS.
21671
21672 2010-09-04  Jim Meyering  <meyering@redhat.com>
21673
21674         maint.mk: avoid obscure sc_copyright_check failure in coreutils
21675         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
21676         false positives (whose names may be ill-chosen) when searching
21677         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
21678         would cause a false-positive.
21679
21680         avoid coreutils "make distcheck" failure
21681         Coreutils tests with an absolute build directory name that contains
21682         a space.  Not quoting this directory name caused a failure.
21683         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
21684         * tests/test-vc-list-files-cvs.sh: Likewise.
21685
21686 2010-09-04  Bruno Haible  <bruno@clisp.org>
21687
21688         gnulib-tool: Avoid error when run in a package without Makefile.am.
21689         * gnulib-tool: When collecting the m4dirs in a package that does not
21690         have a Makefile.am, eliminate those directories that contain no
21691         gnulib-cache.m4. Fix expression that counts these directories.
21692
21693 2010-09-04  Bruno Haible  <bruno@clisp.org>
21694
21695         update-copyright test: Improve output when perl is missing or too old.
21696         * tests/test-update-copyright.sh: Move test of Perl version down after
21697         the test whether Perl exists. Provide an explanation relating Perl's
21698         error message to Automake's SKIP: message.
21699
21700 2010-09-04  Bruno Haible  <bruno@clisp.org>
21701
21702         Don't augment PATH in TESTS_ENVIRONMENT.
21703         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
21704         set abs_aux_dir instead of augmenting PATH.
21705         * modules/vc-list-files-tests (Makefile.am): Likewise.
21706         * tests/test-update-copyright.sh: Augment PATH here.
21707         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
21708         path_prepend_.
21709         * tests/test-vc-list-files-git.sh: Likewise.
21710
21711 2010-09-04  Jim Meyering  <meyering@redhat.com>
21712
21713         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
21714         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
21715
21716 2010-09-04  Bruno Haible  <bruno@clisp.org>
21717
21718         strdup: Fix compilation error in C++ mode.
21719         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
21720         the macro.
21721
21722 2010-09-04  Bruno Haible  <bruno@clisp.org>
21723
21724         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
21725         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
21726         macro into a function.
21727         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21728
21729 2010-09-04  Bruno Haible  <bruno@clisp.org>
21730
21731         Set PATH_SEPARATOR the same way autoconf does.
21732         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
21733         the value of PATH_SEPARATOR the same way autoconf-generated configure
21734         scripts do.
21735         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
21736         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
21737
21738 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
21739
21740         Set PATH_SEPARATOR the same way autoconf does.
21741         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
21742         the same way autoconf-generated configure scripts do.
21743         * posix-modules: Likewise.
21744
21745 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21746
21747         hash: fix safe_hasher const typo
21748         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
21749         const; otherwise, there is a type error later.
21750
21751 2010-09-02  Jim Meyering  <meyering@redhat.com>
21752
21753         test-update-copyright.sh: require perl 5.8.0
21754         * tests/test-update-copyright.sh: Require 5.8.0,
21755         which Tom G. Christensen has confirmed is adequate,
21756         while 5.6.1 is not.
21757
21758 2010-09-02  Eric Blake  <eblake@redhat.com>
21759
21760         tests: init.sh improvements for re-exec'ing with zsh
21761         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
21762         -vx through shell re-exec.
21763         Reported by Tom G. Christensen.
21764
21765         wctype: fix typo in previous commit
21766         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
21767         Reported by Ludovic Courtès.
21768
21769 2010-09-02  Jim Meyering  <meyering@redhat.com>
21770
21771         test-update-copyright.sh: skip test if Perl is too old
21772         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
21773         Reported by Tom G. Christensen.
21774
21775 2010-09-02  Bruno Haible  <bruno@clisp.org>
21776
21777         wctype: Avoid compilation error on IRIX 6.5.30.
21778         * lib/wctype.in.h (iswblank): Declare with a replacement if
21779         REPLACE_ISWBLANK is set.
21780         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
21781         declared. Set REPLACE_ISWBLANK.
21782         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
21783         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
21784         * doc/posix-headers/wctype.texi: Likewise.
21785         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21786
21787 2010-09-01  Bruno Haible  <bruno@clisp.org>
21788
21789         New module 'socketlib'.
21790         * modules/socketlib: New file.
21791         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
21792         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
21793         * modules/sockets (Depends-on): Add socketlib.
21794         Suggested by Sam Steingold <sds@gnu.org>.
21795
21796 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21797
21798         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
21799
21800         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
21801         when one needs search access to a directory but not read access.
21802         On systems where it is available, it works in some cases where
21803         O_RDONLY does not, namely on directories that are searchable but
21804         not readable, and which need only to be searchable.  If O_SEARCH
21805         is not available, fall back to the traditional method of using
21806         O_RDONLY.
21807
21808         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
21809         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
21810         when opening a directory that needs only to be searchable.
21811         * lib/chdir-safer.c (chdir_no_follow): Likewise.
21812         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
21813         * lib/openat-proc.c (openat_proc_name): Likewise.
21814         * lib/openat.c (openat_needs_fchdir): Likewise.
21815         * lib/save-cwd.c (save_cwd): Likewise.
21816         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
21817
21818 2010-08-28  Bruno Haible  <bruno@clisp.org>
21819
21820         New module 'host-cpu-c-abi'.
21821         * modules/host-cpu-c-abi: New file.
21822         * m4/host-cpu-c-abi.m4: New file, based on part of
21823         clisp/src/m4/general.m4.
21824         Requested by Sam Steingold <sds@gnu.org>.
21825
21826 2010-08-31  Eric Blake  <eblake@redhat.com>
21827         and Jim Meyering  <meyering@redhat.com>
21828
21829         hash: factor, and guard against misbehaving hasher function
21830         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
21831         of table->hasher's return value.  Also protect against a hash value
21832         so large that adding it to table->bucket results in a NULL pointer.
21833         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
21834         Use it in place of open-coded check-and-abort.
21835
21836 2010-08-30  Bruno Haible  <bruno@clisp.org>
21837
21838         hash: silence spurious clang warning
21839         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
21840         Reported by Eric Blake.
21841
21842 2010-08-30  Eric Blake  <eblake@redhat.com>
21843
21844         strstr, memmem, strcasestr: avoid leaked shell message
21845         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
21846         FreeBSD.
21847         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
21848         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
21849
21850         tests: silence clang warning
21851         * tests/test-malloca.c (do_allocation): Avoid dead store.
21852
21853 2010-08-29  Bruno Haible  <bruno@clisp.org>
21854
21855         gettext: Fix recent mistake.
21856         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
21857
21858 2010-08-29  Bruno Haible  <bruno@clisp.org>
21859
21860         selinux-h: Offer a --without-selinux option.
21861         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
21862         --without-selinux was specified, skip all tests and define
21863         HAVE_SELINUX_SELINUX_H to 0.
21864         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
21865         set LIB_SELINUX to empty.
21866         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
21867         gl_LIBSELINUX. If --without-selinux was specified, replace
21868         selinux/context.h.
21869         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
21870
21871 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21872             Bruno Haible  <bruno@clisp.org>
21873
21874         Make the module 'realloc-gnu' work again on AIX and OSF/1.
21875         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
21876         of HAVE_REALLOC.
21877         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
21878         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
21879         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
21880         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
21881
21882 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21883             Bruno Haible  <bruno@clisp.org>
21884
21885         Make the module 'calloc-gnu' work again on AIX and OSF/1.
21886         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
21887         HAVE_CALLOC.
21888         * lib/xmalloc.c: Update accordingly.
21889         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
21890         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
21891         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
21892
21893 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21894             Bruno Haible  <bruno@clisp.org>
21895
21896         Make the module 'malloc-gnu' work again on AIX and OSF/1.
21897         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
21898         HAVE_MALLOC.
21899         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
21900         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
21901         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
21902
21903 2010-08-29  Bruno Haible  <bruno@clisp.org>
21904
21905         Update modules list.
21906         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
21907         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
21908         (String handling <string.h>): Add astrxfrm.
21909         (File system functions): Add readlinkat.
21910
21911 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21912
21913         Tests for module 'realloc-gnu'.
21914         * modules/realloc-gnu-tests: New file.
21915         * tests/test-realloc-gnu.c: New file.
21916
21917         Tests for module 'calloc-gnu'.
21918         * modules/calloc-gnu-tests: New file.
21919         * tests/test-calloc-gnu.c: New file.
21920
21921         Tests for module 'malloc-gnu'.
21922         * modules/malloc-gnu-tests: New file.
21923         * tests/test-malloc-gnu.c: New file.
21924
21925 2010-08-28  Bruno Haible  <bruno@clisp.org>
21926
21927         Rename module 'realloc' -> 'realloc-gnu'.
21928         * modules/realloc-gnu: New file, copied from modules/realloc.
21929         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
21930         obsolete.
21931         * modules/mgetgroups (Depends-on): Update.
21932         * doc/posix-functions/realloc.texi: Update.
21933         * NEWS: Mention the change.
21934
21935         Rename module 'calloc' -> 'calloc-gnu'.
21936         * modules/calloc-gnu: New file, copied from modules/calloc.
21937         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
21938         obsolete.
21939         * doc/posix-functions/calloc.texi: Update.
21940         * NEWS: Mention the change.
21941
21942         Rename module 'malloc' -> 'malloc-gnu'.
21943         * modules/malloc-gnu: New file, copied from modules/malloc.
21944         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
21945         obsolete.
21946         * modules/argp (Depends-on): Update.
21947         * modules/regex (Depends-on): Update.
21948         * doc/posix-functions/malloc.texi: Update.
21949         * NEWS: Mention the change.
21950
21951 2010-08-28  Eric Blake  <eblake@redhat.com>
21952
21953         pread, pwrite: add missing dependency
21954         * modules/pread (Depends-on): Add extensions.
21955         * modules/pwrite (Depends-on): Likewise.
21956
21957 2010-08-28  Bruno Haible  <bruno@clisp.org>
21958
21959         unistr/u*-strchr: Fix tests dependencies.
21960         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
21961         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
21962         Reported by Ian Beckwith <ianb@erislabs.net>.
21963
21964 2010-08-28  Bruno Haible  <bruno@clisp.org>
21965
21966         read-file: Don't occupy too much unused memory.
21967         * lib/read-file.c (fread_file): Shrink the buffer at the end.
21968
21969 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
21970             Eric Blake  <eblake@redhat.com>
21971             Bruno Haible  <bruno@clisp.org>
21972
21973         read-file: Avoid memory reallocations with regular files.
21974         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
21975         (fread_file): With regular files, use the remaining length as the
21976         initial buffer size.  Check against overflow.
21977         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
21978         sys_stat.
21979
21980 2010-08-28  Bruno Haible  <bruno@clisp.org>
21981
21982         ftello: Relax license.
21983         * modules/ftello (License): Relax to LGPLv2+.
21984         Reported by Eric Blake.
21985
21986 2010-08-28  Bruno Haible  <bruno@clisp.org>
21987
21988         Avoid relocwrapper link errors due to gnulib replacement functions.
21989         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
21990         function.
21991         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21992
21993 2010-08-28  Bruno Haible  <bruno@clisp.org>
21994
21995         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
21996         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
21997         defined.
21998         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
21999         Suggested by Eric Blake.
22000
22001 2010-08-28  Bruno Haible  <bruno@clisp.org>
22002
22003         sys_socket, netdb: Ensure socklen_t gets defined.
22004         * modules/sys_socket (Depends-on): Add socklen.
22005         * modules/netdb (Depends-on): Likewise.
22006         * modules/getaddrinfo (Depends-on): Remove socklen.
22007         * modules/getsockopt (Depends-on): Likewise.
22008         * modules/setsockopt (Depends-on): Likewise.
22009         * tests/test-sys_socket.c: Check that socklen_t is defined.
22010         * tests/test-netdb.c: Likewise.
22011         * m4/socklen.m4: Update comments.
22012         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22013
22014 2010-08-27  Eric Blake  <eblake@redhat.com>
22015
22016         login_tty: add missing dependency
22017         * modules/login_tty (Depends-on): Add pty.
22018
22019 2010-08-26  Eric Blake  <eblake@redhat.com>
22020
22021         lib-symbol-versions: fix m4 quoting
22022         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
22023         format for AC_LINK_IFELSE.
22024
22025         glob: fix compile test
22026         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
22027
22028         btowc: fix missing file
22029         * modules/btowc (Files): Also ship locale-fr.m4.
22030
22031         lseek: fix link test
22032         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
22033         AC_LINK_IFELSE.
22034
22035         include_next: silence autoconf 2.68 warning
22036         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
22037         AC_COMPILE_IFELSE as special.
22038         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
22039         autoconf < 2.68.
22040
22041         acl: fix compilation test
22042         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
22043         AC_COMPILE_IFELSE.
22044
22045 2010-08-26  Bruno Haible  <bruno@clisp.org>
22046
22047         Modernize AC_TRY_RUN invocations.
22048         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
22049         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
22050         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
22051         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
22052         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
22053         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
22054         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
22055         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
22056         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22057         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
22058         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
22059         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
22060         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
22061         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22062         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
22063         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22064         gl_MBRLEN_NUL_RETVAL): Likewise.
22065         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22066         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
22067         Likewise.
22068         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22069         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22070         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
22071         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
22072         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
22073         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
22074         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
22075         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
22076         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
22077         Likewise.
22078         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
22079         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
22080         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
22081         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22082         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22083         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
22084         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22085         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
22086         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22087         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
22088
22089 2010-08-26  Bruno Haible  <bruno@clisp.org>
22090
22091         Modernize AC_TRY_LINK invocations.
22092         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
22093         AC_TRY_LINK.
22094         * m4/argp.m4 (gl_ARGP): Likewise.
22095         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
22096         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
22097         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
22098         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
22099         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
22100         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
22101         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
22102         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
22103         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
22104         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
22105         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
22106         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
22107         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
22108         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22109         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
22110         * m4/hostent.m4 (gl_HOSTENT): Likewise.
22111         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
22112         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
22113         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
22114         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
22115         Likewise.
22116         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
22117         Likewise.
22118         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
22119         Likewise.
22120         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
22121         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
22122         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
22123         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
22124         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
22125         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
22126         * m4/servent.m4 (gl_SERVENT): Likewise.
22127         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
22128         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
22129         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
22130         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
22131         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22132         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
22133         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
22134         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22135         * modules/tsearch-tests (configure.ac): Likewise.
22136
22137 2010-08-26  Bruno Haible  <bruno@clisp.org>
22138
22139         Modernize AC_TRY_COMPILE invocations.
22140         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
22141         AC_TRY_COMPILE.
22142         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
22143         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
22144         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
22145         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
22146         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
22147         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
22148         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
22149         * m4/lock.m4 (gl_LOCK): Likewise.
22150         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
22151         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
22152         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
22153         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
22154         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
22155         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
22156         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
22157         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
22158         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
22159         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
22160         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
22161         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
22162         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
22163         extraneous semicolon.
22164
22165 2010-08-26  Jim Meyering  <meyering@redhat.com>
22166
22167         stat-time: relax license LGPL
22168         * modules/stat-time (License): Change from GPL to LGPL,
22169         with consent from all contributors, for use in libguile.
22170         Requested by Ludovic Courtès.
22171
22172 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
22173
22174         poll: return immediately on POLLHUP.
22175         * lib/poll.c (poll): Always set timeout before wait_timeout is
22176         computed.
22177
22178 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22179
22180         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
22181         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
22182         rmdir ("dir/.//"), unlinkat.
22183
22184 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22185
22186         stdbool: avoid spurious failure with modern xlc
22187         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
22188
22189 2010-08-24  Bruno Haible  <bruno@clisp.org>
22190
22191         getloadavg: simplify code
22192         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
22193         gl_have_func. Update comments.
22194
22195 2010-08-24  Eric Blake  <eblake@redhat.com>
22196
22197         getloadavg: don't define SVR4 on cygwin
22198         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
22199         only define SVR4 when -lkvm is required.
22200         Reported by Yaakov Selkowitz.
22201
22202 2010-08-24  Bruno Haible  <bruno@clisp.org>
22203
22204         priv-set: fix comment
22205         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
22206
22207 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
22208
22209         priv-set: fix comments
22210         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
22211         to match code, as suggested by David Bartley in:
22212         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
22213
22214 2010-08-23  Eric Blake  <eblake@redhat.com>
22215
22216         stdbool: avoid rejecting clang
22217         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
22218         * tests/test-stdbool.c: Enable more tests if using the system
22219         <stdbool.h> instead of the gnulib replacement.
22220         (main): Move xlc bug test to a runtime test for all compilers.
22221         Reported by Anders Kaseorg.
22222
22223         argz: fix shell quoting issue
22224         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
22225         Reported by Charles Wilson.
22226
22227 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
22228             Erik Faye-Lund <kusmabite@gmail.com>
22229
22230         poll, select: handle ERROR_BROKEN_PIPE.
22231         * lib/poll.c (win32_compute_revents): Return POLLHUP when
22232         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
22233         * lib/select.c (win32_compute_revents): Do not mark a pipe
22234         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
22235
22236 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
22237
22238         fts: allow compilation with C++
22239         * lib/fts_.h: Specify extern "C" linkage with C++.
22240
22241 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22242
22243         Fix gnulib-tool sed script de-commentation for AIX sed.
22244         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
22245         sed.
22246
22247 2010-08-17  Eric Blake  <eblake@redhat.com>
22248
22249         test-stddef: test for (some) offsetof bugs
22250         * tests/test-stddef.c: Enhance test to ensure correct type of
22251         offsetof.
22252         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
22253         that we are not fixing at this time.
22254
22255 2010-08-15  Bruno Haible  <bruno@clisp.org>
22256
22257         stpncpy: Allow stpncpy to be defined as a macro.
22258         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
22259         if it's already correctly declared.
22260         * lib/string.in.h (stpncpy): Undefine before redefining.
22261         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
22262
22263 2010-08-14  Bruno Haible  <bruno@clisp.org>
22264
22265         Rename module 'memxfrm' to 'amemxfrm'.
22266         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
22267         (amemxfrm): Renamed from memxfrm.
22268         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
22269         (amemxfrm): Renamed from memxfrm.
22270         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
22271         * NEWS: Mention the change.
22272         * MODULES.html.sh (String handling <string.h>): Update.
22273         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
22274         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
22275         * lib/unicase/u16-casexfrm.c: Likewise.
22276         * lib/unicase/u32-casexfrm.c: Likewise.
22277         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
22278         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
22279         * lib/uninorm/u16-normxfrm.c: Likewise.
22280         * lib/uninorm/u32-normxfrm.c: Likewise.
22281         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
22282         memxfrm.
22283         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
22284         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
22285         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
22286         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
22287         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
22288         Suggested by Paul Eggert.
22289
22290 2010-08-14  Bruno Haible  <bruno@clisp.org>
22291
22292         Tests for module 'astrxfrm'.
22293         * modules/astrxfrm-tests: New file.
22294         * tests/test-astrxfrm.c: New file.
22295
22296         New module 'astrxfrm'.
22297         * lib/astrxfrm.h: New file.
22298         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
22299         * modules/astrxfrm: New file.
22300
22301 2010-08-14  Reuben Thomas <rrt@sc3d.org>
22302
22303         regex: Tweak doc.
22304         * doc/regex.texi (Overview): Don't mention regex.c.
22305         (GNU Regular Expression Compiling): Likewise.
22306         (Match-end-of-line Operator): Mention 'not_eol'.
22307
22308 2010-08-14  Brian Gough  <bjg@gnu.org>
22309             Bruno Haible  <bruno@clisp.org>
22310
22311         git-merge-changelog: add doc relating to use with bzr and hg.
22312         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
22313
22314 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
22315
22316         pthread: fix pthread.h creation for srcdir != builddir
22317         * modules/pthread (Makefile.am): Fix the rule to work also in a
22318         non-srcdir build.
22319
22320 2010-08-13  Karl Berry  <karl@gnu.org>
22321
22322         * doc/regex.texi (Predefined Syntaxes): @smallexample.
22323         * doc/posix-*/*: force line break before @url of POSIX
22324         specifications.
22325         Suggested by Werner Lemberg.
22326
22327 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
22328
22329         strtod: fix const diagnostic
22330         * lib/strtod.c (strtod): Don't assign const char * to char *,
22331         as this elicits a warning from GCC when warnings are enabled.
22332
22333 2010-08-10  Pádraig Brady <P@draigbrady.com>
22334         and Eric Blake  <eblake@redhat.com>
22335
22336         copy-acl: ignore ENOTSUP on HP-UX
22337         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
22338         so that it is available for HP-UX.
22339         * lib/copy-acl.c (qcopy_acl): Use it.
22340         Reported by Patrick M. Callahan.
22341
22342 2010-08-10  Eric Blake  <eblake@redhat.com>
22343
22344         open, chown: relax license
22345         * modules/open (License): Change to LGPLv2+, with consent by all
22346         authors, for use in augeas.
22347         * modules/chown (License): Likewise.
22348         * modules/lchown (Likewise): Likewise.
22349         Requested by Adam Stokes.
22350
22351 2010-08-09  Karl Berry  <karl@gnu.org>
22352
22353         * build-aux/ar-lib: new file, import from Automake.
22354         * config/srclist.txt: autocheck for updates.
22355
22356 2010-08-09  Eric Blake  <eblake@redhat.com>
22357
22358         readlinkat: adjust client modules
22359         * modules/areadlinkat (Depends-on): Use readlinkat, not
22360         symlinkat.
22361         * modules/areadlinkat-with-size (Depends-on): Likewise.
22362
22363         mknod: be more vocal about danger of running tests as root
22364         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
22365         root, since that is just asking for problems.
22366         Suggested by Bruno Haible, based on a report by Rainer Tammer.
22367
22368         readlinkat: split into its own module
22369         * modules/symlinkat: Split readlinkat...
22370         * modules/readlinkat: ...into separate module.
22371         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
22372         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
22373         * lib/symlinkat.c (readlinkat): Move...
22374         * lib/readlinkat.c: ...into new file.
22375         * modules/symlinkat-tests: Split readlinkat test...
22376         * modules/readlinkat-tests: ...into separate module.
22377         * tests/test-symlinkat.c: Split...
22378         * tests/test-readlinkat.c: ...into new file.
22379         * NEWS: Document the split.
22380         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
22381         * lib/unistd.in.h (readlinkat): Likewise.
22382         Suggested by Bruno Haible.
22383
22384 2010-08-08  Bruno Haible  <bruno@clisp.org>
22385
22386         memxfrm: Speed up.
22387         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
22388         that usually only one call to strxfrm is necessary for each string
22389         part.
22390         Reported by Paul Eggert <eggert@cs.ucla.edu>.
22391
22392 2010-08-07  Karl Berry  <karl@gnu.org>
22393
22394         * doc/posix-headers/limits.texi,
22395         * doc/posix-functions/malloc.texi,
22396         * doc/posix-functions/strsignal.texi: missing @item.
22397         * doc/ld-version-script.texi: spurious leading i.
22398         * doc/regex.texi (Interval Operators): no commas inside @var.
22399
22400 2010-08-01  Bruno Haible  <bruno@clisp.org>
22401
22402         Integrate the regex documentation.
22403         * doc/gnulib.texi: Define 'cn' index.
22404         (Regular expressions): New a chapter that includes regex.texi and
22405         regexprops-generic.texi.
22406         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
22407         syntax.
22408
22409         Whitespace cleanup.
22410         * doc/regex.texi: Remove trailing spaces.
22411
22412         Add regex documentation.
22413         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
22414         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
22415         Written by Kathy A. Hargreaves and Karl Berry.
22416
22417 2010-08-01  Bruno Haible  <bruno@clisp.org>
22418
22419         link: Update documentation.
22420         * doc/posix-functions/link.texi: Update regarding Solaris.
22421
22422 2010-07-31  Bruno Haible  <bruno@clisp.org>
22423
22424         Update modules list.
22425         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
22426         (String handling <string.h>): Add memcmp2, memxfrm.
22427         (Container data structures): Add xlist, xsublist, xoset.
22428         (Core language properties): Add alignof, unused-parameter.
22429         (Process control, Numeric conversion functions <stdlib.h>): Renamed
22430         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
22431         (Unibyte characters <ctype.h>): New section.
22432         (String handling <string.h>): New section.
22433         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
22434         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
22435         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
22436         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
22437         tan, tanh, tanl, y0, y1, yn.
22438         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
22439         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
22440         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
22441         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
22442         unlockpt, vdprintf, vdprintf-posix.
22443         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
22444         (File system functions): Add concat-filename, sys_file, sys_ioctl,
22445         xconcat-filename.
22446         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
22447         getdtablesize, pipe2, pipe2-safer.
22448         (Security): New section.
22449         (Networking functions): Add accept4.
22450         (Signal handling): Add sigpipe.
22451         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
22452         mbmemcasecoll.
22453         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
22454         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
22455         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
22456         pipe-filter-ii.
22457         (Misc): Add argp-version-etc, login_tty, parse-duration.
22458
22459 2010-07-31  Bruno Haible  <bruno@clisp.org>
22460
22461         Improve doc in MODULES.html.
22462         * modules/linkat (Description): Add the word "function".
22463         * modules/mkfifo (Description): Likewise.
22464         * modules/mknod (Description): Likewise.
22465         * modules/remove (Description): Likewise.
22466         * modules/renameat (Description): Likewise.
22467         * modules/stat (Description): Likewise.
22468         * modules/symlink (Description): Likewise.
22469         * modules/unlink (Description): Likewise.
22470
22471 2010-07-31  Bruno Haible  <bruno@clisp.org>
22472
22473         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
22474         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
22475         option --enable/disable-c++ instead of --enable/disable-cxx.
22476         * NEWS: Mention the change.
22477
22478 2010-07-31  Bruno Haible  <bruno@clisp.org>
22479
22480         readlink, areadlink: Relax test a bit.
22481         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
22482         alternative to ENOTDIR.
22483         * tests/test-areadlink.h (test_areadlink): Likewise.
22484         Reported by Rainer Tammer.
22485
22486 2010-07-31  Bruno Haible  <bruno@clisp.org>
22487
22488         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
22489         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
22490         character, perform the search using U_STRCHR.
22491         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
22492         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
22493         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
22494         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
22495         Suggested by Paolo Bonzini.
22496
22497 2010-07-31  Bruno Haible  <bruno@clisp.org>
22498
22499         unistr/u*-strstr: Fix dependencies.
22500         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
22501         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
22502         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
22503
22504 2010-07-31  Bruno Haible  <bruno@clisp.org>
22505
22506         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
22507         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
22508         the beginning of the loop.
22509         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
22510         cases in 'switch' statement.
22511
22512         unistr/u8-strchr: Fix several bugs.
22513         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
22514         the string. When not found, return NULL, not a pointer near the end.
22515
22516         More tests for unistr/u8-strchr.
22517         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
22518         that the function does not read past the first occurrence of the byte
22519         being searched.
22520         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
22521         * tests/unistr/test-u16-strchr.c (main): New function.
22522         * tests/unistr/test-u32-strchr.c (main): New function.
22523
22524 2010-07-31  Bruno Haible  <bruno@clisp.org>
22525
22526         posix-modules: Ignore backup files of documentation files.
22527         * posix-modules: grep only through files named *.texi.
22528
22529 2010-07-31  Bruno Haible  <bruno@clisp.org>
22530
22531         symlinkat: Fix documentation.
22532         * doc/posix-functions/readlinkat.texi: Fix module name.
22533
22534 2010-07-31  Bruno Haible  <bruno@clisp.org>
22535
22536         fchownat: Replace also when chown has the trailing slash bug.
22537         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
22538         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
22539         introduced on 2010-04-10.
22540         Reported by Rainer Tammer.
22541
22542 2010-07-31  Bruno Haible  <bruno@clisp.org>
22543
22544         linkat: Work around AIX 7.1 bug.
22545         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
22546         whether linkat handles trailing slash correctly. If not, replace linkat
22547         and define LINKAT_TRAILING_SLASH_BUG.
22548         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
22549         check whether (fd1,file1) points to a directory if file1 or file2 ends
22550         in a slash. Code taken from lib/link.c.
22551         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
22552         Reported by Rainer Tammer.
22553
22554 2010-07-31  Bruno Haible  <bruno@clisp.org>
22555
22556         Correctly determine whether pow is available in libc on AIX 7 with xlc.
22557         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
22558         This disables an xlc optimization that was causing wrong test results.
22559         Reported by Rainer Tammer.
22560
22561 2010-07-31  Bruno Haible  <bruno@clisp.org>
22562
22563         iconv: Work around AIX 6.1..7.1 bug.
22564         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
22565         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
22566         cross-compiling, guess no on all versions of AIX.
22567         Reported by Rainer Tammer.
22568
22569 2010-07-31  Bruno Haible  <bruno@clisp.org>
22570
22571         readlink: Relax test a bit.
22572         * tests/test-readlink.h (test_readlink): Allow different errno value
22573         when readlink is called with a file name that ends in / and refers to
22574         a file.
22575         Suggested by Eric Blake.
22576         Reported by Rainer Tammer.
22577
22578 2010-07-31  Bruno Haible  <bruno@clisp.org>
22579
22580         copysign: Does not require -lm on glibc systems.
22581         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
22582         gl_COMMON_DOUBLE_MATHFUNC.
22583         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
22584
22585 2010-07-31  Bruno Haible  <bruno@clisp.org>
22586
22587         duplocale: Work around AIX 7.1 bug.
22588         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
22589         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
22590         * lib/duplocale.c (rpl_duplocale): Update comment.
22591         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
22592         Reported by Rainer Tammer.
22593
22594 2010-07-30  Bruno Haible  <bruno@clisp.org>
22595
22596         dirfd: Avoid link error on AIX 7.1.
22597         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
22598         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
22599         exist, set REPLACE_DIRFD.
22600         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
22601         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
22602         * doc/posix-functions/dirfd.texi: Update.
22603         Reported by Rainer Tammer.
22604
22605 2010-07-30  Eric Blake  <eblake@redhat.com>
22606
22607         strtod: next round of AIX fixes
22608         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
22609         exponent.
22610         * tests/test-strtod.c (main): Enhance tests.
22611         * doc/posix-functions/strtod.texi (strtod): Document next bug.
22612         Reported by Rainer Tammer.
22613
22614         futimens: fix configure check
22615         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
22616         Reported by Bruno Haible.
22617
22618 2010-07-30  Bruno Haible  <bruno@clisp.org>
22619
22620         getline: Update regarding AIX.
22621         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
22622         Reported by Rainer Tammer.
22623
22624 2010-07-30  Bruno Haible  <bruno@clisp.org>
22625
22626         wcwidth: Drop replacement on AIX 7.
22627         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
22628         AIX 7.
22629         Reported by Rainer Tammer.
22630
22631 2010-07-30  Bruno Haible  <bruno@clisp.org>
22632
22633         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
22634         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
22635         a 'char *'.
22636         Reported by Rainer Tammer.
22637
22638 2010-07-30  Bruno Haible  <bruno@clisp.org>
22639
22640         unlink: Update regarding AIX.
22641         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
22642         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
22643         Reported by Rainer Tammer.
22644
22645 2010-07-30  Bruno Haible  <bruno@clisp.org>
22646
22647         symlink: Update regarding AIX.
22648         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
22649         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
22650         Reported by Rainer Tammer.
22651
22652 2010-07-30  Bruno Haible  <bruno@clisp.org>
22653
22654         strndup: Update regarding AIX.
22655         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
22656         AIX 7.
22657         Reported by Rainer Tammer.
22658
22659 2010-07-30  Bruno Haible  <bruno@clisp.org>
22660
22661         stat: Update regarding AIX.
22662         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
22663         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
22664         Reported by Rainer Tammer.
22665
22666 2010-07-30  Bruno Haible  <bruno@clisp.org>
22667
22668         truncl: Fix autoconf test.
22669         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
22670         whether truncl works.
22671         Reported by Rainer Tammer.
22672
22673 2010-07-30  Bruno Haible  <bruno@clisp.org>
22674
22675         round: Update regarding AIX.
22676         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
22677         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
22678         Reported by Rainer Tammer.
22679
22680 2010-07-30  Bruno Haible  <bruno@clisp.org>
22681
22682         rename: Update regarding AIX.
22683         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
22684         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
22685         Reported by Rainer Tammer.
22686
22687 2010-07-30  Bruno Haible  <bruno@clisp.org>
22688
22689         printf.m4: Update regarding AIX.
22690         * m4/printf.m4: Update comments regarding AIX.
22691         Reported by Rainer Tammer.
22692
22693 2010-07-30  Bruno Haible  <bruno@clisp.org>
22694
22695         iconv: Update regarding AIX.
22696         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
22697         AIX 7.
22698         Reported by Rainer Tammer.
22699
22700 2010-07-30  Bruno Haible  <bruno@clisp.org>
22701
22702         getopt: Update regarding AIX.
22703         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
22704         no on AIX.
22705         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
22706         Reported by Rainer Tammer.
22707
22708 2010-07-30  Bruno Haible  <bruno@clisp.org>
22709
22710         ldexpl; Update regarding AIX.
22711         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
22712         on AIX 7.
22713         Reported by Rainer Tammer.
22714
22715 2010-07-30  Bruno Haible  <bruno@clisp.org>
22716
22717         frexpl: Update regarding AIX.
22718         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
22719         on AIX 7.
22720         Reported by Rainer Tammer.
22721
22722 2010-07-30  Bruno Haible  <bruno@clisp.org>
22723
22724         open, fopen: Update regarding AIX.
22725         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
22726         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
22727         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
22728         * doc/posix-functions/fopen.texi: Likewise.
22729         Reported by Rainer Tammer.
22730
22731 2010-07-30  Bruno Haible  <bruno@clisp.org>
22732
22733         chown: Update doc regarding AIX.
22734         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
22735         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
22736         Reported by Rainer Tammer.
22737
22738 2010-07-30  Eric Blake  <eblake@redhat.com>
22739
22740         strtod: fix bug in replacement function on AIX
22741         * lib/strtod.c (strtod): Special case broken "0x" parse in
22742         underlying strtod.
22743         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
22744         * doc/posix-functions/strtod.texi (strtod): Likewise.
22745         Reported by Rainer Tammer.
22746
22747 2010-07-30  Bruno Haible  <bruno@clisp.org>
22748
22749         mbrlen: Fix cross-compilation guess for AIX.
22750         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
22751         guess. Leftover from 2008-12-22.
22752
22753 2010-07-30  Bruno Haible  <bruno@clisp.org>
22754
22755         mbrtowc: Fix cross-compilation guess for AIX.
22756         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
22757         guess. Leftover from 2008-12-21.
22758
22759 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
22760
22761         init.sh: work around trap limitation of some shells
22762         * tests/init.sh (setup_): Move exit trap outside of shell function.
22763
22764 2010-07-29  Eric Blake  <eblake@redhat.com>
22765
22766         strtod: aid debugging
22767         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
22768         understanding why strtod is rejected.
22769
22770 2010-07-28  Bruno Haible  <bruno@clisp.org>
22771
22772         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
22773         * lib/unistr/u8-chr.c: Include <string.h>.
22774         * tests/unistr/test-u8-chr.c: Likewise.
22775         * tests/unistr/test-u16-chr.c: Likewise.
22776         * tests/unistr/test-u32-chr.c: Likewise.
22777         * tests/unistr/test-u8-strchr.c: Likewise.
22778         * tests/unistr/test-u16-strchr.c: Likewise.
22779         * tests/unistr/test-u32-strchr.c: Likewise.
22780         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
22781         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
22782         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
22783         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
22784
22785 2010-07-28  Bruno Haible  <bruno@clisp.org>
22786
22787         Use spaces for indentation, not tabs.
22788         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
22789
22790 2010-07-27  Bruno Haible  <bruno@clisp.org>
22791
22792         mbspcasecmp: Fix function specification.
22793         * lib/string.in.h (mbspcasecmp): Fix specification comment.
22794         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
22795         Reported by Eric Blake <eblake@redhat.com>.
22796
22797 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
22798
22799         timespec: use cast and not conditional, as truncation isn't possible
22800         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
22801         instead of a conditional.  Comment about the situation in more detail.
22802         This undoes most of the 2009-10-29 patch.
22803
22804 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
22805
22806         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
22807         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
22808         * lib/unistr/u8-strchr.c: Likewise.
22809         * modules/unistr/u8-chr: Depend on memchr.
22810
22811         unistr/u*-strchr: add tests
22812         * modules/unistr/u8-strchr-tests: New file.
22813         * modules/unistr/u16-strchr-tests: New file.
22814         * modules/unistr/u32-strchr-tests: New file.
22815         * tests/unistr/test-strchr.h: New file.
22816         * tests/unistr/test-u8-strchr.c: New file.
22817         * tests/unistr/test-u16-strchr.c: New file.
22818         * tests/unistr/test-u32-strchr.c: New file.
22819
22820         unistr/u*-chr: test multibyte sequences more
22821         * tests/unistr/test-chr.h: Do complete testing of the characters in the
22822         test vector.
22823         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
22824         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
22825         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
22826
22827         unistr/u*-chr: test multibyte sequences
22828         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
22829
22830         unistr/u*-chr: prepare for multibyte tests
22831         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
22832         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
22833         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
22834         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
22835         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
22836         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
22837
22838 2010-07-18  Bruno Haible  <bruno@clisp.org>
22839
22840         unistr/u8-strchr: Optimize non-ASCII argument case.
22841         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
22842         because the first byte often matches anyway.
22843         Reported by Pádraig Brady <P@draigbrady.com>.
22844
22845 2010-07-15  Karl Berry  <karl@gnu.org>
22846
22847         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
22848
22849 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
22850
22851         getcwd: on Solaris, work better if ancestors are inaccessible
22852         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
22853         buffer and size, try again with a large buffer.  This works better
22854         on Solaris, since its getcwd succeeds even if the path to the root
22855         is inaccessible, and this is helpful in common cases such as .zfs
22856         hidden directories.  Problem reported by J Chapman Flack in
22857         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
22858         Use system getcwd if it's declared, not merely if it's partly
22859         working; use the partly-working test only to avoid needless effort
22860         if the system getcwd fails.
22861         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
22862         comment that was already obsolete and is now even more obsolete.
22863         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
22864         now might call strdup.
22865
22866 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
22867
22868         pthread: Add enough so that coreutils/src/sort.c compiles.
22869         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
22870         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
22871         gnulib. Include <sched.h> and <time.h>, as per POSIX.
22872         Include <sys/types.h>, in case it defines pthread_t.
22873         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
22874         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
22875         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
22876         (pthread_rwlockattr_t, pthread_spinlock_t):
22877         New typedefs, if HAVE_PTHREAD_T is not defined.
22878         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
22879         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
22880         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
22881         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
22882         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
22883         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
22884         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
22885         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
22886         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
22887         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
22888         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
22889         New macros.
22890         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
22891         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
22892         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
22893         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
22894         (pthread_spin_unlock): New dummy functions.
22895         (pthread_create): Return EAGAIN; don't set errno.
22896         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
22897         require AC_C_INLINE.
22898         * modules/pthread (Depends-on): Add sched, time.
22899         (pthread.h): Use AM_V_GEN.
22900
22901 2010-07-13  Bruno Haible  <bruno@clisp.org>
22902
22903         striconveh: Don't malloc memory if the result buffer is sufficient.
22904         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
22905         buffer if its size is sufficient.
22906         Reported by Ludovic Courtès <ludo@gnu.org>.
22907
22908 2010-07-13  Bruno Haible  <bruno@clisp.org>
22909
22910         strtod: Add safety check.
22911         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
22912
22913 2010-07-12  Bruno Haible  <bruno@clisp.org>
22914
22915         Unify tests that set gl_cv_func_ldexpl_no_libm.
22916         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
22917         gl_FUNC_LDEXPL.
22918         (gl_FUNC_LDEXPL): Invoke it.
22919         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22920
22921 2010-07-12  Bruno Haible  <bruno@clisp.org>
22922
22923         Unify tests that set gl_cv_func_ldexp_no_libm.
22924         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
22925         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
22926         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
22927         (configure.ac): Simply invoke gl_FUNC_LDEXP.
22928         * modules/strtod (Files): Add m4/ldexp.m4.
22929
22930 2010-07-12  Bruno Haible  <bruno@clisp.org>
22931
22932         Unify tests that set gl_cv_func_frexpl_no_libm.
22933         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
22934         gl_FUNC_FREXPL_NO_LIBM.
22935         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
22936         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
22937
22938 2010-07-12  Bruno Haible  <bruno@clisp.org>
22939
22940         Unify tests that set gl_cv_func_frexp_no_libm.
22941         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
22942         gl_FUNC_FREXP_NO_LIBM.
22943         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
22944         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
22945
22946 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
22947
22948         memcoll: clarify sizes versus lengths, document better, and tweak perf
22949         * lib/memcoll.c (strcoll_loop, memcoll0):
22950         Improve quality of descriptive comments.  Name variables
22951         consistently as to whether they are lengths (which do not include
22952         terminating null) versus sizes (which do).
22953         * lib/xmemcoll.c (xmemcoll0): Likewise.
22954         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
22955         returned when s1size == 0; this is easier to compile and saves
22956         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
22957
22958 2010-07-12  Bruno Haible  <bruno@clisp.org>
22959
22960         Tests for module '_Exit'.
22961         * modules/_Exit-tests: New file.
22962         * tests/test-_Exit.sh: New file.
22963         * tests/test-_Exit.c: New file.
22964
22965         New module '_Exit'.
22966         * lib/stdlib.in.h (__attribute__): New macro.
22967         (_Exit): New declaration.
22968         * lib/_Exit.c: New file.
22969         * m4/_Exit.m4: New file.
22970         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
22971         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
22972         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
22973         * modules/_Exit: New file.
22974         * tests/test-stdlib-c++.cc (_Exit): Check signature.
22975         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
22976
22977 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
22978
22979         strtod: make it more-accurate typically, and don't require libm
22980         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
22981         Include limits.h.  Don't include string.h.
22982         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
22983         (locale_isspace): New function, so that no casts are needed to
22984         check whether *s is a space.
22985         (ldexp): Provide an unused dummy if not available.
22986         (scale_radix_exp, parse_number, underlying_strtod): New functions.
22987         (strtod): Use them.  This implementation prefers to use the
22988         underlying strtod if available, falling back on our own code
22989         only to fix known bugs.  This is more likely to produce an
22990         accurate result.  Also, it avoids the use of libm functions.
22991         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
22992         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
22993         was absent, but it caused a test failure with coreutils.
22994         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
22995         with libm.
22996         * modules/strtod (Makefile.am, Link): libm is no longer needed.
22997         * modules/strtod-tests (Makefile.am): Likewise.
22998
22999 2010-07-11  Pádraig Brady  <P@draigBrady.com>
23000             Bruno Haible  <bruno@clisp.org>
23001
23002         unistr/u8-strchr: Optimize ASCII argument case.
23003         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
23004
23005 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
23006
23007         (x)memcoll: minor tweaks
23008         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
23009         is after the type that it qualifies.
23010         (memcoll0): Likewise.
23011         * lib/memcoll.h (memcoll0): Likewise.
23012         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
23013         * lib/xmemcoll.h (xmemcoll0): Likewise.
23014         * lib/memcoll.c (memcoll0): Correct the comment.  This function
23015         differs from memcoll in that the NUL byte is part of the argument.
23016         Omit the abort-checks, as performance is a real issue here.  Plus,
23017         the checks were wrong anyway (an off-by-one error).  Omit local
23018         variable 'diff', as it's a bit clearer that way.
23019         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
23020         no longer needed.
23021
23022 2010-07-08  Chen Guo <chenguo4@yahoo.com>
23023
23024         (x)memcoll: speedup when input is known to be NUL delimited
23025         * lib/memcoll.c: Include stdlib.
23026         (memcoll0): New function.
23027         (strcoll_loop): New function, refactored for use in both memcoll
23028         and memcoll0.
23029         * lib/memcoll.h (memcoll0): Add prototype.
23030         * lib/xmemcoll.c (xmemcoll0): New function.
23031         (collate_error): New function, refactored for use in both xmemcoll
23032         and xmemcoll0.
23033         * lib/xmemcoll.h (xmemcoll0): Add prototype.
23034         * m4/memcoll.m4: add inline invocation.
23035
23036 2010-07-06  Pádraig Brady  <P@draigBrady.com>
23037
23038         * build-aux/bootstrap: Remove any local translations
23039         from the translation project synchronization directory,
23040         so that local only translations are not distributed.
23041
23042 2010-07-04  Bruno Haible  <bruno@clisp.org>
23043
23044         fsusage: Clarify which code applies to which platforms.
23045         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
23046         platform.
23047         * lib/fsusage.c (get_fs_usage): Likewise.
23048
23049 2010-07-04  Bruno Haible  <bruno@clisp.org>
23050
23051         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
23052         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
23053         Reported by Martin Lambers <marlam@marlam.de>.
23054
23055 2010-07-04  Jim Meyering  <meyering@redhat.com>
23056
23057         hash: once again explicitly disallow insertion of NULL
23058         * lib/hash.c (hash_insert0): Reinstate just-removed test:
23059         inserting a NULL pointer cannot work with these functions.
23060         Add a comment with details.
23061         This reverts part of the 2010-07-01 commit, 5bef1a35
23062         "hash: extend module to deal with non-pointer keys".
23063
23064 2010-07-01  Bruno Haible  <bruno@clisp.org>
23065
23066         stdbool: Update doc.
23067         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
23068         Info from Christian Weisgerber <naddy@mips.inka.de>.
23069
23070 2010-07-01  Jim Meyering  <meyering@redhat.com>
23071
23072         hash: extend module to deal with non-pointer keys
23073         * lib/hash.c (hash_insert0): New interface, much like hash_insert
23074         but that allows insertion of non-pointer entries.
23075         Do not disallow an ENTRY value of NULL.
23076         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
23077         * lib/hash.h (hash_insert0): Declare.
23078
23079 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23080
23081         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
23082         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
23083         not present (i.e. with autoconf 2.59 and when using gettextize, not
23084         gnulib), require AC_GNU_SOURCE instead.
23085
23086 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
23087
23088         idpriv-drop: Fix tests.
23089         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
23090         not to the test-idpriv-droptemp program.
23091
23092 2010-06-29  Bruno Haible  <bruno@clisp.org>
23093
23094         string: Fix syntax error with g++ 2.96.
23095         * lib/string.in.h (__pure__): Remove definition.
23096         (_GL_ATTRIBUTE_PURE): New macro.
23097         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
23098         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
23099         Reported by Christian Weisgerber <naddy@mips.inka.de>.
23100
23101 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
23102
23103         unitypes: Fix bug introduced on 2010-05-18.
23104         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
23105
23106 2010-06-22  Eric Blake  <eblake@redhat.com>
23107
23108         memmem: slight optimization
23109         * lib/str-two-way.h (critical_factorization): Update comments.
23110         Reduce work during factorization phase.
23111         Reported by Carlos Bueno <carlos@bueno.org>.
23112
23113 2010-06-21  Bruno Haible  <bruno@clisp.org>
23114
23115         Fix HAVE_CALLOC_POSIX misnomer.
23116         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
23117         !HAVE_CALLOC_POSIX.
23118         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
23119         HAVE_CALLOC_POSIX.
23120         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
23121         instead of HAVE_CALLOC_POSIX.
23122         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
23123         HAVE_CALLOC_POSIX.
23124
23125         Use modern idiom for calloc() replacement.
23126         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
23127         AC_FUNC_CALLOC.
23128         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
23129         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
23130         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23131         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
23132         (gl_REPLACE_CALLOC): New macro.
23133
23134 2010-06-21  Bruno Haible  <bruno@clisp.org>
23135
23136         Fix HAVE_REALLOC_POSIX misnomer.
23137         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
23138         !HAVE_REALLOC_POSIX.
23139         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
23140         HAVE_REALLOC_POSIX.
23141         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
23142         instead of HAVE_REALLOC_POSIX.
23143         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
23144         HAVE_REALLOC_POSIX.
23145
23146         Use modern idiom for realloc() replacement.
23147         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
23148         AC_FUNC_REALLOC.
23149         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
23150         Autoconf's AC_FUNC_REALLOC.
23151         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23152         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
23153         (gl_REPLACE_REALLOC): New macro.
23154         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
23155
23156 2010-06-21  Bruno Haible  <bruno@clisp.org>
23157
23158         Fix HAVE_MALLOC_POSIX misnomer.
23159         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
23160         !HAVE_MALLOC_POSIX.
23161         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
23162         HAVE_MALLOC_POSIX.
23163         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
23164         instead of HAVE_MALLOC_POSIX.
23165         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
23166         HAVE_MALLOC_POSIX.
23167
23168         Use modern idiom for malloc() replacement.
23169         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
23170         AC_FUNC_MALLOC.
23171         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
23172         Autoconf's AC_FUNC_MALLOC.
23173         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23174         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
23175         (gl_REPLACE_MALLOC): New macro.
23176         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
23177
23178 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
23179
23180         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
23181         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
23182         This macro takes 3 arguments, not 4.
23183
23184 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
23185
23186         ipv6: fix detection under mingw
23187         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
23188         in6_addr.
23189
23190 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
23191
23192         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
23193         that strtod() works when cross-compiling to a glibc version known
23194         to work.
23195
23196 2010-06-15  Bruno Haible  <bruno@clisp.org>
23197
23198         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
23199
23200 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
23201
23202         select: Correct timeout.
23203         * lib/select.c (rpl_select): Compute wait_timeout correctly.
23204
23205 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23206
23207         git-version-gen: init shell var to avoid env var influence
23208         * build-aux/git-version-gen (v): Init shell var to empty.
23209
23210 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
23211
23212         priv-set: Don't assume that priv.h exists merely because getppriv does.
23213         See Jan Andersen's bug report about AIX 5L in
23214         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
23215         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
23216         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
23217         * lib/priv-set.h: Likewise.
23218         * tests/test-priv-set.c: Likewise.
23219
23220 2010-06-13  Bruno Haible  <bruno@clisp.org>
23221
23222         relocatable: Make it easier to test whether to install wrappers.
23223         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
23224         RELOCATABLE_VIA_WRAPPER.
23225
23226 2010-06-13  Bruno Haible  <bruno@clisp.org>
23227
23228         gnulib-tool: Display specified modules and dependencies differently.
23229         * gnulib-tool (func_show_module_list): New function.
23230         (func_import, func_create_testdir): Invoke it.
23231         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
23232
23233 2010-06-13  Bruno Haible  <bruno@clisp.org>
23234
23235         gnulib-tool: Align code of func_import and func_create_testdir.
23236         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
23237         specified_modules.
23238
23239 2010-06-12  Jim Meyering  <meyering@redhat.com>
23240
23241         test-inttostr: avoid spurious failure on Solaris 9
23242         * tests/test-inttostr.c (main): Skip the test when snprintf fails
23243         to accept "%ju".  Reported by Bruno Haible.
23244
23245 2010-06-11  Jim Meyering  <meyering@redhat.com>
23246
23247         test-sys_socket: mark variables as used more readably
23248         * tests/test-sys_socket.c (main): Mark otherwise unused variables
23249         as "used" explicitly via (void) statement casts.  This is more
23250         readable than using them in an artificial return expression.
23251         Suggestion from Bruno Haible.
23252
23253 2010-06-11  Bruno Haible  <bruno@clisp.org>
23254
23255         Avoid some more warnings from "gcc -Wwrite-strings".
23256         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
23257         to 'const char *'.
23258         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
23259         * tests/test-c-strcasestr.c (main): Likewise.
23260         * tests/test-mbscasestr1.c (main): Likewise.
23261         * tests/test-mbscasestr2.c (main): Likewise.
23262         * tests/test-memmem.c (main): Likewise.
23263         * tests/test-strstr.c (main): Likewise.
23264         * tests/test-strcasestr.c (main): Likewise.
23265
23266 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23267
23268         init.sh: change framework_failure_ to fail with status 99, not 1
23269         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
23270         automake's parallel-tests rule that this is an unexpected failure,
23271         even if the test is listed in XFAIL_TESTS.
23272
23273 2010-06-11  Jim Meyering  <meyering@redhat.com>
23274
23275         test-inttostr: avoid warnings about 4-6KB literal strings
23276         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
23277         Include "macros.h", for its definition of ASSERT.
23278         (CK): s/assert/ASSERT/
23279         * modules/inttostr-tests (Files): Add macros.h.
23280
23281         init.sh: don't use $ME_ or skip_ before they are defined
23282         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
23283         their first uses.  Also hoist their companions: warn_, fail_,
23284         framework_failure_, $stderr_fileno.  Prompted by a patch from
23285         Stefano Lattarini.
23286
23287         test-sys_socket: avoid set-but-not-used warnings from gcc
23288         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
23289         avoid warning about set-but-not-used variables.
23290
23291         test-xvasprintf: avoid 'const' discard warnings
23292         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
23293         "const" when assigning from literal strings.
23294         (test_xasprintf): Add "void" in function argument list to placate
23295         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
23296
23297         tests: avoid compilation warnings in argmatch and exclude tests...
23298         in packages that define ARGMATCH_DIE_DECL, like coreutils.
23299         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
23300         Since it always exits, declare with the "noreturn" attribute.
23301         * tests/test-argmatch.c: Likewise.
23302
23303         tests: avoid 'const' discard warnings in mbsstr tests
23304         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
23305         * tests/test-mbsstr2.c (main): Likewise.
23306
23307         test-verify: avoid warning from gcc's -Wmissing-declarations
23308         * tests/test-verify.c (function): Declare to be static.
23309
23310         test-inttostr.c: include <string.h> for use of strcmp
23311         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
23312
23313         test-linkat: avoid failed assertion on "other" architectures
23314         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
23315         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
23316         sparc: https://bugs.launchpad.net/bugs/591968
23317
23318 2010-06-11  Jim Meyering  <meyering@redhat.com>
23319
23320         printf.m4: avoid autoconf's "Expanded Before Required" warning
23321         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
23322         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
23323         autoconf warning.
23324
23325 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
23326
23327         Replacement header templates are now named with ".in", not "_".
23328         * doc/gnulib-intro.texi: Correct.
23329
23330 2010-06-10  Jim Meyering  <meyering@redhat.com>
23331
23332         inttostr-tests: depend on snprintf, not snprintf-posix
23333         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
23334         snprintf-posix, to avoid this aclocal failure:
23335           missing file gnulib-tests/vasnprintf.c
23336           configure.ac:45: error: expected source file, required through \
23337           AC_LIBSOURCES, not found
23338
23339 2010-06-10  Jim Meyering  <meyering@redhat.com>
23340
23341         inttostr: add a new function, inttostr, and tests
23342         The namesake function was not available.  The existence of the
23343         template file, inttostr.c makes its addition nontrivial.
23344         * lib/anytostr.c: Rename from inttostr.c.
23345         (anytostr): Rename from inttostr.
23346         * lib/inttostr.c: New file.
23347         * modules/inttostr (Files): Add anytostr.c.
23348         (Makefile.am): Set lib_SOURCES instead of ...
23349         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
23350         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
23351         * lib/offtostr.c: Likewise.
23352         * lib/uinttostr.c: Likewise.
23353         * lib/umaxtostr.c: Likewise.
23354         * modules/inttostr-tests: New file.
23355         * tests/test-inttostr.c: New file.  Test these functions.
23356
23357 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
23358             Bruno Haible  <bruno@clisp.org>
23359
23360         Add "Extending Gnulib" chapter to manual.
23361         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
23362         chapter.
23363         (Extending Gnulib): New chapter.
23364         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
23365         chapter.
23366
23367 2010-06-09  Bruno Haible  <bruno@clisp.org>
23368
23369         Avoid relocwrapper link errors due to gnulib replacement functions.
23370         * lib/areadlink.c: Use the system's malloc, realloc functions.
23371         (areadlink): Set errno to ENOMEM explicitly.
23372         * modules/areadlink (Depends-on): Remove malloc-posix.
23373         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23374
23375 2010-06-09  Bruno Haible  <bruno@clisp.org>
23376
23377         Avoid relocwrapper link errors due to gnulib replacement functions.
23378         * lib/canonicalize-lgpl.c: Use the system's malloc function.
23379         * lib/malloca.c: Likewise.
23380         * lib/relocatable.c: Likewise.
23381         * lib/progreloc.c: Use the system's malloc, sprintf functions.
23382         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
23383         * lib/setenv.c: Use the system's malloc, realloc functions.
23384         * lib/strerror.c: Use the system's sprintf function.
23385         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23386
23387 2010-06-04  Bruno Haible  <bruno@clisp.org>
23388
23389         Prefer documented low-level autoconf macro names.
23390         * m4/lib-link.m4: Use m4_translit instead of translit.
23391         * m4/environ.m4: Likewise.
23392         * m4/mathfunc.m4: Likewise.
23393         * m4/onceonly.m4: Likewise.
23394         * m4/stdint.m4: Likewise.
23395         Suggested by Eric Blake.
23396
23397 2010-06-04  Martin Lambers  <marlam@marlam.de>
23398             Bruno Haible  <bruno@clisp.org>
23399
23400         havelib: Allow library names with '+' characters.
23401         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
23402         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
23403
23404 2010-06-09  Bruno Haible  <bruno@clisp.org>
23405
23406         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
23407         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
23408         realloc failed.
23409
23410 2010-06-08  Peter Simons  <simons@cryp.to>
23411
23412         maint.mk: make the news-check rule more configurable
23413         * top/maint.mk (news-check-lines-spec): New variable.
23414         (news-check): Use "sed -n 1,10p" in place of "head".
23415
23416 2010-06-07  Jim Meyering  <meyering@redhat.com>
23417
23418         do-release-commit-and-tag: fix typo in --help
23419         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
23420
23421         regex: avoid new dead-code warning with gcc-4.6.0
23422         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
23423         if-block containing a while-loop.  It's been unused for at least
23424         5 years.
23425
23426 2010-06-05  Bruno Haible  <bruno@clisp.org>
23427
23428         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
23429         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
23430
23431 2010-06-04  Bruno Haible  <bruno@clisp.org>
23432
23433         Update to GNU gettext 0.18.1.
23434         * modules/gettext (configure.ac): Require gettext infrastructure from
23435         version 0.18.1.
23436
23437 2010-06-03  Bruno Haible  <bruno@clisp.org>
23438
23439         Don't use AC_LIBOBJ with file names in subdirectories.
23440         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
23441         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
23442         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
23443         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
23444         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
23445         gl_LIBUNISTRING_LIBSOURCE.
23446         (Makefile.am): Augment lib_SOURCES here, conditionally.
23447         * NEWS: Drop requirement for Automake option 'subdir-objects'.
23448
23449 2010-06-03  Bruno Haible  <bruno@clisp.org>
23450
23451         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
23452         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
23453         expansion does not end with a newline.
23454         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
23455         unnecessary newline.
23456
23457 2010-06-03  Bruno Haible  <bruno@clisp.org>
23458
23459         Reduce dependencies.
23460         * tests/test-quotearg.h: New file, extracted from
23461         tests/test-quotearg.c.
23462         * tests/test-quotearg-simple.c: New file, extracted from
23463         tests/test-quotearg.c.
23464         * tests/test-quotearg.c: Don't include <ctype.h>.
23465         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
23466         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
23467         use_quote_double_quotes, use_quotearg_colon): Moved to
23468         tests/test-quotearg.h.
23469         (results_g, flag_results, custom_quotes, custom_results): Moved
23470         to tests/test-quotearg-simple.c.
23471         (main): Moved the part that does not depend on gettext to
23472         tests/test-quotearg-simple.c. Return 77 if the test cannot be
23473         performed.
23474         * modules/quotearg-simple: New file.
23475         * modules/quotearg-simple-tests: New file.
23476         * modules/quotearg (Depends-on): Add quotearg-simple.
23477         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
23478         (Files): Add tests/test-quotearg.h.
23479         Reported by Paolo Bonzini.
23480
23481 2010-06-03  Bruno Haible  <bruno@clisp.org>
23482
23483         Reduce dependencies.
23484         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
23485
23486 2010-06-03  Bruno Haible  <bruno@clisp.org>
23487
23488         time: Undefine more broken macros.
23489         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
23490         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
23491         Reported by Eric Blake.
23492
23493 2010-06-03  Bruno Haible  <bruno@clisp.org>
23494
23495         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
23496         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
23497         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
23498         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
23499         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
23500         Reported by Ludovic Courtès <ludo@gnu.org>.
23501
23502 2010-06-02  Eric Blake  <eblake@redhat.com>
23503
23504         time: work with mingw + pthreads-win32 library
23505         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
23506         if timespec is defined only in pthread.h.
23507         * modules/time (Makefile.am): Substitute it.
23508         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
23509         <pthread.h>, when needed.
23510         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
23511         from the library.
23512
23513 2010-05-31  Bruno Haible  <bruno@clisp.org>
23514
23515         Avoid expanding two macros in the wrong order.
23516         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
23517         gl_LIBUNISTRING if it is defined.
23518         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
23519         autoconf >= 2.64.
23520         Reported by Ludovic Courtès <ludo@gnu.org>.
23521
23522 2010-05-27  Jim Meyering  <meyering@redhat.com>
23523
23524         maint.mk: also prohibit "#undef" of always-defined symbols
23525         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
23526         Allow more than one space before the symbol name.
23527         (sc_prohibit_always-defined_macros): Use grep's -E, now that
23528         the regexp uses alternation.
23529
23530 2010-05-26  Eric Blake  <eblake@redhat.com>
23531
23532         maint.mk: avoid echo -e
23533         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
23534         Convert all uses of echo -* to printf.
23535         Reported by Matthias Bolte.
23536
23537 2010-05-25  Bruno Haible  <bruno@clisp.org>
23538
23539         Update to GNU gettext 0.18, part 2.
23540         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
23541         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
23542
23543 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23544
23545         Add missing include in test-pwrite.c.
23546         * tests/test-pwrite.c: Include string.h, for strcmp.
23547
23548 2010-05-24  Bruno Haible  <bruno@clisp.org>
23549
23550         * NEWS: Mention requirement for Automake option 'subdir-objects'.
23551
23552 2010-05-24  Bruno Haible  <bruno@clisp.org>
23553
23554         Don't use conversion with transliteration in u{8,16,32}_strcoll.
23555         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
23556         iconveh_error argument.
23557         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
23558         U_STRCONV_TO_LOCALE.
23559         * lib/unistr/u16-strcoll.c: Likewise.
23560         * lib/unistr/u32-strcoll.c: Likewise.
23561         * modules/unistr/u8-strcoll (Depends-on): Add
23562         uniconv/u8-strconv-to-enc, localcharset. Remove
23563         uniconv/u8-strconv-to-locale.
23564         (configure.ac): Bump version number.
23565         * modules/unistr/u16-strcoll (Depends-on): Add
23566         uniconv/u16-strconv-to-enc, localcharset. Remove
23567         uniconv/u16-strconv-to-locale.
23568         (configure.ac): Bump version number.
23569         * modules/unistr/u32-strcoll (Depends-on): Add
23570         uniconv/u32-strconv-to-enc, localcharset. Remove
23571         uniconv/u32-strconv-to-locale.
23572         (configure.ac): Bump version number.
23573
23574 2010-05-24  Bruno Haible  <bruno@clisp.org>
23575
23576         Avoid a test failure on NetBSD 5.0.
23577         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
23578         an iconv() bug.
23579
23580 2010-05-24  Bruno Haible  <bruno@clisp.org>
23581
23582         Adjust #include directive style.
23583         * modules/regex (Includes): Recommend to write <regex.h>.
23584
23585 2010-05-24  Bruno Haible  <bruno@clisp.org>
23586
23587         regex: Don't require alloca.
23588         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
23589         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
23590         only inside if (0).
23591
23592 2010-05-23  Jim Meyering  <meyering@redhat.com>
23593
23594         test-renameat.c: include <sys/stat.h>
23595         * tests/test-renameat.c: Include <sys/stat.h>; required for
23596         definition of S_IS* macros.
23597
23598 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
23599
23600         Update maintainer documentation for 'relocatable-prog' module.
23601         * doc/relocatable-maint.texi: Update.
23602         Comments by Bruno Haible.
23603
23604 2010-05-23  Bruno Haible  <bruno@clisp.org>
23605
23606         git-merge-changelog: Enable --split-merged-entry by default.
23607         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
23608         (usage): Don't mention this option any more.
23609         Reported by Ralf Wildenhues.
23610
23611 2010-05-23  Jim Meyering  <meyering@redhat.com>
23612
23613         test-pwrite: do not leave behind a test file named "out"
23614         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
23615         The trivial-looking use of init.sh is really necessary.
23616         It ensures that the temporary file, "out", is created in
23617         a temporary directory, and removed upon termination.
23618         * tests/test-pwrite.sh: Re-add file.
23619         * modules/pwrite-tests: Reference it.
23620
23621 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23622
23623         Fix output redirection buglet in init.sh.
23624         * tests/init.sh: Fix redirection of stderr.
23625
23626 2010-05-20  Simon Josefsson  <simon@josefsson.org>
23627
23628         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
23629
23630 2010-05-17  Simon Josefsson  <simon@josefsson.org>
23631
23632         * modules/valgrind-tests: New file.
23633         * m4/valgrind-tests.m4: New file.
23634         * doc/valgrind-tests.texi: New file.
23635         * doc/gnulib.texi (Running self-tests under valgrind): New
23636         section.
23637
23638 2010-05-19  Bruno Haible  <bruno@clisp.org>
23639
23640         Clean up dead code in recent commit.
23641         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
23642         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
23643         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
23644         Suggested by Paolo Bonzini.
23645
23646 2010-05-19  Bruno Haible  <bruno@clisp.org>
23647
23648         Avoid valgrind error reports from libunistring.
23649         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
23650         * modules/libunistring (Files): Add it.
23651         * modules/libunistring-optional (Files): Likewise.
23652
23653 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
23654             Bruno Haible  <bruno@clisp.org>
23655
23656         New module 'libunistring-optional'.
23657         * modules/libunistring-optional: New file.
23658         * m4/libunistring-base.m4: New file.
23659         * m4/libunistring-optional.m4: New file.
23660         * lib/unicase.in.h: Renamed from lib/unicase.h.
23661         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
23662         * lib/unictype.in.h: Renamed from lib/unictype.h.
23663         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
23664         * lib/uniname.in.h: Renamed from lib/uniname.h.
23665         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
23666         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
23667         * lib/unistr.in.h: Renamed from lib/unistr.h.
23668         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
23669         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
23670         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
23671         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
23672         gl_LIBUNISTRING. If the library was found, determine the installed
23673         version and set LIBUNISTRING_VERSION.
23674         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
23675         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
23676         handle a configuration option --with-included-libunistring.
23677         * modules/libunistring (Files): Add m4/absolute-header.m4.
23678         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
23679         Add m4/libunistring-base.m4.
23680         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23681         (Makefile.am): Build unicase.h from unicase.in.h.
23682         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
23683         Add m4/libunistring-base.m4.
23684         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23685         (Makefile.am): Build uniconv.h from uniconv.in.h.
23686         * modules/unictype/base (Files): Use unictype.in.h instead of
23687         unictype.h. Add m4/libunistring-base.m4.
23688         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23689         (Makefile.am): Build unictype.h from unictype.in.h.
23690         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
23691         Add m4/libunistring-base.m4.
23692         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23693         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
23694         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
23695         Add m4/libunistring-base.m4.
23696         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23697         (Makefile.am): Build uniname.h from uniname.in.h.
23698         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
23699         Add m4/libunistring-base.m4.
23700         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23701         (Makefile.am): Build uninorm.h from uninorm.in.h.
23702         * modules/unistdio/base (Files): Use unistdio.in.h instead of
23703         unistdio.h. Add m4/libunistring-base.m4.
23704         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23705         (Makefile.am): Build unistdio.h from unistdio.in.h.
23706         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
23707         Add m4/libunistring-base.m4.
23708         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23709         (Makefile.am): Build unistr.h from unistr.in.h.
23710         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
23711         Add m4/libunistring-base.m4.
23712         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23713         (Makefile.am): Build unitypes.h from unitypes.in.h.
23714         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
23715         Add m4/libunistring-base.m4.
23716         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23717         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
23718         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
23719         uniwidth.h. Add m4/libunistring-base.m4.
23720         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
23721         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
23722         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
23723         instead of augmenting lib_SOURCES.
23724         * modules/unicase/empty-suffix-context: Likewise.
23725         * modules/unicase/locale-language: Likewise.
23726         * modules/unicase/tolower: Likewise.
23727         * modules/unicase/totitle: Likewise.
23728         * modules/unicase/toupper: Likewise.
23729         * modules/unicase/u8-casecmp: Likewise.
23730         * modules/unicase/u8-casecoll: Likewise.
23731         * modules/unicase/u8-casefold: Likewise.
23732         * modules/unicase/u8-casexfrm: Likewise.
23733         * modules/unicase/u8-ct-casefold: Likewise.
23734         * modules/unicase/u8-ct-tolower: Likewise.
23735         * modules/unicase/u8-ct-totitle: Likewise.
23736         * modules/unicase/u8-ct-toupper: Likewise.
23737         * modules/unicase/u8-is-cased: Likewise.
23738         * modules/unicase/u8-is-casefolded: Likewise.
23739         * modules/unicase/u8-is-lowercase: Likewise.
23740         * modules/unicase/u8-is-titlecase: Likewise.
23741         * modules/unicase/u8-is-uppercase: Likewise.
23742         * modules/unicase/u8-prefix-context: Likewise.
23743         * modules/unicase/u8-suffix-context: Likewise.
23744         * modules/unicase/u8-tolower: Likewise.
23745         * modules/unicase/u8-totitle: Likewise.
23746         * modules/unicase/u8-toupper: Likewise.
23747         * modules/unicase/u16-casecmp: Likewise.
23748         * modules/unicase/u16-casecoll: Likewise.
23749         * modules/unicase/u16-casefold: Likewise.
23750         * modules/unicase/u16-casexfrm: Likewise.
23751         * modules/unicase/u16-ct-casefold: Likewise.
23752         * modules/unicase/u16-ct-tolower: Likewise.
23753         * modules/unicase/u16-ct-totitle: Likewise.
23754         * modules/unicase/u16-ct-toupper: Likewise.
23755         * modules/unicase/u16-is-cased: Likewise.
23756         * modules/unicase/u16-is-casefolded: Likewise.
23757         * modules/unicase/u16-is-lowercase: Likewise.
23758         * modules/unicase/u16-is-titlecase: Likewise.
23759         * modules/unicase/u16-is-uppercase: Likewise.
23760         * modules/unicase/u16-prefix-context: Likewise.
23761         * modules/unicase/u16-suffix-context: Likewise.
23762         * modules/unicase/u16-tolower: Likewise.
23763         * modules/unicase/u16-totitle: Likewise.
23764         * modules/unicase/u16-toupper: Likewise.
23765         * modules/unicase/u32-casecmp: Likewise.
23766         * modules/unicase/u32-casecoll: Likewise.
23767         * modules/unicase/u32-casefold: Likewise.
23768         * modules/unicase/u32-casexfrm: Likewise.
23769         * modules/unicase/u32-ct-casefold: Likewise.
23770         * modules/unicase/u32-ct-tolower: Likewise.
23771         * modules/unicase/u32-ct-totitle: Likewise.
23772         * modules/unicase/u32-ct-toupper: Likewise.
23773         * modules/unicase/u32-is-cased: Likewise.
23774         * modules/unicase/u32-is-casefolded: Likewise.
23775         * modules/unicase/u32-is-lowercase: Likewise.
23776         * modules/unicase/u32-is-titlecase: Likewise.
23777         * modules/unicase/u32-is-uppercase: Likewise.
23778         * modules/unicase/u32-prefix-context: Likewise.
23779         * modules/unicase/u32-suffix-context: Likewise.
23780         * modules/unicase/u32-tolower: Likewise.
23781         * modules/unicase/u32-totitle: Likewise.
23782         * modules/unicase/u32-toupper: Likewise.
23783         * modules/unicase/ulc-casecmp: Likewise.
23784         * modules/unicase/ulc-casecoll: Likewise.
23785         * modules/unicase/ulc-casexfrm: Likewise.
23786         * modules/uniconv/u8-conv-from-enc: Likewise.
23787         * modules/uniconv/u8-conv-to-enc: Likewise.
23788         * modules/uniconv/u8-strconv-from-enc: Likewise.
23789         * modules/uniconv/u8-strconv-from-locale: Likewise.
23790         * modules/uniconv/u8-strconv-to-enc: Likewise.
23791         * modules/uniconv/u8-strconv-to-locale: Likewise.
23792         * modules/uniconv/u16-conv-from-enc: Likewise.
23793         * modules/uniconv/u16-conv-to-enc: Likewise.
23794         * modules/uniconv/u16-strconv-from-enc: Likewise.
23795         * modules/uniconv/u16-strconv-from-locale: Likewise.
23796         * modules/uniconv/u16-strconv-to-enc: Likewise.
23797         * modules/uniconv/u16-strconv-to-locale: Likewise.
23798         * modules/uniconv/u32-conv-from-enc: Likewise.
23799         * modules/uniconv/u32-conv-to-enc: Likewise.
23800         * modules/uniconv/u32-strconv-from-enc: Likewise.
23801         * modules/uniconv/u32-strconv-from-locale: Likewise.
23802         * modules/uniconv/u32-strconv-to-enc: Likewise.
23803         * modules/uniconv/u32-strconv-to-locale: Likewise.
23804         * modules/unictype/bidicategory-byname: Likewise.
23805         * modules/unictype/bidicategory-name: Likewise.
23806         * modules/unictype/bidicategory-of: Likewise.
23807         * modules/unictype/bidicategory-test: Likewise.
23808         * modules/unictype/block-list: Likewise.
23809         * modules/unictype/block-test: Likewise.
23810         * modules/unictype/category-C: Likewise.
23811         * modules/unictype/category-Cc: Likewise.
23812         * modules/unictype/category-Cf: Likewise.
23813         * modules/unictype/category-Cn: Likewise.
23814         * modules/unictype/category-Co: Likewise.
23815         * modules/unictype/category-Cs: Likewise.
23816         * modules/unictype/category-L: Likewise.
23817         * modules/unictype/category-Ll: Likewise.
23818         * modules/unictype/category-Lm: Likewise.
23819         * modules/unictype/category-Lo: Likewise.
23820         * modules/unictype/category-Lt: Likewise.
23821         * modules/unictype/category-Lu: Likewise.
23822         * modules/unictype/category-M: Likewise.
23823         * modules/unictype/category-Mc: Likewise.
23824         * modules/unictype/category-Me: Likewise.
23825         * modules/unictype/category-Mn: Likewise.
23826         * modules/unictype/category-N: Likewise.
23827         * modules/unictype/category-Nd: Likewise.
23828         * modules/unictype/category-Nl: Likewise.
23829         * modules/unictype/category-No: Likewise.
23830         * modules/unictype/category-P: Likewise.
23831         * modules/unictype/category-Pc: Likewise.
23832         * modules/unictype/category-Pd: Likewise.
23833         * modules/unictype/category-Pe: Likewise.
23834         * modules/unictype/category-Pf: Likewise.
23835         * modules/unictype/category-Pi: Likewise.
23836         * modules/unictype/category-Po: Likewise.
23837         * modules/unictype/category-Ps: Likewise.
23838         * modules/unictype/category-S: Likewise.
23839         * modules/unictype/category-Sc: Likewise.
23840         * modules/unictype/category-Sk: Likewise.
23841         * modules/unictype/category-Sm: Likewise.
23842         * modules/unictype/category-So: Likewise.
23843         * modules/unictype/category-Z: Likewise.
23844         * modules/unictype/category-Zl: Likewise.
23845         * modules/unictype/category-Zp: Likewise.
23846         * modules/unictype/category-Zs: Likewise.
23847         * modules/unictype/category-and: Likewise.
23848         * modules/unictype/category-and-not: Likewise.
23849         * modules/unictype/category-byname: Likewise.
23850         * modules/unictype/category-name: Likewise.
23851         * modules/unictype/category-none: Likewise.
23852         * modules/unictype/category-of: Likewise.
23853         * modules/unictype/category-or: Likewise.
23854         * modules/unictype/category-test: Likewise.
23855         * modules/unictype/combining-class: Likewise.
23856         * modules/unictype/ctype-alnum: Likewise.
23857         * modules/unictype/ctype-alpha: Likewise.
23858         * modules/unictype/ctype-blank: Likewise.
23859         * modules/unictype/ctype-cntrl: Likewise.
23860         * modules/unictype/ctype-digit: Likewise.
23861         * modules/unictype/ctype-graph: Likewise.
23862         * modules/unictype/ctype-lower: Likewise.
23863         * modules/unictype/ctype-print: Likewise.
23864         * modules/unictype/ctype-punct: Likewise.
23865         * modules/unictype/ctype-space: Likewise.
23866         * modules/unictype/ctype-upper: Likewise.
23867         * modules/unictype/ctype-xdigit: Likewise.
23868         * modules/unictype/decimal-digit: Likewise.
23869         * modules/unictype/digit: Likewise.
23870         * modules/unictype/mirror: Likewise.
23871         * modules/unictype/numeric: Likewise.
23872         * modules/unictype/property-alphabetic: Likewise.
23873         * modules/unictype/property-ascii-hex-digit: Likewise.
23874         * modules/unictype/property-bidi-arabic-digit: Likewise.
23875         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
23876         * modules/unictype/property-bidi-block-separator: Likewise.
23877         * modules/unictype/property-bidi-boundary-neutral: Likewise.
23878         * modules/unictype/property-bidi-common-separator: Likewise.
23879         * modules/unictype/property-bidi-control: Likewise.
23880         * modules/unictype/property-bidi-embedding-or-override: Likewise.
23881         * modules/unictype/property-bidi-eur-num-separator: Likewise.
23882         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
23883         * modules/unictype/property-bidi-european-digit: Likewise.
23884         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
23885         * modules/unictype/property-bidi-left-to-right: Likewise.
23886         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
23887         * modules/unictype/property-bidi-other-neutral: Likewise.
23888         * modules/unictype/property-bidi-pdf: Likewise.
23889         * modules/unictype/property-bidi-segment-separator: Likewise.
23890         * modules/unictype/property-bidi-whitespace: Likewise.
23891         * modules/unictype/property-byname: Likewise.
23892         * modules/unictype/property-combining: Likewise.
23893         * modules/unictype/property-composite: Likewise.
23894         * modules/unictype/property-currency-symbol: Likewise.
23895         * modules/unictype/property-dash: Likewise.
23896         * modules/unictype/property-decimal-digit: Likewise.
23897         * modules/unictype/property-default-ignorable-code-point: Likewise.
23898         * modules/unictype/property-deprecated: Likewise.
23899         * modules/unictype/property-diacritic: Likewise.
23900         * modules/unictype/property-extender: Likewise.
23901         * modules/unictype/property-format-control: Likewise.
23902         * modules/unictype/property-grapheme-base: Likewise.
23903         * modules/unictype/property-grapheme-extend: Likewise.
23904         * modules/unictype/property-grapheme-link: Likewise.
23905         * modules/unictype/property-hex-digit: Likewise.
23906         * modules/unictype/property-hyphen: Likewise.
23907         * modules/unictype/property-id-continue: Likewise.
23908         * modules/unictype/property-id-start: Likewise.
23909         * modules/unictype/property-ideographic: Likewise.
23910         * modules/unictype/property-ids-binary-operator: Likewise.
23911         * modules/unictype/property-ids-trinary-operator: Likewise.
23912         * modules/unictype/property-ignorable-control: Likewise.
23913         * modules/unictype/property-iso-control: Likewise.
23914         * modules/unictype/property-join-control: Likewise.
23915         * modules/unictype/property-left-of-pair: Likewise.
23916         * modules/unictype/property-line-separator: Likewise.
23917         * modules/unictype/property-logical-order-exception: Likewise.
23918         * modules/unictype/property-lowercase: Likewise.
23919         * modules/unictype/property-math: Likewise.
23920         * modules/unictype/property-non-break: Likewise.
23921         * modules/unictype/property-not-a-character: Likewise.
23922         * modules/unictype/property-numeric: Likewise.
23923         * modules/unictype/property-other-alphabetic: Likewise.
23924         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
23925         * modules/unictype/property-other-grapheme-extend: Likewise.
23926         * modules/unictype/property-other-id-continue: Likewise.
23927         * modules/unictype/property-other-id-start: Likewise.
23928         * modules/unictype/property-other-lowercase: Likewise.
23929         * modules/unictype/property-other-math: Likewise.
23930         * modules/unictype/property-other-uppercase: Likewise.
23931         * modules/unictype/property-paired-punctuation: Likewise.
23932         * modules/unictype/property-paragraph-separator: Likewise.
23933         * modules/unictype/property-pattern-syntax: Likewise.
23934         * modules/unictype/property-pattern-white-space: Likewise.
23935         * modules/unictype/property-private-use: Likewise.
23936         * modules/unictype/property-punctuation: Likewise.
23937         * modules/unictype/property-quotation-mark: Likewise.
23938         * modules/unictype/property-radical: Likewise.
23939         * modules/unictype/property-sentence-terminal: Likewise.
23940         * modules/unictype/property-soft-dotted: Likewise.
23941         * modules/unictype/property-space: Likewise.
23942         * modules/unictype/property-terminal-punctuation: Likewise.
23943         * modules/unictype/property-test: Likewise.
23944         * modules/unictype/property-titlecase: Likewise.
23945         * modules/unictype/property-unassigned-code-value: Likewise.
23946         * modules/unictype/property-unified-ideograph: Likewise.
23947         * modules/unictype/property-uppercase: Likewise.
23948         * modules/unictype/property-variation-selector: Likewise.
23949         * modules/unictype/property-white-space: Likewise.
23950         * modules/unictype/property-xid-continue: Likewise.
23951         * modules/unictype/property-xid-start: Likewise.
23952         * modules/unictype/property-zero-width: Likewise.
23953         * modules/unictype/scripts: Likewise.
23954         * modules/unictype/syntax-c-ident: Likewise.
23955         * modules/unictype/syntax-c-whitespace: Likewise.
23956         * modules/unictype/syntax-java-ident: Likewise.
23957         * modules/unictype/syntax-java-whitespace: Likewise.
23958         * modules/unilbrk/u8-possible-linebreaks: Likewise.
23959         * modules/unilbrk/u8-width-linebreaks: Likewise.
23960         * modules/unilbrk/u16-possible-linebreaks: Likewise.
23961         * modules/unilbrk/u16-width-linebreaks: Likewise.
23962         * modules/unilbrk/u32-possible-linebreaks: Likewise.
23963         * modules/unilbrk/u32-width-linebreaks: Likewise.
23964         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
23965         * modules/unilbrk/ulc-width-linebreaks: Likewise.
23966         * modules/uniname/uniname: Likewise.
23967         * modules/uninorm/canonical-decomposition: Likewise.
23968         * modules/uninorm/composition: Likewise.
23969         * modules/uninorm/decomposing-form: Likewise.
23970         * modules/uninorm/decomposition: Likewise.
23971         * modules/uninorm/filter: Likewise.
23972         * modules/uninorm/nfc: Likewise.
23973         * modules/uninorm/nfd: Likewise.
23974         * modules/uninorm/nfkc: Likewise.
23975         * modules/uninorm/nfkd: Likewise.
23976         * modules/uninorm/u8-normalize: Likewise.
23977         * modules/uninorm/u8-normcmp: Likewise.
23978         * modules/uninorm/u8-normcoll: Likewise.
23979         * modules/uninorm/u8-normxfrm: Likewise.
23980         * modules/uninorm/u16-normalize: Likewise.
23981         * modules/uninorm/u16-normcmp: Likewise.
23982         * modules/uninorm/u16-normcoll: Likewise.
23983         * modules/uninorm/u16-normxfrm: Likewise.
23984         * modules/uninorm/u32-normalize: Likewise.
23985         * modules/uninorm/u32-normcmp: Likewise.
23986         * modules/uninorm/u32-normcoll: Likewise.
23987         * modules/uninorm/u32-normxfrm: Likewise.
23988         * modules/unistdio/u8-asnprintf: Likewise.
23989         * modules/unistdio/u8-asprintf: Likewise.
23990         * modules/unistdio/u8-snprintf: Likewise.
23991         * modules/unistdio/u8-sprintf: Likewise.
23992         * modules/unistdio/u8-u8-asnprintf: Likewise.
23993         * modules/unistdio/u8-u8-asprintf: Likewise.
23994         * modules/unistdio/u8-u8-snprintf: Likewise.
23995         * modules/unistdio/u8-u8-sprintf: Likewise.
23996         * modules/unistdio/u8-u8-vasnprintf: Likewise.
23997         * modules/unistdio/u8-u8-vasprintf: Likewise.
23998         * modules/unistdio/u8-u8-vsnprintf: Likewise.
23999         * modules/unistdio/u8-u8-vsprintf: Likewise.
24000         * modules/unistdio/u8-vasnprintf: Likewise.
24001         * modules/unistdio/u8-vasprintf: Likewise.
24002         * modules/unistdio/u8-vsnprintf: Likewise.
24003         * modules/unistdio/u8-vsprintf: Likewise.
24004         * modules/unistdio/u16-asnprintf: Likewise.
24005         * modules/unistdio/u16-asprintf: Likewise.
24006         * modules/unistdio/u16-snprintf: Likewise.
24007         * modules/unistdio/u16-sprintf: Likewise.
24008         * modules/unistdio/u16-u16-asnprintf: Likewise.
24009         * modules/unistdio/u16-u16-asprintf: Likewise.
24010         * modules/unistdio/u16-u16-snprintf: Likewise.
24011         * modules/unistdio/u16-u16-sprintf: Likewise.
24012         * modules/unistdio/u16-u16-vasnprintf: Likewise.
24013         * modules/unistdio/u16-u16-vasprintf: Likewise.
24014         * modules/unistdio/u16-u16-vsnprintf: Likewise.
24015         * modules/unistdio/u16-u16-vsprintf: Likewise.
24016         * modules/unistdio/u16-vasnprintf: Likewise.
24017         * modules/unistdio/u16-vasprintf: Likewise.
24018         * modules/unistdio/u16-vsnprintf: Likewise.
24019         * modules/unistdio/u16-vsprintf: Likewise.
24020         * modules/unistdio/u32-asnprintf: Likewise.
24021         * modules/unistdio/u32-asprintf: Likewise.
24022         * modules/unistdio/u32-snprintf: Likewise.
24023         * modules/unistdio/u32-sprintf: Likewise.
24024         * modules/unistdio/u32-u32-asnprintf: Likewise.
24025         * modules/unistdio/u32-u32-asprintf: Likewise.
24026         * modules/unistdio/u32-u32-snprintf: Likewise.
24027         * modules/unistdio/u32-u32-sprintf: Likewise.
24028         * modules/unistdio/u32-u32-vasnprintf: Likewise.
24029         * modules/unistdio/u32-u32-vasprintf: Likewise.
24030         * modules/unistdio/u32-u32-vsnprintf: Likewise.
24031         * modules/unistdio/u32-u32-vsprintf: Likewise.
24032         * modules/unistdio/u32-vasnprintf: Likewise.
24033         * modules/unistdio/u32-vasprintf: Likewise.
24034         * modules/unistdio/u32-vsnprintf: Likewise.
24035         * modules/unistdio/u32-vsprintf: Likewise.
24036         * modules/unistdio/ulc-asnprintf: Likewise.
24037         * modules/unistdio/ulc-asprintf: Likewise.
24038         * modules/unistdio/ulc-fprintf: Likewise.
24039         * modules/unistdio/ulc-snprintf: Likewise.
24040         * modules/unistdio/ulc-sprintf: Likewise.
24041         * modules/unistdio/ulc-vasnprintf: Likewise.
24042         * modules/unistdio/ulc-vasprintf: Likewise.
24043         * modules/unistdio/ulc-vfprintf: Likewise.
24044         * modules/unistdio/ulc-vsnprintf: Likewise.
24045         * modules/unistdio/ulc-vsprintf: Likewise.
24046         * modules/unistr/u8-check: Likewise.
24047         * modules/unistr/u8-chr: Likewise.
24048         * modules/unistr/u8-cmp: Likewise.
24049         * modules/unistr/u8-cmp2: Likewise.
24050         * modules/unistr/u8-cpy: Likewise.
24051         * modules/unistr/u8-cpy-alloc: Likewise.
24052         * modules/unistr/u8-endswith: Likewise.
24053         * modules/unistr/u8-mblen: Likewise.
24054         * modules/unistr/u8-mbsnlen: Likewise.
24055         * modules/unistr/u8-mbtouc: Likewise.
24056         * modules/unistr/u8-mbtouc-unsafe: Likewise.
24057         * modules/unistr/u8-mbtoucr: Likewise.
24058         * modules/unistr/u8-move: Likewise.
24059         * modules/unistr/u8-next: Likewise.
24060         * modules/unistr/u8-prev: Likewise.
24061         * modules/unistr/u8-set: Likewise.
24062         * modules/unistr/u8-startswith: Likewise.
24063         * modules/unistr/u8-stpcpy: Likewise.
24064         * modules/unistr/u8-stpncpy: Likewise.
24065         * modules/unistr/u8-strcat: Likewise.
24066         * modules/unistr/u8-strchr: Likewise.
24067         * modules/unistr/u8-strcmp: Likewise.
24068         * modules/unistr/u8-strcoll: Likewise.
24069         * modules/unistr/u8-strcpy: Likewise.
24070         * modules/unistr/u8-strcspn: Likewise.
24071         * modules/unistr/u8-strdup: Likewise.
24072         * modules/unistr/u8-strlen: Likewise.
24073         * modules/unistr/u8-strmblen: Likewise.
24074         * modules/unistr/u8-strmbtouc: Likewise.
24075         * modules/unistr/u8-strncat: Likewise.
24076         * modules/unistr/u8-strncmp: Likewise.
24077         * modules/unistr/u8-strncpy: Likewise.
24078         * modules/unistr/u8-strnlen: Likewise.
24079         * modules/unistr/u8-strpbrk: Likewise.
24080         * modules/unistr/u8-strrchr: Likewise.
24081         * modules/unistr/u8-strspn: Likewise.
24082         * modules/unistr/u8-strstr: Likewise.
24083         * modules/unistr/u8-strtok: Likewise.
24084         * modules/unistr/u8-to-u16: Likewise.
24085         * modules/unistr/u8-to-u32: Likewise.
24086         * modules/unistr/u8-uctomb: Likewise.
24087         * modules/unistr/u16-check: Likewise.
24088         * modules/unistr/u16-chr: Likewise.
24089         * modules/unistr/u16-cmp: Likewise.
24090         * modules/unistr/u16-cmp2: Likewise.
24091         * modules/unistr/u16-cpy: Likewise.
24092         * modules/unistr/u16-cpy-alloc: Likewise.
24093         * modules/unistr/u16-endswith: Likewise.
24094         * modules/unistr/u16-mblen: Likewise.
24095         * modules/unistr/u16-mbsnlen: Likewise.
24096         * modules/unistr/u16-mbtouc: Likewise.
24097         * modules/unistr/u16-mbtouc-unsafe: Likewise.
24098         * modules/unistr/u16-mbtoucr: Likewise.
24099         * modules/unistr/u16-move: Likewise.
24100         * modules/unistr/u16-next: Likewise.
24101         * modules/unistr/u16-prev: Likewise.
24102         * modules/unistr/u16-set: Likewise.
24103         * modules/unistr/u16-startswith: Likewise.
24104         * modules/unistr/u16-stpcpy: Likewise.
24105         * modules/unistr/u16-stpncpy: Likewise.
24106         * modules/unistr/u16-strcat: Likewise.
24107         * modules/unistr/u16-strchr: Likewise.
24108         * modules/unistr/u16-strcmp: Likewise.
24109         * modules/unistr/u16-strcoll: Likewise.
24110         * modules/unistr/u16-strcpy: Likewise.
24111         * modules/unistr/u16-strcspn: Likewise.
24112         * modules/unistr/u16-strdup: Likewise.
24113         * modules/unistr/u16-strlen: Likewise.
24114         * modules/unistr/u16-strmblen: Likewise.
24115         * modules/unistr/u16-strmbtouc: Likewise.
24116         * modules/unistr/u16-strncat: Likewise.
24117         * modules/unistr/u16-strncmp: Likewise.
24118         * modules/unistr/u16-strncpy: Likewise.
24119         * modules/unistr/u16-strnlen: Likewise.
24120         * modules/unistr/u16-strpbrk: Likewise.
24121         * modules/unistr/u16-strrchr: Likewise.
24122         * modules/unistr/u16-strspn: Likewise.
24123         * modules/unistr/u16-strstr: Likewise.
24124         * modules/unistr/u16-strtok: Likewise.
24125         * modules/unistr/u16-to-u32: Likewise.
24126         * modules/unistr/u16-to-u8: Likewise.
24127         * modules/unistr/u16-uctomb: Likewise.
24128         * modules/unistr/u32-check: Likewise.
24129         * modules/unistr/u32-chr: Likewise.
24130         * modules/unistr/u32-cmp: Likewise.
24131         * modules/unistr/u32-cmp2: Likewise.
24132         * modules/unistr/u32-cpy: Likewise.
24133         * modules/unistr/u32-cpy-alloc: Likewise.
24134         * modules/unistr/u32-endswith: Likewise.
24135         * modules/unistr/u32-mblen: Likewise.
24136         * modules/unistr/u32-mbsnlen: Likewise.
24137         * modules/unistr/u32-mbtouc: Likewise.
24138         * modules/unistr/u32-mbtouc-unsafe: Likewise.
24139         * modules/unistr/u32-mbtoucr: Likewise.
24140         * modules/unistr/u32-move: Likewise.
24141         * modules/unistr/u32-next: Likewise.
24142         * modules/unistr/u32-prev: Likewise.
24143         * modules/unistr/u32-set: Likewise.
24144         * modules/unistr/u32-startswith: Likewise.
24145         * modules/unistr/u32-stpcpy: Likewise.
24146         * modules/unistr/u32-stpncpy: Likewise.
24147         * modules/unistr/u32-strcat: Likewise.
24148         * modules/unistr/u32-strchr: Likewise.
24149         * modules/unistr/u32-strcmp: Likewise.
24150         * modules/unistr/u32-strcoll: Likewise.
24151         * modules/unistr/u32-strcpy: Likewise.
24152         * modules/unistr/u32-strcspn: Likewise.
24153         * modules/unistr/u32-strdup: Likewise.
24154         * modules/unistr/u32-strlen: Likewise.
24155         * modules/unistr/u32-strmblen: Likewise.
24156         * modules/unistr/u32-strmbtouc: Likewise.
24157         * modules/unistr/u32-strncat: Likewise.
24158         * modules/unistr/u32-strncmp: Likewise.
24159         * modules/unistr/u32-strncpy: Likewise.
24160         * modules/unistr/u32-strnlen: Likewise.
24161         * modules/unistr/u32-strpbrk: Likewise.
24162         * modules/unistr/u32-strrchr: Likewise.
24163         * modules/unistr/u32-strspn: Likewise.
24164         * modules/unistr/u32-strstr: Likewise.
24165         * modules/unistr/u32-strtok: Likewise.
24166         * modules/unistr/u32-to-u16: Likewise.
24167         * modules/unistr/u32-to-u8: Likewise.
24168         * modules/unistr/u32-uctomb: Likewise.
24169         * modules/uniwbrk/u8-wordbreaks: Likewise.
24170         * modules/uniwbrk/u16-wordbreaks: Likewise.
24171         * modules/uniwbrk/u32-wordbreaks: Likewise.
24172         * modules/uniwbrk/ulc-wordbreaks: Likewise.
24173         * modules/uniwbrk/wordbreak-property: Likewise.
24174         * modules/uniwidth/u8-strwidth: Likewise.
24175         * modules/uniwidth/u8-width: Likewise.
24176         * modules/uniwidth/u16-strwidth: Likewise.
24177         * modules/uniwidth/u16-width: Likewise.
24178         * modules/uniwidth/u32-strwidth: Likewise.
24179         * modules/uniwidth/u32-width: Likewise.
24180         * modules/uniwidth/width: Likewise.
24181         * modules/unicase/cased-tests (Makefile.am): Link all test programs
24182         with $(LIBUNISTRING).
24183         * modules/unicase/ignorable-tests: Likewise.
24184         * modules/unicase/locale-language-tests: Likewise.
24185         * modules/unicase/tolower-tests: Likewise.
24186         * modules/unicase/totitle-tests: Likewise.
24187         * modules/unicase/toupper-tests: Likewise.
24188         * modules/unicase/u8-casecmp-tests: Likewise.
24189         * modules/unicase/u8-casecoll-tests: Likewise.
24190         * modules/unicase/u8-casefold-tests: Likewise.
24191         * modules/unicase/u8-is-cased-tests: Likewise.
24192         * modules/unicase/u8-is-casefolded-tests: Likewise.
24193         * modules/unicase/u8-is-lowercase-tests: Likewise.
24194         * modules/unicase/u8-is-titlecase-tests: Likewise.
24195         * modules/unicase/u8-is-uppercase-tests: Likewise.
24196         * modules/unicase/u8-tolower-tests: Likewise.
24197         * modules/unicase/u8-totitle-tests: Likewise.
24198         * modules/unicase/u8-toupper-tests: Likewise.
24199         * modules/unicase/u16-casecmp-tests: Likewise.
24200         * modules/unicase/u16-casecoll-tests: Likewise.
24201         * modules/unicase/u16-casefold-tests: Likewise.
24202         * modules/unicase/u16-is-cased-tests: Likewise.
24203         * modules/unicase/u16-is-casefolded-tests: Likewise.
24204         * modules/unicase/u16-is-lowercase-tests: Likewise.
24205         * modules/unicase/u16-is-titlecase-tests: Likewise.
24206         * modules/unicase/u16-is-uppercase-tests: Likewise.
24207         * modules/unicase/u16-tolower-tests: Likewise.
24208         * modules/unicase/u16-totitle-tests: Likewise.
24209         * modules/unicase/u16-toupper-tests: Likewise.
24210         * modules/unicase/u32-casecmp-tests: Likewise.
24211         * modules/unicase/u32-casecoll-tests: Likewise.
24212         * modules/unicase/u32-casefold-tests: Likewise.
24213         * modules/unicase/u32-is-cased-tests: Likewise.
24214         * modules/unicase/u32-is-casefolded-tests: Likewise.
24215         * modules/unicase/u32-is-lowercase-tests: Likewise.
24216         * modules/unicase/u32-is-titlecase-tests: Likewise.
24217         * modules/unicase/u32-is-uppercase-tests: Likewise.
24218         * modules/unicase/u32-tolower-tests: Likewise.
24219         * modules/unicase/u32-totitle-tests: Likewise.
24220         * modules/unicase/u32-toupper-tests: Likewise.
24221         * modules/unicase/ulc-casecmp-tests: Likewise.
24222         * modules/unicase/ulc-casecoll-tests: Likewise.
24223         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
24224         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
24225         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
24226         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
24227         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
24228         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
24229         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
24230         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
24231         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
24232         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
24233         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
24234         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
24235         * modules/unictype/bidicategory-byname-tests: Likewise.
24236         * modules/unictype/bidicategory-name-tests: Likewise.
24237         * modules/unictype/bidicategory-of-tests: Likewise.
24238         * modules/unictype/bidicategory-test-tests: Likewise.
24239         * modules/unictype/block-list-tests: Likewise.
24240         * modules/unictype/block-of-tests: Likewise.
24241         * modules/unictype/block-test-tests: Likewise.
24242         * modules/unictype/category-C-tests: Likewise.
24243         * modules/unictype/category-Cc-tests: Likewise.
24244         * modules/unictype/category-Cf-tests: Likewise.
24245         * modules/unictype/category-Cn-tests: Likewise.
24246         * modules/unictype/category-Co-tests: Likewise.
24247         * modules/unictype/category-Cs-tests: Likewise.
24248         * modules/unictype/category-L-tests: Likewise.
24249         * modules/unictype/category-Ll-tests: Likewise.
24250         * modules/unictype/category-Lm-tests: Likewise.
24251         * modules/unictype/category-Lo-tests: Likewise.
24252         * modules/unictype/category-Lt-tests: Likewise.
24253         * modules/unictype/category-Lu-tests: Likewise.
24254         * modules/unictype/category-M-tests: Likewise.
24255         * modules/unictype/category-Mc-tests: Likewise.
24256         * modules/unictype/category-Me-tests: Likewise.
24257         * modules/unictype/category-Mn-tests: Likewise.
24258         * modules/unictype/category-N-tests: Likewise.
24259         * modules/unictype/category-Nd-tests: Likewise.
24260         * modules/unictype/category-Nl-tests: Likewise.
24261         * modules/unictype/category-No-tests: Likewise.
24262         * modules/unictype/category-P-tests: Likewise.
24263         * modules/unictype/category-Pc-tests: Likewise.
24264         * modules/unictype/category-Pd-tests: Likewise.
24265         * modules/unictype/category-Pe-tests: Likewise.
24266         * modules/unictype/category-Pf-tests: Likewise.
24267         * modules/unictype/category-Pi-tests: Likewise.
24268         * modules/unictype/category-Po-tests: Likewise.
24269         * modules/unictype/category-Ps-tests: Likewise.
24270         * modules/unictype/category-S-tests: Likewise.
24271         * modules/unictype/category-Sc-tests: Likewise.
24272         * modules/unictype/category-Sk-tests: Likewise.
24273         * modules/unictype/category-Sm-tests: Likewise.
24274         * modules/unictype/category-So-tests: Likewise.
24275         * modules/unictype/category-Z-tests: Likewise.
24276         * modules/unictype/category-Zl-tests: Likewise.
24277         * modules/unictype/category-Zp-tests: Likewise.
24278         * modules/unictype/category-Zs-tests: Likewise.
24279         * modules/unictype/category-and-not-tests: Likewise.
24280         * modules/unictype/category-and-tests: Likewise.
24281         * modules/unictype/category-byname-tests: Likewise.
24282         * modules/unictype/category-name-tests: Likewise.
24283         * modules/unictype/category-none-tests: Likewise.
24284         * modules/unictype/category-of-tests: Likewise.
24285         * modules/unictype/category-or-tests: Likewise.
24286         * modules/unictype/category-test-withtable-tests: Likewise.
24287         * modules/unictype/combining-class-tests: Likewise.
24288         * modules/unictype/ctype-alnum-tests: Likewise.
24289         * modules/unictype/ctype-alpha-tests: Likewise.
24290         * modules/unictype/ctype-blank-tests: Likewise.
24291         * modules/unictype/ctype-cntrl-tests: Likewise.
24292         * modules/unictype/ctype-digit-tests: Likewise.
24293         * modules/unictype/ctype-graph-tests: Likewise.
24294         * modules/unictype/ctype-lower-tests: Likewise.
24295         * modules/unictype/ctype-print-tests: Likewise.
24296         * modules/unictype/ctype-punct-tests: Likewise.
24297         * modules/unictype/ctype-space-tests: Likewise.
24298         * modules/unictype/ctype-upper-tests: Likewise.
24299         * modules/unictype/ctype-xdigit-tests: Likewise.
24300         * modules/unictype/decimal-digit-tests: Likewise.
24301         * modules/unictype/digit-tests: Likewise.
24302         * modules/unictype/mirror-tests: Likewise.
24303         * modules/unictype/numeric-tests: Likewise.
24304         * modules/unictype/property-alphabetic-tests: Likewise.
24305         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
24306         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
24307         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
24308         * modules/unictype/property-bidi-block-separator-tests: Likewise.
24309         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
24310         * modules/unictype/property-bidi-common-separator-tests: Likewise.
24311         * modules/unictype/property-bidi-control-tests: Likewise.
24312         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
24313         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
24314         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
24315         * modules/unictype/property-bidi-european-digit-tests: Likewise.
24316         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
24317         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
24318         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
24319         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
24320         * modules/unictype/property-bidi-pdf-tests: Likewise.
24321         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
24322         * modules/unictype/property-bidi-whitespace-tests: Likewise.
24323         * modules/unictype/property-byname-tests: Likewise.
24324         * modules/unictype/property-combining-tests: Likewise.
24325         * modules/unictype/property-composite-tests: Likewise.
24326         * modules/unictype/property-currency-symbol-tests: Likewise.
24327         * modules/unictype/property-dash-tests: Likewise.
24328         * modules/unictype/property-decimal-digit-tests: Likewise.
24329         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
24330         * modules/unictype/property-deprecated-tests: Likewise.
24331         * modules/unictype/property-diacritic-tests: Likewise.
24332         * modules/unictype/property-extender-tests: Likewise.
24333         * modules/unictype/property-format-control-tests: Likewise.
24334         * modules/unictype/property-grapheme-base-tests: Likewise.
24335         * modules/unictype/property-grapheme-extend-tests: Likewise.
24336         * modules/unictype/property-grapheme-link-tests: Likewise.
24337         * modules/unictype/property-hex-digit-tests: Likewise.
24338         * modules/unictype/property-hyphen-tests: Likewise.
24339         * modules/unictype/property-id-continue-tests: Likewise.
24340         * modules/unictype/property-id-start-tests: Likewise.
24341         * modules/unictype/property-ideographic-tests: Likewise.
24342         * modules/unictype/property-ids-binary-operator-tests: Likewise.
24343         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
24344         * modules/unictype/property-ignorable-control-tests: Likewise.
24345         * modules/unictype/property-iso-control-tests: Likewise.
24346         * modules/unictype/property-join-control-tests: Likewise.
24347         * modules/unictype/property-left-of-pair-tests: Likewise.
24348         * modules/unictype/property-line-separator-tests: Likewise.
24349         * modules/unictype/property-logical-order-exception-tests: Likewise.
24350         * modules/unictype/property-lowercase-tests: Likewise.
24351         * modules/unictype/property-math-tests: Likewise.
24352         * modules/unictype/property-non-break-tests: Likewise.
24353         * modules/unictype/property-not-a-character-tests: Likewise.
24354         * modules/unictype/property-numeric-tests: Likewise.
24355         * modules/unictype/property-other-alphabetic-tests: Likewise.
24356         * modules/unictype/property-other-default-ignorable-code-point-tests:
24357         Likewise.
24358         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
24359         * modules/unictype/property-other-id-continue-tests: Likewise.
24360         * modules/unictype/property-other-id-start-tests: Likewise.
24361         * modules/unictype/property-other-lowercase-tests: Likewise.
24362         * modules/unictype/property-other-math-tests: Likewise.
24363         * modules/unictype/property-other-uppercase-tests: Likewise.
24364         * modules/unictype/property-paired-punctuation-tests: Likewise.
24365         * modules/unictype/property-paragraph-separator-tests: Likewise.
24366         * modules/unictype/property-pattern-syntax-tests: Likewise.
24367         * modules/unictype/property-pattern-white-space-tests: Likewise.
24368         * modules/unictype/property-private-use-tests: Likewise.
24369         * modules/unictype/property-punctuation-tests: Likewise.
24370         * modules/unictype/property-quotation-mark-tests: Likewise.
24371         * modules/unictype/property-radical-tests: Likewise.
24372         * modules/unictype/property-sentence-terminal-tests: Likewise.
24373         * modules/unictype/property-soft-dotted-tests: Likewise.
24374         * modules/unictype/property-space-tests: Likewise.
24375         * modules/unictype/property-terminal-punctuation-tests: Likewise.
24376         * modules/unictype/property-test-tests: Likewise.
24377         * modules/unictype/property-titlecase-tests: Likewise.
24378         * modules/unictype/property-unassigned-code-value-tests: Likewise.
24379         * modules/unictype/property-unified-ideograph-tests: Likewise.
24380         * modules/unictype/property-uppercase-tests: Likewise.
24381         * modules/unictype/property-variation-selector-tests: Likewise.
24382         * modules/unictype/property-white-space-tests: Likewise.
24383         * modules/unictype/property-xid-continue-tests: Likewise.
24384         * modules/unictype/property-xid-start-tests: Likewise.
24385         * modules/unictype/property-zero-width-tests: Likewise.
24386         * modules/unictype/scripts-tests: Likewise.
24387         * modules/unictype/syntax-c-ident-tests: Likewise.
24388         * modules/unictype/syntax-c-whitespace-tests: Likewise.
24389         * modules/unictype/syntax-java-ident-tests: Likewise.
24390         * modules/unictype/syntax-java-whitespace-tests: Likewise.
24391         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
24392         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
24393         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
24394         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
24395         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
24396         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
24397         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
24398         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
24399         * modules/uniname/uniname-tests: Likewise.
24400         * modules/uninorm/canonical-decomposition-tests: Likewise.
24401         * modules/uninorm/compat-decomposition-tests: Likewise.
24402         * modules/uninorm/composition-tests: Likewise.
24403         * modules/uninorm/decomposing-form-tests: Likewise.
24404         * modules/uninorm/decomposition-tests: Likewise.
24405         * modules/uninorm/filter-tests: Likewise.
24406         * modules/uninorm/nfc-tests: Likewise.
24407         * modules/uninorm/nfd-tests: Likewise.
24408         * modules/uninorm/nfkc-tests: Likewise.
24409         * modules/uninorm/nfkd-tests: Likewise.
24410         * modules/uninorm/u8-normcmp-tests: Likewise.
24411         * modules/uninorm/u8-normcoll-tests: Likewise.
24412         * modules/uninorm/u16-normcmp-tests: Likewise.
24413         * modules/uninorm/u16-normcoll-tests: Likewise.
24414         * modules/uninorm/u32-normcmp-tests: Likewise.
24415         * modules/uninorm/u32-normcoll-tests: Likewise.
24416         * modules/unistdio/u8-asnprintf-tests: Likewise.
24417         * modules/unistdio/u8-vasnprintf-tests: Likewise.
24418         * modules/unistdio/u8-vasprintf-tests: Likewise.
24419         * modules/unistdio/u8-vsnprintf-tests: Likewise.
24420         * modules/unistdio/u8-vsprintf-tests: Likewise.
24421         * modules/unistdio/u16-asnprintf-tests: Likewise.
24422         * modules/unistdio/u16-vasnprintf-tests: Likewise.
24423         * modules/unistdio/u16-vasprintf-tests: Likewise.
24424         * modules/unistdio/u16-vsnprintf-tests: Likewise.
24425         * modules/unistdio/u16-vsprintf-tests: Likewise.
24426         * modules/unistdio/u32-asnprintf-tests: Likewise.
24427         * modules/unistdio/u32-vasnprintf-tests: Likewise.
24428         * modules/unistdio/u32-vasprintf-tests: Likewise.
24429         * modules/unistdio/u32-vsnprintf-tests: Likewise.
24430         * modules/unistdio/u32-vsprintf-tests: Likewise.
24431         * modules/unistdio/ulc-asnprintf-tests: Likewise.
24432         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
24433         * modules/unistdio/ulc-vasprintf-tests: Likewise.
24434         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
24435         * modules/unistdio/ulc-vsprintf-tests: Likewise.
24436         * modules/unistr/u8-check-tests: Likewise.
24437         * modules/unistr/u8-chr-tests: Likewise.
24438         * modules/unistr/u8-cmp-tests: Likewise.
24439         * modules/unistr/u8-cmp2-tests: Likewise.
24440         * modules/unistr/u8-cpy-alloc-tests: Likewise.
24441         * modules/unistr/u8-cpy-tests: Likewise.
24442         * modules/unistr/u8-mblen-tests: Likewise.
24443         * modules/unistr/u8-mbsnlen-tests: Likewise.
24444         * modules/unistr/u8-mbtouc-tests: Likewise.
24445         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
24446         * modules/unistr/u8-mbtoucr-tests: Likewise.
24447         * modules/unistr/u8-move-tests: Likewise.
24448         * modules/unistr/u8-next-tests: Likewise.
24449         * modules/unistr/u8-prev-tests: Likewise.
24450         * modules/unistr/u8-set-tests: Likewise.
24451         * modules/unistr/u8-stpcpy-tests: Likewise.
24452         * modules/unistr/u8-stpncpy-tests: Likewise.
24453         * modules/unistr/u8-strcat-tests: Likewise.
24454         * modules/unistr/u8-strcmp-tests: Likewise.
24455         * modules/unistr/u8-strcoll-tests: Likewise.
24456         * modules/unistr/u8-strcpy-tests: Likewise.
24457         * modules/unistr/u8-strdup-tests: Likewise.
24458         * modules/unistr/u8-strlen-tests: Likewise.
24459         * modules/unistr/u8-strmblen-tests: Likewise.
24460         * modules/unistr/u8-strmbtouc-tests: Likewise.
24461         * modules/unistr/u8-strncat-tests: Likewise.
24462         * modules/unistr/u8-strncmp-tests: Likewise.
24463         * modules/unistr/u8-strncpy-tests: Likewise.
24464         * modules/unistr/u8-strnlen-tests: Likewise.
24465         * modules/unistr/u8-to-u16-tests: Likewise.
24466         * modules/unistr/u8-to-u32-tests: Likewise.
24467         * modules/unistr/u8-uctomb-tests: Likewise.
24468         * modules/unistr/u16-check-tests: Likewise.
24469         * modules/unistr/u16-chr-tests: Likewise.
24470         * modules/unistr/u16-cmp-tests: Likewise.
24471         * modules/unistr/u16-cmp2-tests: Likewise.
24472         * modules/unistr/u16-cpy-alloc-tests: Likewise.
24473         * modules/unistr/u16-cpy-tests: Likewise.
24474         * modules/unistr/u16-mblen-tests: Likewise.
24475         * modules/unistr/u16-mbsnlen-tests: Likewise.
24476         * modules/unistr/u16-mbtouc-tests: Likewise.
24477         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
24478         * modules/unistr/u16-mbtoucr-tests: Likewise.
24479         * modules/unistr/u16-move-tests: Likewise.
24480         * modules/unistr/u16-next-tests: Likewise.
24481         * modules/unistr/u16-prev-tests: Likewise.
24482         * modules/unistr/u16-set-tests: Likewise.
24483         * modules/unistr/u16-stpcpy-tests: Likewise.
24484         * modules/unistr/u16-stpncpy-tests: Likewise.
24485         * modules/unistr/u16-strcat-tests: Likewise.
24486         * modules/unistr/u16-strcmp-tests: Likewise.
24487         * modules/unistr/u16-strcoll-tests: Likewise.
24488         * modules/unistr/u16-strcpy-tests: Likewise.
24489         * modules/unistr/u16-strdup-tests: Likewise.
24490         * modules/unistr/u16-strlen-tests: Likewise.
24491         * modules/unistr/u16-strmblen-tests: Likewise.
24492         * modules/unistr/u16-strmbtouc-tests: Likewise.
24493         * modules/unistr/u16-strncat-tests: Likewise.
24494         * modules/unistr/u16-strncmp-tests: Likewise.
24495         * modules/unistr/u16-strncpy-tests: Likewise.
24496         * modules/unistr/u16-strnlen-tests: Likewise.
24497         * modules/unistr/u16-to-u32-tests: Likewise.
24498         * modules/unistr/u16-to-u8-tests: Likewise.
24499         * modules/unistr/u16-uctomb-tests: Likewise.
24500         * modules/unistr/u32-check-tests: Likewise.
24501         * modules/unistr/u32-chr-tests: Likewise.
24502         * modules/unistr/u32-cmp-tests: Likewise.
24503         * modules/unistr/u32-cmp2-tests: Likewise.
24504         * modules/unistr/u32-cpy-alloc-tests: Likewise.
24505         * modules/unistr/u32-cpy-tests: Likewise.
24506         * modules/unistr/u32-mblen-tests: Likewise.
24507         * modules/unistr/u32-mbsnlen-tests: Likewise.
24508         * modules/unistr/u32-mbtouc-tests: Likewise.
24509         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
24510         * modules/unistr/u32-mbtoucr-tests: Likewise.
24511         * modules/unistr/u32-move-tests: Likewise.
24512         * modules/unistr/u32-next-tests: Likewise.
24513         * modules/unistr/u32-prev-tests: Likewise.
24514         * modules/unistr/u32-set-tests: Likewise.
24515         * modules/unistr/u32-stpcpy-tests: Likewise.
24516         * modules/unistr/u32-stpncpy-tests: Likewise.
24517         * modules/unistr/u32-strcat-tests: Likewise.
24518         * modules/unistr/u32-strcmp-tests: Likewise.
24519         * modules/unistr/u32-strcoll-tests: Likewise.
24520         * modules/unistr/u32-strcpy-tests: Likewise.
24521         * modules/unistr/u32-strdup-tests: Likewise.
24522         * modules/unistr/u32-strlen-tests: Likewise.
24523         * modules/unistr/u32-strmblen-tests: Likewise.
24524         * modules/unistr/u32-strmbtouc-tests: Likewise.
24525         * modules/unistr/u32-strncat-tests: Likewise.
24526         * modules/unistr/u32-strncmp-tests: Likewise.
24527         * modules/unistr/u32-strncpy-tests: Likewise.
24528         * modules/unistr/u32-strnlen-tests: Likewise.
24529         * modules/unistr/u32-to-u16-tests: Likewise.
24530         * modules/unistr/u32-to-u8-tests: Likewise.
24531         * modules/unistr/u32-uctomb-tests: Likewise.
24532         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
24533         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
24534         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
24535         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
24536         * modules/uniwidth/u8-strwidth-tests: Likewise.
24537         * modules/uniwidth/u8-width-tests: Likewise.
24538         * modules/uniwidth/u16-strwidth-tests: Likewise.
24539         * modules/uniwidth/u16-width-tests: Likewise.
24540         * modules/uniwidth/u32-strwidth-tests: Likewise.
24541         * modules/uniwidth/u32-width-tests: Likewise.
24542         * modules/uniwidth/width-tests: Likewise.
24543
24544 2010-05-18  Richard Jones  <rjones@redhat.com>
24545
24546         doc: users.txt: list hivex
24547         * users.txt: Add hivex.
24548
24549 2010-05-18  Richard Jones  <rjones@redhat.com>
24550
24551         doc: users.txt: list febootstrap
24552         * users.txt: Add febootstrap.
24553
24554 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
24555
24556         bootstrap: fix an error when gnulib is not used as a git submodule
24557         * build-aux/bootstrap (gnulib_path): If its length is zero then
24558         assign "gnulib" to it.
24559         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
24560
24561 2010-05-16  Bruno Haible  <bruno@clisp.org>
24562
24563         Avoid autoconf warnings about AM_ICONV.
24564         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
24565         2.64.
24566
24567 2010-05-16  Bruno Haible  <bruno@clisp.org>
24568
24569         absolute-header: Make the macro usable in more situations.
24570         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
24571         from gl_ABSOLUTE_HEADER.
24572         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
24573
24574 2010-05-16  James Youngman  <jay@gnu.org>
24575
24576         doc: update users.txt
24577         * users.txt: Add CSSC.
24578
24579 2010-05-16  Jim Meyering  <meyering@redhat.com>
24580
24581         init.sh: fix an error in the previous change; add more comments
24582         * tests/init.sh: Compare exit code in loop against 9, not 2.
24583         Patch by Bruno Haible.
24584         Make the two tests more similar by adding an empty "then" clause.
24585         Add comments.
24586
24587         init.sh: avoid unnecessary shell re-exec
24588         * tests/init.sh: Improve the re-exec-required check to first test the
24589         current shell.  If it passes the test, do not search for a shell that
24590         does pass, and do not re-exec.  This test is particularly contorted to
24591         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
24592         of $(...) evokes a syntax error and causes immediate shell exit with
24593         status 2.  Bruno Haible reported that the re-exec made it impossible
24594         to single-step through any init.sh-using script.
24595
24596 2010-05-16  Bruno Haible  <bruno@clisp.org>
24597
24598         Fix collision between gnulib's and libintl's printf replacements.
24599         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
24600         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
24601         (printf): When using GNU C, map the __printf__ function to rpl_printf
24602         via __asm__. When not using GNU C, define rpl_printf instead of
24603         __printf__.
24604         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
24605         commit.
24606         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
24607         commit.
24608         * m4/asm-underscore.m4: New file.
24609         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
24610         * modules/stdio (Files): Add m4/asm-underscore.m4.
24611         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
24612         Reported by Ben Pfaff.
24613
24614 2010-05-16  Bruno Haible  <bruno@clisp.org>
24615
24616         verify: Avoid skipping the test on openSUSE 11.0.
24617         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
24618
24619 2010-05-13  Bruno Haible  <bruno@clisp.org>
24620
24621         Avoid useless warnings from G++.
24622         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
24623         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
24624         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24625
24626 2010-05-11  Jim Meyering  <meyering@redhat.com>
24627
24628         maint.mk: tweak preceding change
24629         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
24630         regexps tighter by anchoring at EOL, and make the new group "shy"
24631         for slightly decreased overhead.
24632
24633 2010-05-11  Eric Blake  <eblake@redhat.com>
24634
24635         maint.mk: gnulib doesn't guarantee NSIG
24636         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
24637
24638 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
24639
24640         test-pwrite.c: Remove unused variable declaration.
24641         * tests/test-pwrite.c (main): Remove read_buf declaration.
24642
24643         Remove useless test-pwrite.sh file.
24644         * tests/test-pwrite.sh: Delete file.
24645         * modules/pwrite-tests: Remove references.
24646         Reported by Bruno Haible.
24647
24648 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
24649
24650         init.sh: fix a typo
24651         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
24652
24653 2010-05-10  Jim Meyering  <meyering@redhat.com>
24654
24655         maint.mk: avoid using a temporary file in the always-defined-macros check
24656         * top/maint.mk (.re-defmac): Remove rule.
24657         (gl_trap_): Remove definition.
24658         (sc_prohibit_always-defined_macros): Rewrite not to create and
24659         depend on a temporary file.  Instead, depend on GNU grep's ability
24660         to read a list of regular expressions from stdin when given "-f -".
24661
24662 2010-05-09  Bruno Haible  <bruno@clisp.org>
24663
24664         Update to GNU gettext 0.18, part 1.
24665         * m4/gettext.m4: Update to GNU gettext 0.18.
24666         * m4/intl.m4: Likewise.
24667         * m4/po.m4: Likewise.
24668         * modules/gettext (Files): Add m4/fcntl-o.m4.
24669         (configure.ac): Require gettext infrastructure from version 0.18.
24670
24671 2010-05-09  Jim Meyering  <meyering@redhat.com>
24672
24673         init.sh: enable MALLOC_PERTURB_
24674         * tests/init.sh: Enable glibc's malloc-perturbing option.
24675
24676         maint.mk: improve sc_cross_check_PATH_usage_in_tests
24677         With my recent change in init.sh from the two-line form:
24678             -#   : ${srcdir=.}
24679             -#   . "$srcdir/init.sh"; path_prepend_ .
24680             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
24681         I noticed that using the one-line form would cause this test
24682         to fail with a false-positive, or to stop working altogether,
24683         depending on whether help-version changed or all the tests did.
24684         * top/maint.mk (_hv_regex): Remove this definition.
24685         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
24686         (_hv_regex_strong): Use a stronger regex to check for conformance.
24687         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
24688         Give a separate diagnostic for lack of conforming use.
24689
24690         maint.mk: prohibit definition of symbols defined by gnulib
24691         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
24692         definition of symbols defined by gnulib.
24693
24694 2010-05-09  Bruno Haible  <bruno@clisp.org>
24695
24696         acl: Avoid test failure on Cygwin-hosted mingw.
24697         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
24698
24699 2010-05-09  Bruno Haible  <bruno@clisp.org>
24700
24701         error: Use system's fcntl function.
24702         * lib/error.c (fcntl): Undefine.
24703
24704 2010-05-09  Jim Meyering  <meyering@redhat.com>
24705
24706         verify: adjust formatting to be more consistent
24707         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
24708         argument-list '('s, and after one comma.
24709
24710 2010-05-09  Bruno Haible  <bruno@clisp.org>
24711
24712         error: More reliable output on mingw.
24713         * lib/error.c: Include <windows.h>.
24714         (is_open): New function.
24715         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
24716         defined.
24717
24718 2010-05-09  Bruno Haible  <bruno@clisp.org>
24719
24720         vasnprintf: Fix syntax errors in libintl build on mingw.
24721         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
24722         pad_ourselves and prec_ourselves after use.
24723
24724 2010-05-08  Bruno Haible  <bruno@clisp.org>
24725
24726         * lib/config.charset: Update comments for Cygwin 1.7.
24727         * lib/localcharset.c: Likewise.
24728
24729 2010-05-07  Jim Meyering  <meyering@redhat.com>
24730
24731         init.sh: improve comments
24732         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
24733         . "${srcdir=.}/init.sh"; path_prepend_ .
24734         Add a note about path_prepend_ and the alternative of using
24735         TESTS_ENVIRONMENT.
24736
24737 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
24738
24739         exclude: Unescape hashed patterns in wildcard mode.
24740         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
24741         to the hash list.
24742         * tests/test-exclude8.sh: New test case.
24743         * modules/exclude-tests: Add new test.
24744
24745 2010-05-05  Eric Blake  <eblake@redhat.com>
24746
24747         verify: automate tests
24748         * modules/verify-tests: New module.
24749         * tests/test-verify.sh: New file.
24750         * tests/test-verify.c: Guard each negative test with a unique id.
24751         Also avoid warning about unused left hand of comma expressions.
24752
24753 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
24754
24755         Further improvements to verify.h, suggested by Eric Blake.
24756         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
24757         the GL_* versions, to avoid collision with OpenGL.
24758         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
24759         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
24760         than testing merely whether it's defined.
24761
24762         Modify verify.h to pacify gcc -Wredundant_decls.
24763         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
24764         These use the prefix "GL_" since they're likely to be useful elsewhere.
24765         We may need to break them out into a different .h file.
24766         (__COUNTER__): Define to 0 if the compiler doesn't support it.
24767         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
24768         of verify_function__.
24769
24770 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
24771
24772         Tests for module pwrite.
24773         * modules/pwrite-tests: New file.
24774         * tests/test-pwrite.sh: New file.
24775         * tests/test-pwrite.c: New file.
24776
24777         New module pwrite.
24778         * lib/unistd.in.h (pwrite): New declaration.
24779         * lib/pwrite.c: New file, from glibc with modifications.
24780         * m4/pwrite.m4: New file.
24781         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
24782         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
24783         REPLACE_PWRITE.
24784         * modules/pwrite: New file.
24785         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
24786         REPLACE_PWRITE.
24787         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
24788         * doc/posix-functions/pwrite.texi: Mention the new module.
24789
24790 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
24791
24792         pread: Update documentation.
24793         * doc/posix-functions/pread.texi: Mention the 'pread' module.
24794
24795 2010-05-04  Eric Blake  <eblake@redhat.com>
24796
24797         docs: update cygwin progress
24798         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
24799         this bug.
24800         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
24801         Added in cygwin 1.7.2.
24802         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
24803         Likewise.
24804         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
24805         Likewise.
24806         * doc/glibc-functions/dup3.texi (dup3): Likewise.
24807         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
24808         * doc/glibc-functions/accept4.texi (accept4): Likewise.
24809         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
24810         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
24811         Mention nproc module.
24812         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
24813         bug in cygwin 1.7.5 addition.
24814         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
24815         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
24816         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
24817         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
24818         1.7.5.
24819         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
24820         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
24821         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
24822         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
24823         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
24824         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
24825         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
24826         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
24827         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
24828         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
24829         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
24830         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
24831         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
24832         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
24833         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
24834         Likewise.
24835         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
24836         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
24837         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
24838         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
24839         Likewise.
24840         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
24841         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
24842         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
24843         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
24844         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
24845         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
24846         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
24847         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
24848         Likewise.
24849         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
24850         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
24851         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
24852         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
24853         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
24854         Likewise.
24855         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
24856         Likewise.
24857         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
24858         Likewise.
24859         * doc/glibc-functions/xdrrec_endofrecord.texi
24860         (xdrrec_endofrecord): Likewise.
24861         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
24862         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
24863         Likewise.
24864         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
24865         Likewise.
24866
24867 2010-05-04  Jim Meyering  <meyering@redhat.com>
24868
24869         gendocs.sh: make its "-s FILE" option more useful
24870         * build-aux/gendocs.sh: When honoring the -s FILE option, update
24871         $PACKAGE to reflect the probably-different basename of "FILE".
24872
24873 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
24874
24875         bootstrap: don't ignore download_po_files failure
24876         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
24877         failure.
24878
24879 2010-05-03  Jim Meyering  <meyering@redhat.com>
24880
24881         maint.mk: allow to pass options to gendocs.sh
24882         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
24883         (gendocs_options_): New overridable variable.
24884
24885         gnu-web-doc-update: don't ignore configure or build failure
24886         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
24887
24888         announce-gen: backslash-escape '@'s in --help output
24889         * build-aux/announce-gen: Fix syntax errors.
24890
24891         maint.mk, announce-gen: allow project-specific announcement mail headers
24892         * top/maint.mk (translation_project_): Define default.
24893         (announcement_Cc_, announcement_mail_headers_): Likewise.
24894         (announcement): Invoke announce-gen with new --mail-headers option.
24895         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
24896
24897         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
24898         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
24899         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
24900         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
24901         line in the "err2" output file when running "make check" in verbose
24902         mode (i.e., with set -x enabled).
24903
24904 2010-05-03  Bruno Haible  <bruno@clisp.org>
24905
24906         wctob: Fix for weird platforms.
24907         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
24908         argument value.
24909
24910 2010-05-03  Jim Meyering  <meyering@redhat.com>
24911
24912         maint.mk: prohibit unwarranted use of <strings.h>
24913         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
24914         strings.h in a file that does not also use strcasecmp, strncasecmp,
24915         ffs or ffsll.
24916
24917         maint.mk: remove obsolete comments
24918         * top/maint.mk: Remove stale, commented-out rules.
24919
24920 2010-05-02  Bruno Haible  <bruno@clisp.org>
24921
24922         wcwidth: Declare also when it's aliased.
24923         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
24924         macro.
24925
24926 2010-05-02  Bruno Haible  <bruno@clisp.org>
24927
24928         Fix regression from 2010-04-25.
24929         * gnulib-tool (func_modules_transitive_closure): Check the status of
24930         all modules, not only of the tests that are of the form foo-tests where
24931         foo is a module.
24932
24933 2010-05-02  Bruno Haible  <bruno@clisp.org>
24934
24935         wctob: Work around nasty Cygwin 1.7.2 bug.
24936         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
24937         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
24938
24939 2010-05-01  Bruno Haible  <bruno@clisp.org>
24940
24941         fpurge: Sharper test.
24942         * tests/test-fpurge.c (main): Add one more ftell check.
24943         * modules/fpurge-tests (Depends-on): Add ftell.
24944         Suggested by Eric Blake.
24945
24946 2010-05-01  Bruno Haible  <bruno@clisp.org>
24947
24948         ftello: Another test.
24949         * tests/test-ftello3.c: New file.
24950         * modules/ftello-tests (Files): Add it.
24951         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24952         MOSTLYCLEANFILES.
24953
24954         ftell: Another test.
24955         * tests/test-ftell3.c: New file.
24956         * modules/ftell-tests (Files): Add it.
24957         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
24958         MOSTLYCLEANFILES.
24959
24960 2010-05-01  Bruno Haible  <bruno@clisp.org>
24961
24962         ftell, ftello: Work around Solaris bug.
24963         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
24964         * lib/ftello.c: Include stdio-impl.h.
24965         (ftello): On Solaris, when _IOWRT is set, compute the result without
24966         looking at _IOREAD.
24967         * modules/ftello (Files): Add lib/stdio-impl.h.
24968         * doc/posix-functions/ftell.texi: Mention Solaris bug.
24969         * doc/posix-functions/ftello.texi: Likewise.
24970         Reported by Eric Blake.
24971
24972 2010-05-01  Bruno Haible  <bruno@clisp.org>
24973
24974         freading: Adapt to special meaning of _IOREAD flag on Solaris.
24975         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
24976         the _IOWRT flag is also set.
24977
24978 2010-05-01  Bruno Haible  <bruno@clisp.org>
24979
24980         Fix doc about a HP-UX stdio bug.
24981         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
24982         * doc/posix-functions/ftello.texi: Likewise.
24983
24984 2010-05-01  Bruno Haible  <bruno@clisp.org>
24985
24986         lseek test: Fix failure on Solaris.
24987         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
24988         output.
24989
24990 2010-04-30  Jim Meyering  <meyering@redhat.com>
24991
24992         bootstrap: don't ignore failure to generate po*/Makevars
24993         * build-aux/bootstrap (with_gettext): Don't ignore failure
24994         to create po/Makevars or runtime-po/Makevars.
24995
24996 2010-04-29  Eric Blake  <eblake@redhat.com>
24997
24998         headers: relax license to LGPLv2+
24999         * modules/fcntl-h (License): Relax license.
25000         * modules/getopt-posix (License): Likewise.
25001         * modules/locale (License): Likewise.
25002         * modules/math (License): Likewise.
25003         * modules/pty (License): Likewise.
25004         * modules/sched (License): Likewise.
25005         * modules/search (License): Likewise.
25006         * modules/spawn (License): Likewise.
25007         * modules/stdarg (License): Likewise.
25008         * modules/sysexits (License): Likewise.
25009
25010 2010-04-29  Jim Meyering  <meyering@redhat.com>
25011
25012         inttypes: relax license to LGPLv2+
25013         * modules/inttypes (License): Relax license.
25014
25015 2010-04-29  Simon Josefsson  <simon@josefsson.org>
25016
25017         * top/maint.mk (indent): Run twice to produce idempotent results.
25018
25019 2010-04-28  Bruno Haible  <bruno@clisp.org>
25020
25021         getdate: Generate getdate.c in the source directory.
25022         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
25023         MOSTLYCLEANFILES.
25024         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
25025
25026 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
25027
25028         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
25029         is not declared as a const *; avoid warnings in that case.
25030
25031 2010-04-28  Eric Blake  <eblake@redhat.com>
25032
25033         canonicalize-lgpl: avoid compiler warning
25034         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
25035         declaration' / 'extraneous semicolon' warning with some compilers.
25036         Reported by Andreas Gruenbacher.
25037
25038 2010-04-28  Jim Meyering  <meyering@redhat.com>
25039
25040         init.sh: ensure a more reliable exit status when exiting via trap
25041         * tests/init.sh (setup_): Don't rely on $? in signal handler.
25042         Inspired by patches from Dmitry V. Levin.
25043         Also trap on signal 3 (SIGQUIT).
25044
25045 2010-04-27  Bruno Haible  <bruno@clisp.org>
25046
25047         Update doc about utimes().
25048         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
25049         'utimens' module.
25050         Reported by Andreas Gruenbacher <agruen@suse.de>.
25051
25052 2010-04-27  Eric Blake  <eblake@redhat.com>
25053
25054         full-read, full-write: relax license
25055         * modules/full-read (License): Drop to LGPLv2+.
25056         * modules/full-write (License): Likewise.
25057         * modules/safe-read (License): Likewise.
25058         * modules/safe-write (License): Likewise.
25059
25060         pthread: mention library for linking
25061         * modules/pthread (Link): Mention $(LIB_PTHREAD).
25062
25063 2010-04-27  Jim Meyering  <meyering@redhat.com>
25064
25065         maint.mk: fix a bug introduced in last change
25066         * top/maint.mk (gl_assured_headers_): Now that all names are on
25067         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
25068         is not anchored to end of word, it should be adequate.
25069
25070         maint.mk: avoid side-effect in latest syntax-check
25071         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
25072         to run commands via $(shell...), and hence to incur cost only when
25073         the new rule is actually run.
25074
25075         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
25076         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
25077         and use that to create a regexp used to detect all #if HAVE_..._H uses.
25078         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
25079         (gl_assured_headers_, az_, AZ_): Define.
25080         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
25081
25082 2010-04-26  Jim Meyering  <jim@meyering.net>
25083             Bruno Haible  <bruno@clisp.org>
25084
25085         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
25086         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
25087         Prompted by an exchange with Gilles Espinasse.
25088
25089 2010-04-26  Jim Meyering  <meyering@redhat.com>
25090
25091         git-version-gen: aesthetic tweak
25092         * build-aux/git-version-gen: Use "$nl" rather than a literal,
25093         so that the command remains on a single line.
25094
25095 2010-04-26  Eric Blake  <eblake@redhat.com>
25096
25097         git-version-gen: allow use on EBCDIC hosts
25098         * build-aux/git-version-gen (dirty): Use literal rather than tying
25099         ourselves to ascii.
25100         Reported by Steve Goetze.
25101
25102 2010-04-25  Bruno Haible  <bruno@clisp.org>
25103
25104         netdb: Add support for GNULIB_POSIXCHECK.
25105         * lib/netdb.in.h: Include warn-on-use.h.
25106         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
25107         functions are used when GNULIB_POSIXCHECK is defined and the
25108         getaddrinfo module is not in use.
25109         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
25110         freeaddrinfo, gai_strerror, getnameinfo are declared.
25111         * modules/netdb (Depends-on): Add warn-on-use.
25112         (Makefile.am): Include warn-on-use.h in netdb.h.
25113
25114 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
25115
25116         build: avoid "make check" failure without .git/ directory
25117         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
25118         there is no .git/ directory.
25119
25120 2010-04-25  Bruno Haible  <bruno@clisp.org>
25121
25122         ptsname: Fix misuse of ttyname_r.
25123         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
25124         of errno.
25125
25126 2010-04-25  Bruno Haible  <bruno@clisp.org>
25127
25128         ttyname_r: Make it work on Solaris 10.
25129         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
25130         if the system function has the POSIX declaration. Test whether the
25131         function fails if the buffer is less than 128 bytes large.
25132         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
25133         system's ttyname_r function. Provide a reasonably large buffer.
25134         * modules/ttyname_r (Depends-on): Add extensions.
25135         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
25136
25137 2010-04-25  Bruno Haible  <bruno@clisp.org>
25138
25139         Use the 'extensions' module for some more functions on Solaris.
25140         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
25141         module.
25142         * doc/posix-functions/ctime_r.texi: Likewise.
25143         * doc/posix-functions/getgrgid_r.texi: Likewise.
25144         * doc/posix-functions/getgrnam_r.texi: Likewise.
25145         * doc/posix-functions/getpwnam_r.texi: Likewise.
25146         * doc/posix-functions/getpwuid_r.texi: Likewise.
25147         * doc/posix-functions/readdir_r.texi: Likewise.
25148         * doc/posix-functions/sigwait.texi: Likewise.
25149         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
25150         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
25151
25152 2010-04-25  Bruno Haible  <bruno@clisp.org>
25153
25154         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
25155         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
25156         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
25157         * lib/ttyname_r.c: Include <limits.h>.
25158         (ttyname_r): Define using the system's ttyname_r function, if it exists
25159         and not on Solaris.
25160         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
25161         set.
25162         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
25163         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
25164         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
25165         Reported by Simon Josefsson.
25166
25167 2010-04-25  Bruno Haible  <bruno@clisp.org>
25168
25169         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
25170         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
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/getlogin_r.texi: Likewise.
25175         * doc/posix-functions/getpwnam_r.texi: Likewise.
25176         * doc/posix-functions/getpwuid_r.texi: Likewise.
25177         * doc/posix-functions/readdir_r.texi: Likewise.
25178         * doc/posix-functions/sigwait.texi: Likewise.
25179         * doc/posix-functions/ttyname_r.texi: Likewise.
25180         Reported by Simon Josefsson.
25181
25182 2010-04-25  Bruno Haible  <bruno@clisp.org>
25183
25184         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
25185         * gnulib-tool (func_usage): Document that --with-*-tests options apply
25186         also to --create-testdir.
25187         (func_acceptable): Don't consider the status of *-tests modules here.
25188         (func_modules_transitive_closure): Consider it here, before including a
25189         test module.
25190         (func_import, func_create_testdir): Set inc_all_direct_tests,
25191         inc_all_indirect_tests.
25192         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
25193         --create-testdir and --create-megatestdir.
25194
25195 2010-04-25  Bruno Haible  <bruno@clisp.org>
25196
25197         gnulib-tool: Add --without-*-tests options.
25198         * gnulib-tool (func_usage): Document the --without-*-tests options.
25199         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
25200         excl_unportable_tests): New variables.
25201         Fail if they are specified with --import or --update.
25202         (func_acceptable): Respect the excl_*_tests variables.
25203         (func_import): Set the excl_*_tests variables to empty.
25204
25205 2010-04-25  Simon Josefsson  <simon@josefsson.org>
25206             Bruno Haible  <bruno@clisp.org>
25207
25208         Work around a MacOS X 10.4 bug with openpty.
25209         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
25210         * tests/test-openpty.c (main): Close the master side explicitly.
25211
25212 2010-04-25  Bruno Haible  <bruno@clisp.org>
25213
25214         strnlen: Fix a C++ test error on MacOS X and Solaris.
25215         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
25216         the function is not declared.
25217         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
25218         Simon Josefsson.
25219
25220 2010-04-24  Bruno Haible  <bruno@clisp.org>
25221
25222         Avoid a gcc warning.
25223         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
25224         of correct type for %08lx directive.
25225         Reported by Eric Blake.
25226
25227 2010-04-24  Bruno Haible  <bruno@clisp.org>
25228
25229         vasnprintf: Correct errno value in case of out-of-memory.
25230         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
25231         or sprintf. Use the errno value from SNPRINTF or sprintf.
25232         Reported by Ian Beckwith <ianb@erislabs.net>.
25233
25234 2010-04-24  Bruno Haible  <bruno@clisp.org>
25235
25236         ansi-c++-opt: Find correct compiler when cross-compiling.
25237         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
25238         AC_CHECK_PROGS.
25239         Reported by Simon Josefsson.
25240
25241 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
25242
25243         vc-list-files: Add support for subversion
25244         * build-aux/vc-list-files: Use "svn list" to generate the list of
25245         files controlled by subversion.
25246
25247 2010-04-23  Jim Meyering  <meyering@redhat.com>
25248
25249         vc-list-files tests: convert to use init.sh
25250         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
25251         path_prepend_.
25252         Use Exit, not exit.
25253         Use skip_ rather than open coding it.
25254         Remove trap set-up and compare definitions.
25255         * tests/test-vc-list-files-git.sh: Likewise.
25256         * modules/vc-list-files-tests (Files): Add tests/init.sh.
25257
25258 2010-04-22  Simon Josefsson  <simon@josefsson.org>
25259
25260         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
25261         backup files.
25262
25263 2010-04-21  Simon Josefsson  <simon@josefsson.org>
25264
25265         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
25266
25267 2010-04-20  Eric Blake  <eblake@redhat.com>
25268
25269         tests: be robust to ignored SIGPIPE
25270         * tests/test-select-in.sh: Consume all output.
25271         * tests/test-lseek.sh: Check correct exit status, while avoiding
25272         EPIPE.
25273
25274 2010-04-20  Simon Josefsson  <simon@josefsson.org>
25275             Bruno Haible  <bruno@clisp.org>
25276
25277         visibility: Don't use -fvisibility if it leads to a warning.
25278         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
25279         yes, don't pretend that visibility works if it leads to a warning.
25280         Reported by Mike Gran <spk121@yahoo.com>.
25281
25282 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
25283
25284         * build-aux/bootstrap: Use "git -h" for testing for supported options
25285         instead of "git --help".  The short-form option only shows a summary,
25286         and doesn't layout the full man page.  Grep for the full option name
25287         in the summary, too.
25288
25289 2010-04-19  Bruno Haible  <bruno@clisp.org>
25290
25291         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
25292         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
25293         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
25294         mention of RELOCATABLE_STRIP.
25295         Reported by Sylvain Beucler <beuc@beuc.net>.
25296
25297 2010-04-19  Bruno Haible  <bruno@clisp.org>
25298
25299         * lib/diffseq.h: Fix typo in comment.
25300         Reported by Eric Blake.
25301
25302 2010-04-19  Bruno Haible  <bruno@clisp.org>
25303
25304         ioctl: Move autoconf macro to a .m4 file.
25305         * m4/ioctl.m4: New file, extracted from modules/ioctl.
25306         * modules/ioctl (Files): Add it.
25307         (configure.ac): Simply invoke gl_FUNC_IOCTL.
25308         Reported by Ian Beckwith <ianb@erislabs.net>.
25309
25310 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
25311             Bruno Haible  <bruno@clisp.org>
25312
25313         diffseq: Accommodate use-case with abstract arrays.
25314         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
25315         is not defined.
25316         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
25317         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
25318
25319 2010-04-18  Bruno Haible  <bruno@clisp.org>
25320
25321         * doc/posix-headers/stdbool.texi: More precise wording.
25322
25323 2010-04-17  Jim Meyering  <meyering@redhat.com>
25324
25325         maint.mk: use gnu-style indentation in an embedded perl script
25326         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
25327         Rename variable: s/two/last_two_bytes/
25328
25329 2010-04-16  Eric Blake  <eblake@redhat.com>
25330
25331         test-stdbool: skip test that fails with Solaris CC
25332         * tests/test-stdbool.c (f): Skip test that causes compilation
25333         error under buggy C++ compiler.
25334         * lib/stdbool.in.h: Document the limitation.
25335         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
25336
25337         setenv: allow compilation with C++
25338         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
25339         register keyword.
25340
25341         stdint: allow test to pass with C++
25342         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
25343
25344         getopt: allow compilation with C++
25345         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
25346         struct.
25347         * lib/getopt.c (_getopt_internal_r): Use correct type.
25348         Reported by Dagobert Michelson, via Joel E. Denny.
25349
25350 2010-04-16  Bruno Haible  <bruno@clisp.org>
25351
25352         Override netdb.h always.
25353         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
25354         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
25355         Reported by Ludovic Courtès <ludo@gnu.org>.
25356
25357 2010-04-15  Bruno Haible  <bruno@clisp.org>
25358
25359         openpty: Fix mistake from 2010-03-21.
25360         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
25361         Reported by Simon Josefsson.
25362
25363 2010-04-15  Eric Blake  <eblake@redhat.com>
25364
25365         test-forkpty: fix expected signature
25366         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
25367         Reported by Simon Josefsson.
25368
25369 2010-04-15  Jim Meyering  <meyering@redhat.com>
25370
25371         maint.mk: texinfo_suffix_re_: correct the default regexp
25372         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
25373
25374         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
25375         make it configurable via texinfo_suffix_re_.
25376
25377 2010-04-14  Eric Blake  <eblake@redhat.com>
25378
25379         strtok_r: relax license to LGPLv2+
25380         * modules/strtok_r (License): Relax license.
25381         Reported by Matthias Bolte.
25382
25383 2010-04-14  Simon Josefsson  <simon@josefsson.org>
25384
25385         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
25386         version 1.4.4 by default instead of requiring the libgcrypt
25387         version used during build.  This makes it possible to use the
25388         application with older but still binary compatible libgcrypt
25389         versions.
25390
25391 2010-04-13  Eric Blake  <eblake@redhat.com>
25392
25393         getopt-gnu: match recent glibc fixes and posix ruling
25394         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
25395         '+' handling, when requesting extensions.
25396         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
25397         'W;' handling.
25398         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
25399         * doc/posix-functions/getopt.texi (getopt): Document this.
25400         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
25401         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25402         Likewise.
25403
25404         getopt: merge bug fixes from glibc
25405         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
25406         diagnostics.  Honor '+:' correctly.  Reject ';'.
25407
25408         getopt-posix: detect MacOS bug
25409         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
25410         optind when missing a required argument.
25411         * doc/posix-functions/getopt.texi (getopt): Document the bug.
25412         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
25413         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
25414         Likewise.
25415
25416         getopt-posix: avoid spurious failure on Solaris
25417         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
25418         an indicator that setting optind=1 is sufficient for reset.
25419
25420         getopt-posix: avoid spurious failure on FreeBSD
25421         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
25422         in POSIX mode, since the m4 test uses it.
25423
25424         gnulib-tool: silence warning on BSD sh
25425         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
25426
25427 2010-04-13  Jim Meyering  <meyering@redhat.com>
25428
25429         doc: users.txt: GNU patch now uses gnulib
25430         * users.txt: Add patch.
25431
25432 2010-04-12  Jim Meyering  <meyering@redhat.com>
25433
25434         maint.mk: generate more concise timing data for syntax-check rules
25435         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
25436         " done" from each line that reports a syntax-check test duration.
25437
25438 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
25439
25440         git-version-gen: use "git update-index..." rather than "git status"
25441         * build-aux/git-version-gen: Use git update-index --refresh, not
25442         "git status".  With some versions of git, "git status" would fail
25443         to update the index and result in an unwarranted "-dirty" suffix.
25444
25445 2010-04-11  Jim Meyering  <meyering@redhat.com>
25446
25447         openat: correct formatting (no semantic change)
25448         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
25449         Suggested by Bruno Haible.
25450
25451 2010-04-11  Bruno Haible  <bruno@clisp.org>
25452
25453         Stricter declaration checking in testdirs.
25454         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25455         If for_tests is true, augment AM_CPPFLAGS to define
25456         GNULIB_STRICT_CHECKING.
25457         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
25458         GNULIB_STRICT_CHECKING is defined, verify that the function is
25459         declared.
25460
25461 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
25462             Bruno Haible  <bruno@clisp.org>
25463
25464         libunistring: Improve configure output.
25465         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
25466         Don't say "consider installing GNU libunistring" when checking again
25467         with libiconv.
25468
25469 2010-04-11  Bruno Haible  <bruno@clisp.org>
25470
25471         libunistring: Correct value of $LTLIBUNISTRING.
25472         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
25473         correct the value of $LTLIBUNISTRING.
25474
25475 2010-04-11  Bruno Haible  <bruno@clisp.org>
25476
25477         havelib: Add static libraries to LIBS in the right order.
25478         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
25479         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
25480
25481 2010-04-11  Bruno Haible  <bruno@clisp.org>
25482
25483         libunistring: Detect libunistring also when it depends on libiconv.
25484         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
25485         the second AC_LIB_HAVE_LINKFLAGS invocation.
25486
25487 2010-04-11  James Youngman  <jay@gnu.org>
25488
25489         close-stream: declare local scalars to be "const"
25490         * lib/close-stream.c (close_stream): Make boolean variables const
25491         to document the fact that we set but do not change them.
25492
25493 2010-04-11  Bruno Haible  <bruno@clisp.org>
25494
25495         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
25496
25497 2010-04-11  Jim Meyering  <meyering@redhat.com>
25498
25499         maint.mk: don't include dist-check.mk
25500         * top/maint.mk: Remove bogus include directive.
25501
25502         maint.mk: improve empty-line-at-EOF check
25503         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
25504         solution, rather than tail+Perl-based one.  The latter would read
25505         a few kilobytes from the end of each file, and did not handle empty
25506         files properly.
25507
25508         maint.mk: print the elapsed time for each syntax-check rule
25509         * top/maint.mk (sc_m_rules_): Save start time in a file.
25510         (sc_z_rules_): New rules: remove temp file and print elapsed time.
25511         (local-check): Interpose the .z rules
25512
25513 2010-04-11  Jim Meyering  <meyering@redhat.com>
25514
25515         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
25516         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
25517         empty file with one that ends in an empty line.
25518
25519 2010-04-10  Bruno Haible  <bruno@clisp.org>
25520
25521         mkdir: Make it work on mingw64.
25522         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
25523         * lib/mkdir.c: Update comment.
25524         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
25525
25526 2010-04-10  Bruno Haible  <bruno@clisp.org>
25527
25528         Don't override improved macro from newer autoconf.
25529         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
25530         autoconf >= 2.62.
25531         Reported by Joel E. Denny <jdenny@clemson.edu>.
25532
25533 2010-04-10  Jim Meyering  <meyering@redhat.com>
25534
25535         maint.mk: new syntax-check rule: prohibit empty lines at end of file
25536         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
25537
25538         maint.mk: correct a diagnostic
25539         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
25540         in diagnostic; now use $prohibit.
25541
25542 2010-04-10  Bruno Haible  <address@hidden>
25543
25544         fchownat: Fix a C++ test error on Solaris 8.
25545         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
25546         the function does not exist.
25547
25548 2010-04-10  Bruno Haible  <bruno@clisp.org>
25549
25550         vasnprintf: Add more tests.
25551         * tests/test-vasnprintf-posix.c: Include <errno.h>.
25552         (test_function): Test converting an invalid wide string.
25553
25554         vasnprintf: Correct handling of unconvertible wide string arguments.
25555         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
25556         VASNPRINTF.
25557         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
25558         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
25559         smaller than the expected maximum need for the directive. Set errno to
25560         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
25561         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
25562         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
25563         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
25564         * modules/vasnprintf (Files): Add m4/printf.m4.
25565         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25566
25567 2010-04-10  Bruno Haible  <bruno@clisp.org>
25568
25569         vasnprintf: Fix crash in %ls directive.
25570         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
25571         string is passed as argument to %ls, with no precision and no width.
25572         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25573
25574 2010-04-10  Bruno Haible  <bruno@clisp.org>
25575
25576         vasnprintf: Fix multiple test failures on mingw.
25577         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
25578         _snprintf, or snwprintf, not _snwprintf.
25579
25580 2010-04-10  Bruno Haible  <bruno@clisp.org>
25581
25582         write: Fix a C++ test error on mingw.
25583         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
25584
25585 2010-04-10  Bruno Haible  <bruno@clisp.org>
25586
25587         vasnprintf test: Reduce code duplication.
25588         * tests/test-vasnprintf.c (test_function): New function, extracted from
25589         test_vasnprintf.
25590         (test_vasnprintf, test_asnprintf): Invoke it.
25591
25592 2010-04-10  Bruno Haible  <bruno@clisp.org>
25593
25594         strnlen: Fix warning in C++ mode on MacOS X.
25595         * lib/string.in.h (strnlen): Use the modern idiom.
25596         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
25597         defining strnlen as a macro already in <config.h>.
25598         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25599         REPLACE_STRNLEN.
25600         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
25601         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25602
25603 2010-04-08  James Youngman  <jay@gnu.org>
25604
25605         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
25606         the example.
25607
25608 2010-04-09  Jim Meyering  <meyering@redhat.com>
25609
25610         maint.mk: print better diagnostic when there is no $(_hv_file)
25611         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
25612         announce that when $(_hv_file) (aka help-version) does not exist.
25613
25614         init.sh: run tr in the "C" locale to avoid multibyte interpretation
25615         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
25616         not try to interpret its random input bytes.  Jarno Rajahalme reported
25617         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
25618         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
25619         (mktempd_): Likewise, just in case.
25620
25621         ftruncate: add two years to projected module removal date: 2012
25622         * m4/ftruncate.m4: Adjust comments.
25623
25624         ftruncate: mark module as obsolete; even MinGW provides it, now
25625         * modules/ftruncate (Status): Obsolete.
25626         (Notice): Say that.
25627         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
25628         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
25629
25630 2010-04-08  Bruno Haible  <bruno@clisp.org>
25631
25632         Fix side effects from tests-related modules.
25633         * modules/dprintf-posix (Comment): New section.
25634         * modules/fprintf-posix (Comment): Likewise.
25635         * modules/obstack-printf-posix (Comment): Likewise.
25636         * modules/printf-posix (Comment): Likewise.
25637         * modules/snprintf-posix (Comment): Likewise.
25638         * modules/sprintf-posix (Comment): Likewise.
25639         * modules/vasnprintf-posix (Comment): Likewise.
25640         * modules/vasprintf-posix (Comment): Likewise.
25641         * modules/vdprintf-posix (Comment): Likewise.
25642         * modules/vfprintf-posix (Comment): Likewise.
25643         * modules/vprintf-posix (Comment): Likewise.
25644         * modules/vsnprintf-posix (Comment): Likewise.
25645         * modules/vsprintf-posix (Comment): Likewise.
25646         * modules/xprintf-posix (Comment): Likewise.
25647         * modules/xvasprintf-posix (Comment): Likewise.
25648         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
25649         * modules/floorf-tests (Depends-on): Likewise.
25650         * modules/round-tests (Depends-on): Likewise.
25651         * modules/roundf-tests (Depends-on): Likewise.
25652         * modules/trunc-tests (Depends-on): Likewise.
25653         * modules/truncf-tests (Depends-on): Likewise.
25654         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
25655         'fprintf-posix' module is not present.
25656         * tests/test-floorf2.c (check): Likewise.
25657         * tests/test-trunc2.c (check): Likewise.
25658         * tests/test-truncf2.c (check): Likewise.
25659         * tests/test-round2.c (equal): Likewise.
25660         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25661
25662 2010-04-07  Karl Berry  <karl@gnu.org>
25663
25664         * config/srclist.txt,
25665         * config/srclistvars.sh,
25666         * config/srclist-update: doc fixes.
25667
25668 2010-04-07  Jim Meyering  <meyering@redhat.com>
25669
25670         maint.mk: add a PATH crosschecking syntax-check rule
25671         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
25672         Useful if you use a test like the one in help-version (coreutils,
25673         diffutils, grep, gzip) that ensures $(VERSION) matches what is
25674         printed by prog --version.
25675
25676 2010-04-06  Bruno Haible  <bruno@clisp.org>
25677
25678         Fix link error on mingw.
25679         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
25680         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
25681
25682 2010-04-06  Bruno Haible  <bruno@clisp.org>
25683
25684         Assume rmdir exists.
25685         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
25686
25687 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
25688
25689         doc: update users.txt
25690         * users.txt: Add gcal.
25691
25692 2010-04-06  Jim Meyering  <meyering@redhat.com>
25693
25694         init.sh: simply unset TMPDIR rather than risking env -i
25695         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
25696         although it probably works fine on all Unix-based systems, some
25697         systems (Cygwin?) cannot tolerate a totally cleared environment.
25698         Suggestion from Eric Blake.
25699
25700 2010-04-06  Jim Meyering  <meyering@redhat.com>
25701
25702         init.sh: portability fix: use env's POSIX-specified -i option not -u
25703         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
25704         than unportable env -u.  Solaris 5.11's env lacks support for -u.
25705
25706 2010-04-05  Bruno Haible  <bruno@clisp.org>
25707
25708         btowc: Work around Cygwin 1.7.2 bug.
25709         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
25710         does not map NUL to 0.
25711         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
25712
25713 2010-04-05  Bruno Haible  <bruno@clisp.org>
25714
25715         Make the multithread modules work on Cygwin 1.7.2.
25716         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
25717         imported symbols can be declared weak, so that it returns "no" on
25718         Cygwin 1.7.2.
25719
25720 2010-04-05  Bruno Haible  <bruno@clisp.org>
25721
25722         Use the module 'strncat'.
25723         * modules/unistr/u8-strncat (Depends-on): Add strncat.
25724
25725         Tests for module 'strncat'.
25726         * modules/strncat-tests: New file.
25727         * tests/test-strncat.c: New file.
25728
25729         New module 'strncat'.
25730         * lib/string.in.h (strncat): New declaration.
25731         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
25732         * m4/strncat.m4: New file, based on m4/memchr.m4.
25733         * modules/strncat: New file.
25734         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
25735         is declared.
25736         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
25737         REPLACE_STRNCAT.
25738         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
25739         REPLACE_STRNCAT.
25740         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
25741         module.
25742         * tests/test-string-c++.cc: Check signature of strncat.
25743
25744 2010-04-05  Jim Meyering  <meyering@redhat.com>
25745
25746         xstrtoumax-tests: convert to use init.sh
25747         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
25748         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25749         Use Exit, not exit.
25750         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25751
25752         xstrtoimax-tests: convert to use init.sh
25753         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
25754         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25755         Use Exit, not exit.
25756         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25757
25758 2010-04-05  Bruno Haible  <bruno@clisp.org>
25759
25760         sys_socket: Avoid #define replacements in C++ mode.
25761         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
25762         warning to the function if possible, rather than #defining the symbol
25763         to a dysfunctional alias.
25764
25765 2010-04-05  Bruno Haible  <bruno@clisp.org>
25766
25767         fseeko: Fix C++ test error on mingw.
25768         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
25769         gl_FUNC_FSEEKO.
25770         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
25771         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
25772         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
25773         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
25774
25775 2010-04-05  Bruno Haible  <bruno@clisp.org>
25776
25777         duplocale: Improve test output.
25778         * tests/test-duplocale.c (main): Print reason for skipped test.
25779
25780 2010-04-05  Bruno Haible  <bruno@clisp.org>
25781
25782         Assume rmdir exists.
25783         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
25784         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
25785
25786 2010-04-05  Bruno Haible  <bruno@clisp.org>
25787
25788         Fix link error on Solaris 8 with cc.
25789         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
25790
25791 2010-04-05  Bruno Haible  <bruno@clisp.org>
25792
25793         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
25794         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
25795
25796 2010-04-05  Bruno Haible  <bruno@clisp.org>
25797
25798         vasprintf: Update documentation.
25799         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
25800
25801 2010-04-05  Bruno Haible  <bruno@clisp.org>
25802
25803         ptsname: Improve test.
25804         * tests/test-ptsname.c (main): Also try the various master names of BSD
25805         systems.
25806
25807 2010-04-05  Bruno Haible  <bruno@clisp.org>
25808
25809         memchr: Avoid a possible C++ test error.
25810         * lib/string.in.h (memchr): Provide declaration if function is missing.
25811         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
25812         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
25813         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
25814         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
25815
25816 2010-04-05  Bruno Haible  <bruno@clisp.org>
25817
25818         strtok_r: Improve idiom.
25819         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
25820         AC_LIBOBJ is used.
25821
25822 2010-04-05  Bruno Haible  <bruno@clisp.org>
25823
25824         strdup: Improve idiom.
25825         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
25826         AC_LIBOBJ is used.
25827         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
25828         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
25829         when AC_LIBOBJ is used.
25830
25831 2010-04-05  Bruno Haible  <bruno@clisp.org>
25832
25833         mbsinit, mbrtowc, wcrtomb: Improve idioms.
25834         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
25835         don't set REPLACE_MBSINIT to 1.
25836         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
25837         don't set REPLACE_MBRTOWC to 1.
25838         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
25839         exist, don't set REPLACE_MBSRTOWCS to 1.
25840         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
25841         exist, don't set REPLACE_MBSNRTOWCS to 1.
25842         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
25843         don't set REPLACE_WCRTOMB to 1.
25844         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
25845         exist, don't set REPLACE_WCSRTOMBS to 1.
25846         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
25847         exist, don't set REPLACE_WCSNRTOMBS to 1.
25848
25849 2010-04-05  Bruno Haible  <bruno@clisp.org>
25850
25851         ldexpl: Improve idiom.
25852         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
25853         make sure to set HAVE_DECL_LDEXPL to 0.
25854
25855 2010-04-05  Jim Meyering  <meyering@redhat.com>
25856
25857         xstrtol-tests: convert to use init.sh
25858         * modules/xstrtol-tests (Files): Add tests/init.sh.
25859         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25860         Use Exit, not exit.
25861         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25862
25863         atexit-tests: convert to use init.sh
25864         * modules/atexit-tests (Files): Add tests/init.sh.
25865         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
25866         Use Exit, not exit.
25867         Remove uses of $EXEEXT and "./" to run a program in the current dir.
25868
25869         init.sh: fix typo
25870         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
25871
25872         init.sh: make it easier for a test script to write to the tty, ...
25873         when using automake's parallel-tests mode.
25874         * tests/init.sh (stderr_fileno_): Define overridable variable.
25875         (warn_): New function, to use it.
25876         (fail_, skip_, framework_failure_): Use warn_.
25877
25878 2010-04-04  Bruno Haible  <bruno@clisp.org>
25879
25880         btowc: Avoid warning.
25881         * lib/btowc.c: Include <stdlib.h>.
25882         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
25883
25884 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
25885             Bruno Haible  <bruno@clisp.org>
25886
25887         wchar: Port to NetBSD 1.5.
25888         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
25889         * lib/wctype.in.h (WEOF): Likewise.
25890
25891 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
25892             Bruno Haible  <bruno@clisp.org>
25893
25894         Port extended stdio to NetBSD 1.5.
25895         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
25896         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
25897         older.
25898
25899 2010-04-04  Bruno Haible  <bruno@clisp.org>
25900
25901         string: Remove unused substitution.
25902         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
25903         HAVE_DECL_STRERROR.
25904         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
25905
25906 2010-04-04  Bruno Haible  <bruno@clisp.org>
25907
25908         strtod: Avoid a possible C++ test error.
25909         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
25910         set REPLACE_STRTOD.
25911
25912 2010-04-04  Bruno Haible  <bruno@clisp.org>
25913
25914         strerror: Update documentation.
25915         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
25916
25917 2010-04-04  Bruno Haible  <bruno@clisp.org>
25918
25919         stdio: Fix some C++ test errors on Solaris 8 with GCC.
25920         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
25921         _GL_CXXALIAS_SYS_CAST.
25922
25923 2010-04-04  Bruno Haible  <bruno@clisp.org>
25924
25925         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
25926         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
25927         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
25928         REPLACE_FREXPL to 1.
25929         * doc/posix-functions/frexpl.texi: Update documentation.
25930
25931 2010-04-04  Bruno Haible  <bruno@clisp.org>
25932
25933         math: Fix some C++ test errors on Solaris 8 and Cygwin.
25934         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
25935
25936 2010-04-04  Bruno Haible  <bruno@clisp.org>
25937
25938         Implement nanosleep for native Windows.
25939         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
25940
25941 2010-04-04  Bruno Haible  <bruno@clisp.org>
25942
25943         math: Fix some C++ test errors on Solaris 8.
25944         * lib/math.in.h (truncf, trunc): Use simpler idiom.
25945
25946 2010-04-04  Bruno Haible  <bruno@clisp.org>
25947
25948         math: Fix some C++ test errors on Cygwin.
25949         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
25950         truncl): Provide declaration if the system does not have it.
25951         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
25952         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
25953         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
25954         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
25955         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
25956         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
25957         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
25958         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
25959         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
25960         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
25961         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
25962         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
25963         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
25964         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
25965         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
25966         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
25967         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
25968         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
25969         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
25970         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
25971         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
25972         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
25973
25974 2010-04-04  Bruno Haible  <bruno@clisp.org>
25975
25976         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
25977         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
25978         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
25979         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
25980         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
25981         * m4/isinf.m4 (gl_ISINF): Likewise.
25982         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25983
25984 2010-04-04  Bruno Haible  <bruno@clisp.org>
25985
25986         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
25987         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
25988
25989 2010-04-04  Bruno Haible  <bruno@clisp.org>
25990
25991         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
25992         * modules/tmpfile (configure.ac): Update.
25993
25994         tmpfile: Fix C++ test error on mingw.
25995         * lib/stdio.in.h (tmpfile): New declaration.
25996         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
25997         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
25998         * modules/tmpfile (Depends-on): Add stdio.
25999         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
26000         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
26001         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
26002         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
26003         REPLACE_TMPFILE.
26004         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
26005
26006 2010-04-04  Bruno Haible  <bruno@clisp.org>
26007
26008         ioctl: Fix C++ test error on mingw.
26009         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
26010         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
26011         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
26012
26013 2010-04-03  Bruno Haible  <bruno@clisp.org>
26014
26015         wcwidth: Fix C++ test error on mingw.
26016         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
26017         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
26018         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
26019
26020 2010-04-03  Bruno Haible  <bruno@clisp.org>
26021
26022         nanosleep: Fix C++ test error on mingw.
26023         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
26024         * lib/time.in.h (nanosleep): Use modern idiom.
26025         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
26026         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
26027         REPLACE_NANOSLEEP to 1.
26028         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
26029         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
26030
26031 2010-04-03  Bruno Haible  <bruno@clisp.org>
26032
26033         strptime: Fix C++ test error on mingw.
26034         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
26035         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
26036         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
26037         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
26038         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
26039         not REPLACE_STRPTIME.
26040         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
26041         REPLACE_STRPTIME.
26042
26043 2010-04-03  Bruno Haible  <bruno@clisp.org>
26044
26045         timegm: Fix C++ test error on mingw.
26046         * lib/time.in.h (timegm): Use modern idiom.
26047         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
26048         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
26049         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
26050         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
26051
26052 2010-04-03  Bruno Haible  <bruno@clisp.org>
26053
26054         timegm: Assume declaration if function exists.
26055         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
26056         if it exists. Don't clobber ac_cv_func_timegm.
26057
26058 2010-04-03  Bruno Haible  <bruno@clisp.org>
26059
26060         time_r: Fix C++ test error on mingw.
26061         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
26062         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
26063         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
26064         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
26065         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
26066
26067 2010-04-03  Bruno Haible  <bruno@clisp.org>
26068
26069         time_r: Minor updates.
26070         * modules/time_r (Description): Mention the provided functions.
26071         * lib/time_r.c: Don't include <string.h>.
26072         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
26073         * doc/posix-functions/localtime_r.texi: Likewise.
26074
26075 2010-04-03  Bruno Haible  <bruno@clisp.org>
26076
26077         time: Fix regression introduced on 2010-03-08.
26078         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
26079         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
26080
26081 2010-04-03  Jim Meyering  <meyering@redhat.com>
26082
26083         maint.mk: don't silently disable project-specific syntax-check rules
26084         * top/maint.mk (_prohibit_regexp): Define, to help people realize
26085         that they need to convert their project-specific syntax-check rules
26086         to use the new _sc_search_regexp.
26087
26088 2010-04-03  Bruno Haible  <bruno@clisp.org>
26089
26090         fchdir: Fix regression introduced on 2010-03-08.
26091         * lib/unistd.in.h (fchdir): Fix declaration.
26092         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
26093         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
26094         REPLACE_FCHDIR.
26095         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
26096         REPLACE_FCHDIR.
26097
26098 2010-04-03  Bruno Haible  <bruno@clisp.org>
26099
26100         getpagesize: Fix C++ test error on mingw.
26101         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
26102         system does not declare the function.
26103         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
26104         declared.
26105         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26106         HAVE_DECL_GETPAGESIZE.
26107         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
26108
26109 2010-04-03  Bruno Haible  <bruno@clisp.org>
26110
26111         stdio: Make C++ tests work on mingw.
26112         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
26113         does not declare the function.
26114
26115 2010-04-03  Bruno Haible  <bruno@clisp.org>
26116
26117         ftello: Fix C++ test error on mingw.
26118         * lib/stdio.in.h (ftello): Use modern idiom.
26119         * lib/ftello.c (ftello): Renamed from rpl_ftello.
26120         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
26121         is missing and that it needs to be replaced.
26122         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
26123         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
26124         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
26125
26126 2010-04-03  Bruno Haible  <bruno@clisp.org>
26127
26128         fseeko: Fix C++ test error on mingw.
26129         * lib/stdio.in.h (fseeko): Use modern idiom.
26130         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
26131         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
26132         is missing and that it needs to be replaced.
26133         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
26134         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
26135         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
26136
26137 2010-04-03  Bruno Haible  <bruno@clisp.org>
26138
26139         mkstemp: Fix C++ test error on mingw.
26140         * lib/stdlib.in.h (mkstemp): Use modern idiom.
26141         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
26142         function is missing and that it needs to be replaced.
26143         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
26144         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
26145
26146 2010-04-03  Bruno Haible  <bruno@clisp.org>
26147
26148         stpncpy: Fix C++ test error on mingw.
26149         * lib/string.in.h (stpncpy): Use modern idiom.
26150         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
26151         function is missing and that it needs to be replaced.
26152         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26153         REPLACE_STPNCPY.
26154         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
26155
26156 2010-04-03  Bruno Haible  <bruno@clisp.org>
26157
26158         sys_stat: Fix C++ test error on mingw.
26159         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
26160         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
26161
26162 2010-04-03  Bruno Haible  <bruno@clisp.org>
26163
26164         pty: Update doc.
26165         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
26166
26167 2010-04-03  Bruno Haible  <bruno@clisp.org>
26168
26169         unistd: Fix C++ test error on mingw.
26170         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
26171
26172 2010-04-03  Bruno Haible  <bruno@clisp.org>
26173
26174         Update doc regarding mingw.
26175         * doc/glibc-functions/openpty.texi: Update regarding mingw.
26176         * doc/glibc-functions/login_tty.texi: Likewise.
26177         * doc/glibc-functions/forkpty.texi: Likewise.
26178
26179 2010-04-03  Bruno Haible  <bruno@clisp.org>
26180
26181         stdlib: Avoid compilation failure of c-strtold on mingw.
26182         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
26183
26184 2010-04-03  Bruno Haible  <bruno@clisp.org>
26185
26186         locale: Make C++ tests work on Cygwin and mingw.
26187         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
26188         cannot provide the function.
26189         Reported by Simon Josefsson.
26190
26191 2010-04-03  Bruno Haible  <bruno@clisp.org>
26192
26193         localename: Port to MacOS X 10.6.
26194         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
26195         memory layout of the locales in MacOS X 10.6 as well.
26196         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
26197
26198 2010-04-02  Bruno Haible  <bruno@clisp.org>
26199
26200         gnulib-tool: Ensure that long-running tests are executed last.
26201         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
26202         running tests after the one for the other tests.
26203
26204 2010-04-02  Bruno Haible  <bruno@clisp.org>
26205
26206         gnulib-tool: Ensure the tests in the main directory are executed first.
26207         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
26208         start with the current directory.
26209
26210 2010-04-02  Bruno Haible  <bruno@clisp.org>
26211
26212         Tests for module 'havelib', moved here from GNU gettext.
26213         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
26214         modifications.
26215         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
26216         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
26217         with modifications.
26218         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
26219         modifications.
26220         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
26221         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
26222         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
26223         with modifications.
26224         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
26225         with modifications.
26226         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
26227         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
26228         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
26229         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
26230         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
26231         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
26232         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
26233         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
26234         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
26235         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
26236         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
26237         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
26238         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
26239         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
26240         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
26241         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
26242         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
26243         with modifications.
26244         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
26245         with modifications.
26246         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
26247         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
26248         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
26249         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
26250         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
26251         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
26252         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
26253         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
26254         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
26255         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
26256         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
26257         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
26258         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
26259         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
26260         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
26261         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
26262         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
26263         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
26264         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
26265         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
26266         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
26267         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
26268         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
26269         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
26270         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
26271         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
26272         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
26273         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
26274         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
26275         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
26276         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
26277         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
26278         * tests/havelib/rpathx/rpathx.c: New file, from
26279         gettext/autoconf-lib-link.
26280         * tests/havelib/rpathx/Makefile.am: New file, from
26281         gettext/autoconf-lib-link.
26282         * tests/havelib/rpathx/configure.ac: New file, from
26283         gettext/autoconf-lib-link with modifications.
26284         * tests/havelib/rpathy/rpathy.c: New file, from
26285         gettext/autoconf-lib-link.
26286         * tests/havelib/rpathy/Makefile.am: New file, from
26287         gettext/autoconf-lib-link.
26288         * tests/havelib/rpathy/configure.ac: New file, from
26289         gettext/autoconf-lib-link with modifications.
26290         * tests/havelib/rpathz/rpathz.c: New file, from
26291         gettext/autoconf-lib-link.
26292         * tests/havelib/rpathz/Makefile.am: New file, from
26293         gettext/autoconf-lib-link.
26294         * tests/havelib/rpathz/configure.ac: New file, from
26295         gettext/autoconf-lib-link with modifications.
26296         * tests/havelib/rpathlx/usex.c: New file, from
26297         gettext/autoconf-lib-link.
26298         * tests/havelib/rpathlx/Makefile.am: New file, from
26299         gettext/autoconf-lib-link.
26300         * tests/havelib/rpathlx/configure.ac: New file, from
26301         gettext/autoconf-lib-link with modifications.
26302         * tests/havelib/rpathly/usey.c: New file, from
26303         gettext/autoconf-lib-link.
26304         * tests/havelib/rpathly/Makefile.am: New file, from
26305         gettext/autoconf-lib-link.
26306         * tests/havelib/rpathly/configure.ac: New file, from
26307         gettext/autoconf-lib-link with modifications.
26308         * tests/havelib/rpathlz/usez.c: New file, from
26309         gettext/autoconf-lib-link.
26310         * tests/havelib/rpathlz/Makefile.am: New file, from
26311         gettext/autoconf-lib-link.
26312         * tests/havelib/rpathlz/configure.ac: New file, from
26313         gettext/autoconf-lib-link with modifications.
26314         * tests/havelib/rpathlyx/usey.c: New file, from
26315         gettext/autoconf-lib-link.
26316         * tests/havelib/rpathlyx/Makefile.am: New file, from
26317         gettext/autoconf-lib-link.
26318         * tests/havelib/rpathlyx/configure.ac: New file, from
26319         gettext/autoconf-lib-link with modifications.
26320         * tests/havelib/rpathlzyx/usez.c: New file, from
26321         gettext/autoconf-lib-link.
26322         * tests/havelib/rpathlzyx/Makefile.am: New file, from
26323         gettext/autoconf-lib-link.
26324         * tests/havelib/rpathlzyx/configure.ac: New file, from
26325         gettext/autoconf-lib-link with modifications.
26326         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
26327         with modifications.
26328
26329 2010-04-02  Bruno Haible  <bruno@clisp.org>
26330
26331         gnulib-tool: Create distributed built sources also for the tests.
26332         * gnulib-tool (func_create_testdir): Also generate distributed built
26333         sources in the tests directory.
26334
26335 2010-04-02  Bruno Haible  <bruno@clisp.org>
26336
26337         gnulib-tool: Obey user's environment variables.
26338         * gnulib-tool (func_create_testdir): When creating built sources,
26339         respect the environment variables for autoconf, automake, etc. given by
26340         the user.
26341
26342 2010-04-02  Bruno Haible  <bruno@clisp.org>
26343
26344         gnulib-tool: Provide the value of --m4-base to modules.
26345         * gnulib-tool (func_import, func_create_testdir): Emit a definition
26346         of gl_m4_base.
26347
26348 2010-04-02  Eric Blake  <eblake@redhat.com>
26349
26350         maint.mk: fix some fallout
26351         * NEWS: Document the incompatible change, and its effect on cfg.mk.
26352         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
26353
26354 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
26355
26356         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
26357         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
26358         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
26359         (sc_cast_of_x_alloc_return_value): Likewise.
26360         (sc_cast_of_alloca_return_value): Likewise.
26361         (sc_space_tab): Likewise.
26362         (sc_prohibit_atoi_atof): Likewise.
26363         (sc_prohibit_magic_number_exit): Likewise.
26364         (sc_error_exit_success): Likewise.
26365         (sc_file_system): Likewise.
26366         (sc_prohibit_have_config_h): Likewise.
26367         (sc_require_config_h): Likewise.
26368         (sc_prohibit_HAVE_MBRTOWC): Likewise.
26369         (sc_obsolete_symbols): Likewise.
26370         (sc_changelog): Likewise.
26371         (sc_program_name): Likewise.
26372         (sc_the_the): Likewise.
26373         (sc_trailing_blank): Likewise.
26374         (sc_two_space_separator_in_usage): Likewise.
26375         (sc_useless_cpp_parens): Likewise.
26376         (sc_GPL_version): Likewise.
26377         (sc_GFDL_version): Likewise.
26378         (sc_texinfo_acronym): Likewise.
26379         (sc_prohibit_cvs_keyword): Likewise.
26380         (sc_prohibit_stat_st_blocks): Likewise.
26381         (sc_prohibit_S_IS_definition): Likewise.
26382         (sc_redundant_const): Likewise.
26383         (sc_makefile_TAB_only_indentation): Likewise.
26384         (sc_m4_quote_check): Likewise.
26385         (sc_makefile_path_separator_check): Likewise.
26386         (sc_copyright_check): Likewise.
26387         (sc_Wundef_boolean): Likewise.
26388         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
26389
26390         maint.mk: match 0 or more whitespace-before-function-call '('
26391         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
26392         that have zero or two-and-more spaces between the function name
26393         and the open parenthesis.
26394         (sc_error_message_warn_fatal): Likewise.
26395         (sc_error_message_uppercase): Likewise.
26396         (sc_error_message_period): Likewise.
26397
26398 2010-03-31  Eric Blake  <eblake@redhat.com>
26399
26400         maint.mk: check for [ as well as test
26401         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
26402         Based on a libvirt report by Matthias Bolte.
26403
26404         gnumakefile: don't squelch _version output
26405         * top/GNUmakefile (_version): Create one-shot dependency rather
26406         than using $(shell) when version must be regenerated.
26407         (_autoreconf): Run verbosely, by default.
26408
26409         sys_time: avoid compiler warnings
26410         * lib/sys_time.in.h (includes): Ensure gcc pragma is
26411         unconditional, fixing regression from 2010-03-29.
26412         Reported by Simon Josefsson.
26413
26414 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
26415
26416         maint.mk: s/_header_without_use/_sc_header_without_use/
26417         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
26418         (sc_prohibit_assert_without_use): Use the new name.
26419         (sc_prohibit_close_stream_without_use): Likewise.
26420         (sc_prohibit_getopt_without_use): Likewise.
26421         (sc_prohibit_quotearg_without_use): Likewise.
26422         (sc_prohibit_quote_without_use): Likewise.
26423         (sc_prohibit_long_options_without_use): Likewise.
26424         (sc_prohibit_inttostr_without_use): Likewise.
26425         (sc_prohibit_ignore_value_without_use): Likewise.
26426         (sc_prohibit_error_without_use): Likewise.
26427         (sc_prohibit_xalloc_without_use): Likewise.
26428         (sc_prohibit_hash_without_use): Likewise.
26429         (sc_prohibit_hash_pjw_without_use): Likewise.
26430         (sc_prohibit_safe_read_without_use): Likewise.
26431         (sc_prohibit_argmatch_without_use): Likewise.
26432         (sc_prohibit_canonicalize_without_use): Likewise.
26433         (sc_prohibit_root_dev_ino_without_use): Likewise.
26434         (sc_prohibit_openat_without_use): Likewise.
26435         (sc_prohibit_c_ctype_without_use): Likewise.
26436         (sc_prohibit_signal_without_use): Likewise.
26437         (sc_prohibit_intprops_without_use): Likewise.
26438
26439 2010-03-30  Eric Blake  <eblake@redhat.com>
26440
26441         maint: improve module indicators
26442         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
26443         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
26444         columns, and avoid extra macro expansion.
26445
26446         fdopendir: work around FreeBSD bug
26447         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
26448         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
26449         * modules/dirent (Makefile.am): Substitute it.
26450         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
26451         declaration.
26452         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
26453         fix.
26454         Reported by Christian Weisgerber <naddy@mips.inka.de>.
26455
26456 2010-03-29  Bruno Haible  <bruno@clisp.org>
26457
26458         Emit #pragma system_header after the inclusion guard, not before.
26459         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
26460         guard that spans the entire file, not before. This enables an
26461         optimization in GCC's preprocessor.
26462         * lib/ctype.in.h: Likewise.
26463         * lib/dirent.in.h: Likewise.
26464         * lib/errno.in.h: Likewise.
26465         * lib/float.in.h: Likewise.
26466         * lib/getopt.in.h: Likewise.
26467         * lib/iconv.in.h: Likewise.
26468         * lib/langinfo.in.h: Likewise.
26469         * lib/locale.in.h: Likewise.
26470         * lib/math.in.h: Likewise.
26471         * lib/netdb.in.h: Likewise.
26472         * lib/netinet_in.in.h: Likewise.
26473         * lib/pty.in.h: Likewise.
26474         * lib/sched.in.h: Likewise.
26475         * lib/se-selinux.in.h: Likewise.
26476         * lib/search.in.h: Likewise.
26477         * lib/spawn.in.h: Likewise.
26478         * lib/stdarg.in.h: Likewise.
26479         * lib/stdint.in.h: Likewise.
26480         * lib/string.in.h: Likewise.
26481         * lib/strings.in.h: Likewise.
26482         * lib/sys_file.in.h: Likewise.
26483         * lib/sys_ioctl.in.h: Likewise.
26484         * lib/sys_time.in.h: Likewise.
26485         * lib/sys_times.in.h: Likewise.
26486         * lib/sys_utsname.in.h: Likewise.
26487         * lib/sys_wait.in.h: Likewise.
26488         * lib/sysexits.in.h: Likewise.
26489         * lib/wctype.in.h: Likewise.
26490
26491 2010-03-28  James Youngman  <jay@gnu.org>
26492
26493         save-cwd: don't leak a file descriptor when the caller execs.
26494         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
26495         saved file descriptor.
26496         * modules/save-cwd (Depends-on): Depend on cloexec.
26497
26498 2010-03-29  Bruno Haible  <bruno@clisp.org>
26499
26500         Remove vestiges of fts-lgpl module.
26501         * lib/fts_.h: Assume GNULIB_FTS is 1.
26502         * lib/fts.c: Likewise.
26503         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
26504
26505 2010-03-28  Bruno Haible  <bruno@clisp.org>
26506
26507         Fix definition of tests witness macro.
26508         * gnulib-tool (func_import): Fix definition of witness macro.
26509
26510 2010-03-28  Bruno Haible  <bruno@clisp.org>
26511
26512         Fix ioctl's protoype on glibc systems.
26513         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
26514         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
26515         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
26516         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
26517         signature. If not, arrange to replace the ioctl function.
26518         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
26519         REPLACE_IOCTL.
26520         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
26521         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
26522         Reported by Ludovic Courtès <ludo@gnu.org>.
26523
26524 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
26525
26526         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
26527         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
26528         made it so grep -r --include=GLOB* ... did not work.
26529
26530 2010-03-26  Jim Meyering  <meyering@redhat.com>
26531             Eric Blake  <eblake@redhat.com>
26532
26533         maint.mk: prohibit use of test's -o and -a operators
26534         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
26535
26536 2010-03-28  Bruno Haible  <bruno@clisp.org>
26537
26538         Remove unused GNULIB_XYZ macro definitions.
26539         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
26540         invocation.
26541
26542 2010-03-28  Bruno Haible  <bruno@clisp.org>
26543
26544         Mark privileged tests modules.
26545         * modules/idpriv-drop-tests (Status): New section.
26546         * modules/idpriv-droptemp-tests (Status): New section.
26547
26548 2010-03-28  Bruno Haible  <bruno@clisp.org>
26549
26550         Split C++ tests into separate tests modules.
26551         * modules/dirent-c++-tests: New file, extracted from
26552         modules/dirent-tests.
26553         * modules/dirent-tests: Depend on it.
26554         * modules/fcntl-h-c++-tests: New file, extracted from
26555         modules/fcntl-h-tests.
26556         * modules/fcntl-h-tests: Depend on it.
26557         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
26558         * modules/glob-tests: Depend on it.
26559         * modules/iconv-h-c++-tests: New file, extracted from
26560         modules/iconv-h-tests.
26561         * modules/iconv-h-tests: Depend on it.
26562         * modules/langinfo-c++-tests: New file, extracted from
26563         modules/langinfo-tests.
26564         * modules/langinfo-tests: Depend on it.
26565         * modules/locale-c++-tests: New file, extracted from
26566         modules/locale-tests.
26567         * modules/locale-tests: Depend on it.
26568         * modules/math-c++-tests: New file, extracted from modules/math-tests.
26569         * modules/math-tests: Depend on it.
26570         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
26571         * modules/pty-tests: Depend on it.
26572         * modules/search-c++-tests: New file, extracted from
26573         modules/search-tests.
26574         * modules/search-tests: Depend on it.
26575         * modules/signal-c++-tests: New file, extracted from
26576         modules/signal-tests.
26577         * modules/signal-tests: Depend on it.
26578         * modules/spawn-c++-tests: New file, extracted from
26579         modules/spawn-tests.
26580         * modules/spawn-tests: Depend on it.
26581         * modules/stdio-c++-tests: New file, extracted from
26582         modules/stdio-tests.
26583         * modules/stdio-tests: Depend on it.
26584         * modules/stdlib-c++-tests: New file, extracted from
26585         modules/stdlib-tests.
26586         * modules/stdlib-tests: Depend on it.
26587         * modules/string-c++-tests: New file, extracted from
26588         modules/string-tests.
26589         * modules/string-tests: Depend on it.
26590         * modules/sys_ioctl-c++-tests: New file, extracted from
26591         modules/sys_ioctl-tests.
26592         * modules/sys_ioctl-tests: Depend on it.
26593         * modules/sys_select-c++-tests: New file, extracted from
26594         modules/sys_select-tests.
26595         * modules/sys_select-tests: Depend on it.
26596         * modules/sys_socket-c++-tests: New file, extracted from
26597         modules/sys_socket-tests.
26598         * modules/sys_socket-tests: Depend on it.
26599         * modules/sys_stat-c++-tests: New file, extracted from
26600         modules/sys_stat-tests.
26601         * modules/sys_stat-tests: Depend on it.
26602         * modules/sys_time-c++-tests: New file, extracted from
26603         modules/sys_time-tests.
26604         * modules/sys_time-tests: Depend on it.
26605         * modules/time-c++-tests: New file, extracted from modules/time-tests.
26606         * modules/time-tests: Depend on it.
26607         * modules/unistd-c++-tests: New file, extracted from
26608         modules/unistd-tests.
26609         * modules/unistd-tests: Depend on it.
26610         * modules/wchar-c++-tests: New file, extracted from
26611         modules/wchar-tests.
26612         * modules/wchar-tests: Depend on it.
26613         * modules/wctype-c++-tests: New file, extracted from
26614         modules/wctype-tests.
26615         * modules/wctype-tests: Depend on it.
26616         Reported by Simon Josefsson.
26617
26618 2010-03-28  Bruno Haible  <bruno@clisp.org>
26619
26620         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
26621         * gnulib-tool (func_exists_module): New function, extracted from
26622         func_verify_module.
26623         (func_verify_module): Use it.
26624         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
26625         'foo' only if 'foo' exists.
26626         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
26627         module.
26628
26629 2010-03-28  Bruno Haible  <bruno@clisp.org>
26630
26631         gnulib-tool: Add support for special categories of tests.
26632         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
26633         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
26634         (func_usage): Document them.
26635         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
26636         inc_unportable_tests, inc_all_tests): New variables.
26637         (func_acceptable): Consider these variables.
26638         (func_modules_transitive_closure): Make it work when the 'Status' field
26639         consists of multiple words.
26640         (func_import): Store and restore the values of inc_cxx_tests,
26641         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
26642         inc_all_tests in gnulib-comp.m4.
26643         (func_create_testdir): Set inc_all_tests to true.
26644         * doc/gnulib.texi (Extra tests modules): New section.
26645         Suggested by Jim Meyering.
26646
26647 2010-03-28  Bruno Haible  <bruno@clisp.org>
26648
26649         ansi-c++-opt: Allow turning off the C++ build by default.
26650         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
26651         gl_CXX_CHOICE_DEFAULT_NO is defined.
26652         Requested by Eric Blake.
26653
26654 2010-03-28  Bruno Haible  <bruno@clisp.org>
26655
26656         unistd: Avoid #define replacements in C++ mode.
26657         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
26658         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
26659         setsockopt, shutdown, select): In C++, attach a warning to the function
26660         if possible, rather than #defining the symbol to a dysfunctional alias.
26661         Reported by John W. Eaton <jwe@gnu.org>.
26662
26663 2010-03-28  Bruno Haible  <bruno@clisp.org>
26664
26665         Fix link errors on mingw.
26666         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
26667         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
26668         $(LIBSOCKET).
26669         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
26670         $(LIBSOCKET).
26671
26672 2010-03-28  Bruno Haible  <bruno@clisp.org>
26673             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26674
26675         lib-ignore: Determine different options for different compilers.
26676         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
26677         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
26678         Add comments.
26679         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
26680         * NEWS: Mention the change.
26681
26682 2010-03-27  Bruno Haible  <bruno@clisp.org>
26683
26684         Remove unused GNULIB_XYZ macro definitions.
26685         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
26686         * modules/fseek (configure.ac): Likewise.
26687         * modules/ioctl (configure.ac): Likewise.
26688         * modules/open (configure.ac): Likewise.
26689         * modules/stdlib-safer (configure.ac): Likewise.
26690
26691 2010-03-27  Bruno Haible  <bruno@clisp.org>
26692
26693         Add a remark about certain modules.
26694         * modules/malloc (Comment): New section.
26695         * modules/realloc (Comment): Likewise.
26696         * modules/sigpipe (Comment): Likewise.
26697
26698 2010-03-27  Bruno Haible  <bruno@clisp.org>
26699
26700         Resolve conflict between the two kinds of module indicators.
26701         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
26702         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
26703         * modules/canonicalize (configure.ac): Invoke
26704         gl_MODULE_INDICATOR_FOR_TESTS.
26705         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
26706         GNULIB_XYZ.
26707         * tests/test-dirent-c++.cc: Likewise.
26708         * tests/test-dirent-safer.c: Likewise.
26709         * tests/test-dup2.c: Likewise.
26710         * tests/test-fchdir.c: Likewise.
26711         * tests/test-fcntl-h-c++.cc: Likewise.
26712         * tests/test-getopt.c: Likewise.
26713         * tests/test-getopt.h: Likewise.
26714         * tests/test-langinfo-c++.cc: Likewise.
26715         * tests/test-locale-c++.cc: Likewise.
26716         * tests/test-math-c++.cc: Likewise.
26717         * tests/test-pty-c++.cc: Likewise.
26718         * tests/test-search-c++.cc: Likewise.
26719         * tests/test-signal-c++.cc: Likewise.
26720         * tests/test-spawn-c++.cc: Likewise.
26721         * tests/test-stdio-c++.cc: Likewise.
26722         * tests/test-stdlib-c++.cc: Likewise.
26723         * tests/test-string-c++.cc: Likewise.
26724         * tests/test-sys_ioctl-c++.cc: Likewise.
26725         * tests/test-sys_select-c++.cc: Likewise.
26726         * tests/test-sys_socket-c++.cc: Likewise.
26727         * tests/test-sys_stat-c++.cc: Likewise.
26728         * tests/test-sys_time-c++.cc: Likewise.
26729         * tests/test-time-c++.cc: Likewise.
26730         * tests/test-unistd-c++.cc: Likewise.
26731         * tests/test-wchar-c++.cc: Likewise.
26732         * tests/uninorm/test-u8-nfc.c: Likewise.
26733         * tests/uninorm/test-u8-nfd.c: Likewise.
26734         * tests/uninorm/test-u8-nfkc.c: Likewise.
26735         * tests/uninorm/test-u8-nfkd.c: Likewise.
26736         * tests/uninorm/test-u16-nfc.c: Likewise.
26737         * tests/uninorm/test-u16-nfd.c: Likewise.
26738         * tests/uninorm/test-u16-nfkc.c: Likewise.
26739         * tests/uninorm/test-u16-nfkd.c: Likewise.
26740         * tests/uninorm/test-u32-nfc.c: Likewise.
26741         * tests/uninorm/test-u32-nfc-big.c: Likewise.
26742         * tests/uninorm/test-u32-nfd.c: Likewise.
26743         * tests/uninorm/test-u32-nfd-big.c: Likewise.
26744         * tests/uninorm/test-u32-nfkc.c: Likewise.
26745         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
26746         * tests/uninorm/test-u32-nfkd.c: Likewise.
26747         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
26748         * tests/uninorm/test-u32-normalize-big.c: Likewise.
26749
26750 2010-03-27  Bruno Haible  <bruno@clisp.org>
26751
26752         Distinguish two kinds of module indicators.
26753         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
26754         gl_MODULE_INDICATOR.
26755         (gl_MODULE_INDICATOR): New macro.
26756         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
26757         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
26758         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
26759         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
26760         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
26761         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
26762         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
26763         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
26764         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
26765         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
26766         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
26767         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
26768         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
26769         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
26770         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
26771         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
26772         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
26773         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
26774         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
26775         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
26776         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
26777         * modules/cloexec (configure.ac): Likewise.
26778         * modules/getopt-gnu (configure.ac): Likewise.
26779         * modules/uninorm/u8-normalize (configure.ac): Likewise.
26780         * modules/uninorm/u16-normalize (configure.ac): Likewise.
26781         * modules/uninorm/u32-normalize (configure.ac): Likewise.
26782         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
26783
26784 2010-03-27  Bruno Haible  <bruno@clisp.org>
26785
26786         New module description field 'Comment'.
26787         * gnulib-tool: New option --extract-comment.
26788         (func_usage): Document it.
26789         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
26790         (func_get_comment): New function.
26791         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
26792
26793 2010-03-27  Bruno Haible  <bruno@clisp.org>
26794
26795         Addendum to 2010-02-07 commit.
26796         * gnulib-tool (func_usage): Document --extract-applicability option.
26797
26798 2010-03-27  Bruno Haible  <bruno@clisp.org>
26799
26800         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
26801         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
26802         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
26803         rather than link errors.
26804
26805 2010-03-27  Bruno Haible  <bruno@clisp.org>
26806
26807         Avoid side effects from tests-related modules on the compilation of lib.
26808         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
26809         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
26810         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
26811         parameter. Emit into AM_CPPFLAGS a definition of the designated C
26812         macro.
26813         (func_import): Define a witness macro. Assign it a value that depends
26814         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
26815         tests-related modules.
26816         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
26817         Reported by Jim Meyering.
26818
26819 2010-03-27  Bruno Haible  <bruno@clisp.org>
26820
26821         Factorize common .m4 code.
26822         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
26823         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
26824         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
26825         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
26826         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
26827         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
26828         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
26829         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
26830         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
26831         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
26832         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
26833         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
26834         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
26835         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
26836         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
26837         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
26838         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
26839         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
26840         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
26841         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
26842         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
26843         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
26844         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
26845         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
26846         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
26847         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
26848         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
26849         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
26850         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
26851         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
26852         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
26853         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
26854
26855 2010-03-27  Bruno Haible  <bruno@clisp.org>
26856
26857         Fix a compilation error on Cygwin with g++ >= 4.3.
26858         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
26859         if it is undefined or if we alias it to chmod.
26860         (lstat): Don't warn about the use of this function if it is undefined
26861         or if we alias it to stat.
26862         Reported by Simon Josefsson.
26863
26864 2010-03-27  Bruno Haible  <bruno@clisp.org>
26865
26866         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
26867         * modules/getlogin (configure.ac): Update.
26868
26869         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
26870         * modules/getlogin_r (configure.ac): Update.
26871
26872         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
26873         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
26874         * modules/inet_ntop (configure.ac): Update.
26875
26876         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
26877         * modules/inet_pton (configure.ac): Update.
26878
26879         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
26880         * modules/mbslen (configure.ac): Update.
26881
26882         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
26883         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
26884         * modules/forkpty (configure.ac): Update.
26885         * modules/openpty (configure.ac): Update.
26886
26887 2010-03-26  Simon Josefsson  <simon@josefsson.org>
26888
26889         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
26890         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
26891
26892 2010-03-25  Eric Blake  <eblake@redhat.com>
26893
26894         maint: use pragma consistently across replacement headers
26895         * lib/ctype.in.h (system_header): Hoist for consistent placement.
26896         * lib/dirent.in.h (system_header): Likewise.
26897         * lib/errno.in.h (system_header): Likewise.
26898         * lib/float.in.h (system_header): Likewise.
26899         * lib/getopt.in.h (system_header): Likewise.
26900         * lib/iconv.in.h (system_header): Likewise.
26901         * lib/inttypes.in.h (system_header): Likewise.
26902         * lib/langinfo.in.h (system_header): Likewise.
26903         * lib/locale.in.h (system_header): Likewise.
26904         * lib/math.in.h (system_header): Likewise.
26905         * lib/netdb.in.h (system_header): Likewise.
26906         * lib/netinet_in.in.h (system_header): Likewise.
26907         * lib/pty.in.h (system_header): Likewise.
26908         * lib/sched.in.h (system_header): Likewise.
26909         * lib/se-selinux.in.h (system_header): Likewise.
26910         * lib/search.in.h (system_header): Likewise.
26911         * lib/spawn.in.h (system_header): Likewise.
26912         * lib/stdarg.in.h (system_header): Likewise.
26913         * lib/stdint.in.h (system_header): Likewise.
26914         * lib/string.in.h (system_header): Likewise.
26915         * lib/strings.in.h (system_header): Likewise.
26916         * lib/sys_file.in.h (system_header): Likewise.
26917         * lib/sys_ioctl.in.h (system_header): Likewise.
26918         * lib/sys_socket.in.h (system_header): Likewise.
26919         * lib/sys_times.in.h (system_header): Likewise.
26920         * lib/sys_utsname.in.h (system_header): Likewise.
26921         * lib/sys_wait.in.h (system_header): Likewise.
26922         * lib/sysexits.in.h (system_header): Likewise.
26923         * lib/unistd.in.h (system_header): Likewise.
26924         * lib/wctype.in.h (system_header): Likewise.
26925
26926         arpa/inet: fix mingw compilation warning
26927         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
26928         Reported by Matthew Bolte.
26929
26930 2010-03-25  Bruno Haible  <bruno@clisp.org>
26931
26932         Avoid collision between gnulib wrapper and libintl wrapper.
26933         * lib/printf.c (printf): Don't define if a printf wrapper is already
26934         defined in intl/printf.c.
26935         Reported by Michel Boaventura <michel@michelboaventura.com>.
26936
26937 2010-03-25  Bruno Haible  <bruno@clisp.org>
26938
26939         Use ANSI C.
26940         * lib/readutmp.h (getutent): Provide ANSI C prototype.
26941
26942 2010-03-25  Bruno Haible  <bruno@clisp.org>
26943
26944         Minor formatting changes.
26945         * lib/acosl.c: Insert space before function argument list.
26946         * lib/argz.c: Likewise.
26947         * lib/asinl.c: Likewise.
26948         * lib/expl.c: Likewise.
26949         * lib/gen-uni-tables.c: Likewise.
26950         * lib/gettext.h: Likewise.
26951         * lib/glthread/lock.h: Likewise.
26952         * lib/tanl.c: Likewise.
26953         * lib/uniname/uniname.c: Likewise.
26954         * tests/test-idpriv-drop.c: Likewise.
26955         * tests/test-idpriv-droptemp.c: Likewise.
26956         * tests/test-lock.c: Likewise.
26957         * tests/test-tls.c: Likewise.
26958         * lib/argp-help.c: Insert space before function-like macro argument
26959         list.
26960         * lib/memcmp.c: Likewise.
26961         * tests/test-base64.c: Likewise.
26962         * lib/localename.c: Insert space before sizeof's argument list.
26963         * lib/safe-alloc.h: Likewise.
26964         * lib/file-set.h: Insert space before macro argument list.
26965         * tests/test-argp.c: Likewise.
26966         * lib/argp-namefrob.h: Insert space before function parameter list.
26967         * lib/getaddrinfo.c: Likewise.
26968         * lib/netdb.in.h: Likewise.
26969         * lib/parse-duration.h: Likewise.
26970         * lib/parse-duration.c: Likewise.
26971         * lib/poll.c: Likewise.
26972         * lib/select.c: Likewise.
26973         * lib/trim.h: Likewise.
26974         * tests/test-usleep.c: Likewise.
26975         * lib/ldexpl.c: Insert space before function parameter list and before
26976         function argument list.
26977         * lib/logl.c: Likewise.
26978         * lib/sqrtl.c: Likewise.
26979         * lib/trim.c: Likewise.
26980         * lib/cosl.c: Use GNU style indentation. Insert space before function
26981         argument list.
26982         * lib/sinl.c: Likewise.
26983         * lib/tsearch.c: Insert space after 'for'.
26984         Reported by Jim Meyering.
26985
26986 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
26987
26988         * maint.mk (sc_Wundef_boolean): Check for the presence of the
26989         config header before grepping, as it's not present before
26990         autoreconf/configure are run.  Reported by Simon Josefsson.
26991
26992 2010-03-23  Bruno Haible  <bruno@clisp.org>
26993
26994         pt_chown: Make it work with automake < 1.11.
26995         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
26996         Reported by Simon Josefsson.
26997
26998 2010-03-23  Bruno Haible  <bruno@clisp.org>
26999
27000         pt_chown: Don't depend on GPLed modules.
27001         * lib/pt_chown.c: Don't include idpriv.h.
27002         (main): Don't drop privileges.
27003         * modules/pt_chown (Depends-on): Remove idpriv-drop.
27004         Reported by Simon Josefsson.
27005
27006 2010-03-24  Simon Josefsson  <simon@josefsson.org>
27007
27008         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
27009         suggestions from karl@freefriends.org (Karl Berry).
27010
27011 2010-03-22  Eric Blake  <eblake@redhat.com>
27012
27013         gethostname: further tweaks
27014         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
27015         are overriding gethostname.
27016         Suggested by Bruno Haible.
27017
27018 2010-03-21  Bruno Haible  <bruno@clisp.org>
27019
27020         Fix comments.
27021         * lib/forkpty.c (rpl_forkpty): Fix comment.
27022         * lib/openpty.c (rpl_openpty): Likewise.
27023         Reported by Eric Blake.
27024
27025 2010-03-22  Eric Blake  <eblake@redhat.com>
27026
27027         gethostname: fix build on mingw
27028         * lib/unistd.in.h (includes): Work around fact that mingw
27029         <winsock2.h> re-includes <unistd.h>, by avoiding any
27030         redeclarations if we are being included by <winsock2.h>.
27031         Reported by Matthias Bolte.
27032
27033 2010-03-21  Bruno Haible  <bruno@clisp.org>
27034
27035         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
27036         * lib/forkpty.c (forkpty): New replacement function, from glibc with
27037         modifications.
27038         * lib/pty.in.h (forkpty): Update declaration. Add comments.
27039         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
27040         provide the replacement.
27041         * modules/forkpty (Depends-on): Add openpty, login_tty.
27042         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
27043         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
27044         * doc/glibc-functions/forkpty.texi: More supported platforms.
27045         * config/srclist.txt: Add forkpty.c (commented).
27046
27047 2010-03-21  Bruno Haible  <bruno@clisp.org>
27048
27049         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
27050         (Makefile.am): Verify that PTY_LIB is defined.
27051
27052         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
27053
27054 2010-03-21  Bruno Haible  <bruno@clisp.org>
27055
27056         Tests for module 'login_tty'.
27057         * modules/login_tty-tests: New file.
27058         * tests/test-login_tty.c: New file.
27059
27060         New module 'login_tty'.
27061         * lib/login_tty.c: New file.
27062         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
27063         * modules/login_tty: New file.
27064         * doc/glibc-functions/login_tty.texi: Mention the new module.
27065
27066 2010-03-21  Bruno Haible  <bruno@clisp.org>
27067
27068         login_tty: Documentation.
27069         * doc/glibc-functions/login_tty.texi: New file.
27070         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
27071
27072 2010-03-21  Bruno Haible  <bruno@clisp.org>
27073
27074         pty: Consistent macro naming.
27075         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
27076         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
27077         * modules/pty (configure.ac): Update.
27078
27079 2010-03-21  Bruno Haible  <bruno@clisp.org>
27080
27081         Tests for openpty: Make stricter.
27082         * tests/test-openpty.c (main): Add test of canonical processing and
27083         erase.
27084         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
27085
27086         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
27087         * lib/openpty.c (openpty): New replacement function.
27088         * lib/pty.in.h: Include <termios.h>.
27089         (openpty): Update declaration. Add comments.
27090         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
27091         is not declared, arrange to provide the replacement. Check for _getpty
27092         and posix_openpt.
27093         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
27094         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
27095         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
27096         * modules/pty-tests (test_pty_c___LDADD): New variable.
27097         * doc/glibc-functions/openpty.texi: More supported platforms.
27098
27099 2010-03-21  Bruno Haible  <bruno@clisp.org>
27100
27101         setenv: Tweaks.
27102         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
27103         the test program.
27104         * doc/posix-functions/setenv.texi: Update platforms list.
27105
27106 2010-03-21  Bruno Haible  <bruno@clisp.org>
27107
27108         New module 'unlockpt'.
27109         * lib/unlockpt.c: New file, from glibc with modifications.
27110         * m4/unlockpt.m4: New file.
27111         * modules/unlockpt: New file.
27112         * lib/stdlib.in.h (unlockpt): New declaration.
27113         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
27114         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
27115         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
27116         HAVE_UNLOCKPT.
27117         * doc/posix-functions/unlockpt.texi: Mention the new module.
27118         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
27119         * config/srclist.txt: Add unlockpt.c (commented).
27120
27121 2010-03-21  Jim Meyering  <meyering@redhat.com>
27122
27123         maint.mk: prohibit inclusion of "intprops.h" without use
27124         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
27125
27126 2010-03-21  Bruno Haible  <bruno@clisp.org>
27127
27128         New module 'grantpt'.
27129         * lib/grantpt.c: New file, from glibc with modifications.
27130         * m4/grantpt.m4: New file.
27131         * modules/grantpt: New file.
27132         * lib/stdlib.in.h (grantpt): New declaration.
27133         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
27134         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
27135         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
27136         HAVE_GRANTPT.
27137         * doc/posix-functions/grantpt.texi: Mention the new module.
27138         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
27139         * config/srclist.txt: Add grantpt.c (commented).
27140
27141 2010-03-21  Bruno Haible  <bruno@clisp.org>
27142
27143         New module 'pt_chown'.
27144         * lib/pt_chown.c: New file, from glibc with modifications.
27145         * lib/pty-private.h: New file, from glibc with modifications.
27146         * modules/pt_chown: New file.
27147         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
27148
27149 2010-03-21  Bruno Haible  <bruno@clisp.org>
27150
27151         Tests for module 'ptsname'.
27152         * modules/ptsname-tests: New file.
27153         * tests/test-ptsname.c: New file.
27154
27155         New module 'ptsname'.
27156         * lib/ptsname.c: New file, from glibc with modifications.
27157         * m4/ptsname.m4: New file.
27158         * modules/ptsname: New file.
27159         * lib/stdlib.in.h (ptsname): New declaration.
27160         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
27161         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
27162         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
27163         HAVE_PTSNAME.
27164         * doc/posix-functions/ptsname.texi: Mention the new module.
27165         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
27166         * config/srclist.txt: Add ptsname.c (commented).
27167
27168 2010-03-21  Bruno Haible  <bruno@clisp.org>
27169
27170         Tests for module 'ttyname_r'.
27171         * modules/ttyname_r-tests: New file.
27172         * tests/test-ttyname_r.c: New file.
27173
27174         New module 'ttyname_r'.
27175         * lib/ttyname_r.c: New file.
27176         * m4/ttyname_r.m4: New file.
27177         * modules/ttyname_r: New file.
27178         * lib/unistd.in.h (ttyname_r): New declaration.
27179         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
27180         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
27181         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
27182         HAVE_TTYNAME_R.
27183         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
27184         * doc/posix-functions/ttyname_r.texi: Mention the new module.
27185
27186 2010-03-20  Bruno Haible  <bruno@clisp.org>
27187
27188         signal: Undefine macro definitions in C++ mode.
27189         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
27190         sigfillset): Undefine macro definitions from the system header in C++
27191         mode.
27192         Reported by John W. Eaton <jwe@gnu.org>.
27193
27194 2010-03-20  Bruno Haible  <bruno@clisp.org>
27195
27196         Ensure no #include statements inside extern "C" { ... }.
27197         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
27198         contain #include statements.
27199         * lib/time.in.h: Likewise.
27200
27201 2010-03-20  Bruno Haible  <bruno@clisp.org>
27202
27203         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
27204         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
27205         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
27206         Reported by John W. Eaton <jwe@gnu.org>.
27207
27208 2010-03-20  Bruno Haible  <bruno@clisp.org>
27209
27210         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
27211         Reported by Jim Meyering.
27212
27213 2010-03-20  Bruno Haible  <bruno@clisp.org>
27214
27215         pipe: Set errno upon failure.
27216         * lib/pipe.h: Specify that when -1 is returned, errno is set.
27217         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
27218         errno value in error message.
27219
27220 2010-03-20  Bruno Haible  <bruno@clisp.org>
27221             Jim Meyering  <meyering@redhat.com>
27222
27223         lchown: Avoid "unused variable" warning.
27224         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
27225
27226 2010-03-20  Bruno Haible  <bruno@clisp.org>
27227
27228         Work around unlink() bug on MacOS X 10.5.6.
27229         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
27230         attempting to unlink a parent directory.
27231         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
27232         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
27233         activate for the replacement function.
27234         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
27235
27236 2010-03-20  Bruno Haible  <bruno@clisp.org>
27237
27238         Fix link errors on Solaris 8.
27239         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
27240         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
27241
27242 2010-03-19  Jim Meyering  <meyering@redhat.com>
27243
27244         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
27245         The _LIBC implementation of build_range_exp correctly honors the
27246         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
27247         However, the non-_LIBC implementation would ignore that syntax-bit
27248         flag and return REG_ERANGE unconditionally.
27249         This change makes it honor that flag.
27250         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
27251         Make two pointer parameters "const".
27252         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
27253         (parse_bracket_exp): Update caller.
27254
27255         regex.m4: correct the reversed range endpoint ([b-a]) test
27256         * m4/regex.m4: When requiring that [b-a] evoke failure,
27257         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
27258         test pass once again for x86-based systems.
27259
27260 2010-03-19  Bruno Haible  <bruno@clisp.org>
27261
27262         scandir: Fix link error on Solaris 8.
27263         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
27264         macros.
27265
27266 2010-03-19  Bruno Haible  <bruno@clisp.org>
27267
27268         getusershell: Fix documentation.
27269         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
27270         module.
27271         * doc/glibc-functions/setusershell.texi: Likewise.
27272
27273         getusershell: Provide declaration, missing on Solaris 9.
27274         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
27275         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
27276         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
27277         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
27278         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27279         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
27280         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
27281         HAVE_GETUSERSHELL.
27282         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
27283
27284 2010-03-19  Bruno Haible  <bruno@clisp.org>
27285
27286         wctype: Provide iswblank function.
27287         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
27288         exists and is fine.
27289         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
27290         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
27291         * tests/test-wctype.c (main): Re-enable the iswblank tests.
27292         * doc/posix-functions/iswblank.texi: Update.
27293
27294 2010-03-19  Bruno Haible  <bruno@clisp.org>
27295
27296         Tests of module 'pty' in C++ mode.
27297         * modules/pty-tests: New file.
27298         * tests/test-pty-c++.cc: New file.
27299         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27300
27301 2010-03-19  Eric Blake  <eblake@redhat.com>
27302
27303         logb: fix documentation
27304         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
27305         1.5 declaration bug.
27306
27307         forkpty, openpty: prefer glibc's const-safe prototype
27308         * lib/forkpty.c (rpl_forkpty): New file.
27309         * lib/openpty.c (rpl_openpty): Likewise.
27310         * modules/forkpty (Files): Distribute it.
27311         * modules/openpty (Files): Likewise.
27312         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
27313         check...
27314         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
27315         replacement for for non-const BSD signature.
27316         * modules/pty (Makefile.am): Substitute witnesses.
27317         * lib/pty.in.h (forkpty, openpty): Declare replacements.
27318         * tests/test-forkpty.c: Update signature check.
27319         * tests/test-openpty.c: Likewise.
27320         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
27321         * doc/glibc-functions/openpty.texi (openpty): Likewise.
27322
27323         forkpty, openpty: split functions into new modules
27324         * modules/pty (Makefile.am): Substitute new witnesses.
27325         (Libraries): Move library detection...
27326         * modules/forkpty: ...into new module.
27327         * modules/openpty: Another new module.
27328         * modules/pty-tests: Rename and split...
27329         * modules/forkpty-tests: ...to this...
27330         * modules/openpty-tests: ...and this.
27331         * tests/test-pty.c: Rename and split...
27332         * tests/test-forkpty.c: ...to this...
27333         * tests/test-openpty.c: ...and this.
27334         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
27335         (gl_PTY): Split library searching...
27336         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
27337         (gl_FORKPTY, gl_OPENPTY): New macros.
27338         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
27339         * NEWS: Mention the split.
27340         * MODULES.html.sh (Misc): Document the modules.
27341         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
27342         * doc/glibc-functions/openpty.texi (openpty): Likewise.
27343
27344         pty: improve replacement header
27345         * lib/pty.in.h: New file.
27346         * modules/pty (Files): Ship it.
27347         (Makefile.am): Always build replacement.
27348         * m4/pty.m4: Rename...
27349         * m4/pty_h.m4: ...to this.
27350         (gl_PTY): Modernize setting of witness macros; update check of
27351         forkpty to take proper advantage of cache.
27352         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
27353
27354         getopt: avoid compiler warning
27355         * lib/getopt.c (attribute_hidden): Remove unused macro.
27356
27357 2010-03-18  Bruno Haible  <bruno@clisp.org>
27358
27359         Fix link errors on Solaris 8.
27360         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
27361         * modules/search-tests (test_search_c___LDADD): Likewise.
27362         * modules/signal-tests (test_signal_c___LDADD): Likewise.
27363         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
27364         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
27365         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
27366         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
27367         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
27368         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
27369
27370 2010-03-18  Bruno Haible  <bruno@clisp.org>
27371
27372         Fix bug introduced on 2010-03-14.
27373         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
27374         (gl_SPAWN_H): Require it.
27375         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
27376         Reported by Simon Josefsson.
27377
27378 2010-03-18  Bruno Haible  <bruno@clisp.org>
27379
27380         Fix typo introduced on 2009-12-31.
27381         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
27382         posix_spawn_file_actions_adddup2.
27383
27384 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
27385         and Eric Blake  <eblake@redhat.com>
27386
27387         test-vc-list-files-git: make more robust
27388         * tests/test-vc-list-files-git.sh: Unset problematic environment
27389         variables.  Chain commands together.
27390
27391 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
27392
27393         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
27394         `AC_CHECK_DECL' invocation.
27395
27396 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
27397
27398         * lib/inttostr.c (inttostr): Make sure the invocation of verify
27399         appears before executable statements. Suggested by Petr Sumbera
27400         <Petr.Sumbera@Sun.COM>.
27401
27402 2010-03-14  Bruno Haible  <bruno@clisp.org>
27403
27404         * tests/test-flock.c (test_exclusive): Comment out a test that causes
27405         portability problems. Instead use a simpler test.
27406         (main): Check that invalid arguments are rejected only on Linux.
27407
27408 2010-03-14  Bruno Haible  <bruno@clisp.org>
27409
27410         Fix bug introduced on 2009-12-31.
27411         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
27412         gl_PREREQ_SYS_H_WINSOCK2 always.
27413         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
27414         SYS_SOCKET_H variable.
27415         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
27416         Update comments.
27417         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
27418         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
27419         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27420         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
27421         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
27422
27423 2010-03-14  Bruno Haible  <bruno@clisp.org>
27424
27425         Fix values returned by sinl, cosl.
27426         * lib/trigl.h: Add specification comments.
27427         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
27428         that combines the values from the precomputed table with the values of
27429         the Chebyshev polynomials.
27430
27431 2010-03-14  Bruno Haible  <bruno@clisp.org>
27432
27433         Fix compilation error when modules 'posix_spawn[p]' are not used.
27434         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
27435         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
27436
27437 2010-03-14  Bruno Haible  <bruno@clisp.org>
27438
27439         Fix compilation error on mingw when module 'time_r' is not used.
27440         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
27441         is 1.
27442         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
27443         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
27444         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
27445         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
27446
27447 2010-03-14  Bruno Haible  <bruno@clisp.org>
27448
27449         Fix compilation error with Sun C.
27450         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
27451         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
27452         instead of GCC specific ULONG_LONG_MAX.
27453         * lib/xstrtoll.c: Likewise.
27454         * lib/xstrtoull.c: Likewise.
27455
27456 2010-03-13  Bruno Haible  <bruno@clisp.org>
27457
27458         Allow the user to disable C++ code and tests.
27459         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
27460         (gl_PROG_ANSI_CXX): Require it.
27461
27462 2010-03-13  Bruno Haible  <bruno@clisp.org>
27463
27464         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
27465         cases.
27466
27467 2010-03-13  Bruno Haible  <bruno@clisp.org>
27468
27469         Test that gnulib does not break the standard C++ headers.
27470         * tests/test-locale-c++2.cc: New file.
27471         * modules/locale-tests (Files): Add it.
27472         (Makefile.am): Compile it for test-locale-c++.
27473         * tests/test-math-c++2.cc: New file.
27474         * modules/math-tests (Files): Add it.
27475         (Makefile.am): Compile it for test-math-c++.
27476         * tests/test-signal-c++2.cc: New file.
27477         * modules/signal-tests (Files): Add it.
27478         (Makefile.am): Compile it for test-signal-c++.
27479         * tests/test-stdio-c++2.cc: New file.
27480         * modules/stdio-tests (Files): Add it.
27481         (Makefile.am): Compile it for test-stdio-c++.
27482         * tests/test-stdlib-c++2.cc: New file.
27483         * modules/stdlib-tests (Files): Add it.
27484         (Makefile.am): Compile it for test-stdlib-c++.
27485         * tests/test-string-c++2.cc: New file.
27486         * modules/string-tests (Files): Add it.
27487         (Makefile.am): Compile it for test-string-c++.
27488         * tests/test-time-c++2.cc: New file.
27489         * modules/time-tests (Files): Add it.
27490         (Makefile.am): Compile it for test-time-c++.
27491         Reported by John W. Eaton <jwe@gnu.org>.
27492
27493 2010-03-13  Bruno Haible  <bruno@clisp.org>
27494
27495         * gnulib-tool (func_usage): Clarify which options are available for
27496         --create-testdir and --create-megatestdir.
27497
27498 2010-03-13  Bruno Haible  <bruno@clisp.org>
27499
27500         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
27501         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
27502         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
27503         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
27504         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
27505         when appropriate.
27506         Reported by Jim Meyering.
27507
27508 2010-03-12  Simon Josefsson  <simon@josefsson.org>
27509
27510         * gnulib-tool (func_import): Explain origin of code.
27511
27512 2010-03-12  Bruno Haible  <bruno@clisp.org>
27513
27514         Fix problem with automake's definition of CXXLINK.
27515         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
27516         Reported by Simon Josefsson and Ludovic Courtès.
27517
27518 2010-03-12  Bruno Haible  <bruno@clisp.org>
27519
27520         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
27521         stable releases.
27522
27523 2010-03-11  Bruno Haible  <bruno@clisp.org>
27524
27525         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
27526         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
27527         whether the system provides one variant or multiple variants of the
27528         function.
27529         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
27530         C++ compilers.
27531         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
27532         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
27533         Reported by Jim Meyering.
27534
27535 2010-03-09  Simon Josefsson  <simon@josefsson.org>
27536
27537         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
27538
27539 2010-03-08  Bruno Haible  <bruno@clisp.org>
27540
27541         gnulib-tool: Add support for --libtool in --create-testdir.
27542         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
27543         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
27544
27545 2010-03-08  Eric Blake  <eblake@redhat.com>
27546
27547         gnulib-tool.texi: mention possibility of git submodule
27548         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
27549         submodules.
27550         * doc/.gitignore: Ignore another generated file.
27551
27552 2010-03-08  Karl Berry  <karl@gnu.org>
27553
27554         * doc/gnulib-tool.texi (VCS Issues): Mention third option
27555         of committing gnulib files while skipping others.
27556
27557 2010-03-07  Bruno Haible  <bruno@clisp.org>
27558
27559         Tests of module 'wctype' in C++ mode.
27560         * tests/test-wctype-c++.cc: New file.
27561         * modules/wctype-tests (Files): Add it and tests/signature.h.
27562         (Depends-on): Add ansi-c++-opt.
27563         (Makefile.am): Arrange to compile and run test-wctype-c++.
27564
27565         Tests of module 'wchar' in C++ mode.
27566         * tests/test-wchar-c++.cc: New file.
27567         * modules/wchar-tests (Files): Add it and tests/signature.h.
27568         (Depends-on): Add ansi-c++-opt.
27569         (Makefile.am): Arrange to compile and run test-wchar-c++.
27570         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
27571         gl_MODULE_INDICATOR.
27572
27573         Tests of module 'unistd' in C++ mode.
27574         * tests/test-unistd-c++.cc: New file.
27575         * modules/unistd-tests (Files): Add it and tests/signature.h.
27576         (Depends-on): Add ansi-c++-opt.
27577         (Makefile.am): Arrange to compile and run test-unistd-c++.
27578         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
27579         gl_MODULE_INDICATOR.
27580
27581         Tests of module 'time' in C++ mode.
27582         * tests/test-time-c++.cc: New file.
27583         * modules/time-tests (Files): Add it and tests/signature.h.
27584         (Depends-on): Add ansi-c++-opt.
27585         (Makefile.am): Arrange to compile and run test-time-c++.
27586         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27587
27588         Tests of module 'sys_time' in C++ mode.
27589         * tests/test-sys_time-c++.cc: New file.
27590         * modules/sys_time-tests (Files): Add it and tests/signature.h.
27591         (Depends-on): Add ansi-c++-opt.
27592         (Makefile.am): Arrange to compile and run test-sys_time-c++.
27593         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
27594         gl_MODULE_INDICATOR.
27595
27596         Tests of module 'sys_stat' in C++ mode.
27597         * tests/test-sys_stat-c++.cc: New file.
27598         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
27599         (Depends-on): Add ansi-c++-opt.
27600         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
27601         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
27602         gl_MODULE_INDICATOR.
27603
27604         Tests of module 'sys_socket' in C++ mode.
27605         * tests/test-sys_socket-c++.cc: New file.
27606         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
27607         (Depends-on): Add ansi-c++-opt.
27608         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
27609         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
27610         gl_MODULE_INDICATOR.
27611
27612         Tests of module 'sys_select' in C++ mode.
27613         * tests/test-sys_select-c++.cc: New file.
27614         * modules/sys_select-tests (Files): Add it and tests/signature.h.
27615         (Depends-on): Add ansi-c++-opt.
27616         (Makefile.am): Arrange to compile and run test-sys_select-c++.
27617         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
27618         gl_MODULE_INDICATOR.
27619
27620         Tests of module 'sys_ioctl' in C++ mode.
27621         * tests/test-sys_ioctl-c++.cc: New file.
27622         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
27623         (Depends-on): Add ansi-c++-opt.
27624         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
27625         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
27626         gl_MODULE_INDICATOR.
27627
27628         Tests of module 'string' in C++ mode.
27629         * tests/test-string-c++.cc: New file.
27630         * modules/string-tests (Files): Add it and tests/signature.h.
27631         (Depends-on): Add ansi-c++-opt.
27632         (Makefile.am): Arrange to compile and run test-string-c++.
27633         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
27634         gl_MODULE_INDICATOR.
27635
27636         Tests of module 'stdlib' in C++ mode.
27637         * tests/test-stdlib-c++.cc: New file.
27638         * modules/stdlib-tests (Files): Add it and tests/signature.h.
27639         (Depends-on): Add ansi-c++-opt.
27640         (Makefile.am): Arrange to compile and run test-stdlib-c++.
27641         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
27642         gl_MODULE_INDICATOR.
27643
27644         Tests of module 'stdio' in C++ mode.
27645         * tests/test-stdio-c++.cc: New file.
27646         * modules/stdio-tests (Files): Add it and tests/signature.h.
27647         (Depends-on): Add ansi-c++-opt.
27648         (Makefile.am): Arrange to compile and run test-stdio-c++.
27649         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
27650         gl_MODULE_INDICATOR.
27651
27652         Tests of module 'spawn' in C++ mode.
27653         * tests/test-spawn-c++.cc: New file.
27654         * modules/spawn-tests (Files): Add it and tests/signature.h.
27655         (Depends-on): Add ansi-c++-opt.
27656         (Makefile.am): Arrange to compile and run test-spawn-c++.
27657         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
27658         gl_MODULE_INDICATOR.
27659
27660         Tests of module 'signal' in C++ mode.
27661         * tests/test-signal-c++.cc: New file.
27662         * modules/signal-tests (Files): Add it and tests/signature.h.
27663         (Depends-on): Add ansi-c++-opt.
27664         (Makefile.am): Arrange to compile and run test-signal-c++.
27665         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
27666         gl_MODULE_INDICATOR.
27667
27668         Tests of module 'search' in C++ mode.
27669         * tests/test-search-c++.cc: New file.
27670         * modules/search-tests (Files): Add it and tests/signature.h.
27671         (Depends-on): Add ansi-c++-opt.
27672         (Makefile.am): Arrange to compile and run test-search-c++.
27673         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
27674         gl_MODULE_INDICATOR.
27675
27676         Tests of module 'math' in C++ mode.
27677         * tests/test-math-c++.cc: New file.
27678         * modules/math-tests (Files): Add it and tests/signature.h.
27679         (Depends-on): Add ansi-c++-opt.
27680         (Makefile.am): Arrange to compile and run test-math-c++.
27681         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
27682
27683         Tests of module 'locale' in C++ mode.
27684         * tests/test-locale-c++.cc: New file.
27685         * modules/locale-tests (Files): Add it and tests/signature.h.
27686         (Depends-on): Add ansi-c++-opt.
27687         (Makefile.am): Arrange to compile and run test-locale-c++.
27688         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
27689         gl_MODULE_INDICATOR.
27690
27691         Tests of module 'langinfo' in C++ mode.
27692         * tests/test-langinfo-c++.cc: New file.
27693         * modules/langinfo-tests (Files): Add it and tests/signature.h.
27694         (Depends-on): Add ansi-c++-opt.
27695         (Makefile.am): Arrange to compile and run test-langinfo-c++.
27696         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
27697         gl_MODULE_INDICATOR.
27698
27699         Tests of module 'iconv-h' in C++ mode.
27700         * tests/test-iconv-h-c++.cc: New file.
27701         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
27702         (Depends-on): Add ansi-c++-opt.
27703         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
27704
27705         Tests of module 'glob' in C++ mode.
27706         * tests/test-glob-c++.cc: New file.
27707         * modules/glob-tests (Files): Add it.
27708         (Depends-on): Add ansi-c++-opt.
27709         (Makefile.am): Arrange to compile and run test-glob-c++.
27710
27711         Tests of module 'fcntl-h' in C++ mode.
27712         * tests/test-fcntl-h-c++.cc: New file.
27713         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
27714         (Depends-on): Add ansi-c++-opt.
27715         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
27716         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
27717         gl_MODULE_INDICATOR.
27718
27719         Tests of module 'dirent' in C++ mode.
27720         * tests/test-dirent-c++.cc: New file.
27721         * modules/dirent-tests (Files): Add it and tests/signature.h.
27722         (Depends-on): Add ansi-c++-opt.
27723         (Makefile.am): Arrange to compile and run test-dirent-c++.
27724         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
27725         gl_MODULE_INDICATOR.
27726
27727         New module 'ansi-c++-opt'.
27728         * modules/ansi-c++-opt: New file.
27729         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
27730
27731         Document C++ namespace mode.
27732         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
27733
27734         wctype: Avoid #define replacements in C++ mode.
27735         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
27736         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
27737         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
27738         In C++, define a namespaced alias symbol.
27739         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
27740         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
27741         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
27742         rule.
27743
27744         wchar: Avoid #define replacements in C++ mode.
27745         * lib/wchar.in.h: Include c++defs.h.
27746         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
27747         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
27748         symbol.
27749         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
27750         * modules/wchar (Depends-on): Add c++defs.
27751         (Makefile.am): Update wchar.h rule.
27752
27753         unistd: Avoid #define replacements in C++ mode.
27754         * lib/unistd.in.h: Include c++defs.h.
27755         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
27756         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
27757         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
27758         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
27759         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
27760         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
27761         symbol.
27762         (environ): Update.
27763         * modules/unistd (Depends-on): Add c++defs.
27764         (Makefile.am): Update unistd.h rule.
27765
27766         time: Avoid #define replacements in C++ mode.
27767         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
27768         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
27769         define a namespaced alias symbol.
27770         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
27771         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
27772         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
27773         * modules/time (Depends-on): Add c++defs, warn-on-use.
27774         (Makefile.am): Update time.h rule.
27775         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
27776         * modules/nanosleep (configure.ac): Likewise.
27777         * modules/strptime (configure.ac): Likewise.
27778         * modules/timegm (configure.ac): Likewise.
27779
27780         sys_time: Avoid #define replacements in C++ mode.
27781         * lib/sys_time.in.h: Include c++defs.h.
27782         (gettimeofday): In C++, define a namespaced alias symbol.
27783         * modules/sys_time (Depends-on): Add c++defs.
27784         (Makefile.am): Update sys/time.h rule.
27785
27786         sys_stat: Avoid #define replacements in C++ mode.
27787         * lib/sys_stat.in.h: Include c++defs.h.
27788         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
27789         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
27790         namespaced alias symbol.
27791         In C++, define a namespaced alias symbol.
27792         * modules/sys_stat (Depends-on): Add c++defs.
27793         (Makefile.am): Update sys/stat.h rule.
27794
27795         sys_socket: Avoid #define replacements in C++ mode.
27796         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
27797         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
27798         definitions also when the system has a <sys/socket.h>.
27799         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
27800         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
27801         In C++, define a namespaced alias symbol.
27802         * modules/sys_socket (Depends-on): Add c++defs.
27803         (Makefile.am): Update sys/socket.h rule.
27804
27805         sys_select: Avoid #define replacements in C++ mode.
27806         * lib/sys_select.in.h: Include c++defs.h. Enable the function
27807         definitions also when the system has a <sys/select.h>.
27808         (select): In C++, define a namespaced alias symbol.
27809         * modules/sys_select (Depends-on): Add c++defs.
27810         (Makefile.am): Update sys/select.h rule.
27811
27812         sys_ioctl: Avoid #define replacements in C++ mode.
27813         * lib/sys_ioctl.in.h: Include c++defs.h.
27814         (ioctl): In C++, define a namespaced alias symbol.
27815         * modules/sys_ioctl (Depends-on): Add c++defs.
27816         (Makefile.am): Update sys/ioctl.h rule.
27817
27818         string: Avoid #define replacements in C++ mode.
27819         * lib/string.in.h: Include c++defs.h.
27820         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
27821         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
27822         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
27823         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
27824         strsignal, strverscmp): In C++, define a namespaced alias symbol.
27825         * modules/string (Depends-on): Add c++defs.
27826         (Makefile.am): Update string.h rule.
27827
27828         stdlib: Avoid #define replacements in C++ mode.
27829         * lib/stdlib.in.h: Include c++defs.h.
27830         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
27831         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
27832         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
27833         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
27834         symbol.
27835         * modules/stdlib (Depends-on): Add c++defs.
27836         (Makefile.am): Update stdlib.h rule.
27837
27838         stdio: Avoid #define replacements in C++ mode.
27839         * lib/stdio.in.h: Include c++defs.h.
27840         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
27841         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
27842         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
27843         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
27844         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
27845         namespaced alias symbol.
27846         * modules/stdio (Depends-on): Add c++defs.
27847         (Makefile.am): Update stdio.h rule.
27848
27849         spawn: Avoid #define replacements in C++ mode.
27850         * lib/spawn.in.h: Include c++defs.h.
27851         (posix_spawn, posix_spawnp, posix_spawnattr_init,
27852         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
27853         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
27854         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
27855         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
27856         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
27857         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
27858         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
27859         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
27860         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
27861         In C++, define a namespaced alias symbol.
27862         * modules/spawn (Depends-on): Add c++defs.
27863         (Makefile.am): Update spawn.h rule.
27864
27865         signal: Avoid #define replacements in C++ mode.
27866         * lib/signal.in.h: Include c++defs.h.
27867         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
27868         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
27869         namespaced alias symbol.
27870         * modules/signal (Depends-on): Add c++defs.
27871         (Makefile.am): Update signal.h rule.
27872
27873         search: Avoid #define replacements in C++ mode.
27874         * lib/search.in.h: Include c++defs.h.
27875         (_gl_search_compar_fn, _gl_search_action_fn): New types.
27876         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
27877         symbol.
27878         * modules/search (Depends-on): Add c++defs.
27879         (Makefile.am): Update search.h rule.
27880
27881         math: Avoid #define replacements in C++ mode.
27882         * lib/math.in.h: Include c++defs.h.
27883         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
27884         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
27885         trunc, truncl): In C++, define a namespaced alias symbol.
27886         * modules/math (Depends-on): Add c++defs.
27887         (Makefile.am): Update math.h rule.
27888
27889         locale: Avoid #define replacements in C++ mode.
27890         * lib/locale.in.h: Include c++defs.h.
27891         (duplocale): In C++, define a namespaced alias symbol.
27892         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
27893         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
27894         * modules/locale (Depends-on): Add c++defs.
27895         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
27896
27897         langinfo: Avoid #define replacements in C++ mode.
27898         * lib/langinfo.in.h: Include c++defs.h.
27899         (nl_langinfo): In C++, define a namespaced alias symbol.
27900         * modules/langinfo (Depends-on): Add c++defs.
27901         (Makefile.am): Update langinfo.h rule.
27902
27903         iconv-h: Avoid #define replacements in C++ mode.
27904         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
27905         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
27906         symbol.
27907         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
27908         whenever iconv is present.
27909         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
27910         (Makefile.am): Update iconv.h rule.
27911
27912         glob: Avoid #define replacements in C++ mode.
27913         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
27914         (_gl_glob_errfunc_fn): New type.
27915         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
27916         symbol.
27917         * modules/glob (Depends-on): Add c++defs, warn-on-use.
27918         (Makefile.am): Update glob.h rule.
27919
27920         fcntl-h: Avoid #define replacements in C++ mode.
27921         * lib/fcntl.in.h: Include c++defs.h.
27922         (fcntl, open, openat): In C++, define a namespaced alias symbol.
27923         * modules/fcntl-h (Depends-on): Add c++defs.
27924         (Makefile.am): Update fcntl.h rule.
27925
27926         dirent: Avoid #define replacements in C++ mode.
27927         * lib/dirent.in.h: Include c++defs.h.
27928         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
27929         namespaced alias symbol.
27930         (dirfd): Update declaration.
27931         * modules/dirent (Depends-on): Add c++defs.
27932         (Makefile.am): Update dirent.h rule.
27933
27934         ctype: Make it usable in C++ code.
27935         * lib/ctype.in.h: Include c++defs.h.
27936         (isblank): Declare as extern "C".
27937         * modules/ctype (Depends-on): Add c++defs.
27938         (Makefile.am): Update ctype.h rule.
27939
27940         New module 'c++defs'.
27941         * modules/c++defs: New file.
27942         * build-aux/c++defs.h: New file.
27943         Reported by John W. Eaton <jwe@gnu.org>.
27944
27945 2010-03-07  Bruno Haible  <bruno@clisp.org>
27946
27947         logb: Provide missing declaration for Cygwin.
27948         * lib/math.in.h (logb): New declaration.
27949         * m4/logb.m4: New file.
27950         * modules/logb (Files): Add m4/logb.m4.
27951         (Depends-on): Add math.
27952         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
27953         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
27954         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
27955         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
27956         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
27957
27958 2010-03-07  Bruno Haible  <bruno@clisp.org>
27959
27960         Fix test-cond link error.
27961         * tests/test-cond.c: Include <stdio.h>.
27962
27963 2010-03-07  Bruno Haible  <bruno@clisp.org>
27964
27965         Fix test-dirent-safer link error.
27966         * modules/dirent-safer-tests (Makefile.am): Define
27967         test_dirent_safer_LDADD.
27968
27969 2010-03-07  Bruno Haible  <bruno@clisp.org>
27970
27971         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
27972         among default module list.
27973
27974 2010-03-07  Bruno Haible  <bruno@clisp.org>
27975
27976         Fix link error on platforms with GNU libiconv.
27977         * modules/unistr/u8-strcoll-tests (Makefile): Define
27978         test_u8_strcoll_LDADD.
27979         * modules/unistr/u16-strcoll-tests (Makefile): Define
27980         test_u16_strcoll_LDADD.
27981         * modules/unistr/u32-strcoll-tests (Makefile): Define
27982         test_u32_strcoll_LDADD.
27983
27984 2010-03-07  Bruno Haible  <bruno@clisp.org>
27985
27986         Use POSIX declarations for socket functions.
27987         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
27988         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
27989         rpl_sendto): Change declaration to match POSIX.
27990         * lib/connect.c (rpl_connect): Likewise.
27991         * lib/accept.c (rpl_accept): Likewise.
27992         * lib/bind.c (rpl_bind): Likewise.
27993         * lib/getpeername.c (rpl_getpeername): Likewise.
27994         * lib/getsockname.c (rpl_getsockname): Likewise.
27995         * lib/recv.c (rpl_recv): Likewise.
27996         * lib/send.c (rpl_send): Likewise.
27997         * lib/recvfrom.c (rpl_recvfrom): Likewise.
27998         * lib/sendto.c (rpl_sendto): Likewise.
27999
28000 2010-03-06  Bruno Haible  <bruno@clisp.org>
28001
28002         Clarify access, euidaccess, faccessat.
28003         * doc/posix-functions/faccessat.texi: Mention security problem under
28004         "Other problems", not "Portability problems".
28005         * doc/posix-functions/access.texi: Likewise. Mention a related security
28006         problem.
28007         * doc/glibc-functions/euidaccess.texi: Mention security problems.
28008         * lib/euidaccess.c: Add comments about platforms.
28009         * lib/unistd.in.h (access, euidaccess): Add warnings.
28010
28011 2010-03-07  Bruno Haible  <bruno@clisp.org>
28012
28013         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
28014         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
28015         (POSIX_SPAWN_SETSCHEDULER): Likewise.
28016         (POSIX_SPAWN_USEVFORK): Define in a way that works when
28017         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
28018         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
28019         declare when POSIX_SPAWN_SETSCHEDULER is zero.
28020         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
28021         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
28022         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
28023         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
28024         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
28025         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
28026         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
28027         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
28028         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
28029         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
28030         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
28031         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
28032         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
28033         Likewise.
28034         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
28035         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
28036         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
28037         Likewise.
28038         * tests/test-spawn.c (main): Make it work when
28039         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
28040
28041 2010-03-07  Bruno Haible  <bruno@clisp.org>
28042
28043         Fix incorrect Makefile.am generation in German locale.
28044         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
28045         Execute sed command with character range in C locale.
28046
28047 2010-03-06  Bruno Haible  <bruno@clisp.org>
28048
28049         Tests for module 'iconv-h'.
28050         * modules/iconv-h-tests: New file.
28051         * tests/test-iconv-h.c: New file.
28052
28053         New module 'iconv-h'.
28054         * modules/iconv-h: New file.
28055         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
28056         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
28057         (configure.ac): Remove gl_ICONV_H.
28058         (Makefile.am): Remove rule for iconv.h.
28059
28060 2010-03-06  Bruno Haible  <bruno@clisp.org>
28061
28062         More consistent naming of *.m4 files.
28063         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
28064         * modules/wctype (Files): Update.
28065
28066         More consistent naming of *.m4 files.
28067         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
28068         * modules/wchar (Files): Update.
28069
28070 2010-03-06  Jim Meyering  <meyering@redhat.com>
28071
28072         euidaccess: relax license to LGPLv2+
28073         * modules/euidaccess (License): Relax to LGPLv2+.
28074
28075 2010-03-06  Bruno Haible  <bruno@clisp.org>
28076
28077         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
28078         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
28079         (Makefile.am): Augment lib_SOURCES instead.
28080
28081 2010-03-04  Jim Meyering  <meyering@redhat.com>
28082
28083         utime: remove obsolete module
28084         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
28085         unnecessary for years, and has been marked as obsolete for 10 months.
28086         * modules/utime: Remove file.
28087         * lib/utime.c: Remove file.
28088         * m4/utime.m4: Remove file.
28089         * m4/utimes-null.m4: Remove file.
28090         * doc/posix-functions/utime.texi (utime): Remove reference to
28091         the module.  Move the sole "fixed by gnulib" item into the
28092         "problems not fixed by Gnulib" list.
28093         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
28094
28095 2010-03-05  Simon Josefsson  <simon@josefsson.org>
28096
28097         * modules/exit (License): Relax license to LGPLv2+.
28098         (Status): Mark as obsolete.
28099         * NEWS: Mention deprecated 'exit' module.
28100         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
28101         of now obsolete 'exit'.
28102
28103 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28104
28105         fts-lgpl: remove unused module
28106         * modules/fts-lgpl: Remove.
28107         * MODULES.html.sh (func_all_modules): Adjust.
28108         * check-module (find_included_lib_files): Adjust.
28109         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
28110
28111 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
28112
28113         copy-acl: enhance Solaris ACL error handling
28114         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
28115         * lib/set-mode-acl.c (qset_acl): Likewise.
28116
28117 2010-03-02  Bruno Haible  <bruno@clisp.org>
28118
28119         spawn: Don't override the system defined values on FreeBSD 8.
28120         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
28121         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
28122         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
28123         if HAVE_POSIX_SPAWN is 1.
28124         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
28125
28126 2010-03-01  Bruno Haible  <bruno@clisp.org>
28127
28128         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
28129         regarding Automake.
28130
28131 2010-02-25  Bruno Haible  <bruno@clisp.org>
28132
28133         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
28134         * gnulib-tool: Define 'echo' as a function only before the ksh alias
28135         setting, not afterwards.
28136         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
28137
28138 2010-02-24  Eric Blake  <eblake@redhat.com>
28139
28140         bootstrap, git-version-gen: use timestamp
28141         * build-aux/git-version-gen (scriptversion): Force UTC.
28142         * build-aux/bootstrap (scriptversion): New variable.
28143
28144         bootstrap: allow older git
28145         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
28146         older than 1.6.4.  Requested by the libvirt project.
28147
28148 2010-02-23  Eric Blake  <eblake@redhat.com>
28149
28150         warn-on-use: work with old autoconf
28151         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
28152         AS_VAR semantics of autoconf 2.60.
28153         Reported by Bruno Haible.
28154
28155         bootstrap: improve some comments
28156         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
28157         clarification comments.
28158
28159         gettimeofday: provide correct function
28160         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
28161         when replacement is declared, otherwise provide gettimeofday.
28162         Reported by Michael Goffioul.
28163
28164 2010-02-23  Jim Meyering  <meyering@redhat.com>
28165
28166         lib-ignore: relax license to "unlimited", not LGPLv2+
28167         * modules/lib-ignore (License): Relax to "unlimited".
28168
28169 2010-02-23  Jim Meyering  <meyering@redhat.com>
28170
28171         lib-ignore: relax license to LGPLv2+
28172         * modules/lib-ignore (License): Relax to LGPLv2+.
28173
28174 2010-02-22  Eric Blake  <eblake@redhat.com>
28175
28176         lseek: avoid bash 3.2 broken pipe bug
28177         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
28178         warning from bash 3.2.
28179         Reported by Ben Pfaff, with analysis from Bruno Haible.
28180
28181         bootstrap: support non-FSF copyright holder
28182         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
28183         bootstrap.conf override of COPYRIGHT_HOLDER.
28184         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
28185
28186         bootstrap: interoperate with gettext 0.14.1
28187         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
28188
28189         bootstrap: allow for alternate submodule location
28190         * build-aux/bootstrap (gnulib_path): New variable; use instead of
28191         hardcoding submodule location.
28192         (gnulib_mk): Allow direct use of Makefile.am.
28193
28194         bootstrap: use GNULIB_SRCDIR to reduce disk usage
28195         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
28196         rather than reconfiguring where the submodule points.
28197
28198         gettimeofday: restore support for platforms that lack function
28199         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
28200         replacement if function is missing.
28201         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
28202         * modules/sys_time (Makefile.am): Substitute it.
28203         * lib/sys_time.in.h (gettimeofday): Check it.
28204         Reported by Michael Goffioul.
28205
28206 2010-02-21  Bruno Haible  <bruno@clisp.org>
28207
28208         * lib/stdio.in.h (obstack_printf): Fix typo.
28209
28210 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
28211
28212         vc-list-files: use bzr ls's -R option
28213         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
28214         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
28215
28216 2010-02-21  Jim Meyering  <meyering@redhat.com>
28217
28218         init.sh: fix EXEEXT shims to work also for names like test-prog
28219         * tests/init.sh: Re-exec a better shell, when needed.
28220         If the current shell lacks support for posix $(...), an init.sh-using
28221         test will now try to find a shell that supports that.  If EXEEXT is
28222         nonempty, we also require support for hyphen-in-alias-name and shell
28223         substitutions like ${var#glob}.  Failure to find such a shell results
28224         in a skipped test.
28225
28226 2010-02-21  Bruno Haible  <bruno@clisp.org>
28227
28228         Really work around around "broken pipe" error message from bash 3.2.
28229         * gnulib-tool (func_reset_sigpipe): Remove function.
28230         (echo): In bash 3.2, define to a function that uses printf.
28231         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
28232
28233 2010-02-20  Bruno Haible  <bruno@clisp.org>
28234
28235         Restore support for automake 1.9.6 with autoconf 2.61.
28236         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
28237         Reported by James Youngman <jay@gnu.org>.
28238
28239 2010-02-20  Bruno Haible  <bruno@clisp.org>
28240
28241         Improve *printf warning condition.
28242         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
28243         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
28244         and the function is overridden due to SIGPIPE emulation.
28245
28246 2010-02-20  Bruno Haible  <bruno@clisp.org>
28247
28248         * lib/stdio.in.h: Tweak comments.
28249
28250 2010-02-19  Bruno Haible  <bruno@clisp.org>
28251
28252         Make it easier to find modules. New gnulib-tool option '--find'.
28253         * gnulib-tool: New option --find.
28254         (func_usage): Document it.
28255         (func_sanitize_modulelist): New function, extracted from
28256         func_all_modules.
28257         (func_all_modules): Invoke it.
28258         * doc/gnulib-tool.texi (Which modules?): New node.
28259
28260 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
28261
28262         * lib/sys_select.in.h: Provide select replacement even if
28263         sys/select.h exists on a system, for Interix.
28264
28265 2010-02-18  Jim Meyering  <meyering@redhat.com>
28266
28267         init.sh: don't use $(...) just yet
28268         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
28269         to accommodate e.g., Solaris' /bin/sh.
28270
28271 2010-02-17  Bruno Haible  <bruno@clisp.org>
28272
28273         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
28274         Reported by Ludovic Courtès <ludo@gnu.org>.
28275
28276 2010-02-16  Simon Josefsson  <simon@josefsson.org>
28277
28278         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
28279         linking with -lintl.
28280
28281 2010-02-17  Simon Josefsson  <simon@josefsson.org>
28282
28283         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
28284         if not provided by the system's netdb.h.  Reported by
28285         ludo@gnu.org (Ludovic Courtès).
28286
28287 2010-02-15  Jim Meyering  <meyering@redhat.com>
28288
28289         init.sh: improve portability and efficiency
28290         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
28291         "dummy" in a for loop.
28292         Use '!', not '^' to select the complement of a character set used
28293         in a "case" statement.
28294         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
28295         Suggestions from Eric Blake.
28296
28297         init.sh: automatically accommodate programs with the .exe suffix
28298         Automatically arrange for an invocation of "prog" to execute the
28299         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
28300         may use the simpler "prog", yet still work when built on a system
28301         that requires specifying the added suffix.
28302         Do this by constructing a function named "prog" that invokes
28303         "prog.exe" for each .exe file in selected directories.
28304         * tests/init.sh (find_exe_basenames_): New function.
28305         (create_exe_shim_functions_): New function.
28306         (path_prepend_): Use it.
28307
28308         maint.mk: mark syntax-check sc_*.m rules as .PHONY
28309         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
28310         "make -t syntax-check" doesn't create a ton of sc_*.m files.
28311
28312 2010-02-14  Jim Meyering  <meyering@redhat.com>
28313
28314         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
28315         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
28316         (sc_prohibit_hash_pjw_without_use): New rule.
28317
28318         maint.mk: allow the default upload destination dir to be overridden
28319         * top/maint.mk (upload_dest_dir_): Define with a default that
28320         preserves the status quo.
28321         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
28322         Reported by Peter Simons.
28323
28324         maint.mk: prohibit inclusion of "hash.h" without_use
28325         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
28326
28327 2010-02-10  Jim Meyering  <meyering@redhat.com>
28328
28329         maint.mk: prohibit inclusion of "ignore-value.h" without_use
28330         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
28331
28332 2010-02-09  Eric Blake  <ebb9@byu.net>
28333         and Bruno Haible  <bruno@clisp.org>
28334
28335         obstack-printf-posix: ensure declaration
28336         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
28337         extracted from gl_FUNC_OBSTACK_PRINTF.
28338         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
28339         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
28340         Likewise.
28341         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
28342         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
28343         0.
28344
28345 2010-02-08  Bruno Haible  <bruno@clisp.org>
28346
28347         gnulib-tool: Fix typo in 2010-02-07 commit.
28348         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
28349         Reported by Eric Blake.
28350
28351 2010-02-07  Bruno Haible  <bruno@clisp.org>
28352
28353         gnulib-tool: Fix up caching patches.
28354         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
28355         option --no-cache. Use associative arrays when supported by the shell.
28356         (sed_comments): New variable.
28357         (modcache): Renamed from do_cache.
28358         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
28359         abbreviate unnecessarily.
28360         (have_associative): New variable.
28361         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
28362         way also for ksh and zsh.
28363         (func_init_sed_convert_to_cache_statements): New function, extracted
28364         from func_cache_lookup_module. Add support for associative arrays.
28365         Don't set the c_MODULE_cached variable here. Ignore all lines before
28366         the first field header. Remove only the final newline, not all trailing
28367         newlines. Support empty fields correctly. Limit the use of 'eval' to
28368         assignments.
28369         (func_get_description, func_get_status, func_get_notice,
28370         func_get_applicability, func_get_filelist, func_get_dependencies,
28371         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
28372         func_get_automake_snippet, func_get_include_directive,
28373         func_get_link_directive, func_get_license, func_get_maintainer):
28374         Update documentation. List the unoptimized code first. Add support for
28375         associative arrays. Limit the use of 'eval' to assignments.
28376         (func_get_applicability): Undo stylistic pessimisations.
28377         (func_get_automake_snippet, func_get_include_directive): Reduce code
28378         duplication.
28379         (func_modules_transitive_closure, func_modules_add_dummy,
28380         func_modules_notice, func_modules_to_filelist, func_add_file,
28381         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
28382         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
28383         func_create_testdir, func_create_megatestdir): Update documentation.
28384
28385 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28386
28387         * gnulib-tool (func_cache_lookup_module): Store the module name
28388         belonging to the cache variable; error out if two different
28389         module names map to the same cache variable name.
28390
28391 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28392
28393         gnulib-tool: Make caching optional.
28394         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
28395         Update matching short versions of --no-changelog.
28396         (func_usage): Update.
28397         (sed_extract_cache_prog): Renamed from ...
28398         (sed_extract_prog): ... this; revert to old extraction script.
28399         (func_get_description, func_get_status)
28400         (func_get_notice, func_get_applicability, func_get_filelist)
28401         (func_get_dependencies, func_get_autoconf_early_snippet)
28402         (func_get_autoconf_snippet, func_get_automake_snippet)
28403         (func_get_include_directive, func_get_link_directive)
28404         (func_get_license, func_get_maintainer): If $do_cache is false,
28405         use old, non-caching extraction scripts.
28406         Suggestion by Bruno Haible.
28407
28408 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28409
28410         gnulib-tool: cache module metainformation.
28411         * gnulib-tool (sed_extract_prog): Match newline before each
28412         header, and rewrite header to a shell variable suffix.
28413         (func_cache_var, func_cache_lookup_module): New functions,
28414         to turn a module name into a cache variable prefix, and to
28415         look up and cache module metainformation.
28416         (func_get_description, func_get_status)
28417         (func_get_notice, func_get_applicability, func_get_filelist)
28418         (func_get_dependencies, func_get_autoconf_early_snippet)
28419         (func_get_autoconf_snippet, func_get_automake_snippet)
28420         (func_get_include_directive, func_get_link_directive)
28421         (func_get_license, func_get_maintainer): Use
28422         func_cache_lookup_module.
28423
28424 2010-02-07  Bruno Haible  <bruno@clisp.org>
28425
28426         fnctl: Fix missing dependency.
28427         * modules/fcntl (Depends-on): Add getdtablesize.
28428         Reported by John W. Eaton <jwe@gnu.org>.
28429
28430 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
28431
28432         Argp: fix recognition of short alias options.
28433
28434         * lib/argp-parse.c (convert_options): Fix improper use of
28435         `|' between character values.
28436         * tests/test-argp.c (group1_option): New alias option
28437         --read (-r).
28438         (group1_parser): Special handling for 'r'.
28439         (test15): New test case.
28440         (test_fun): Add test15.
28441         * tests/test-argp-2.sh: Update expected --help and --usage
28442         outputs.
28443
28444 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
28445
28446         * tests/test-argp.c: Fix indentation.
28447
28448 2010-02-04  Eric Blake  <ebb9@byu.net>
28449
28450         gettimeofday: expose type of second argument
28451         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
28452         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
28453         * tests/test-gettimeofday.c: Use it to silence warning.
28454         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
28455         the issue.
28456
28457 2010-02-03  Jim Meyering  <meyering@redhat.com>
28458
28459         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
28460         * lib/regcomp.c (TYPE_SIGNED): Define.
28461         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
28462
28463         regcomp.c: avoid a new -Wshadow warning
28464         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
28465
28466 2010-02-01  Jim Meyering  <meyering@redhat.com>
28467
28468         removing useless parentheses in cpp #define directives
28469         For motivation, see commit c0221df4, "define STREQ(a,b)
28470         consistently, removing useless parentheses"
28471         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
28472         * lib/mountlist.c (MNT_IGNORE): Likewise.
28473         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
28474
28475 2010-02-01  Eric Blake  <ebb9@byu.net>
28476
28477         sys_time: use link-warning
28478         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
28479         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
28480         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
28481         * modules/sys_time (Depends-on): Add warn-on-use.
28482         (Makefile.am): Always build replacement.
28483         (configure.ac): Update substitutions.
28484         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
28485         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
28486         bother with SYS_TIME_H.
28487         * modules/gettimeofday (configure.ac): Declare indicator.
28488         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
28489         in use.
28490
28491         closein-tests: silence compiler warning
28492         * tests/test-closein.c (main): Ignore fread result.
28493         * modules/closein-tests (Depends-on): Add ignore-value.
28494
28495         tests: silence warning about system return
28496         * tests/test-areadlink-with-size.c (main): Ignore system result.
28497         * tests/test-areadlink.c (main): Likewise.
28498         * tests/test-areadlinkat-with-size.c (main): Likewise.
28499         * tests/test-areadlinkat.c (main): Likewise.
28500         * tests/test-canonicalize-lgpl.c (main): Likewise.
28501         * tests/test-canonicalize.c (main): Likewise.
28502         * tests/test-chown.c (main): Likewise.
28503         * tests/test-fchownat.c (main): Likewise.
28504         * tests/test-fdutimensat.c (main): Likewise.
28505         * tests/test-fstatat.c (main): Likewise.
28506         * tests/test-futimens.c (main): Likewise.
28507         * tests/test-lchown.c (main): Likewise.
28508         * tests/test-link.c (main): Likewise.
28509         * tests/test-linkat.c (main): Likewise.
28510         * tests/test-lstat.c (main): Likewise.
28511         * tests/test-mkdir.c (main): Likewise.
28512         * tests/test-mkdirat.c (main): Likewise.
28513         * tests/test-mkfifo.c (main): Likewise.
28514         * tests/test-mkfifoat.c (main): Likewise.
28515         * tests/test-mknod.c (main): Likewise.
28516         * tests/test-readlink.c (main): Likewise.
28517         * tests/test-remove.c (main): Likewise.
28518         * tests/test-rename.c (main): Likewise.
28519         * tests/test-renameat.c (main): Likewise.
28520         * tests/test-rmdir.c (main): Likewise.
28521         * tests/test-symlink.c (main): Likewise.
28522         * tests/test-symlinkat.c (main): Likewise.
28523         * tests/test-unlink.c (main): Likewise.
28524         * tests/test-unlinkat.c (main): Likewise.
28525         * tests/test-utimens.c (main): Likewise.
28526         * tests/test-utimensat.c (main): Likewise.
28527         * modules/areadlink-tests (Depends-on): Add ignore-value.
28528         * modules/areadlink-with-size-tests (Depends-on): Likewise.
28529         * modules/areadlinkat-tests (Depends-on): Likewise.
28530         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
28531         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
28532         * modules/canonicalize-tests (Depends-on): Likewise.
28533         * modules/chown-tests (Depends-on): Likewise.
28534         * modules/fdutimensat-tests (Depends-on): Likewise.
28535         * modules/futimens-tests (Depends-on): Likewise.
28536         * modules/lchown-tests (Depends-on): Likewise.
28537         * modules/link-tests (Depends-on): Likewise.
28538         * modules/linkat-tests (Depends-on): Likewise.
28539         * modules/lstat-tests (Depends-on): Likewise.
28540         * modules/mkdir-tests (Depends-on): Likewise.
28541         * modules/mkfifo-tests (Depends-on): Likewise.
28542         * modules/mkfifoat-tests (Depends-on): Likewise.
28543         * modules/mknod-tests (Depends-on): Likewise.
28544         * modules/openat-tests (Depends-on): Likewise.
28545         * modules/readlink-tests (Depends-on): Likewise.
28546         * modules/remove-tests (Depends-on): Likewise.
28547         * modules/rename-tests (Depends-on): Likewise.
28548         * modules/renameat-tests (Depends-on): Likewise.
28549         * modules/rmdir-tests (Depends-on): Likewise.
28550         * modules/symlink-tests (Depends-on): Likewise.
28551         * modules/symlinkat-tests (Depends-on): Likewise.
28552         * modules/unlink-tests (Depends-on): Likewise.
28553         * modules/utimens-tests (Depends-on): Likewise.
28554         * modules/utimensat-tests (Depends-on): Likewise.
28555
28556 2010-01-31  Bruno Haible  <bruno@clisp.org>
28557
28558         Perform the same test for many <math.h> functions.
28559         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
28560         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
28561         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
28562         of gl_MATHFUNC.
28563         * modules/acos (configure.ac): Likewise.
28564         * modules/asin (configure.ac): Likewise.
28565         * modules/atan (configure.ac): Likewise.
28566         * modules/atan2 (configure.ac): Likewise.
28567         * modules/cbrt (configure.ac): Likewise.
28568         * modules/copysign (configure.ac): Likewise.
28569         * modules/cos (configure.ac): Likewise.
28570         * modules/cosh (configure.ac): Likewise.
28571         * modules/erf (configure.ac): Likewise.
28572         * modules/erfc (configure.ac): Likewise.
28573         * modules/exp (configure.ac): Likewise.
28574         * modules/fmod (configure.ac): Likewise.
28575         * modules/hypot (configure.ac): Likewise.
28576         * modules/j0 (configure.ac): Likewise.
28577         * modules/j1 (configure.ac): Likewise.
28578         * modules/jn (configure.ac): Likewise.
28579         * modules/lgamma (configure.ac): Likewise.
28580         * modules/log (configure.ac): Likewise.
28581         * modules/log10 (configure.ac): Likewise.
28582         * modules/log1p (configure.ac): Likewise.
28583         * modules/pow (configure.ac): Likewise.
28584         * modules/remainder (configure.ac): Likewise.
28585         * modules/sin (configure.ac): Likewise.
28586         * modules/sinh (configure.ac): Likewise.
28587         * modules/tan (configure.ac): Likewise.
28588         * modules/tanh (configure.ac): Likewise.
28589         * modules/y0 (configure.ac): Likewise.
28590         * modules/y1 (configure.ac): Likewise.
28591         * modules/yn (configure.ac): Likewise.
28592         Suggested by Paolo Bonzini.
28593
28594 2010-01-31  Bruno Haible  <bruno@clisp.org>
28595
28596         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
28597
28598 2010-01-31  Bruno Haible  <bruno@clisp.org>
28599
28600         Work around getdelim() bug on FreeBSD 8.0.
28601         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
28602         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
28603         not work.
28604         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
28605         is 1.
28606         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
28607         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
28608         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
28609         a non-zero size.
28610         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
28611
28612 2010-01-31  Bruno Haible  <bruno@clisp.org>
28613
28614         Work around getline() bug on FreeBSD 8.0.
28615         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
28616         and a non-zero size.
28617         * tests/test-getline.c (main): Likewise.
28618         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
28619         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
28620
28621 2010-01-28  Eric Blake  <ebb9@byu.net>
28622
28623         regex: fix build failure
28624         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
28625         platforms.
28626
28627 2010-01-28  Jim Meyering  <meyering@redhat.com>
28628
28629         regex: do not ignore memory allocation failure
28630         * lib/regex_internal.c (create_cd_newstate): Detect
28631         re_node_set_init_copy failure.   Extracted from glibc commit
28632         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28633
28634         regex: sync more white-space changes from libc
28635         * lib/regex_internal.c: White-space only changes.
28636         * lib/regexec.c: Likewise.
28637
28638         regex: add many uses of __attribute_warn_unused_result__
28639         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
28640         * lib/regexec.c: Likewise.
28641         Extracted from a messy glibc commit.
28642
28643         regcomp.c: spelling and merge-artifact from glibc
28644         * lib/regcomp.c: Merge remainder of glibc's
28645         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28646
28647         regcomp.c: sync white-space changes from glibc
28648         * lib/regcomp.c: Merge to accommodate white space
28649         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
28650
28651         regcomp.c: do not ignore internal return values
28652         * lib/regcomp.c: Do not ignore internal return values.
28653         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
28654         but without its white-space changes and spelling fixes.
28655
28656         regex_internal.h: define __attribute_warn_unused_result__
28657         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
28658
28659         maint: add a syntax-check rule to check for vulnerable Makefile.in
28660         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
28661
28662 2010-01-27  Jim Meyering  <meyering@redhat.com>
28663
28664         ncftpput-ftp: clean up spaces
28665         * build-aux/ncftpput-ftp: Make Copyright line consistent.
28666         Remove trailing blanks.
28667
28668 2010-01-27  Simon Josefsson  <simon@josefsson.org>
28669
28670         * build-aux/git-version-gen: Fix copyright statement.
28671         * build-aux/gnupload: Likewise.
28672         * tests/test-arcfour.c: Likewise.
28673         * tests/test-arctwo.c: Likewise.
28674         * tests/test-count-one-bits.c: Likewise.
28675         * tests/test-crc.c: Likewise.
28676         * tests/test-des.c: Likewise.
28677         * tests/test-gc-arcfour.c: Likewise.
28678         * tests/test-gc-arctwo.c: Likewise.
28679         * tests/test-gc-des.c: Likewise.
28680         * tests/test-gc-hmac-md5.c: Likewise.
28681         * tests/test-gc-hmac-sha1.c: Likewise.
28682         * tests/test-gc-md2.c: Likewise.
28683         * tests/test-gc-md4.c: Likewise.
28684         * tests/test-gc-md5.c: Likewise.
28685         * tests/test-gc-pbkdf2-sha1.c: Likewise.
28686         * tests/test-gc-rijndael.c: Likewise.
28687         * tests/test-gc-sha1.c: Likewise.
28688         * tests/test-gc.c: Likewise.
28689         * tests/test-gethostname.c: Likewise.
28690         * tests/test-gettimeofday.c: Likewise.
28691         * tests/test-hash.c: Likewise.
28692         * tests/test-hmac-md5.c: Likewise.
28693         * tests/test-hmac-sha1.c: Likewise.
28694         * tests/test-md2.c: Likewise.
28695         * tests/test-md4.c: Likewise.
28696         * tests/test-md5.c: Likewise.
28697         * tests/test-memchr.c: Likewise.
28698         * tests/test-memchr2.c: Likewise.
28699         * tests/test-memcmp.c: Likewise.
28700         * tests/test-memmem.c: Likewise.
28701         * tests/test-memrchr.c: Likewise.
28702         * tests/test-rawmemchr.c: Likewise.
28703         * tests/test-read-file.c: Likewise.
28704         * tests/test-rijndael.c: Likewise.
28705         * tests/test-sockets.c: Likewise.
28706         * tests/test-strchrnul.c: Likewise.
28707         * tests/test-strstr.c: Likewise.
28708         * tests/test-strtod.c: Likewise.
28709         * build-aux/ncftpput-ftp: Likewise.
28710
28711 2010-01-26  Eric Blake  <ebb9@byu.net>
28712
28713         ignore-value: update recommended header name
28714         * modules/ignore-value (Include): Only use <> for headers that
28715         exist in glibc.
28716
28717 2010-01-26  Jim Meyering  <meyering@redhat.com>
28718
28719         test-userspec.c: avoid compiler warnings
28720         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
28721         and "initialization discards qualifiers..." warnings.
28722         Put the first "uid" in its own scope, and make char* members "const".
28723
28724 2010-01-25  Bruno Haible  <bruno@clisp.org>
28725
28726         gnulib-tool: Make warning diagnostics consistent.
28727         * gnulib-tool (func_warning): New function.
28728         Use it everywhere where gnulib-tool produces output to stderr and it is
28729         not a fatal error.
28730
28731 2010-01-25  Bruno Haible  <bruno@clisp.org>
28732
28733         Fix test dependencies.
28734         * modules/xstrtol-tests (Depends-on): Add inttypes.
28735         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
28736
28737 2010-01-25 Pádraig Brady <P@draigBrady.com>
28738
28739         syntax-check: detect incorrect boolean macro values in config.h
28740         * modules/maintainer-makefile (configure.ac): Parameterize the location
28741         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
28742         The logic is from Eric Blake and the location indicated by Jim Meyering.
28743         Note the more natural CONFIG_HEADER name is prohibited by automake
28744         for backwards compatibility reasons.
28745         * top/maint.mk (sc_Wundef_boolean): New rule.
28746
28747 2010-01-25  Jim Meyering  <meyering@redhat.com>
28748
28749         bootstrap: detect MacOS 10.6's shasum, too
28750         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
28751         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
28752
28753 2010-01-23  Jim Meyering  <meyering@redhat.com>
28754
28755         xstrtoll: new module
28756         * modules/xstrtoll: New file.
28757         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
28758         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
28759         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
28760         ./configure fails if you use this module and lack "long long".
28761         * modules/xstrtoll-tests: New module.
28762         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
28763         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
28764         new init.sh-based test framework.
28765
28766 2010-01-24  Bruno Haible  <bruno@clisp.org>
28767
28768         Tests for module 'yn'.
28769         * modules/yn-tests: New file.
28770         * tests/test-yn.c: New file.
28771
28772         Tests for module 'y1'.
28773         * modules/y1-tests: New file.
28774         * tests/test-y1.c: New file.
28775
28776         Tests for module 'y0'.
28777         * modules/y0-tests: New file.
28778         * tests/test-y0.c: New file.
28779
28780         Tests for module 'tanh'.
28781         * modules/tanh-tests: New file.
28782         * tests/test-tanh.c: New file.
28783
28784         Tests for module 'tan'.
28785         * modules/tan-tests: New file.
28786         * tests/test-tan.c: New file.
28787
28788         Tests for module 'sqrt'.
28789         * modules/sqrt-tests: New file.
28790         * tests/test-sqrt.c: New file.
28791
28792         Tests for module 'sinh'.
28793         * modules/sinh-tests: New file.
28794         * tests/test-sinh.c: New file.
28795
28796         Tests for module 'sin'.
28797         * modules/sin-tests: New file.
28798         * tests/test-sin.c: New file.
28799
28800         Tests for module 'rint'.
28801         * modules/rint-tests: New file.
28802         * tests/test-rint.c: New file.
28803
28804         Tests for module 'remainder'.
28805         * modules/remainder-tests: New file.
28806         * tests/test-remainder.c: New file.
28807
28808         Tests for module 'pow'.
28809         * modules/pow-tests: New file.
28810         * tests/test-pow.c: New file.
28811
28812         Tests for module 'nextafter'.
28813         * modules/nextafter-tests: New file.
28814         * tests/test-nextafter.c: New file.
28815
28816         Tests for module 'modf'.
28817         * modules/modf-tests: New file.
28818         * tests/test-modf.c: New file.
28819
28820         Tests for module 'logb'.
28821         * modules/logb-tests: New file.
28822         * tests/test-logb.c: New file.
28823
28824         Tests for module 'log1p'.
28825         * modules/log1p-tests: New file.
28826         * tests/test-log1p.c: New file.
28827
28828         Tests for module 'log10'.
28829         * modules/log10-tests: New file.
28830         * tests/test-log10.c: New file.
28831
28832         Tests for module 'log'.
28833         * modules/log-tests: New file.
28834         * tests/test-log.c: New file.
28835
28836         Tests for module 'lgamma'.
28837         * modules/lgamma-tests: New file.
28838         * tests/test-lgamma.c: New file.
28839
28840         Tests for module 'ldexp'.
28841         * modules/ldexp-tests: New file.
28842         * tests/test-ldexp.c: New file.
28843
28844         Tests for module 'jn'.
28845         * modules/jn-tests: New file.
28846         * tests/test-jn.c: New file.
28847
28848         Tests for module 'j1'.
28849         * modules/j1-tests: New file.
28850         * tests/test-j1.c: New file.
28851
28852         Tests for module 'j0'.
28853         * modules/j0-tests: New file.
28854         * tests/test-j0.c: New file.
28855
28856         Tests for module 'hypot'.
28857         * modules/hypot-tests: New file.
28858         * tests/test-hypot.c: New file.
28859
28860         Tests for module 'fmod'.
28861         * modules/fmod-tests: New file.
28862         * tests/test-fmod.c: New file.
28863
28864         Tests for module 'fabs'.
28865         * modules/fabs-tests: New file.
28866         * tests/test-fabs.c: New file.
28867
28868         Tests for module 'exp'.
28869         * modules/exp-tests: New file.
28870         * tests/test-exp.c: New file.
28871
28872         Tests for module 'erfc'.
28873         * modules/erfc-tests: New file.
28874         * tests/test-erfc.c: New file.
28875
28876         Tests for module 'erf'.
28877         * modules/erf-tests: New file.
28878         * tests/test-erf.c: New file.
28879
28880         Tests for module 'cosh'.
28881         * modules/cosh-tests: New file.
28882         * tests/test-cosh.c: New file.
28883
28884         Tests for module 'cos'.
28885         * modules/cos-tests: New file.
28886         * tests/test-cos.c: New file.
28887
28888         Tests for module 'copysign'.
28889         * modules/copysign-tests: New file.
28890         * tests/test-copysign.c: New file.
28891
28892         Tests for module 'cbrt'.
28893         * modules/cbrt-tests: New file.
28894         * tests/test-cbrt.c: New file.
28895
28896         Tests for module 'atan2'.
28897         * modules/atan2-tests: New file.
28898         * tests/test-atan2.c: New file.
28899
28900         Tests for module 'atan'.
28901         * modules/atan-tests: New file.
28902         * tests/test-atan.c: New file.
28903
28904         Tests for module 'asin'.
28905         * modules/asin-tests: New file.
28906         * tests/test-asin.c: New file.
28907
28908         Tests for module 'acos'.
28909         * modules/acos-tests: New file.
28910         * tests/test-acos.c: New file.
28911
28912 2010-01-24  Bruno Haible  <bruno@clisp.org>
28913
28914         Fix tests for common <math.h> functions.
28915         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
28916         code snippet that references the function pointer, rather than merely
28917         calling the function. Substitute the FUNC_LIBM variable.
28918         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
28919         * modules/acos (configure.ac): Likewise.
28920         * modules/asin (configure.ac): Likewise.
28921         * modules/atan (configure.ac): Likewise.
28922         * modules/atan2 (configure.ac): Likewise.
28923         * modules/cbrt (configure.ac): Likewise.
28924         * modules/copysign (configure.ac): Likewise.
28925         * modules/cos (configure.ac): Likewise.
28926         * modules/cosh (configure.ac): Likewise.
28927         * modules/erf (configure.ac): Likewise.
28928         * modules/erfc (configure.ac): Likewise.
28929         * modules/exp (configure.ac): Likewise.
28930         * modules/fabs (configure.ac): Likewise.
28931         * modules/fmod (configure.ac): Likewise.
28932         * modules/hypot (configure.ac): Likewise.
28933         * modules/j0 (configure.ac): Likewise.
28934         * modules/j1 (configure.ac): Likewise.
28935         * modules/jn (configure.ac): Likewise.
28936         * modules/ldexp (configure.ac): Likewise.
28937         * modules/lgamma (configure.ac): Likewise.
28938         * modules/log (configure.ac): Likewise.
28939         * modules/log10 (configure.ac): Likewise.
28940         * modules/log1p (configure.ac): Likewise.
28941         * modules/logb (configure.ac): Likewise.
28942         * modules/modf (configure.ac): Likewise.
28943         * modules/nextafter (configure.ac): Likewise.
28944         * modules/pow (configure.ac): Likewise.
28945         * modules/remainder (configure.ac): Likewise.
28946         * modules/rint (configure.ac): Likewise.
28947         * modules/sin (configure.ac): Likewise.
28948         * modules/sinh (configure.ac): Likewise.
28949         * modules/tan (configure.ac): Likewise.
28950         * modules/tanh (configure.ac): Likewise.
28951         * modules/y0 (configure.ac): Likewise.
28952         * modules/y1 (configure.ac): Likewise.
28953         * modules/yn (configure.ac): Likewise.
28954
28955 2010-01-24  Bruno Haible  <bruno@clisp.org>
28956
28957         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
28958         * tests/test-acosl.c (x): New variable.
28959         (main): Store argument in x and fetch it from x.
28960         * tests/test-asinl.c (x): New variable.
28961         (main): Store argument in x and fetch it from x.
28962         * tests/test-atanl.c (x): New variable.
28963         (main): Store argument in x and fetch it from x.
28964         * tests/test-cosl.c (x): New variable.
28965         (main): Store argument in x and fetch it from x.
28966         * tests/test-expl.c (x): New variable.
28967         (main): Store argument in x and fetch it from x.
28968         * tests/test-logl.c (x): New variable.
28969         (main): Store argument in x and fetch it from x.
28970         * tests/test-sinl.c (x): New variable.
28971         (main): Store argument in x and fetch it from x.
28972         * tests/test-sqrtl.c (x): New variable.
28973         (main): Store argument in x and fetch it from x.
28974         * tests/test-tanl.c (x): New variable.
28975         (main): Store argument in x and fetch it from x.
28976
28977 2010-01-24  Bruno Haible  <bruno@clisp.org>
28978
28979         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
28980         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
28981         assignments to the initial TESTS_ENVIRONMENT.
28982         * doc/gnulib.texi (Unit test modules): Document it.
28983         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
28984         TESTS_ENVIRONMENT.
28985         * modules/btowc-tests (Makefile.am): Likewise.
28986         * modules/c-stack-tests (Makefile.am): Likewise.
28987         * modules/c-strcase-tests (Makefile.am): Likewise.
28988         * modules/copy-file-tests (Makefile.am): Likewise.
28989         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
28990         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
28991         * modules/mbrtowc-tests (Makefile.am): Likewise.
28992         * modules/mbscasecmp-tests (Makefile.am): Likewise.
28993         * modules/mbscasestr-tests (Makefile.am): Likewise.
28994         * modules/mbschr-tests (Makefile.am): Likewise.
28995         * modules/mbscspn-tests (Makefile.am): Likewise.
28996         * modules/mbsinit-tests (Makefile.am): Likewise.
28997         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
28998         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
28999         * modules/mbspbrk-tests (Makefile.am): Likewise.
29000         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
29001         * modules/mbsrchr-tests (Makefile.am): Likewise.
29002         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
29003         * modules/mbsspn-tests (Makefile.am): Likewise.
29004         * modules/mbsstr-tests (Makefile.am): Likewise.
29005         * modules/nl_langinfo-tests (Makefile.am): Likewise.
29006         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
29007         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
29008         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
29009         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
29010         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
29011         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
29012         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
29013         * modules/wcrtomb-tests (Makefile.am): Likewise.
29014         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
29015         * modules/wcsrtombs-tests (Makefile.am): Likewise.
29016         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
29017         assignments from TESTS_ENVIRONMENT.
29018         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
29019         augmentation.
29020         * modules/argp-version-etc-tests (Makefile.am): Likewise.
29021         * modules/atexit-tests (Makefile.am): Likewise.
29022         * modules/binary-io-tests (Makefile.am): Likewise.
29023         * modules/closein-tests (Makefile.am): Likewise.
29024         * modules/dprintf-posix-tests (Makefile.am): Likewise.
29025         * modules/exclude-tests (Makefile.am): Likewise.
29026         * modules/fflush-tests (Makefile.am): Likewise.
29027         * modules/fpending-tests (Makefile.am): Likewise.
29028         * modules/fprintf-posix-tests (Makefile.am): Likewise.
29029         * modules/freadahead-tests (Makefile.am): Likewise.
29030         * modules/freadptr-tests (Makefile.am): Likewise.
29031         * modules/freadseek-tests (Makefile.am): Likewise.
29032         * modules/fseek-tests (Makefile.am): Likewise.
29033         * modules/fseeko-tests (Makefile.am): Likewise.
29034         * modules/ftell-tests (Makefile.am): Likewise.
29035         * modules/ftello-tests (Makefile.am): Likewise.
29036         * modules/idpriv-drop-tests (Makefile.am): Likewise.
29037         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
29038         * modules/lseek-tests (Makefile.am): Likewise.
29039         * modules/parse-duration-tests (Makefile.am): Likewise.
29040         * modules/perror-tests (Makefile.am): Likewise.
29041         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
29042         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
29043         * modules/pipe-tests (Makefile.am): Likewise.
29044         * modules/pread-tests (Makefile.am): Likewise.
29045         * modules/printf-posix-tests (Makefile.am): Likewise.
29046         * modules/select-tests (Makefile.am): Likewise.
29047         * modules/sigpipe-tests (Makefile.am): Likewise.
29048         * modules/tsearch-tests (Makefile.am): Likewise.
29049         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
29050         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
29051         * modules/uniname/uniname-tests (Makefile.am): Likewise.
29052         * modules/uniwidth/width-tests (Makefile.am): Likewise.
29053         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
29054         * modules/version-etc-tests (Makefile.am): Likewise.
29055         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
29056         * modules/vprintf-posix-tests (Makefile.am): Likewise.
29057         * modules/xalloc-die-tests (Makefile.am): Likewise.
29058         * modules/xprintf-posix-tests (Makefile.am): Likewise.
29059         * modules/xstrtoimax-tests (Makefile.am): Likewise.
29060         * modules/xstrtol-tests (Makefile.am): Likewise.
29061         * modules/xstrtoumax-tests (Makefile.am): Likewise.
29062         * modules/yesno-tests (Makefile.am): Likewise.
29063         Suggested by Jim Meyering.
29064
29065 2010-01-24  Bruno Haible  <bruno@clisp.org>
29066
29067         More documentation.
29068         * doc/gnulib.texi (Writing modules): New chapter.
29069         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
29070         the new chapter.
29071
29072 2010-01-24  Jim Meyering  <meyering@redhat.com>
29073
29074         maint.mk: do not prepend "./" after filtering
29075         * top/maint.mk (_prepend_srcdir_prefix): New variable
29076         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
29077         "./" when $(srcdir) is ".".
29078
29079         define STREQ(a,b) consistently, removing useless parentheses
29080         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
29081         since the only risk is that "a" or "b" contains an unparenthesized
29082         comma, but if either did that, STREQ would have 3 or more arguments.
29083         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
29084         * lib/fts.c (STREQ): Remove unnecessary parentheses.
29085         * lib/hash-triple.c (STREQ): Likewise.
29086         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
29087         * lib/getugroups.c (STREQ): Likewise.
29088
29089 2010-01-23  Jim Meyering  <meyering@redhat.com>
29090
29091         maint.mk: fix syntax-check in a non-srcdir build directory
29092         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
29093         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
29094
29095 2010-01-22  Jim Meyering  <meyering@redhat.com>
29096
29097         userspec: add unit tests
29098         * tests/test-userspec.c: New file.
29099         * modules/userspec-tests: Likewise.
29100
29101 2010-01-21  Jim Meyering  <meyering@redhat.com>
29102
29103         maint.mk: handle source file names containing "." robustly
29104         * top/maint.mk (_dot_escaped_srcdir): Define.
29105         (VC_LIST): Use it in LHS of sed substitution.
29106
29107 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
29108
29109         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
29110         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
29111         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
29112         from a non-srcdir build.
29113
29114 2010-01-20  Eric Blake  <ebb9@byu.net>
29115
29116         warn-on-use: use instead of link-warning
29117         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
29118         * modules/unistd (Depends-on, Makefile.am): Likewise.
29119         * modules/arpa_inet (Depends-on): Replace link-warning with
29120         warn-on-use.
29121         (Makefile.am): Update rules accordingly.
29122         * modules/ctype (Depends-on, Makefile.am): Likewise.
29123         * modules/dirent (Depends-on, Makefile.am): Likewise.
29124         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
29125         * modules/inttypes (Depends-on, Makefile.am): Likewise.
29126         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29127         * modules/locale (Depends-on, Makefile.am): Likewise.
29128         * modules/math (Depends-on, Makefile.am): Likewise.
29129         * modules/search (Depends-on, Makefile.am): Likewise.
29130         * modules/signal (Depends-on, Makefile.am): Likewise.
29131         * modules/spawn (Depends-on, Makefile.am): Likewise.
29132         * modules/stdlib (Depends-on, Makefile.am): Likewise.
29133         * modules/string (Depends-on, Makefile.am): Likewise.
29134         * modules/strings (Depends-on, Makefile.am): Likewise.
29135         * modules/sys_file (Depends-on, Makefile.am): Likewise.
29136         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
29137         * modules/sys_select (Depends-on, Makefile.am): Likewise.
29138         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
29139         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
29140         * modules/sys_times (Depends-on, Makefile.am): Likewise.
29141         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29142         * modules/wchar (Depends-on, Makefile.am): Likewise.
29143         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
29144         should be poisoned.
29145         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
29146         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
29147         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
29148         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29149         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29150         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
29151         * m4/math_h.m4 (gl_MATH_H): Likewise.
29152         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29153         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
29154         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
29155         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
29156         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
29157         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
29158         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
29159         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
29160         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
29161         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29162         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
29163         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
29164         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
29165         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
29166         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29167         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29168         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
29169         GL_LINK_WARNING.
29170         * lib/ctype.in.h: Likewise.
29171         * lib/dirent.in.h: Likewise.
29172         * lib/fcntl.in.h: Likewise.
29173         * lib/inttypes.in.h: Likewise.
29174         * lib/langinfo.in.h: Likewise.
29175         * lib/locale.in.h: Likewise.
29176         * lib/math.in.h: Likewise.
29177         * lib/search.in.h: Likewise.
29178         * lib/signal.in.h: Likewise.
29179         * lib/spawn.in.h: Likewise.
29180         * lib/stdio.in.h: Likewise.
29181         * lib/stdlib.in.h: Likewise.
29182         * lib/string.in.h: Likewise.
29183         * lib/strings.in.h: Likewise.
29184         * lib/sys_file.in.h: Likewise.
29185         * lib/sys_ioctl.in.h: Likewise.
29186         * lib/sys_select.in.h: Likewise.
29187         * lib/sys_socket.in.h: Likewise.
29188         * lib/sys_stat.in.h: Likewise.
29189         * lib/sys_times.in.h: Likewise.
29190         * lib/sys_utsname.in.h: Likewise.
29191         * lib/unistd.in.h: Likewise.
29192         * lib/wchar.in.h: Likewise.
29193
29194 2010-01-20  Bruno Haible  <bruno@clisp.org>
29195
29196         Avoid duplicate -lm.
29197         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
29198         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
29199         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
29200         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
29201         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
29202         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
29203         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
29204         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
29205         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
29206         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
29207         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
29208         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
29209         Reported by Paolo Bonzini.
29210
29211 2010-01-19  Bruno Haible  <bruno@clisp.org>
29212
29213         langinfo, nl_langinfo: Relicense under LGPLv2+.
29214         * modules/langinfo (License): Change to LGPLv2+.
29215         * modules/nl_langinfo (License): Likewise.
29216         Patch by David Lutterkort <lutter@redhat.com>.
29217
29218 2010-01-19  Bruno Haible  <bruno@clisp.org>
29219
29220         Avoid compilation error with cc on OSF/1 5.1.
29221         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
29222         statement, not before.
29223         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29224
29225 2010-01-18  Bruno Haible  <bruno@clisp.org>
29226
29227         Avoid a link error due to the __printf__ symbol.
29228         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
29229         and 2.6.x.
29230         (__format__, __printf__): Remove definitions.
29231         * lib/argp-fmtstream.h: Likewise.
29232         * lib/argp.h: Likewise.
29233         * lib/error.h: Likewise.
29234         * lib/vasnprintf.h: Likewise.
29235         * lib/xprintf.h: Likewise.
29236         * lib/xvasprintf.h: Likewise.
29237         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29238
29239 2010-01-18  Bruno Haible  <bruno@clisp.org>
29240
29241         Tests for module 'tanl'.
29242         * modules/tanl-tests: New file.
29243         * tests/test-tanl.c: New file.
29244
29245         Tests for module 'sqrtl'.
29246         * modules/sqrtl-tests: New file.
29247         * tests/test-sqrtl.c: New file.
29248
29249         Tests for module 'sinl'.
29250         * modules/sinl-tests: New file.
29251         * tests/test-sinl.c: New file.
29252
29253         Tests for module 'logl'.
29254         * modules/logl-tests: New file.
29255         * tests/test-logl.c: New file.
29256
29257         Tests for module 'expl'.
29258         * modules/expl-tests: New file.
29259         * tests/test-expl.c: New file.
29260
29261         Tests for module 'cosl'.
29262         * modules/cosl-tests: New file.
29263         * tests/test-cosl.c: New file.
29264
29265         Tests for module 'atanl'.
29266         * modules/atanl-tests: New file.
29267         * tests/test-atanl.c: New file.
29268
29269         Tests for module 'asinl'.
29270         * modules/asinl-tests: New file.
29271         * tests/test-asinl.c: New file.
29272
29273         Tests for module 'acosl'.
29274         * modules/acosl-tests: New file.
29275         * tests/test-acosl.c: New file.
29276
29277         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
29278         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
29279         tanl): Use the standard gnulib idiom.
29280         * lib/cosl.c: Don't include trigl.c and sincosl.c.
29281         * lib/sinl.c: Likewise.
29282         * lib/tanl.c: Don't include trigl.c.
29283         (kernel_tanl): Make static.
29284         * lib/sincosl.c: Include trigl.h first.
29285         * lib/trigl.c: Likewise.
29286         * m4/acosl.m4: New file.
29287         * m4/asinl.m4: New file.
29288         * m4/atanl.m4: New file.
29289         * m4/cosl.m4: New file.
29290         * m4/expl.m4: New file.
29291         * m4/logl.m4: New file.
29292         * m4/sinl.m4: New file.
29293         * m4/sqrtl.m4: New file.
29294         * m4/tanl.m4: New file.
29295         * m4/mathl.m4: Remove file.
29296         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
29297         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
29298         Don't initialize GNULIB_MATHL.
29299         * modules/acosl: New file.
29300         * modules/asinl: New file.
29301         * modules/atanl: New file.
29302         * modules/cosl: New file.
29303         * modules/expl: New file.
29304         * modules/logl: New file.
29305         * modules/sinl: New file.
29306         * modules/sqrtl: New file.
29307         * modules/tanl: New file.
29308         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
29309         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
29310         substitute GNULIB_MATHL.
29311         * modules/mathl: Rewritten.
29312         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
29313         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
29314         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
29315         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
29316         * doc/posix-functions/expl.texi: Mention the 'expl' module.
29317         * doc/posix-functions/logl.texi: Mention the 'logl' module.
29318         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
29319         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
29320         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
29321
29322 2010-01-18  Bruno Haible  <bruno@clisp.org>
29323
29324         sqrt: Make gl_FUNC_SQRT requirable.
29325         * m4/sqrt.m4: New file.
29326         * modules/sqrt (Files): Add it.
29327         (configure.ac): Invoke gl_FUNC_SQRT.
29328
29329 2010-01-18  Bruno Haible  <bruno@clisp.org>
29330
29331         New modules for common <math.h> functions.
29332         * m4/mathfunc.m4: New file.
29333         * modules/acos: New file.
29334         * modules/asin: New file.
29335         * modules/atan: New file.
29336         * modules/atan2: New file.
29337         * modules/cbrt: New file.
29338         * modules/copysign: New file.
29339         * modules/cos: New file.
29340         * modules/cosh: New file.
29341         * modules/erf: New file.
29342         * modules/erfc: New file.
29343         * modules/exp: New file.
29344         * modules/fabs: New file.
29345         * modules/fmod: New file.
29346         * modules/hypot: New file.
29347         * modules/j0: New file.
29348         * modules/j1: New file.
29349         * modules/jn: New file.
29350         * modules/ldexp: New file.
29351         * modules/lgamma: New file.
29352         * modules/log: New file.
29353         * modules/log10: New file.
29354         * modules/log1p: New file.
29355         * modules/logb: New file.
29356         * modules/modf: New file.
29357         * modules/nextafter: New file.
29358         * modules/pow: New file.
29359         * modules/remainder: New file.
29360         * modules/rint: New file.
29361         * modules/sin: New file.
29362         * modules/sinh: New file.
29363         * modules/sqrt: New file.
29364         * modules/tan: New file.
29365         * modules/tanh: New file.
29366         * modules/y0: New file.
29367         * modules/y1: New file.
29368         * modules/yn: New file.
29369         * doc/posix-functions/acos.texi: Mention the 'acos' module.
29370         * doc/posix-functions/asin.texi: Mention the 'asin' module.
29371         * doc/posix-functions/atan.texi: Mention the 'atan' module.
29372         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
29373         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
29374         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
29375         * doc/posix-functions/cos.texi: Mention the 'cos' module.
29376         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
29377         * doc/posix-functions/erf.texi: Mention the 'erf' module.
29378         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
29379         * doc/posix-functions/exp.texi: Mention the 'exp' module.
29380         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
29381         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
29382         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
29383         * doc/posix-functions/j0.texi: Mention the 'j0' module.
29384         * doc/posix-functions/j1.texi: Mention the 'j1' module.
29385         * doc/posix-functions/jn.texi: Mention the 'jn' module.
29386         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
29387         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
29388         * doc/posix-functions/log.texi: Mention the 'log' module.
29389         * doc/posix-functions/log10.texi: Mention the 'log10' module.
29390         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
29391         * doc/posix-functions/logb.texi: Mention the 'logb' module.
29392         * doc/posix-functions/modf.texi: Mention the 'modf' module.
29393         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
29394         * doc/posix-functions/pow.texi: Mention the 'pow' module.
29395         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
29396         * doc/posix-functions/rint.texi: Mention the 'rint' module.
29397         * doc/posix-functions/sin.texi: Mention the 'sin' module.
29398         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
29399         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
29400         * doc/posix-functions/tan.texi: Mention the 'tan' module.
29401         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
29402         * doc/posix-functions/y0.texi: Mention the 'y0' module.
29403         * doc/posix-functions/y1.texi: Mention the 'y1' module.
29404         * doc/posix-functions/yn.texi: Mention the 'yn' module.
29405
29406 2010-01-18  Jim Meyering  <meyering@redhat.com>
29407
29408         ignore-value: relax license to LGPLv2+
29409         * modules/ignore-value (License): Relax to LGPLv2+.
29410
29411         getdate: don't leak when TZ contains two or more '"'s
29412         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
29413         double quote in TZ after the first one.
29414
29415         readtokens: do not leak internal token_lengths buffer
29416         * lib/readtokens.c (readtokens): Free the local, lengths,
29417         when the supplied "token_lengths" parameter is NULL.
29418
29419 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29420
29421         Fix a couple of missing LIBTHREAD link failures on AIX.
29422         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
29423         $(LIBTHREAD).
29424         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
29425
29426         Link test-poll against INET_PTON_LIB.
29427         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
29428         for inet_pton on Solaris 10.
29429
29430 2010-01-17  Bruno Haible  <bruno@clisp.org>
29431
29432         unistdio/*-sprintf: Fix typo in module description.
29433         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
29434         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
29435         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
29436         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
29437         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
29438         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
29439         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
29440         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29441
29442 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29443
29444         gnulib-tool: fix filelist for AIX, HP-UX ksh.
29445         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
29446         variables in shell case patterns, for AIX and HP-UX ksh.
29447
29448         Split large sed scripts, for HP-UX sed.
29449         * modules/stdio: Split sed scripts around 50 sed commands,
29450         to avoid HP-UX limit of 99 commands, in the near future.
29451         * modules/string: Likewise.
29452         * modules/unistd: Likewise.
29453
29454         gnulib-tool: avoid writing in the current directory.
29455         * gnulib-tool (func_emit_lib_Makefile_am)
29456         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
29457         not in the current directory, so concurrent gnulib-tool
29458         instances do not interfere.
29459
29460 2010-01-16  Jim Meyering  <meyering@redhat.com>
29461
29462         doc: update users.txt
29463         * users.txt: Add grep.
29464         (diffutils, gzip): Update URLs.
29465
29466 2010-01-12  Bruno Haible  <bruno@clisp.org>
29467
29468         posix_spawn: Avoid test failure on Cygwin.
29469         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
29470         characters.
29471         Reported by Simon Josefsson.
29472
29473 2010-01-12  Bruno Haible  <bruno@clisp.org>
29474
29475         * tests/test-cond.c (main): When skipping the test, show the reason.
29476
29477 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29478
29479         * lib/striconv.c (str_cd_iconv): Avoid if before free.
29480
29481 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29482
29483         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
29484         VC_LIST_ALWAYS_EXCLUDE_REGEX.
29485
29486 2010-01-12  Eric Blake  <ebb9@byu.net>
29487
29488         build: guarantee AS_VAR_IF
29489         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
29490         (gl_AS_VAR_IF): Move...
29491         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
29492         Reported by Simon Josefsson.
29493
29494 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29495
29496         * lib/stdio.in.h: Fix typo.
29497
29498 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29499
29500         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
29501         libgpg-error.
29502
29503 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29504
29505         * tests/test-xalloc-die.sh: Use $EXEEXT.
29506
29507 2010-01-12  Simon Josefsson  <simon@josefsson.org>
29508             Bruno Haible  <bruno@clisp.org>
29509
29510         getlogin, getlogin_r: Avoid test failure.
29511         * tests/test-getlogin.c: Include <stdio.h>.
29512         (main): Skip the test when the function fails because stdin is not a
29513         tty.
29514         * tests/test-getlogin_r.c: Include <stdio.h>.
29515         (main): Skip the test when the function fails because stdin is not a
29516         tty.
29517
29518 2010-01-11  Eric Blake  <ebb9@byu.net>
29519
29520         tests: avoid more large file warnings
29521         * tests/test-fflush.c: Avoid warning about ftell use.
29522         * tests/test-fseek.c: Avoid warning about fseek use.
29523
29524 2010-01-10  Bruno Haible  <bruno@clisp.org>
29525
29526         nproc: Work better on Linux when /proc and /sys are not mounted.
29527         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
29528         as lower bound when, on glibc/Linux systems,
29529         sysconf (_SC_NPROCESSORS_CONF) returns 1.
29530         Suggested by Pádraig Brady <P@draigbrady.com>.
29531         Reported by Dmitry V. Levin <ldv@altlinux.org>.
29532
29533         nproc: Refactor.
29534         * lib/nproc.c (num_processors_via_affinity_mask): New function,
29535         extracted from num_processors.
29536         (num_processors): Call it.
29537
29538 2010-01-11  Jim Meyering  <meyering@redhat.com>
29539
29540         utimecmp: avoid new warning from upcoming gcc-4.5.0
29541         * lib/utimecmp.c (BILLION): Define using #define rather than an
29542         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
29543
29544 2010-01-11  Eric Blake  <ebb9@byu.net>
29545
29546         math: add portability warnings for classification macros
29547         * modules/math (Depends-on): Add warn-on-use.
29548         (Makefile.am): Provide new substitutions.
29549         * m4/math_h.m4 (gl_MATH_H): Require inline.
29550         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
29551         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
29552         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
29553         implement warnings.
29554
29555         unistd: warn on use of environ without module
29556         * modules/unistd (Depends-on): Add warn-on-use.
29557         (Makefile.am): Provide new substitutions.
29558         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
29559         * lib/unistd.in.h (environ): Wrap with a warning helper function.
29560
29561         stdio: warn on suspicious uses
29562         * modules/stdio (Depends-on): Add warn-on-use.
29563         (Makefile.am): Provide new substitutions.
29564         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
29565         fseeko.
29566         * lib/stdio.in.h (gets): Always warn on use.
29567         (fseek, ftell): Adjust when warnings are issued, and honor
29568         _GL_NO_LARGE_FILES as a way to silence the warning.
29569         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
29570         any warning about large file offsets.
29571         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
29572         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
29573         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
29574         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
29575         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
29576         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
29577         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
29578         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
29579
29580         warn-on-use: new module
29581         * modules/warn-on-use: New file.
29582         * build-aux/warn-on-use.h: Likewise.
29583         * m4/warn-on-use.m4: Likewise.
29584         * MODULES.html.sh (Support for building): Mention it.
29585
29586 2010-01-10  Bruno Haible  <bruno@clisp.org>
29587
29588         Tests for module 'unistr/u32-strdup'.
29589         * modules/unistr/u32-strdup-tests: New file.
29590         * tests/unistr/test-u32-strdup.c: New file.
29591
29592         Tests for module 'unistr/u16-strdup'.
29593         * modules/unistr/u16-strdup-tests: New file.
29594         * tests/unistr/test-u16-strdup.c: New file.
29595
29596         Tests for module 'unistr/u8-strdup'.
29597         * modules/unistr/u8-strdup-tests: New file.
29598         * tests/unistr/test-u8-strdup.c: New file.
29599         * tests/unistr/test-strdup.h: New file.
29600
29601         Tests for module 'unistr/u32-strncmp'.
29602         * modules/unistr/u32-strncmp-tests: New file.
29603         * tests/unistr/test-u32-strncmp.c: New file.
29604
29605         Tests for module 'unistr/u16-strncmp'.
29606         * modules/unistr/u16-strncmp-tests: New file.
29607         * tests/unistr/test-u16-strncmp.c: New file.
29608
29609         Tests for module 'unistr/u8-strncmp'.
29610         * modules/unistr/u8-strncmp-tests: New file.
29611         * tests/unistr/test-u8-strncmp.c: New file.
29612         * tests/unistr/test-strncmp.h: New file.
29613
29614         Tests for module 'unistr/u32-strcoll'.
29615         * modules/unistr/u32-strcoll-tests: New file.
29616         * tests/unistr/test-u32-strcoll.c: New file.
29617
29618         Tests for module 'unistr/u16-strcoll'.
29619         * modules/unistr/u16-strcoll-tests: New file.
29620         * tests/unistr/test-u16-strcoll.c: New file.
29621
29622         Tests for module 'unistr/u8-strcoll'.
29623         * modules/unistr/u8-strcoll-tests: New file.
29624         * tests/unistr/test-u8-strcoll.c: New file.
29625
29626         Tests for module 'unistr/u32-strcmp'.
29627         * modules/unistr/u32-strcmp-tests: New file.
29628         * tests/unistr/test-u32-strcmp.c: New file.
29629         * tests/unistr/test-u32-strcmp.h: New file.
29630
29631         Tests for module 'unistr/u16-strcmp'.
29632         * modules/unistr/u16-strcmp-tests: New file.
29633         * tests/unistr/test-u16-strcmp.c: New file.
29634         * tests/unistr/test-u16-strcmp.h: New file.
29635
29636         Tests for module 'unistr/u8-strcmp'.
29637         * modules/unistr/u8-strcmp-tests: New file.
29638         * tests/unistr/test-u8-strcmp.c: New file.
29639         * tests/unistr/test-u8-strcmp.h: New file.
29640         * tests/unistr/test-strcmp.h: New file.
29641
29642         Tests for module 'unistr/u32-strncat'.
29643         * modules/unistr/u32-strncat-tests: New file.
29644         * tests/unistr/test-u32-strncat.c: New file.
29645
29646         Tests for module 'unistr/u16-strncat'.
29647         * modules/unistr/u16-strncat-tests: New file.
29648         * tests/unistr/test-u16-strncat.c: New file.
29649
29650         Tests for module 'unistr/u8-strncat'.
29651         * modules/unistr/u8-strncat-tests: New file.
29652         * tests/unistr/test-u8-strncat.c: New file.
29653         * tests/unistr/test-strncat.h: New file.
29654
29655         Tests for module 'unistr/u32-strcat'.
29656         * modules/unistr/u32-strcat-tests: New file.
29657         * tests/unistr/test-u32-strcat.c: New file.
29658
29659         Tests for module 'unistr/u16-strcat'.
29660         * modules/unistr/u16-strcat-tests: New file.
29661         * tests/unistr/test-u16-strcat.c: New file.
29662
29663         Tests for module 'unistr/u8-strcat'.
29664         * modules/unistr/u8-strcat-tests: New file.
29665         * tests/unistr/test-u8-strcat.c: New file.
29666         * tests/unistr/test-strcat.h: New file.
29667
29668         Tests for module 'unistr/u32-stpncpy'.
29669         * modules/unistr/u32-stpncpy-tests: New file.
29670         * tests/unistr/test-u32-stpncpy.c: New file.
29671
29672         Tests for module 'unistr/u16-stpncpy'.
29673         * modules/unistr/u16-stpncpy-tests: New file.
29674         * tests/unistr/test-u16-stpncpy.c: New file.
29675
29676         Tests for module 'unistr/u8-stpncpy'.
29677         * modules/unistr/u8-stpncpy-tests: New file.
29678         * tests/unistr/test-u8-stpncpy.c: New file.
29679         * tests/unistr/test-stpncpy.h: New file.
29680
29681         Tests for module 'unistr/u32-strncpy'.
29682         * modules/unistr/u32-strncpy-tests: New file.
29683         * tests/unistr/test-u32-strncpy.c: New file.
29684
29685         Tests for module 'unistr/u16-strncpy'.
29686         * modules/unistr/u16-strncpy-tests: New file.
29687         * tests/unistr/test-u16-strncpy.c: New file.
29688
29689         Tests for module 'unistr/u8-strncpy'.
29690         * modules/unistr/u8-strncpy-tests: New file.
29691         * tests/unistr/test-u8-strncpy.c: New file.
29692         * tests/unistr/test-strncpy.h: New file.
29693
29694         Tests for module 'unistr/u32-stpcpy'.
29695         * modules/unistr/u32-stpcpy-tests: New file.
29696         * tests/unistr/test-u32-stpcpy.c: New file.
29697
29698         Tests for module 'unistr/u16-stpcpy'.
29699         * modules/unistr/u16-stpcpy-tests: New file.
29700         * tests/unistr/test-u16-stpcpy.c: New file.
29701
29702         Tests for module 'unistr/u8-stpcpy'.
29703         * modules/unistr/u8-stpcpy-tests: New file.
29704         * tests/unistr/test-u8-stpcpy.c: New file.
29705         * tests/unistr/test-stpcpy.h: New file.
29706
29707         Tests for module 'unistr/u32-strcpy'.
29708         * modules/unistr/u32-strcpy-tests: New file.
29709         * tests/unistr/test-u32-strcpy.c: New file.
29710
29711         Tests for module 'unistr/u16-strcpy'.
29712         * modules/unistr/u16-strcpy-tests: New file.
29713         * tests/unistr/test-u16-strcpy.c: New file.
29714
29715         Tests for module 'unistr/u8-strcpy'.
29716         * modules/unistr/u8-strcpy-tests: New file.
29717         * tests/unistr/test-u8-strcpy.c: New file.
29718         * tests/unistr/test-strcpy.h: New file.
29719
29720         Tests for module 'unistr/u32-strnlen'.
29721         * modules/unistr/u32-strnlen-tests: New file.
29722         * tests/unistr/test-u32-strnlen.c: New file.
29723
29724         Tests for module 'unistr/u16-strnlen'.
29725         * modules/unistr/u16-strnlen-tests: New file.
29726         * tests/unistr/test-u16-strnlen.c: New file.
29727
29728         Tests for module 'unistr/u8-strnlen'.
29729         * modules/unistr/u8-strnlen-tests: New file.
29730         * tests/unistr/test-u8-strnlen.c: New file.
29731         * tests/unistr/test-strnlen.h: New file.
29732
29733         Tests for module 'unistr/u32-strlen'.
29734         * modules/unistr/u32-strlen-tests: New file.
29735         * tests/unistr/test-u32-strlen.c: New file.
29736
29737         Tests for module 'unistr/u16-strlen'.
29738         * modules/unistr/u16-strlen-tests: New file.
29739         * tests/unistr/test-u16-strlen.c: New file.
29740
29741         Tests for module 'unistr/u8-strlen'.
29742         * modules/unistr/u8-strlen-tests: New file.
29743         * tests/unistr/test-u8-strlen.c: New file.
29744
29745         Tests for module 'unistr/u32-prev'.
29746         * modules/unistr/u32-prev-tests: New file.
29747         * tests/unistr/test-u32-prev.c: New file.
29748
29749         Tests for module 'unistr/u16-prev'.
29750         * modules/unistr/u16-prev-tests: New file.
29751         * tests/unistr/test-u16-prev.c: New file.
29752
29753         Tests for module 'unistr/u8-prev'.
29754         * modules/unistr/u8-prev-tests: New file.
29755         * tests/unistr/test-u8-prev.c: New file.
29756
29757         Tests for module 'unistr/u32-next'.
29758         * modules/unistr/u32-next-tests: New file.
29759         * tests/unistr/test-u32-next.c: New file.
29760
29761         Tests for module 'unistr/u16-next'.
29762         * modules/unistr/u16-next-tests: New file.
29763         * tests/unistr/test-u16-next.c: New file.
29764
29765         Tests for module 'unistr/u8-next'.
29766         * modules/unistr/u8-next-tests: New file.
29767         * tests/unistr/test-u8-next.c: New file.
29768
29769         Tests for module 'unistr/u32-strmbtouc'.
29770         * modules/unistr/u32-strmbtouc-tests: New file.
29771         * tests/unistr/test-u32-strmbtouc.c: New file.
29772
29773         Tests for module 'unistr/u16-strmbtouc'.
29774         * modules/unistr/u16-strmbtouc-tests: New file.
29775         * tests/unistr/test-u16-strmbtouc.c: New file.
29776
29777         Tests for module 'unistr/u8-strmbtouc'.
29778         * modules/unistr/u8-strmbtouc-tests: New file.
29779         * tests/unistr/test-u8-strmbtouc.c: New file.
29780
29781         Tests for module 'unistr/u32-strmblen'.
29782         * modules/unistr/u32-strmblen-tests: New file.
29783         * tests/unistr/test-u32-strmblen.c: New file.
29784
29785         Tests for module 'unistr/u16-strmblen'.
29786         * modules/unistr/u16-strmblen-tests: New file.
29787         * tests/unistr/test-u16-strmblen.c: New file.
29788
29789         Tests for module 'unistr/u8-strmblen'.
29790         * modules/unistr/u8-strmblen-tests: New file.
29791         * tests/unistr/test-u8-strmblen.c: New file.
29792
29793         Tests for module 'unistr/u32-cpy-alloc'.
29794         * modules/unistr/u32-cpy-alloc-tests: New file.
29795         * tests/unistr/test-u32-cpy-alloc.c: New file.
29796
29797         Tests for module 'unistr/u16-cpy-alloc'.
29798         * modules/unistr/u16-cpy-alloc-tests: New file.
29799         * tests/unistr/test-u16-cpy-alloc.c: New file.
29800
29801         Tests for module 'unistr/u8-cpy-alloc'.
29802         * modules/unistr/u8-cpy-alloc-tests: New file.
29803         * tests/unistr/test-u8-cpy-alloc.c: New file.
29804         * tests/unistr/test-cpy-alloc.h: New file.
29805
29806         Tests for module 'unistr/u32-mbsnlen'.
29807         * modules/unistr/u32-mbsnlen-tests: New file.
29808         * tests/unistr/test-u32-mbsnlen.c: New file.
29809
29810         Tests for module 'unistr/u16-mbsnlen'.
29811         * modules/unistr/u16-mbsnlen-tests: New file.
29812         * tests/unistr/test-u16-mbsnlen.c: New file.
29813
29814         Tests for module 'unistr/u8-mbsnlen'.
29815         * modules/unistr/u8-mbsnlen-tests: New file.
29816         * tests/unistr/test-u8-mbsnlen.c: New file.
29817
29818         Tests for module 'unistr/u32-chr'.
29819         * modules/unistr/u32-chr-tests: New file.
29820         * tests/unistr/test-u32-chr.c: New file.
29821
29822         Tests for module 'unistr/u16-chr'.
29823         * modules/unistr/u16-chr-tests: New file.
29824         * tests/unistr/test-u16-chr.c: New file.
29825
29826         Tests for module 'unistr/u8-chr'.
29827         * modules/unistr/u8-chr-tests: New file.
29828         * tests/unistr/test-u8-chr.c: New file.
29829         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
29830
29831         Tests for module 'unistr/u32-cmp2'.
29832         * modules/unistr/u32-cmp2-tests: New file.
29833         * tests/unistr/test-u32-cmp2.c: New file.
29834
29835         Tests for module 'unistr/u16-cmp2'.
29836         * modules/unistr/u16-cmp2-tests: New file.
29837         * tests/unistr/test-u16-cmp2.c: New file.
29838
29839         Tests for module 'unistr/u8-cmp2'.
29840         * modules/unistr/u8-cmp2-tests: New file.
29841         * tests/unistr/test-u8-cmp2.c: New file.
29842         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
29843
29844         Tests for module 'unistr/u32-cmp'.
29845         * modules/unistr/u32-cmp-tests: New file.
29846         * tests/unistr/test-u32-cmp.c: New file.
29847
29848         Tests for module 'unistr/u16-cmp'.
29849         * modules/unistr/u16-cmp-tests: New file.
29850         * tests/unistr/test-u16-cmp.c: New file.
29851
29852         Tests for module 'unistr/u8-cmp'.
29853         * modules/unistr/u8-cmp-tests: New file.
29854         * tests/unistr/test-u8-cmp.c: New file.
29855         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
29856
29857         Tests for module 'unistr/u32-set'.
29858         * modules/unistr/u32-set-tests: New file.
29859         * tests/unistr/test-u32-set.c: New file.
29860
29861         Tests for module 'unistr/u16-set'.
29862         * modules/unistr/u16-set-tests: New file.
29863         * tests/unistr/test-u16-set.c: New file.
29864
29865         Tests for module 'unistr/u8-set'.
29866         * modules/unistr/u8-set-tests: New file.
29867         * tests/unistr/test-u8-set.c: New file.
29868         * tests/unistr/test-set.h: New file.
29869
29870         Tests for module 'unistr/u32-move'.
29871         * modules/unistr/u32-move-tests: New file.
29872         * tests/unistr/test-u32-move.c: New file.
29873
29874         Tests for module 'unistr/u16-move'.
29875         * modules/unistr/u16-move-tests: New file.
29876         * tests/unistr/test-u16-move.c: New file.
29877
29878         Tests for module 'unistr/u8-move'.
29879         * modules/unistr/u8-move-tests: New file.
29880         * tests/unistr/test-u8-move.c: New file.
29881         * tests/unistr/test-move.h: New file.
29882
29883         Tests for module 'unistr/u32-cpy'.
29884         * modules/unistr/u32-cpy-tests: New file.
29885         * tests/unistr/test-u32-cpy.c: New file.
29886
29887         Tests for module 'unistr/u16-cpy'.
29888         * modules/unistr/u16-cpy-tests: New file.
29889         * tests/unistr/test-u16-cpy.c: New file.
29890
29891         Tests for module 'unistr/u8-cpy'.
29892         * modules/unistr/u8-cpy-tests: New file.
29893         * tests/unistr/test-u8-cpy.c: New file.
29894         * tests/unistr/test-cpy.h: New file.
29895
29896 2010-01-09  Bruno Haible  <bruno@clisp.org>
29897
29898         Tests for module 'unistr/u32-uctomb'.
29899         * modules/unistr/u32-uctomb-tests: New file.
29900         * tests/unistr/test-u32-uctomb.c: New file.
29901
29902         Tests for module 'unistr/u16-uctomb'.
29903         * modules/unistr/u16-uctomb-tests: New file.
29904         * tests/unistr/test-u16-uctomb.c: New file.
29905
29906         Tests for module 'unistr/u8-uctomb'.
29907         * modules/unistr/u8-uctomb-tests: New file.
29908         * tests/unistr/test-u8-uctomb.c: New file.
29909
29910         Tests for module 'unistr/u32-mbtoucr'.
29911         * modules/unistr/u32-mbtoucr-tests: New file.
29912         * tests/unistr/test-u32-mbtoucr.c: New file.
29913
29914         Tests for module 'unistr/u16-mbtoucr'.
29915         * modules/unistr/u16-mbtoucr-tests: New file.
29916         * tests/unistr/test-u16-mbtoucr.c: New file.
29917
29918         Tests for module 'unistr/u8-mbtoucr'.
29919         * modules/unistr/u8-mbtoucr-tests: New file.
29920         * tests/unistr/test-u8-mbtoucr.c: New file.
29921
29922         Tests for module 'unistr/u32-mbtouc'.
29923         * modules/unistr/u32-mbtouc-tests: New file.
29924         * tests/unistr/test-u32-mbtouc.c: New file.
29925
29926         Tests for module 'unistr/u16-mbtouc'.
29927         * modules/unistr/u16-mbtouc-tests: New file.
29928         * tests/unistr/test-u16-mbtouc.c: New file.
29929
29930         Tests for module 'unistr/u8-mbtouc'.
29931         * modules/unistr/u8-mbtouc-tests: New file.
29932         * tests/unistr/test-u8-mbtouc.c: New file.
29933
29934         Tests for module 'unistr/u32-mbtouc-unsafe'.
29935         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
29936         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
29937         * tests/unistr/test-u32-mbtouc.h: New file.
29938
29939         Tests for module 'unistr/u16-mbtouc-unsafe'.
29940         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
29941         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
29942         * tests/unistr/test-u16-mbtouc.h: New file.
29943
29944         Tests for module 'unistr/u8-mbtouc-unsafe'.
29945         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
29946         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
29947         * tests/unistr/test-u8-mbtouc.h: New file.
29948
29949         Tests for module 'unistr/u32-mblen'.
29950         * modules/unistr/u32-mblen-tests: New file.
29951         * tests/unistr/test-u32-mblen.c: New file.
29952
29953         Tests for module 'unistr/u16-mblen'.
29954         * modules/unistr/u16-mblen-tests: New file.
29955         * tests/unistr/test-u16-mblen.c: New file.
29956
29957         Tests for module 'unistr/u8-mblen'.
29958         * modules/unistr/u8-mblen-tests: New file.
29959         * tests/unistr/test-u8-mblen.c: New file.
29960
29961         Tests for module 'unistr/u32-to-u16'.
29962         * modules/unistr/u32-to-u16-tests: New file.
29963         * tests/unistr/test-u32-to-u16.c: New file.
29964
29965         Tests for module 'unistr/u32-to-u8'.
29966         * modules/unistr/u32-to-u8-tests: New file.
29967         * tests/unistr/test-u32-to-u8.c: New file.
29968
29969         Tests for module 'unistr/u16-to-u32'.
29970         * modules/unistr/u16-to-u32-tests: New file.
29971         * tests/unistr/test-u16-to-u32.c: New file.
29972
29973         Tests for module 'unistr/u16-to-u8'.
29974         * modules/unistr/u16-to-u8-tests: New file.
29975         * tests/unistr/test-u16-to-u8.c: New file.
29976
29977         Tests for module 'unistr/u8-to-u32'.
29978         * modules/unistr/u8-to-u32-tests: New file.
29979         * tests/unistr/test-u8-to-u32.c: New file.
29980
29981         Tests for module 'unistr/u8-to-u16'.
29982         * modules/unistr/u8-to-u16-tests: New file.
29983         * tests/unistr/test-u8-to-u16.c: New file.
29984
29985         Tests for module 'unistr/u32-check'.
29986         * modules/unistr/u32-check-tests: New file.
29987         * tests/unistr/test-u32-check.c: New file.
29988
29989         Tests for module 'unistr/u16-check'.
29990         * modules/unistr/u16-check-tests: New file.
29991         * tests/unistr/test-u16-check.c: New file.
29992
29993         Tests for module 'unistr/u8-check'.
29994         * modules/unistr/u8-check-tests: New file.
29995         * tests/unistr/test-u8-check.c: New file.
29996
29997         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
29998         (category_equals): New function.
29999         (main): Add more tests.
30000         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
30001
30002         * tests/unictype/test-bidi_byname.c (main): Add more tests.
30003
30004 2010-01-10  Bruno Haible  <bruno@clisp.org>
30005
30006         unistr/u*-strcoll: Try harder to distinguish different strings.
30007         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
30008         compare s1 and s2 to see if they are different.
30009
30010 2010-01-10  Bruno Haible  <bruno@clisp.org>
30011
30012         unistr/u*-stpncpy: Fix the return value.
30013         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
30014         description of the return value consistent with stpncpy in glibc.
30015         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
30016         written non-NUL unit.
30017
30018 2010-01-10  Bruno Haible  <bruno@clisp.org>
30019
30020         unistr/u*-next: Add missing dependencies.
30021         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
30022         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
30023         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
30024
30025 2010-01-10  Bruno Haible  <bruno@clisp.org>
30026
30027         unistr/u8-mbsnlen: Fix return value for incomplete character.
30028         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
30029         u8_mblen.
30030         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
30031         Remove unistr/u8-mblen.
30032         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
30033         u16_mblen.
30034         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
30035         Remove unistr/u16-mblen.
30036
30037 2010-01-10  Bruno Haible  <bruno@clisp.org>
30038
30039         wchar: Fix compilation error when <wchar.h> is used from coreutils.
30040         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
30041         Reported by Brian Gough <bjg@gnu.org> and
30042         Chris Clayton <chris2553@googlemail.com> via
30043         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
30044
30045 2010-01-09  Bruno Haible  <bruno@clisp.org>
30046
30047         unistr/u16-to-u32: Reject invalid input.
30048         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
30049         u16_mbtouc.
30050         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
30051         Remove unistr/u16-mbtouc.
30052
30053         unistr/u16-to-u8: Reject invalid input.
30054         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
30055         u16_mbtouc.
30056         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
30057         Remove unistr/u16-mbtouc.
30058
30059         unistr/u8-to-u32: Reject invalid input.
30060         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
30061         u8_mbtouc.
30062         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
30063         Remove unistr/u8-mbtouc.
30064
30065         unistr/u8-to-u16: Reject invalid input.
30066         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
30067         u8_mbtouc.
30068         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
30069         Remove unistr/u8-mbtouc.
30070
30071 2010-01-09  Bruno Haible  <bruno@clisp.org>
30072
30073         Tests for module 'getlogin'.
30074         * modules/getlogin-tests: New file.
30075         * tests/test-getlogin.c: New file.
30076
30077         New module 'getlogin'.
30078         * lib/unistd.in.h (getlogin): New declaration.
30079         * lib/getlogin.c: New file.
30080         * m4/getlogin.m4: New file.
30081         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
30082         HAVE_GETLOGIN.
30083         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
30084         HAVE_GETLOGIN.
30085         * modules/getlogin: New file.
30086         * doc/posix-functions/getlogin.texi: Mention the new module.
30087         Reported by John W. Eaton <jwe@gnu.org>.
30088
30089 2010-01-09  Bruno Haible  <bruno@clisp.org>
30090
30091         getlogin_r: Support for native Windows.
30092         * lib/getlogin_r.c: Include <windows.h>
30093         (getlogin_r): Implement for native Windows.
30094         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
30095         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
30096         via John W. Eaton <jwe@gnu.org>.
30097
30098 2010-01-09  Bruno Haible  <bruno@clisp.org>
30099
30100         getlogin_r: Small fixes.
30101         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
30102         succeeds.
30103         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
30104         before testing whether getlogin_r is declared. No need to set
30105         HAVE_DECL_GETLOGIN_R to 1.
30106         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
30107
30108 2010-01-09  Bruno Haible  <bruno@clisp.org>
30109
30110         * lib/unistd.in.h (getlogin_r): Add comment.
30111
30112 2010-01-09  Bruno Haible  <bruno@clisp.org>
30113
30114         Tests for module 'getlogin_r'.
30115         * modules/getlogin_r-tests: New file.
30116         * tests/test-getlogin_r.c: New file.
30117
30118 2010-01-09  Jim Meyering  <meyering@redhat.com>
30119
30120         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
30121         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
30122         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
30123
30124 2010-01-08  Simon Josefsson  <simon@josefsson.org>
30125
30126         * lib/dup2.c (rpl_dup2): Improve comment.
30127
30128 2010-01-08  Eric Blake  <ebb9@byu.net>
30129
30130         maint.mk: allow packages to add makefile @@ exceptions
30131         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
30132         (sc_makefile_check): Rename...
30133         (sc_makefile_at_at_check): ...to this, and use hook.
30134
30135         dup2: work around mingw bug
30136         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
30137         Reported by Simon Josefsson.
30138
30139 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
30140
30141         glob: Fix C++ compilation.
30142         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
30143         C++.
30144
30145 2010-01-07  Bruno Haible  <bruno@clisp.org>
30146
30147         Fix indentation of wctype.in.h, broken since 2007-01-06.
30148         * lib/wctype.in.h: Fix indentation of preprocessor directives.
30149
30150 2010-01-07  Bruno Haible  <bruno@clisp.org>
30151
30152         mbslen: Avoid collision with system function.
30153         * lib/string.in.h [MirBSD]: Include <wchar.h>.
30154         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
30155         * m4/mbslen.m4: New file.
30156         * modules/mbslen (Files): Add it.
30157         (configure.ac): Invoke gl_MBSLEN.
30158         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
30159         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
30160         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
30161         via Ian Beckwith <ianb@erislabs.net>.
30162
30163 2010-01-07  Bruno Haible  <bruno@clisp.org>
30164
30165         dirent: Document the last fix.
30166         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
30167
30168 2010-01-07  Bruno Haible  <bruno@clisp.org>
30169
30170         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
30171         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
30172         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
30173         va_list are defined.
30174         * doc/posix-headers/stdio.texi: Document the bug of missing types.
30175         Reported by Eric Blake.
30176
30177 2010-01-07  Bruno Haible  <bruno@clisp.org>
30178
30179         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
30180         * modules/xlist (Depends-on): Add 'list',
30181         * modules/xoset (Depends-on): Add 'oset'.
30182         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30183
30184 2010-01-07  Bruno Haible  <bruno@clisp.org>
30185
30186         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
30187         * doc/posix-functions/strncasecmp.texi: Likewise.
30188
30189 2010-01-07  Bruno Haible  <bruno@clisp.org>
30190
30191         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
30192
30193 2010-01-07  John W. Eaton  <jwe@octave.org>
30194
30195         wctype: allow C++ use
30196         * lib/wctype.in.h: Add extern "C" block for C++.
30197
30198 2010-01-06  Eric Blake  <ebb9@byu.net>
30199
30200         maint.mk: detect incorrect GFDL usage
30201         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
30202
30203 2010-01-06  Jim Meyering  <meyering@redhat.com>
30204         and Eric Blake  <ebb9@byu.net>
30205
30206         maint.mk: ignore multi-line copyright in NEWS
30207         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
30208
30209 2010-01-06  Eric Blake  <ebb9@byu.net>
30210
30211         select: add missing dependency
30212         * modules/select-tests (Depends-on): Move sockets dependency...
30213         * modules/select (Depends-on): ...here.
30214         Reported by Ian Beckwith.
30215
30216         doc: regenerate INSTALL
30217         * doc/INSTALL: Reflect recent autoconf update.
30218         * doc/INSTALL.ISO: Likewise.
30219         * doc/INSTALL.UTF-8: Likewise.
30220
30221         pread: fix compilation on glibc
30222         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
30223         Reported by Ralf Wildenhues.
30224
30225         dirent: fix test failure
30226         * lib/dirent.in.h (includes): Guarantee ino_t.
30227         Reported by Ralf Wildenhues.
30228
30229 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
30230
30231         linkat, renameat: avoid bad free
30232         * lib/at-func2.c (at_func2): Fix typo.
30233         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
30234
30235 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30236
30237         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
30238         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
30239         to avoid failure of symlink test later.
30240
30241 2010-01-06  Eric Blake  <ebb9@byu.net>
30242
30243         stdio, unistd: guarantee ssize_t
30244         * lib/unistd.in.h (includes): Ensure that types required by POSIX
30245         2008 are exposed when needed.
30246         * lib/stdio.in.h (includes): Likewise.
30247         Reported by Ralf Wildenhues.
30248
30249 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
30250
30251         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
30252         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
30253         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
30254
30255 2010-01-06  Jim Meyering  <meyering@redhat.com>
30256
30257         readtokens: this module *does* require xalloc.h
30258         It uses only functions that were omitted by the old syntax-check rule.
30259         * lib/readtokens.c: Include "xalloc.h" once again.
30260         * modules/readtokens (Depends-on): Add xalloc.
30261         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
30262
30263 2010-01-05  Eric Blake  <ebb9@byu.net>
30264
30265         maint: support 'make announcement' from a VPATH build
30266         * top/maint.mk (announcement): Look for correct NEWS file.
30267
30268 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
30269
30270         utimens (fdutimens): ignore a negative FD, per contract
30271         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
30272         when we have a valid file descriptor.  Otherwise, using a brand
30273         new glibc (with just-patched futimens that now fails with EBADF)
30274         would cause this function to fail with ENOSYS.
30275         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
30276         See also http://bugzilla.redhat.com/552320.
30277
30278 2010-01-05  Eric Blake  <ebb9@byu.net>
30279
30280         strcase: document what it provides
30281         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
30282         gnulib module.
30283         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
30284         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
30285
30286 2010-01-05  Jim Meyering  <meyering@redhat.com>
30287
30288         maint: remove useless inclusions of "xalloc.h"
30289         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
30290         * lib/readtokens.c: Likewise.
30291         * lib/same.c: Likewise.
30292         * modules/getloadavg (Depends-on): Remove xalloc.
30293         * modules/readtokens: Likewise.
30294         * modules/same: Likewise.
30295
30296         maint.mk: include 4 more function names in alloca.h-checking regexp
30297         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
30298         regexp.  Before, we would give a false-positive (saying alloca.h
30299         is included unnecessarily) when the only uses involved omitted symbols.
30300
30301         xalloc.h: use consistent formatting
30302         * lib/xalloc.h: Move declarations to start in the first column.
30303
30304 2010-01-05  Eric Blake  <ebb9@byu.net>
30305
30306         mkdir: avoid xalloc
30307         * lib/mkdir.c (includes): Drop unused header.
30308         Reported by John W. Eaton.
30309
30310 2010-01-04  Jim Meyering  <meyering@redhat.com>
30311
30312         nl_langinfo: avoid configure-time syntax error
30313         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
30314         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
30315         the empty string.  Don't let that provoke a shell syntax error.
30316
30317         regcomp, regexec, fnmatch: avoid array bounds read error
30318         * lib/regcomp.c (build_equiv_class): From glibc:
30319         Use only the low 24 bits of a findidx return value as an index
30320         into the weights array.  Patch by Ulrich Drepper:
30321         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
30322         * lib/regexec.c (check_node_accept_bytes): Likewise.
30323         * lib/fnmatch_loop.c (FCT): Likewise.
30324
30325         regcomp: skip collseq lookup when there are no rules
30326         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
30327         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
30328
30329         regcomp: recognize ill-formed { } expressions
30330         * lib/regcomp.c (parse_dup_op): From glibc:
30331         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
30332
30333         regcomp: fix typo in comment
30334         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
30335         s/satisfy/satisfies/.
30336
30337         regcomp: sync from glibc: remove dead store
30338         * lib/regcomp.c (duplicate_node_closure): Remove useless
30339         search_duplicated_node call and dead store.
30340
30341         regcomp: sync from glibc; always use nl_langinfo
30342         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
30343         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
30344         * modules/regex (Depends-on): Add nl_langinfo.
30345
30346 2010-01-04  Eric Blake  <ebb9@byu.net>
30347
30348         fdopendir: fix configure test
30349         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
30350
30351 2010-01-01  Bruno Haible  <bruno@clisp.org>
30352
30353         wchar: Remove unused configure check.
30354         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
30355
30356 2010-01-01  Eric Blake  <ebb9@byu.net>
30357
30358         headers: make check of system header explicit
30359         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
30360         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
30361         ourselves.
30362         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
30363         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30364         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
30365         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
30366         internals.
30367         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
30368         missing.
30369         Suggested by Bruno Haible.
30370
30371 2010-01-01  Jim Meyering  <meyering@redhat.com>
30372
30373         ChangeLog: tweak to eliminate unnecessary copyright line
30374         * ChangeLog: Remove a copyright line that was mistakenly updated
30375         by today's update-copyright run.  Reported by Eric Blake.
30376
30377         test-update-copyright: don't let envvar setting cause test failure
30378         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
30379
30380 2010-01-01  Bruno Haible  <bruno@clisp.org>
30381
30382         localename: Avoid gcc warning.
30383         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
30384         function if it is not used.
30385
30386 2010-01-01  Jim Meyering  <meyering@redhat.com>
30387
30388         update nearly all FSF copyright year lists to include 2010
30389         Use the same procedure as for 2009, outlined in
30390         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
30391
30392         version-etc: set COPYRIGHT_YEAR to 2010
30393         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
30394
30395 2009-12-31  Eric Blake  <ebb9@byu.net>
30396
30397         doc: correct availability of cygwin 1.5.x getopt
30398         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
30399         variables.
30400         * doc/posix-functions/opterr.texi (opterr): Likewise.
30401         * doc/posix-functions/optind.texi (optind): Likewise.
30402         * doc/posix-functions/optopt.texi (optopt): Likewise.
30403         * doc/posix-functions/tzname.texi (tzname): Likewise.
30404
30405         openat: update maintainer
30406         * modules/openat (Maintainer): Add myself.
30407
30408         utimens: avoid shadowing warning
30409         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
30410         buffers into one, to avoid shadowing, as well as avoiding a
30411         redundant stat.
30412         Reported by Jim Meyering.
30413
30414         test-dup2: avoid compiler warning
30415         * tests/test-dup2.c (is_inheritable): Only define if used.
30416
30417 2010-01-01  Bruno Haible  <bruno@clisp.org>
30418
30419         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
30420         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
30421         defined, use wctomb instead of wcrtomb.
30422
30423 2010-01-01  Bruno Haible  <bruno@clisp.org>
30424
30425         iconv: Reject native Solaris iconv.
30426         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
30427         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
30428
30429 2009-12-31  Bruno Haible  <bruno@clisp.org>
30430
30431         * tests/test-signal.c (main): Remove test of 'SIG'.
30432
30433 2009-12-31  Bruno Haible  <bruno@clisp.org>
30434
30435         spawn: Fix incomplete fix.
30436         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
30437         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
30438         warnings for GNULIB_POSIXCHECK again.
30439         Reported by Eric Blake.
30440
30441 2009-12-31  Bruno Haible  <bruno@clisp.org>
30442
30443         Avoid namespace pollution on glibc systems.
30444         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
30445         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
30446         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
30447         glibc systems.
30448
30449 2009-12-31  Bruno Haible  <bruno@clisp.org>
30450
30451         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
30452         (gl_REPLACE_WCHAR_H): Turn into a no-op.
30453         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
30454         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
30455         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
30456         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
30457         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
30458
30459 2009-12-31  Bruno Haible  <bruno@clisp.org>
30460
30461         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
30462         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
30463         afterwards.
30464
30465 2009-12-31  Bruno Haible  <bruno@clisp.org>
30466
30467         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
30468         SYS_UTSNAME_H.
30469
30470 2009-12-31  Bruno Haible  <bruno@clisp.org>
30471
30472         spawn: Fix misapplied patch.
30473         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
30474         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
30475         warnings for GNULIB_POSIXCHECK.
30476
30477 2009-12-31  Bruno Haible  <bruno@clisp.org>
30478
30479         times: Update after sys_times changed.
30480         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
30481         * modules/times (Files): Add it.
30482         (configure.ac): Invoke gl_FUNC_TIMES.
30483
30484 2009-12-31  Bruno Haible  <bruno@clisp.org>
30485
30486         Use AC_C_INLINE where necessary.
30487         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
30488         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
30489         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
30490         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
30491         * m4/mbfile.m4 (gl_MBFILE): Likewise.
30492         * m4/mbiter.m4 (gl_MBITER): Likewise.
30493         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30494         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
30495         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
30496         * modules/u64 (configure.ac): Likewise.
30497
30498 2009-12-31  Bruno Haible  <bruno@clisp.org>
30499
30500         Use AC_C_INLINE instead of module 'inline' where possible.
30501         * modules/inline (Description): Clarify purpose.
30502         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
30503         * modules/count-one-bits (Depends-on): Remove inline.
30504         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
30505         * modules/openat (Depends-on): Remove inline.
30506         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
30507         instead of depending on module 'inline'.
30508         * modules/filevercmp (Depends-on, configure.ac): Likewise.
30509         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
30510         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
30511         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
30512         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
30513         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
30514         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
30515         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
30516         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
30517         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
30518         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
30519         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
30520         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
30521         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
30522         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
30523         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
30524         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
30525         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
30526         Likewise.
30527         * modules/unictype/property-ascii-hex-digit (Depends-on,
30528         configure.ac): Likewise.
30529         * modules/unictype/property-bidi-arabic-digit (Depends-on,
30530         configure.ac): Likewise.
30531         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
30532         configure.ac): Likewise.
30533         * modules/unictype/property-bidi-block-separator (Depends-on,
30534         configure.ac): Likewise.
30535         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
30536         configure.ac): Likewise.
30537         * modules/unictype/property-bidi-common-separator (Depends-on,
30538         configure.ac): Likewise.
30539         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
30540         Likewise.
30541         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
30542         configure.ac): Likewise.
30543         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
30544         configure.ac): Likewise.
30545         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
30546         configure.ac): Likewise.
30547         * modules/unictype/property-bidi-european-digit (Depends-on,
30548         configure.ac): Likewise.
30549         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
30550         configure.ac): Likewise.
30551         * modules/unictype/property-bidi-left-to-right (Depends-on,
30552         configure.ac): Likewise.
30553         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
30554         configure.ac): Likewise.
30555         * modules/unictype/property-bidi-other-neutral (Depends-on,
30556         configure.ac): Likewise.
30557         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
30558         Likewise.
30559         * modules/unictype/property-bidi-segment-separator (Depends-on,
30560         configure.ac): Likewise.
30561         * modules/unictype/property-bidi-whitespace (Depends-on,
30562         configure.ac): Likewise.
30563         * modules/unictype/property-combining (Depends-on, configure.ac):
30564         Likewise.
30565         * modules/unictype/property-composite (Depends-on, configure.ac):
30566         Likewise.
30567         * modules/unictype/property-currency-symbol (Depends-on,
30568         configure.ac): Likewise.
30569         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
30570         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
30571         Likewise.
30572         * modules/unictype/property-default-ignorable-code-point (Depends-on,
30573         configure.ac): Likewise.
30574         * modules/unictype/property-deprecated (Depends-on, configure.ac):
30575         Likewise.
30576         * modules/unictype/property-diacritic (Depends-on, configure.ac):
30577         Likewise.
30578         * modules/unictype/property-extender (Depends-on, configure.ac):
30579         Likewise.
30580         * modules/unictype/property-format-control (Depends-on, configure.ac):
30581         Likewise.
30582         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
30583         Likewise.
30584         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
30585         Likewise.
30586         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
30587         Likewise.
30588         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
30589         Likewise.
30590         * modules/unictype/property-hyphen (Depends-on, configure.ac):
30591         Likewise.
30592         * modules/unictype/property-id-continue (Depends-on, configure.ac):
30593         Likewise.
30594         * modules/unictype/property-id-start (Depends-on, configure.ac):
30595         Likewise.
30596         * modules/unictype/property-ideographic (Depends-on, configure.ac):
30597         Likewise.
30598         * modules/unictype/property-ids-binary-operator (Depends-on,
30599         configure.ac): Likewise.
30600         * modules/unictype/property-ids-trinary-operator (Depends-on,
30601         configure.ac): Likewise.
30602         * modules/unictype/property-ignorable-control (Depends-on,
30603         configure.ac): Likewise.
30604         * modules/unictype/property-iso-control (Depends-on, configure.ac):
30605         Likewise.
30606         * modules/unictype/property-join-control (Depends-on, configure.ac):
30607         Likewise.
30608         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
30609         Likewise.
30610         * modules/unictype/property-line-separator (Depends-on, configure.ac):
30611         Likewise.
30612         * modules/unictype/property-logical-order-exception (Depends-on,
30613         configure.ac): Likewise.
30614         * modules/unictype/property-lowercase (Depends-on, configure.ac):
30615         Likewise.
30616         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
30617         * modules/unictype/property-non-break (Depends-on, configure.ac):
30618         Likewise.
30619         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
30620         Likewise.
30621         * modules/unictype/property-numeric (Depends-on, configure.ac):
30622         Likewise.
30623         * modules/unictype/property-other-alphabetic (Depends-on,
30624         configure.ac): Likewise.
30625         * modules/unictype/property-other-default-ignorable-code-point
30626         (Depends-on, configure.ac): Likewise.
30627         * modules/unictype/property-other-grapheme-extend (Depends-on,
30628         configure.ac): Likewise.
30629         * modules/unictype/property-other-id-continue (Depends-on,
30630         configure.ac): Likewise.
30631         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
30632         Likewise.
30633         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
30634         Likewise.
30635         * modules/unictype/property-other-math (Depends-on, configure.ac):
30636         Likewise.
30637         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
30638         Likewise.
30639         * modules/unictype/property-paired-punctuation (Depends-on,
30640         configure.ac): Likewise.
30641         * modules/unictype/property-paragraph-separator (Depends-on,
30642         configure.ac): Likewise.
30643         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
30644         Likewise.
30645         * modules/unictype/property-pattern-white-space (Depends-on,
30646         configure.ac): Likewise.
30647         * modules/unictype/property-private-use (Depends-on, configure.ac):
30648         Likewise.
30649         * modules/unictype/property-punctuation (Depends-on, configure.ac):
30650         Likewise.
30651         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
30652         Likewise.
30653         * modules/unictype/property-radical (Depends-on, configure.ac):
30654         Likewise.
30655         * modules/unictype/property-sentence-terminal (Depends-on,
30656         configure.ac): Likewise.
30657         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
30658         Likewise.
30659         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
30660         * modules/unictype/property-terminal-punctuation (Depends-on,
30661         configure.ac): Likewise.
30662         * modules/unictype/property-titlecase (Depends-on, configure.ac):
30663         Likewise.
30664         * modules/unictype/property-unassigned-code-value (Depends-on,
30665         configure.ac): Likewise.
30666         * modules/unictype/property-unified-ideograph (Depends-on,
30667         configure.ac): Likewise.
30668         * modules/unictype/property-uppercase (Depends-on, configure.ac):
30669         Likewise.
30670         * modules/unictype/property-variation-selector (Depends-on,
30671         configure.ac): Likewise.
30672         * modules/unictype/property-white-space (Depends-on, configure.ac):
30673         Likewise.
30674         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
30675         Likewise.
30676         * modules/unictype/property-xid-start (Depends-on, configure.ac):
30677         Likewise.
30678         * modules/unictype/property-zero-width (Depends-on, configure.ac):
30679         Likewise.
30680         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
30681         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
30682         Likewise.
30683
30684 2009-12-31  Bruno Haible  <bruno@clisp.org>
30685
30686         Remove unnecessary AC_C_INLINE invocation.
30687         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
30688         since 2009-08-21.
30689
30690 2009-12-31  Jim Meyering  <meyering@redhat.com>
30691
30692         maint.mk: don't require explicit gpg_key_ID in cfg.mk
30693         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
30694         With this change, we can all remove the gpg_key_ID = ... definition
30695         from our respective cfg.mk files.
30696
30697         maint.mk: create announcement template in ~/, not in /tmp
30698         * top/maint.mk (emit_upload_commands): Adjust.
30699         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
30700         Remove temporary file, .ci-msg.
30701
30702 2009-12-31  Eric Blake  <ebb9@byu.net>
30703
30704         link-warning: always build headers with link warnings
30705         * modules/arpa_inet (Makefile.am): Always build replacement
30706         header.
30707         * modules/ctype (Makefile.am): Likewise.
30708         * modules/dirent (Makefile.am): Likewise.
30709         * modules/inttypes (Makefile.am): Likewise.
30710         * modules/langinfo (Makefile.am): Likewise.
30711         * modules/locale (Makefile.am): Likewise.
30712         * modules/spawn (Makefile.am): Likewise.
30713         * modules/sys_file (Makefile.am): Likewise.
30714         * modules/sys_ioctl (Makefile.am): Likewise.
30715         * modules/sys_select (Makefile.am): Likewise.
30716         * modules/sys_socket (Makefile.am): Likewise.
30717         * modules/sys_times (Makefile.am): Likewise.
30718         * modules/sys_utsname (Makefile.am): Likewise.
30719         * modules/sys_wait (Makefile.am): Likewise.
30720         * modules/wchar (Makefile.am): Likewise.
30721         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
30722         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
30723         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
30724         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
30725         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
30726         Likewise.
30727         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30728         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
30729         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
30730         Likewise.
30731         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
30732         Likewise.
30733         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
30734         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
30735         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
30736         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30737         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30738         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
30739         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
30740         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
30741         (gl_WCHAR_H_DEFAULTS): Likewise.
30742
30743 2009-12-31  Eric Blake  <ebb9@byu.net>
30744
30745         signal, spawn: use link warnings
30746         * lib/signal.in.h (sigset_t): Make unconditional.
30747         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
30748         (sigpending, sigprocmask, sigaction): Add link warnings.
30749         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
30750         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
30751         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
30752         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
30753         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
30754         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
30755         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
30756         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
30757         (posix_spawn_file_actions_destroy)
30758         (posix_spawn_file_actions_addopen)
30759         (posix_spawn_file_actions_addclose)
30760         (posix_spawn_file_actions_adddup2): Likewise.
30761         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
30762         * tests/test-signal.c (main): Enhance test.
30763
30764         spawn: improve wrapper support
30765         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
30766         (gl_SPAWN_H_DEFAULTS): New defaults.
30767         * modules/spawn (Makefile.am): Substitute them.
30768         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
30769         Only declare if missing or broken.
30770
30771         sys_times, sys_utsname: use include_next
30772         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
30773         header.
30774         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
30775         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
30776         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
30777         * modules/sys_times (Depends-on): Add include_next.
30778         (Makefile.am): Substitute additional values.
30779         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
30780         * lib/sys_times.in.h (includes): Include native header, if
30781         available.
30782         * lib/sys_utsname.in.h (includes): Likewise.
30783         * tests/test-sys_times.c (main): Enhance test.
30784
30785         fdutimensat: revert prior patch
30786         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
30787         utimens.h.
30788         Reported by Bruno Haible.
30789
30790 2009-12-30  Eric Blake  <ebb9@byu.net>
30791
30792         sys_wait: drop link-warning dependency
30793         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
30794         link-warning efforts.
30795         * lib/sys_wait.in.h: Likewise.
30796
30797         fdutimensat: remove bogus dependency
30798         * modules/fdutimensat (Depends-on): Drop inline.
30799
30800         unistd: fix typo
30801         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
30802
30803 2009-12-30  Bruno Haible  <bruno@clisp.org>
30804
30805         Fix compilation error with Solaris cc.
30806         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
30807         * lib/unicase/u16-is-invariant.c: Likewise.
30808         * lib/unicase/u32-is-invariant.c: Likewise.
30809         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
30810
30811 2009-12-30  Bruno Haible  <bruno@clisp.org>
30812
30813         Fix test crash.
30814         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
30815         locales.
30816         Reported by Simon Josefsson <simon@josefsson.org>.
30817
30818 2009-12-30  Bruno Haible  <bruno@clisp.org>
30819
30820         Fix compilation error on most platforms.
30821         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
30822         Reported by Simon Josefsson <simon@josefsson.org>
30823         and Nelson H. F. Beebe <beebe@math.utah.edu>.
30824
30825 2009-12-30  Eric Blake  <ebb9@byu.net>
30826
30827         futimens, utimensat: work around ntfs-3g bug
30828         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
30829         a ctime bug is present, and expand workaround to cover ntfs-3g.
30830         * lib/utimens.c (fdutimens, lutimens): Likewise.
30831         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
30832         (validate_timespec): Adjust return value.
30833         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
30834         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30835         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
30836
30837 2009-12-29  Eric Blake  <ebb9@byu.net>
30838
30839         link-warning: make usage consistent
30840         * modules/ctype (Depends-on): Add link-warning.
30841         (Makefile.am): Update rules accordingly.
30842         * modules/langinfo (Depends-on, Makefile.am): Likewise.
30843         * modules/locale (Depends-on, Makefile.am): Likewise.
30844         * modules/sys_file (Makefile.am): Likewise.
30845         * modules/getopt-posix (Makefile.am): Delete unused link warning
30846         efforts.
30847         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
30848         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
30849         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
30850         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
30851
30852         stdio: remove unused variables
30853         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
30854         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
30855         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30856
30857         tests: test more substitute headers
30858         * modules/ctype-tests: New file.
30859         * modules/dirent-tests: Likewise.
30860         * modules/spawn-tests: Likewise.
30861         * modules/sys_file-tests: Likewise.
30862         * modules/sys_ioctl-tests: Likewise.
30863         * modules/sys_wait-tests: Likewise.
30864         * tests/test-ctype.c: Likewise.
30865         * tests/test-dirent.c: Likewise.
30866         * tests/test-spawn.c: Likewise.
30867         * tests/test-sys_file.c: Likewise.
30868         * tests/test-sys_ioctl.c: Likewise.
30869         * tests/test-sys_wait.c: Likewise.
30870         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
30871         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
30872         whether or not flock is in use.
30873
30874         tests: remove License section from module
30875         * modules/arpa_inet-tests: Remove unneeded section.
30876         * modules/byteswap-tests: Likewise.
30877         * modules/ceilf-tests: Likewise.
30878         * modules/ceill-tests: Likewise.
30879         * modules/crypto/des-tests: Likewise.
30880         * modules/crypto/gc-arcfour-tests: Likewise.
30881         * modules/crypto/gc-arctwo-tests: Likewise.
30882         * modules/crypto/gc-des-tests: Likewise.
30883         * modules/crypto/gc-hmac-md5-tests: Likewise.
30884         * modules/crypto/gc-hmac-sha1-tests: Likewise.
30885         * modules/crypto/gc-md2-tests: Likewise.
30886         * modules/crypto/gc-md4-tests: Likewise.
30887         * modules/crypto/gc-md5-tests: Likewise.
30888         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
30889         * modules/crypto/gc-rijndael-tests: Likewise.
30890         * modules/crypto/gc-sha1-tests: Likewise.
30891         * modules/crypto/gc-tests: Likewise.
30892         * modules/crypto/md2-tests: Likewise.
30893         * modules/crypto/md4-tests: Likewise.
30894         * modules/fcntl-h-tests: Likewise.
30895         * modules/floorf-tests: Likewise.
30896         * modules/floorl-tests: Likewise.
30897         * modules/frexp-nolibm-tests: Likewise.
30898         * modules/frexp-tests: Likewise.
30899         * modules/frexpl-nolibm-tests: Likewise.
30900         * modules/frexpl-tests: Likewise.
30901         * modules/getaddrinfo-tests: Likewise.
30902         * modules/inttypes-tests: Likewise.
30903         * modules/isfinite-tests: Likewise.
30904         * modules/isinf-tests: Likewise.
30905         * modules/ldexpl-tests: Likewise.
30906         * modules/locale-tests: Likewise.
30907         * modules/math-tests: Likewise.
30908         * modules/netdb-tests: Likewise.
30909         * modules/netinet_in-tests: Likewise.
30910         * modules/printf-frexp-tests: Likewise.
30911         * modules/printf-frexpl-tests: Likewise.
30912         * modules/priv-set-tests: Likewise.
30913         * modules/random_r-tests: Likewise.
30914         * modules/round-tests: Likewise.
30915         * modules/roundf-tests: Likewise.
30916         * modules/roundl-tests: Likewise.
30917         * modules/search-tests: Likewise.
30918         * modules/select-tests: Likewise.
30919         * modules/signal-tests: Likewise.
30920         * modules/stdbool-tests: Likewise.
30921         * modules/stddef-tests: Likewise.
30922         * modules/stdint-tests: Likewise.
30923         * modules/stdio-tests: Likewise.
30924         * modules/stdlib-tests: Likewise.
30925         * modules/string-tests: Likewise.
30926         * modules/strings-tests: Likewise.
30927         * modules/sys_select-tests: Likewise.
30928         * modules/sys_socket-tests: Likewise.
30929         * modules/sys_stat-tests: Likewise.
30930         * modules/sys_time-tests: Likewise.
30931         * modules/sys_utsname-tests: Likewise.
30932         * modules/sysexits-tests: Likewise.
30933         * modules/time-tests: Likewise.
30934         * modules/trunc-tests: Likewise.
30935         * modules/truncf-tests: Likewise.
30936         * modules/truncl-tests: Likewise.
30937         * modules/tsearch-tests: Likewise.
30938         * modules/unistd-tests: Likewise.
30939         * modules/wchar-tests: Likewise.
30940         * modules/wctype-tests: Likewise.
30941
30942         tests: fix license on several tests
30943         * tests/test-des.c: Update to GPLv3+.
30944         * tests/test-flock.c: Likewise.
30945         * tests/test-fsync.c: Likewise.
30946         * tests/test-futimens.h: Likewise.
30947         * tests/test-gc-arcfour.c: Likewise.
30948         * tests/test-gc-arctwo.c: Likewise.
30949         * tests/test-gc-des.c: Likewise.
30950         * tests/test-gc-hmac-md5.c: Likewise.
30951         * tests/test-gc-hmac-sha1.c: Likewise.
30952         * tests/test-gc-md2.c: Likewise.
30953         * tests/test-gc-md4.c: Likewise.
30954         * tests/test-gc-md5.c: Likewise.
30955         * tests/test-gc-pbkdf2-sha1.c: Likewise.
30956         * tests/test-gc-rijndael.c: Likewise.
30957         * tests/test-gc-sha1.c: Likewise.
30958         * tests/test-gc.c: Likewise.
30959         * tests/test-getcwd.c: Likewise.
30960         * tests/test-link.c: Likewise.
30961         * tests/test-link.h: Likewise.
30962         * tests/test-lutimens.h: Likewise.
30963         * tests/test-md2.c: Likewise.
30964         * tests/test-md4.c: Likewise.
30965         * tests/test-mkdir.h: Likewise.
30966         * tests/test-rename.c: Likewise.
30967         * tests/test-rename.h: Likewise.
30968         * tests/test-safe-alloc.c: Likewise.
30969         * tests/test-utimens-common.h: Likewise.
30970         * tests/test-utimens.h: Likewise.
30971
30972         maint: sync license texts
30973         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
30974         * doc/gpl-3.0.texi: Revert copyright year update.
30975         * doc/lgpl-3.0.texi: Likewise.
30976
30977 2009-12-29  Jim Meyering  <meyering@redhat.com>
30978
30979         update nearly all FSF copyright year lists to include 2009
30980         The files named by the following are exempted:
30981             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
30982               test -f "$dst" && { echo "$dst"; continue; }
30983               test -d "$dst" || continue
30984               echo "$dst"/$(basename "$src")
30985             done > exempt
30986             git ls-files tests/unictype >> exempt
30987         In the remaining files, convert to all-interval notation if
30988         - there is already at least one year interval like 2000-2003
30989         - the file is maintained by me
30990         - the file is in lib/uni*/, where that style already prevails
30991         Otherwise, use update-copyright's default.
30992
30993 2009-12-29  Simon Josefsson  <simon@josefsson.org>
30994         and Eric Blake  <ebb9@byu.net>
30995
30996         tests: don't require debug system() to pass
30997         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
30998         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30999         * tests/test-unlink.h (test_unlink_func): Likewise.
31000         * tests/test-fstatat.c (main): ...into callers.
31001         * tests/test-lstat.c (main): Likewise.
31002         * tests/test-rmdir.c (main): Likewise.
31003         * tests/test-unlink.c (main): Likewise.
31004         * tests/test-unlinkat.c (main): Likewise.
31005         * tests/test-areadlink-with-size.c (main): Don't require a
31006         debug-only system call to pass, aiding cross-testing to mingw.
31007         * tests/test-areadlink.c (main): Likewise.
31008         * tests/test-areadlinkat-with-size.c (main): Likewise.
31009         * tests/test-areadlinkat.c (main): Likewise.
31010         * tests/test-canonicalize-lgpl.c (main): Likewise.
31011         * tests/test-canonicalize.c (main): Likewise.
31012         * tests/test-chown.c (main): Likewise.
31013         * tests/test-fchownat.c (main): Likewise.
31014         * tests/test-lchown.c (main): Likewise.
31015         * tests/test-fdutimensat.c (main): Likewise.
31016         * tests/test-futimens.c (main): Likewise.
31017         * tests/test-link.c (main): Likewise.
31018         * tests/test-linkat.c (main): Likewise.
31019         * tests/test-mkdir.c (main): Likewise.
31020         * tests/test-mkdirat.c (main): Likewise.
31021         * tests/test-mkfifo.c (main): Likewise.
31022         * tests/test-mkfifoat.c (main): Likewise.
31023         * tests/test-mknod.c (main): Likewise.
31024         * tests/test-readlink.c (main): Likewise.
31025         * tests/test-remove.c (main): Likewise.
31026         * tests/test-rename.c (main): Likewise.
31027         * tests/test-renameat.c (main): Likewise.
31028         * tests/test-symlink.c (main): Likewise.
31029         * tests/test-symlinkat.c (main): Likewise.
31030         * tests/test-utimens.c (main): Likewise.
31031         * tests/test-utimensat.c (main): Likewise.
31032
31033 2009-12-29  Simon Josefsson  <simon@josefsson.org>
31034
31035         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
31036         on $(UNUSED_PARAMETER_H) to avoid build failure.
31037
31038 2009-12-28  Jim Meyering  <meyering@redhat.com>
31039
31040         update-copyright: you may specify a max. line length other than 72
31041         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
31042
31043         maint: use consistent FSF copyright line syntax
31044         * lib/posixtm.c: Add missing comma in FSF copyright line.
31045         * lib/posixtm.h: Likewise.
31046         * lib/getugroups.c: Add missing ", Inc.".
31047
31048         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
31049         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
31050         FSF copyright line.  Remove trailing blanks.
31051
31052 2009-12-28  Eric Blake  <ebb9@byu.net>
31053
31054         test-dup2: reduce dependencies
31055         * modules/cloexec (Configure.ac): Set witness.
31056         * modules/dup2-tests (Depends-on): Drop cloexec.
31057         * tests/test-dup2.c (main): Skip portion of test if cloexec module
31058         not present.
31059         Suggested by Bruno Haible.
31060
31061 2009-12-26  Bruno Haible  <bruno@clisp.org>
31062
31063         Remove an unneeded dependency.
31064         * modules/fseterr (Depends-on): Remove dup2.
31065
31066 2009-12-26  Eric Blake  <ebb9@byu.net>
31067
31068         tests: use macros.h in more places
31069         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
31070         (ASSERT_STREAM): Provide default of stderr.
31071         * tests/test-dirent-safer.c: Include macros.h, using alternate
31072         stream for assertions.
31073         * tests/test-dup-safer.c: Likewise.
31074         * tests/test-freopen-safer.c: Likewise.
31075         * tests/test-getopt.c: Likewise.
31076         * tests/test-openat-safer.c: Likewise.
31077         * tests/test-pipe.c: Likewise.
31078         * tests/test-popen-safer.c: Likewise.
31079         * modules/dirent-safer-tests (Files): Include macros.h.
31080         * modules/unistd-safer-tests (Files): Likewise.
31081         * modules/freopen-safer-tests (Files): Likewise.
31082         * modules/getopt-posix-tests (Files): Likewise.
31083         * modules/openat-safer-tests (Files): Likewise.
31084         * modules/pipe-tests (Files): Likewise.
31085
31086 2009-12-26  Bruno Haible  <bruno@clisp.org>
31087
31088         javacomp: Portability fix.
31089         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
31090         that it also works on Solaris.
31091
31092 2009-12-26  Bruno Haible  <bruno@clisp.org>
31093
31094         localename: Fix storage allocation of gl_locale_name_thread's result.
31095         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
31096         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
31097         all platforms that have 'uselocale'.
31098         (gl_locale_name_thread_unsafe): New function, extracted from
31099         gl_locale_name_thread.
31100         (gl_locale_name_thread): Call struniq on all platforms that have
31101         'uselocale'.
31102         * tests/test-localename.c (test_locale_name_thread): Check that the
31103         resulting strings are permanently allocated.
31104         * modules/localename-tests (Depends-on): Add strdup.
31105
31106 2009-12-26  Bruno Haible  <bruno@clisp.org>
31107
31108         * tests/test-localename.c (categories): Fill in the strings.
31109
31110 2009-12-26  Jim Meyering  <meyering@redhat.com>
31111
31112         isdir: complete the removal of m4/isdir.m4
31113         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
31114
31115         isdir: clean up, since at least grep still uses it
31116         * lib/isdir.c: Include "isdir.h".
31117         (S_ISDIR): Remove now-unneeded definition.
31118         * modules/isdir (Files): Add lib/isdir.h.
31119         * lib/isdir.h: New file, with declaration.
31120         * m4/isdir.m4: Remove file -- unneeded.
31121
31122 2009-12-25  Bruno Haible  <bruno@clisp.org>
31123
31124         selinux-h: Make generated .h files standalone.
31125         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
31126         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
31127         * lib/se-selinux.in.h: Likewise.
31128         * modules/selinux-h (Depends-on): Add unused-parameter.
31129         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
31130         selinux/selinux.h and selinux/context.h.
31131         Suggested by Eric Blake.
31132
31133 2009-12-25  Bruno Haible  <bruno@clisp.org>
31134
31135         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
31136         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
31137         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
31138         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
31139         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
31140
31141 2009-12-24  Bruno Haible  <bruno@clisp.org>
31142
31143         openat: Fix warning.
31144         * lib/openat-proc.c: Include <unistd.h>.
31145
31146 2009-12-24  Bruno Haible  <bruno@clisp.org>
31147
31148         New module 'unused-parameter'.
31149         * build-aux/unused-parameter.h: New file, extracted from earlier
31150         gnulib-common.m4.
31151         * modules/unused-parameter: New file.
31152         * lib/unistr.h: Include unused-parameter.h.
31153         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
31154         _GL_UNUSED.
31155         * modules/unistr/base (Depends-on): Add unused-parameter.
31156
31157 2009-12-24  Bruno Haible  <bruno@clisp.org>
31158
31159         Add missing dependencies to 'extensions' module.
31160         * m4/extensions.m4: Add comment.
31161         * modules/accept4 (Depends-on): Add extensions.
31162         * modules/dup3 (Depends-on): Likewise.
31163         * modules/fcntl (Depends-on): Likewise.
31164         * modules/futimens (Depends-on): Likewise.
31165         * modules/mknod (Depends-on): Likewise.
31166         * modules/pipe2 (Depends-on): Likewise.
31167         * modules/stat-time (Depends-on): Likewise.
31168         * modules/strcasestr-simple (Depends-on): Likewise.
31169         * modules/strsignal (Depends-on): Likewise.
31170         * modules/utimensat (Depends-on): Likewise.
31171         * modules/localcharset (Depends-on): Likewise. Needed because of
31172         gl_FCNTL_O_FLAGS.
31173         * modules/wcrtomb (Depends-on): Likewise. Needed because of
31174         AC_TYPE_MBSTATE_T.
31175         * modules/wcsnrtombs (Depends-on): Likewise.
31176         * modules/wcsrtombs (Depends-on): Likewise.
31177
31178 2009-12-24  Bruno Haible  <bruno@clisp.org>
31179
31180         binary-io: Avoid gcc warning due to SET_BINARY.
31181         * lib/binary-io.h (SET_BINARY): Cast the result to void.
31182         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
31183
31184 2009-12-24  Bruno Haible  <bruno@clisp.org>
31185
31186         Avoid future namespace pollution on glibc systems.
31187         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
31188         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
31189         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
31190         glibc systems.
31191
31192 2009-12-24  Bruno Haible  <bruno@clisp.org>
31193
31194         Refactor common macros used in tests.
31195         * tests/macros.h: New file.
31196         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
31197         and/or <stdlib.h>, if appropriate.
31198         (ASSERT, SIZEOF): Remove macros.
31199         * tests/test-areadlink-with-size.c: Likewise.
31200         * tests/test-areadlinkat.c: Likewise.
31201         * tests/test-areadlinkat-with-size.c: Likewise.
31202         * tests/test-argmatch.c: Likewise.
31203         * tests/test-argv-iter.c: Likewise.
31204         * tests/test-array-mergesort.c: Likewise.
31205         * tests/test-array_list.c: Likewise.
31206         * tests/test-array_oset.c: Likewise.
31207         * tests/test-avltree_list.c: Likewise.
31208         * tests/test-avltree_oset.c: Likewise.
31209         * tests/test-avltreehash_list.c: Likewise.
31210         * tests/test-base64.c: Likewise.
31211         * tests/test-binary-io.c: Likewise.
31212         * tests/test-bitrotate.c: Likewise.
31213         * tests/test-btowc.c: Likewise.
31214         * tests/test-byteswap.c: Likewise.
31215         * tests/test-c-ctype.c: Likewise.
31216         * tests/test-c-stack.c: Likewise.
31217         * tests/test-c-strcasecmp.c: Likewise.
31218         * tests/test-c-strcasestr.c: Likewise.
31219         * tests/test-c-strncasecmp.c: Likewise.
31220         * tests/test-c-strstr.c: Likewise.
31221         * tests/test-canonicalize-lgpl.c: Likewise.
31222         * tests/test-canonicalize.c: Likewise.
31223         * tests/test-carray_list.c: Likewise.
31224         * tests/test-ceilf1.c: Likewise.
31225         * tests/test-ceilf2.c: Likewise.
31226         * tests/test-ceill.c: Likewise.
31227         * tests/test-chown.c: Likewise.
31228         * tests/test-cloexec.c: Likewise.
31229         * tests/test-copy-acl.c: Likewise.
31230         * tests/test-copy-file.c: Likewise.
31231         * tests/test-count-one-bits.c: Likewise.
31232         * tests/test-dprintf-posix.c: Likewise.
31233         * tests/test-dup2.c: Likewise.
31234         * tests/test-dup3.c: Likewise.
31235         * tests/test-duplocale.c: Likewise.
31236         * tests/test-fbufmode.c: Likewise.
31237         * tests/test-fchdir.c: Likewise.
31238         * tests/test-fchownat.c: Likewise.
31239         * tests/test-fcntl-safer.c: Likewise.
31240         * tests/test-fcntl.c: Likewise.
31241         * tests/test-fdopendir.c: Likewise.
31242         * tests/test-fdutimensat.c: Likewise.
31243         * tests/test-fflush2.c: Likewise.
31244         * tests/test-file-has-acl.c: Likewise.
31245         * tests/test-filevercmp.c: Likewise.
31246         * tests/test-flock.c: Likewise.
31247         * tests/test-floorf1.c: Likewise.
31248         * tests/test-floorf2.c: Likewise.
31249         * tests/test-floorl.c: Likewise.
31250         * tests/test-fnmatch.c: Likewise.
31251         * tests/test-fopen.h: Likewise.
31252         * tests/test-fpending.c: Likewise.
31253         * tests/test-fprintf-posix.c: Likewise.
31254         * tests/test-fpurge.c: Likewise.
31255         * tests/test-freadable.c: Likewise.
31256         * tests/test-freadahead.c: Likewise.
31257         * tests/test-freading.c: Likewise.
31258         * tests/test-freadptr.c: Likewise.
31259         * tests/test-freadptr2.c: Likewise.
31260         * tests/test-freadseek.c: Likewise.
31261         * tests/test-freopen.c: Likewise.
31262         * tests/test-frexp.c: Likewise.
31263         * tests/test-frexpl.c: Likewise.
31264         * tests/test-fseek.c: Likewise.
31265         * tests/test-fseeko.c: Likewise.
31266         * tests/test-fstatat.c: Likewise.
31267         * tests/test-fstrcmp.c: Likewise.
31268         * tests/test-fsync.c: Likewise.
31269         * tests/test-ftell.c: Likewise.
31270         * tests/test-ftello.c: Likewise.
31271         * tests/test-func.c: Likewise.
31272         * tests/test-futimens.c: Likewise.
31273         * tests/test-fwritable.c: Likewise.
31274         * tests/test-fwriting.c: Likewise.
31275         * tests/test-getcwd.c: Likewise.
31276         * tests/test-getdate.c: Likewise.
31277         * tests/test-getdelim.c: Likewise.
31278         * tests/test-getdtablesize.c: Likewise.
31279         * tests/test-getgroups.c: Likewise.
31280         * tests/test-getline.c: Likewise.
31281         * tests/test-getndelim2.c: Likewise.
31282         * tests/test-glob.c: Likewise.
31283         * tests/test-hash.c: Likewise.
31284         * tests/test-i-ring.c: Likewise.
31285         * tests/test-iconv-utf.c: Likewise.
31286         * tests/test-iconv.c: Likewise.
31287         * tests/test-idpriv-drop.c: Likewise.
31288         * tests/test-idpriv-droptemp.c: Likewise.
31289         * tests/test-inet_ntop.c: Likewise.
31290         * tests/test-inet_pton.c: Likewise.
31291         * tests/test-isblank.c: Likewise.
31292         * tests/test-isfinite.c: Likewise.
31293         * tests/test-isinf.c: Likewise.
31294         * tests/test-isnan.c: Likewise.
31295         * tests/test-isnand.h: Likewise.
31296         * tests/test-isnanf.h: Likewise.
31297         * tests/test-isnanl.h: Likewise.
31298         * tests/test-lchown.c: Likewise.
31299         * tests/test-ldexpl.c: Likewise.
31300         * tests/test-link.c: Likewise.
31301         * tests/test-linkat.c: Likewise.
31302         * tests/test-linked_list.c: Likewise.
31303         * tests/test-linkedhash_list.c: Likewise.
31304         * tests/test-localename.c: Likewise.
31305         * tests/test-lseek.c: Likewise.
31306         * tests/test-lstat.c: Likewise.
31307         * tests/test-mbmemcasecmp.c: Likewise.
31308         * tests/test-mbmemcasecoll.c: Likewise.
31309         * tests/test-mbrtowc.c: Likewise.
31310         * tests/test-mbscasecmp.c: Likewise.
31311         * tests/test-mbscasestr1.c: Likewise.
31312         * tests/test-mbscasestr2.c: Likewise.
31313         * tests/test-mbscasestr3.c: Likewise.
31314         * tests/test-mbscasestr4.c: Likewise.
31315         * tests/test-mbschr.c: Likewise.
31316         * tests/test-mbscspn.c: Likewise.
31317         * tests/test-mbsinit.c: Likewise.
31318         * tests/test-mbsncasecmp.c: Likewise.
31319         * tests/test-mbsnrtowcs.c: Likewise.
31320         * tests/test-mbspbrk.c: Likewise.
31321         * tests/test-mbspcasecmp.c: Likewise.
31322         * tests/test-mbsrchr.c: Likewise.
31323         * tests/test-mbsrtowcs.c: Likewise.
31324         * tests/test-mbsspn.c: Likewise.
31325         * tests/test-mbsstr1.c: Likewise.
31326         * tests/test-mbsstr2.c: Likewise.
31327         * tests/test-mbsstr3.c: Likewise.
31328         * tests/test-memchr.c: Likewise.
31329         * tests/test-memchr2.c: Likewise.
31330         * tests/test-memcmp.c: Likewise.
31331         * tests/test-memmem.c: Likewise.
31332         * tests/test-memrchr.c: Likewise.
31333         * tests/test-mkdir.c: Likewise.
31334         * tests/test-mkdirat.c: Likewise.
31335         * tests/test-mkfifo.c: Likewise.
31336         * tests/test-mkfifoat.c: Likewise.
31337         * tests/test-mknod.c: Likewise.
31338         * tests/test-nanosleep.c: Likewise.
31339         * tests/test-nl_langinfo.c: Likewise.
31340         * tests/test-obstack-printf.c: Likewise.
31341         * tests/test-open.c: Likewise.
31342         * tests/test-openat.c: Likewise.
31343         * tests/test-pipe-filter-gi1.c: Likewise.
31344         * tests/test-pipe-filter-gi2-main.c: Likewise.
31345         * tests/test-pipe-filter-ii1.c: Likewise.
31346         * tests/test-pipe-filter-ii2-main.c: Likewise.
31347         * tests/test-pipe2.c: Likewise.
31348         * tests/test-popen.h: Likewise.
31349         * tests/test-posixtm.c: Likewise.
31350         * tests/test-pread.c: Likewise.
31351         * tests/test-printf-frexp.c: Likewise.
31352         * tests/test-printf-frexpl.c: Likewise.
31353         * tests/test-printf-posix.c: Likewise.
31354         * tests/test-priv-set.c: Likewise.
31355         * tests/test-quotearg.c: Likewise.
31356         * tests/test-random_r.c: Likewise.
31357         * tests/test-rawmemchr.c: Likewise.
31358         * tests/test-rbtree_list.c: Likewise.
31359         * tests/test-rbtree_oset.c: Likewise.
31360         * tests/test-rbtreehash_list.c: Likewise.
31361         * tests/test-readlink.c: Likewise.
31362         * tests/test-remove.c: Likewise.
31363         * tests/test-rename.c: Likewise.
31364         * tests/test-renameat.c: Likewise.
31365         * tests/test-rmdir.c: Likewise.
31366         * tests/test-round1.c: Likewise.
31367         * tests/test-roundf1.c: Likewise.
31368         * tests/test-roundl.c: Likewise.
31369         * tests/test-safe-alloc.c: Likewise.
31370         * tests/test-sameacls.c: Likewise.
31371         * tests/test-set-mode-acl.c: Likewise.
31372         * tests/test-setenv.c: Likewise.
31373         * tests/test-sigaction.c: Likewise.
31374         * tests/test-signbit.c: Likewise.
31375         * tests/test-sleep.c: Likewise.
31376         * tests/test-snprintf-posix.c: Likewise.
31377         * tests/test-snprintf.c: Likewise.
31378         * tests/test-sprintf-posix.c: Likewise.
31379         * tests/test-stat-time.c: Likewise.
31380         * tests/test-stat.c: Likewise.
31381         * tests/test-strcasestr.c: Likewise.
31382         * tests/test-strchrnul.c: Likewise.
31383         * tests/test-strerror.c: Likewise.
31384         * tests/test-striconv.c: Likewise.
31385         * tests/test-striconveh.c: Likewise.
31386         * tests/test-striconveha.c: Likewise.
31387         * tests/test-strsignal.c: Likewise.
31388         * tests/test-strstr.c: Likewise.
31389         * tests/test-strtod.c: Likewise.
31390         * tests/test-strverscmp.c: Likewise.
31391         * tests/test-symlink.c: Likewise.
31392         * tests/test-symlinkat.c: Likewise.
31393         * tests/test-trunc1.c: Likewise.
31394         * tests/test-trunc2.c: Likewise.
31395         * tests/test-truncf1.c: Likewise.
31396         * tests/test-truncf2.c: Likewise.
31397         * tests/test-truncl.c: Likewise.
31398         * tests/test-uname.c: Likewise.
31399         * tests/test-unlink.c: Likewise.
31400         * tests/test-unlinkat.c: Likewise.
31401         * tests/test-unsetenv.c: Likewise.
31402         * tests/test-usleep.c: Likewise.
31403         * tests/test-utimens.c: Likewise.
31404         * tests/test-utimensat.c: Likewise.
31405         * tests/test-vasnprintf-posix.c: Likewise.
31406         * tests/test-vasnprintf-posix2.c: Likewise.
31407         * tests/test-vasnprintf.c: Likewise.
31408         * tests/test-vasprintf-posix.c: Likewise.
31409         * tests/test-vasprintf.c: Likewise.
31410         * tests/test-vdprintf-posix.c: Likewise.
31411         * tests/test-vfprintf-posix.c: Likewise.
31412         * tests/test-vprintf-posix.c: Likewise.
31413         * tests/test-vsnprintf-posix.c: Likewise.
31414         * tests/test-vsnprintf.c: Likewise.
31415         * tests/test-vsprintf-posix.c: Likewise.
31416         * tests/test-wcrtomb.c: Likewise.
31417         * tests/test-wcsnrtombs.c: Likewise.
31418         * tests/test-wcsrtombs.c: Likewise.
31419         * tests/test-wctype.c: Likewise.
31420         * tests/test-wcwidth.c: Likewise.
31421         * tests/test-xfprintf-posix.c: Likewise.
31422         * tests/test-xmemdup0.c: Likewise.
31423         * tests/test-xprintf-posix.c: Likewise.
31424         * tests/test-xvasprintf.c: Likewise.
31425         * tests/unicase/test-locale-language.c: Likewise.
31426         * tests/unicase/test-mapping-part1.h: Likewise.
31427         * tests/unicase/test-predicate-part1.h: Likewise.
31428         * tests/unicase/test-u8-casecmp.c: Likewise.
31429         * tests/unicase/test-u8-casecoll.c: Likewise.
31430         * tests/unicase/test-u8-casefold.c: Likewise.
31431         * tests/unicase/test-u8-is-cased.c: Likewise.
31432         * tests/unicase/test-u8-is-casefolded.c: Likewise.
31433         * tests/unicase/test-u8-is-lowercase.c: Likewise.
31434         * tests/unicase/test-u8-is-titlecase.c: Likewise.
31435         * tests/unicase/test-u8-is-uppercase.c: Likewise.
31436         * tests/unicase/test-u8-tolower.c: Likewise.
31437         * tests/unicase/test-u8-totitle.c: Likewise.
31438         * tests/unicase/test-u8-toupper.c: Likewise.
31439         * tests/unicase/test-u16-casecmp.c: Likewise.
31440         * tests/unicase/test-u16-casecoll.c: Likewise.
31441         * tests/unicase/test-u16-casefold.c: Likewise.
31442         * tests/unicase/test-u16-is-cased.c: Likewise.
31443         * tests/unicase/test-u16-is-casefolded.c: Likewise.
31444         * tests/unicase/test-u16-is-lowercase.c: Likewise.
31445         * tests/unicase/test-u16-is-titlecase.c: Likewise.
31446         * tests/unicase/test-u16-is-uppercase.c: Likewise.
31447         * tests/unicase/test-u16-tolower.c: Likewise.
31448         * tests/unicase/test-u16-totitle.c: Likewise.
31449         * tests/unicase/test-u16-toupper.c: Likewise.
31450         * tests/unicase/test-u32-casecmp.c: Likewise.
31451         * tests/unicase/test-u32-casecoll.c: Likewise.
31452         * tests/unicase/test-u32-casefold.c: Likewise.
31453         * tests/unicase/test-u32-is-cased.c: Likewise.
31454         * tests/unicase/test-u32-is-casefolded.c: Likewise.
31455         * tests/unicase/test-u32-is-lowercase.c: Likewise.
31456         * tests/unicase/test-u32-is-titlecase.c: Likewise.
31457         * tests/unicase/test-u32-is-uppercase.c: Likewise.
31458         * tests/unicase/test-u32-tolower.c: Likewise.
31459         * tests/unicase/test-u32-totitle.c: Likewise.
31460         * tests/unicase/test-u32-toupper.c: Likewise.
31461         * tests/unicase/test-ulc-casecmp.c: Likewise.
31462         * tests/unicase/test-ulc-casecoll.c: Likewise.
31463         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
31464         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
31465         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
31466         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
31467         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
31468         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
31469         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
31470         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
31471         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
31472         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
31473         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
31474         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
31475         * tests/unictype/test-bidi_byname.c: Likewise.
31476         * tests/unictype/test-bidi_name.c: Likewise.
31477         * tests/unictype/test-bidi_of.c: Likewise.
31478         * tests/unictype/test-bidi_test.c: Likewise.
31479         * tests/unictype/test-block_list.c: Likewise.
31480         * tests/unictype/test-block_of.c: Likewise.
31481         * tests/unictype/test-block_test.c: Likewise.
31482         * tests/unictype/test-categ_and.c: Likewise.
31483         * tests/unictype/test-categ_and_not.c: Likewise.
31484         * tests/unictype/test-categ_byname.c: Likewise.
31485         * tests/unictype/test-categ_name.c: Likewise.
31486         * tests/unictype/test-categ_none.c: Likewise.
31487         * tests/unictype/test-categ_of.c: Likewise.
31488         * tests/unictype/test-categ_or.c: Likewise.
31489         * tests/unictype/test-categ_test_withtable.c: Likewise.
31490         * tests/unictype/test-combining.c: Likewise.
31491         * tests/unictype/test-decdigit.c: Likewise.
31492         * tests/unictype/test-digit.c: Likewise.
31493         * tests/unictype/test-mirror.c: Likewise.
31494         * tests/unictype/test-numeric.c: Likewise.
31495         * tests/unictype/test-pr_byname.c: Likewise.
31496         * tests/unictype/test-pr_test.c: Likewise.
31497         * tests/unictype/test-predicate-part1.h: Likewise.
31498         * tests/unictype/test-scripts.c: Likewise.
31499         * tests/unictype/test-sy_c_ident.c: Likewise.
31500         * tests/unictype/test-sy_java_ident.c: Likewise.
31501         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
31502         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
31503         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
31504         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
31505         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
31506         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
31507         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
31508         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
31509         * tests/uninorm/test-canonical-decomposition.c: Likewise.
31510         * tests/uninorm/test-compat-decomposition.c: Likewise.
31511         * tests/uninorm/test-composition.c: Likewise.
31512         * tests/uninorm/test-decomposing-form.c: Likewise.
31513         * tests/uninorm/test-decomposition.c: Likewise.
31514         * tests/uninorm/test-u8-nfc.c: Likewise.
31515         * tests/uninorm/test-u8-nfd.c: Likewise.
31516         * tests/uninorm/test-u8-nfkc.c: Likewise.
31517         * tests/uninorm/test-u8-nfkd.c: Likewise.
31518         * tests/uninorm/test-u8-normcmp.c: Likewise.
31519         * tests/uninorm/test-u8-normcoll.c: Likewise.
31520         * tests/uninorm/test-u16-nfc.c: Likewise.
31521         * tests/uninorm/test-u16-nfd.c: Likewise.
31522         * tests/uninorm/test-u16-nfkc.c: Likewise.
31523         * tests/uninorm/test-u16-nfkd.c: Likewise.
31524         * tests/uninorm/test-u16-normcmp.c: Likewise.
31525         * tests/uninorm/test-u16-normcoll.c: Likewise.
31526         * tests/uninorm/test-u32-nfc.c: Likewise.
31527         * tests/uninorm/test-u32-nfd.c: Likewise.
31528         * tests/uninorm/test-u32-nfkc.c: Likewise.
31529         * tests/uninorm/test-u32-nfkd.c: Likewise.
31530         * tests/uninorm/test-u32-normalize-big.c: Likewise.
31531         * tests/uninorm/test-u32-normcmp.c: Likewise.
31532         * tests/uninorm/test-u32-normcoll.c: Likewise.
31533         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
31534         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
31535         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
31536         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
31537         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
31538         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
31539         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
31540         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
31541         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
31542         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
31543         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
31544         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
31545         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
31546         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
31547         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
31548         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
31549         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
31550         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
31551         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
31552         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
31553         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
31554         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
31555         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
31556         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
31557         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
31558         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
31559         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
31560         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
31561         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
31562         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
31563         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
31564         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
31565         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
31566         * tests/uniwidth/test-u8-strwidth.c: Likewise.
31567         * tests/uniwidth/test-u8-width.c: Likewise.
31568         * tests/uniwidth/test-u16-strwidth.c: Likewise.
31569         * tests/uniwidth/test-u16-width.c: Likewise.
31570         * tests/uniwidth/test-u32-strwidth.c: Likewise.
31571         * tests/uniwidth/test-u32-width.c: Likewise.
31572         * tests/uniwidth/test-uc_width.c: Likewise.
31573         * tests/uniwidth/test-uc_width2.c: Likewise.
31574         * modules/acl-tests (Files): Add tests/macros.h.
31575         * modules/areadlink-tests (Files): Likewise.
31576         * modules/areadlink-with-size-tests (Files): Likewise.
31577         * modules/areadlinkat-tests (Files): Likewise.
31578         * modules/areadlinkat-with-size-tests (Files): Likewise.
31579         * modules/argmatch-tests (Files): Likewise.
31580         * modules/argv-iter-tests (Files): Likewise.
31581         * modules/array-list-tests (Files): Likewise.
31582         * modules/array-mergesort-tests (Files): Likewise.
31583         * modules/array-oset-tests (Files): Likewise.
31584         * modules/avltree-list-tests (Files): Likewise.
31585         * modules/avltree-oset-tests (Files): Likewise.
31586         * modules/avltreehash-list-tests (Files): Likewise.
31587         * modules/base64-tests (Files): Likewise.
31588         * modules/binary-io-tests (Files): Likewise.
31589         * modules/bitrotate-tests (Files): Likewise.
31590         * modules/btowc-tests (Files): Likewise.
31591         * modules/byteswap-tests (Files): Likewise.
31592         * modules/c-ctype-tests (Files): Likewise.
31593         * modules/c-stack-tests (Files): Likewise.
31594         * modules/c-strcase-tests (Files): Likewise.
31595         * modules/c-strcasestr-tests (Files): Likewise.
31596         * modules/c-strstr-tests (Files): Likewise.
31597         * modules/canonicalize-lgpl-tests (Files): Likewise.
31598         * modules/canonicalize-tests (Files): Likewise.
31599         * modules/carray-list-tests (Files): Likewise.
31600         * modules/ceilf-tests (Files): Likewise.
31601         * modules/ceill-tests (Files): Likewise.
31602         * modules/chown-tests (Files): Likewise.
31603         * modules/cloexec-tests (Files): Likewise.
31604         * modules/copy-file-tests (Files): Likewise.
31605         * modules/count-one-bits-tests (Files): Likewise.
31606         * modules/dprintf-posix-tests (Files): Likewise.
31607         * modules/dup2-tests (Files): Likewise.
31608         * modules/dup3-tests (Files): Likewise.
31609         * modules/duplocale-tests (Files): Likewise.
31610         * modules/fbufmode-tests (Files): Likewise.
31611         * modules/fchdir-tests (Files): Likewise.
31612         * modules/fcntl-safer-tests (Files): Likewise.
31613         * modules/fcntl-tests (Files): Likewise.
31614         * modules/fdopendir-tests (Files): Likewise.
31615         * modules/fdutimensat-tests (Files): Likewise.
31616         * modules/fflush-tests (Files): Likewise.
31617         * modules/filevercmp-tests (Files): Likewise.
31618         * modules/flock-tests (Files): Likewise.
31619         * modules/floorf-tests (Files): Likewise.
31620         * modules/floorl-tests (Files): Likewise.
31621         * modules/fnmatch-tests (Files): Likewise.
31622         * modules/fopen-safer-tests (Files): Likewise.
31623         * modules/fopen-tests (Files): Likewise.
31624         * modules/fpending-tests (Files): Likewise.
31625         * modules/fprintf-posix-tests (Files): Likewise.
31626         * modules/fpurge-tests (Files): Likewise.
31627         * modules/freadable-tests (Files): Likewise.
31628         * modules/freadahead-tests (Files): Likewise.
31629         * modules/freading-tests (Files): Likewise.
31630         * modules/freadptr-tests (Files): Likewise.
31631         * modules/freadseek-tests (Files): Likewise.
31632         * modules/freopen-tests (Files): Likewise.
31633         * modules/frexp-nolibm-tests (Files): Likewise.
31634         * modules/frexp-tests (Files): Likewise.
31635         * modules/frexpl-nolibm-tests (Files): Likewise.
31636         * modules/frexpl-tests (Files): Likewise.
31637         * modules/fseek-tests (Files): Likewise.
31638         * modules/fseeko-tests (Files): Likewise.
31639         * modules/fstrcmp-tests (Files): Likewise.
31640         * modules/fsync-tests (Files): Likewise.
31641         * modules/ftell-tests (Files): Likewise.
31642         * modules/ftello-tests (Files): Likewise.
31643         * modules/func-tests (Files): Likewise.
31644         * modules/futimens-tests (Files): Likewise.
31645         * modules/fwritable-tests (Files): Likewise.
31646         * modules/fwriting-tests (Files): Likewise.
31647         * modules/getcwd-tests (Files): Likewise.
31648         * modules/getdate-tests (Files): Likewise.
31649         * modules/getdelim-tests (Files): Likewise.
31650         * modules/getdtablesize-tests (Files): Likewise.
31651         * modules/getgroups-tests (Files): Likewise.
31652         * modules/getline-tests (Files): Likewise.
31653         * modules/getndelim2-tests (Files): Likewise.
31654         * modules/glob-tests (Files): Likewise.
31655         * modules/hash-tests (Files): Likewise.
31656         * modules/i-ring-tests (Files): Likewise.
31657         * modules/iconv-tests (Files): Likewise.
31658         * modules/iconv_open-utf-tests (Files): Likewise.
31659         * modules/idpriv-drop-tests (Files): Likewise.
31660         * modules/idpriv-droptemp-tests (Files): Likewise.
31661         * modules/inet_ntop-tests (Files): Likewise.
31662         * modules/inet_pton-tests (Files): Likewise.
31663         * modules/isblank-tests (Files): Likewise.
31664         * modules/isfinite-tests (Files): Likewise.
31665         * modules/isinf-tests (Files): Likewise.
31666         * modules/isnan-tests (Files): Likewise.
31667         * modules/isnand-nolibm-tests (Files): Likewise.
31668         * modules/isnand-tests (Files): Likewise.
31669         * modules/isnanf-nolibm-tests (Files): Likewise.
31670         * modules/isnanf-tests (Files): Likewise.
31671         * modules/isnanl-nolibm-tests (Files): Likewise.
31672         * modules/isnanl-tests (Files): Likewise.
31673         * modules/lchown-tests (Files): Likewise.
31674         * modules/ldexpl-tests (Files): Likewise.
31675         * modules/link-tests (Files): Likewise.
31676         * modules/linkat-tests (Files): Likewise.
31677         * modules/linked-list-tests (Files): Likewise.
31678         * modules/linkedhash-list-tests (Files): Likewise.
31679         * modules/localename-tests (Files): Likewise.
31680         * modules/lseek-tests (Files): Likewise.
31681         * modules/lstat-tests (Files): Likewise.
31682         * modules/mbmemcasecmp-tests (Files): Likewise.
31683         * modules/mbmemcasecoll-tests (Files): Likewise.
31684         * modules/mbrtowc-tests (Files): Likewise.
31685         * modules/mbscasecmp-tests (Files): Likewise.
31686         * modules/mbscasestr-tests (Files): Likewise.
31687         * modules/mbschr-tests (Files): Likewise.
31688         * modules/mbscspn-tests (Files): Likewise.
31689         * modules/mbsinit-tests (Files): Likewise.
31690         * modules/mbsncasecmp-tests (Files): Likewise.
31691         * modules/mbsnrtowcs-tests (Files): Likewise.
31692         * modules/mbspbrk-tests (Files): Likewise.
31693         * modules/mbspcasecmp-tests (Files): Likewise.
31694         * modules/mbsrchr-tests (Files): Likewise.
31695         * modules/mbsrtowcs-tests (Files): Likewise.
31696         * modules/mbsspn-tests (Files): Likewise.
31697         * modules/mbsstr-tests (Files): Likewise.
31698         * modules/memchr-tests (Files): Likewise.
31699         * modules/memchr2-tests (Files): Likewise.
31700         * modules/memcmp-tests (Files): Likewise.
31701         * modules/memmem-tests (Files): Likewise.
31702         * modules/memrchr-tests (Files): Likewise.
31703         * modules/mkdir-tests (Files): Likewise.
31704         * modules/mkfifo-tests (Files): Likewise.
31705         * modules/mkfifoat-tests (Files): Likewise.
31706         * modules/mknod-tests (Files): Likewise.
31707         * modules/nanosleep-tests (Files): Likewise.
31708         * modules/nl_langinfo-tests (Files): Likewise.
31709         * modules/obstack-printf-tests (Files): Likewise.
31710         * modules/open-tests (Files): Likewise.
31711         * modules/openat-tests (Files): Likewise.
31712         * modules/pipe-filter-gi-tests (Files): Likewise.
31713         * modules/pipe-filter-ii-tests (Files): Likewise.
31714         * modules/pipe2-tests (Files): Likewise.
31715         * modules/popen-safer-tests (Files): Likewise.
31716         * modules/popen-tests (Files): Likewise.
31717         * modules/posixtm-tests (Files): Likewise.
31718         * modules/pread-tests (Files): Likewise.
31719         * modules/printf-frexp-tests (Files): Likewise.
31720         * modules/printf-frexpl-tests (Files): Likewise.
31721         * modules/printf-posix-tests (Files): Likewise.
31722         * modules/priv-set-tests (Files): Likewise.
31723         * modules/quotearg-tests (Files): Likewise.
31724         * modules/random_r-tests (Files): Likewise.
31725         * modules/rawmemchr-tests (Files): Likewise.
31726         * modules/rbtree-list-tests (Files): Likewise.
31727         * modules/rbtree-oset-tests (Files): Likewise.
31728         * modules/rbtreehash-list-tests (Files): Likewise.
31729         * modules/readlink-tests (Files): Likewise.
31730         * modules/remove-tests (Files): Likewise.
31731         * modules/rename-tests (Files): Likewise.
31732         * modules/renameat-tests (Files): Likewise.
31733         * modules/rmdir-tests (Files): Likewise.
31734         * modules/round-tests (Files): Likewise.
31735         * modules/roundf-tests (Files): Likewise.
31736         * modules/roundl-tests (Files): Likewise.
31737         * modules/safe-alloc-tests (Files): Likewise.
31738         * modules/setenv-tests (Files): Likewise.
31739         * modules/sigaction-tests (Files): Likewise.
31740         * modules/signbit-tests (Files): Likewise.
31741         * modules/sleep-tests (Files): Likewise.
31742         * modules/snprintf-posix-tests (Files): Likewise.
31743         * modules/snprintf-tests (Files): Likewise.
31744         * modules/sprintf-posix-tests (Files): Likewise.
31745         * modules/stat-tests (Files): Likewise.
31746         * modules/stat-time-tests (Files): Likewise.
31747         * modules/strcasestr-tests (Files): Likewise.
31748         * modules/strchrnul-tests (Files): Likewise.
31749         * modules/strerror-tests (Files): Likewise.
31750         * modules/striconv-tests (Files): Likewise.
31751         * modules/striconveh-tests (Files): Likewise.
31752         * modules/striconveha-tests (Files): Likewise.
31753         * modules/strsignal-tests (Files): Likewise.
31754         * modules/strstr-tests (Files): Likewise.
31755         * modules/strtod-tests (Files): Likewise.
31756         * modules/strverscmp-tests (Files): Likewise.
31757         * modules/symlink-tests (Files): Likewise.
31758         * modules/symlinkat-tests (Files): Likewise.
31759         * modules/trunc-tests (Files): Likewise.
31760         * modules/truncf-tests (Files): Likewise.
31761         * modules/truncl-tests (Files): Likewise.
31762         * modules/uname-tests (Files): Likewise.
31763         * modules/unicase/cased-tests (Files): Likewise.
31764         * modules/unicase/ignorable-tests (Files): Likewise.
31765         * modules/unicase/locale-language-tests (Files): Likewise.
31766         * modules/unicase/tolower-tests (Files): Likewise.
31767         * modules/unicase/totitle-tests (Files): Likewise.
31768         * modules/unicase/toupper-tests (Files): Likewise.
31769         * modules/unicase/u8-casecmp-tests (Files): Likewise.
31770         * modules/unicase/u8-casecoll-tests (Files): Likewise.
31771         * modules/unicase/u8-casefold-tests (Files): Likewise.
31772         * modules/unicase/u8-is-cased-tests (Files): Likewise.
31773         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
31774         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
31775         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
31776         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
31777         * modules/unicase/u8-tolower-tests (Files): Likewise.
31778         * modules/unicase/u8-totitle-tests (Files): Likewise.
31779         * modules/unicase/u8-toupper-tests (Files): Likewise.
31780         * modules/unicase/u16-casecmp-tests (Files): Likewise.
31781         * modules/unicase/u16-casecoll-tests (Files): Likewise.
31782         * modules/unicase/u16-casefold-tests (Files): Likewise.
31783         * modules/unicase/u16-is-cased-tests (Files): Likewise.
31784         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
31785         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
31786         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
31787         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
31788         * modules/unicase/u16-tolower-tests (Files): Likewise.
31789         * modules/unicase/u16-totitle-tests (Files): Likewise.
31790         * modules/unicase/u16-toupper-tests (Files): Likewise.
31791         * modules/unicase/u32-casecmp-tests (Files): Likewise.
31792         * modules/unicase/u32-casecoll-tests (Files): Likewise.
31793         * modules/unicase/u32-casefold-tests (Files): Likewise.
31794         * modules/unicase/u32-is-cased-tests (Files): Likewise.
31795         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
31796         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
31797         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
31798         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
31799         * modules/unicase/u32-tolower-tests (Files): Likewise.
31800         * modules/unicase/u32-totitle-tests (Files): Likewise.
31801         * modules/unicase/u32-toupper-tests (Files): Likewise.
31802         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
31803         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
31804         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
31805         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
31806         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
31807         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
31808         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
31809         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
31810         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
31811         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
31812         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
31813         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
31814         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
31815         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
31816         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
31817         * modules/unictype/bidicategory-name-tests (Files): Likewise.
31818         * modules/unictype/bidicategory-of-tests (Files): Likewise.
31819         * modules/unictype/bidicategory-test-tests (Files): Likewise.
31820         * modules/unictype/block-list-tests (Files): Likewise.
31821         * modules/unictype/block-of-tests (Files): Likewise.
31822         * modules/unictype/block-test-tests (Files): Likewise.
31823         * modules/unictype/category-C-tests (Files): Likewise.
31824         * modules/unictype/category-Cc-tests (Files): Likewise.
31825         * modules/unictype/category-Cf-tests (Files): Likewise.
31826         * modules/unictype/category-Cn-tests (Files): Likewise.
31827         * modules/unictype/category-Co-tests (Files): Likewise.
31828         * modules/unictype/category-Cs-tests (Files): Likewise.
31829         * modules/unictype/category-L-tests (Files): Likewise.
31830         * modules/unictype/category-Ll-tests (Files): Likewise.
31831         * modules/unictype/category-Lm-tests (Files): Likewise.
31832         * modules/unictype/category-Lo-tests (Files): Likewise.
31833         * modules/unictype/category-Lt-tests (Files): Likewise.
31834         * modules/unictype/category-Lu-tests (Files): Likewise.
31835         * modules/unictype/category-M-tests (Files): Likewise.
31836         * modules/unictype/category-Mc-tests (Files): Likewise.
31837         * modules/unictype/category-Me-tests (Files): Likewise.
31838         * modules/unictype/category-Mn-tests (Files): Likewise.
31839         * modules/unictype/category-N-tests (Files): Likewise.
31840         * modules/unictype/category-Nd-tests (Files): Likewise.
31841         * modules/unictype/category-Nl-tests (Files): Likewise.
31842         * modules/unictype/category-No-tests (Files): Likewise.
31843         * modules/unictype/category-P-tests (Files): Likewise.
31844         * modules/unictype/category-Pc-tests (Files): Likewise.
31845         * modules/unictype/category-Pd-tests (Files): Likewise.
31846         * modules/unictype/category-Pe-tests (Files): Likewise.
31847         * modules/unictype/category-Pf-tests (Files): Likewise.
31848         * modules/unictype/category-Pi-tests (Files): Likewise.
31849         * modules/unictype/category-Po-tests (Files): Likewise.
31850         * modules/unictype/category-Ps-tests (Files): Likewise.
31851         * modules/unictype/category-S-tests (Files): Likewise.
31852         * modules/unictype/category-Sc-tests (Files): Likewise.
31853         * modules/unictype/category-Sk-tests (Files): Likewise.
31854         * modules/unictype/category-Sm-tests (Files): Likewise.
31855         * modules/unictype/category-So-tests (Files): Likewise.
31856         * modules/unictype/category-Z-tests (Files): Likewise.
31857         * modules/unictype/category-Zl-tests (Files): Likewise.
31858         * modules/unictype/category-Zp-tests (Files): Likewise.
31859         * modules/unictype/category-Zs-tests (Files): Likewise.
31860         * modules/unictype/category-and-not-tests (Files): Likewise.
31861         * modules/unictype/category-and-tests (Files): Likewise.
31862         * modules/unictype/category-byname-tests (Files): Likewise.
31863         * modules/unictype/category-name-tests (Files): Likewise.
31864         * modules/unictype/category-none-tests (Files): Likewise.
31865         * modules/unictype/category-of-tests (Files): Likewise.
31866         * modules/unictype/category-or-tests (Files): Likewise.
31867         * modules/unictype/category-test-withtable-tests (Files): Likewise.
31868         * modules/unictype/combining-class-tests (Files): Likewise.
31869         * modules/unictype/ctype-alnum-tests (Files): Likewise.
31870         * modules/unictype/ctype-alpha-tests (Files): Likewise.
31871         * modules/unictype/ctype-blank-tests (Files): Likewise.
31872         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
31873         * modules/unictype/ctype-digit-tests (Files): Likewise.
31874         * modules/unictype/ctype-graph-tests (Files): Likewise.
31875         * modules/unictype/ctype-lower-tests (Files): Likewise.
31876         * modules/unictype/ctype-print-tests (Files): Likewise.
31877         * modules/unictype/ctype-punct-tests (Files): Likewise.
31878         * modules/unictype/ctype-space-tests (Files): Likewise.
31879         * modules/unictype/ctype-upper-tests (Files): Likewise.
31880         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
31881         * modules/unictype/decimal-digit-tests (Files): Likewise.
31882         * modules/unictype/digit-tests (Files): Likewise.
31883         * modules/unictype/mirror-tests (Files): Likewise.
31884         * modules/unictype/numeric-tests (Files): Likewise.
31885         * modules/unictype/property-alphabetic-tests (Files): Likewise.
31886         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
31887         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
31888         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
31889         Likewise.
31890         * modules/unictype/property-bidi-block-separator-tests (Files):
31891         Likewise.
31892         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
31893         Likewise.
31894         * modules/unictype/property-bidi-common-separator-tests (Files):
31895         Likewise.
31896         * modules/unictype/property-bidi-control-tests (Files): Likewise.
31897         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
31898         Likewise.
31899         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
31900         Likewise.
31901         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
31902         Likewise.
31903         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
31904         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
31905         Likewise.
31906         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
31907         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
31908         Likewise.
31909         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
31910         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
31911         * modules/unictype/property-bidi-segment-separator-tests (Files):
31912         Likewise.
31913         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
31914         * modules/unictype/property-byname-tests (Files): Likewise.
31915         * modules/unictype/property-combining-tests (Files): Likewise.
31916         * modules/unictype/property-composite-tests (Files): Likewise.
31917         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
31918         * modules/unictype/property-dash-tests (Files): Likewise.
31919         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
31920         * modules/unictype/property-default-ignorable-code-point-tests (Files):
31921         Likewise.
31922         * modules/unictype/property-deprecated-tests (Files): Likewise.
31923         * modules/unictype/property-diacritic-tests (Files): Likewise.
31924         * modules/unictype/property-extender-tests (Files): Likewise.
31925         * modules/unictype/property-format-control-tests (Files): Likewise.
31926         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
31927         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
31928         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
31929         * modules/unictype/property-hex-digit-tests (Files): Likewise.
31930         * modules/unictype/property-hyphen-tests (Files): Likewise.
31931         * modules/unictype/property-id-continue-tests (Files): Likewise.
31932         * modules/unictype/property-id-start-tests (Files): Likewise.
31933         * modules/unictype/property-ideographic-tests (Files): Likewise.
31934         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
31935         * modules/unictype/property-ids-trinary-operator-tests (Files):
31936         Likewise.
31937         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
31938         * modules/unictype/property-iso-control-tests (Files): Likewise.
31939         * modules/unictype/property-join-control-tests (Files): Likewise.
31940         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
31941         * modules/unictype/property-line-separator-tests (Files): Likewise.
31942         * modules/unictype/property-logical-order-exception-tests (Files):
31943         Likewise.
31944         * modules/unictype/property-lowercase-tests (Files): Likewise.
31945         * modules/unictype/property-math-tests (Files): Likewise.
31946         * modules/unictype/property-non-break-tests (Files): Likewise.
31947         * modules/unictype/property-not-a-character-tests (Files): Likewise.
31948         * modules/unictype/property-numeric-tests (Files): Likewise.
31949         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
31950         * modules/unictype/property-other-default-ignorable-code-point-tests
31951         (Files): Likewise.
31952         * modules/unictype/property-other-grapheme-extend-tests (Files):
31953         Likewise.
31954         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
31955         * modules/unictype/property-other-id-start-tests (Files): Likewise.
31956         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
31957         * modules/unictype/property-other-math-tests (Files): Likewise.
31958         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
31959         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
31960         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
31961         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
31962         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
31963         * modules/unictype/property-private-use-tests (Files): Likewise.
31964         * modules/unictype/property-punctuation-tests (Files): Likewise.
31965         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
31966         * modules/unictype/property-radical-tests (Files): Likewise.
31967         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
31968         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
31969         * modules/unictype/property-space-tests (Files): Likewise.
31970         * modules/unictype/property-terminal-punctuation-tests (Files):
31971         Likewise.
31972         * modules/unictype/property-test-tests (Files): Likewise.
31973         * modules/unictype/property-titlecase-tests (Files): Likewise.
31974         * modules/unictype/property-unassigned-code-value-tests (Files):
31975         Likewise.
31976         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
31977         * modules/unictype/property-uppercase-tests (Files): Likewise.
31978         * modules/unictype/property-variation-selector-tests (Files): Likewise.
31979         * modules/unictype/property-white-space-tests (Files): Likewise.
31980         * modules/unictype/property-xid-continue-tests (Files): Likewise.
31981         * modules/unictype/property-xid-start-tests (Files): Likewise.
31982         * modules/unictype/property-zero-width-tests (Files): Likewise.
31983         * modules/unictype/scripts-tests (Files): Likewise.
31984         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
31985         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
31986         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
31987         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
31988         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
31989         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
31990         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
31991         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
31992         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
31993         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
31994         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
31995         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
31996         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
31997         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
31998         * modules/uninorm/composition-tests (Files): Likewise.
31999         * modules/uninorm/decomposing-form-tests (Files): Likewise.
32000         * modules/uninorm/decomposition-tests (Files): Likewise.
32001         * modules/uninorm/filter-tests (Files): Likewise.
32002         * modules/uninorm/nfc-tests (Files): Likewise.
32003         * modules/uninorm/nfd-tests (Files): Likewise.
32004         * modules/uninorm/nfkc-tests (Files): Likewise.
32005         * modules/uninorm/nfkd-tests (Files): Likewise.
32006         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
32007         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
32008         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
32009         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
32010         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
32011         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
32012         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
32013         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
32014         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
32015         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
32016         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
32017         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
32018         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
32019         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
32020         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
32021         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
32022         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
32023         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
32024         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
32025         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
32026         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
32027         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
32028         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
32029         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
32030         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
32031         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
32032         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
32033         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
32034         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
32035         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
32036         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
32037         * modules/uniwidth/u8-width-tests (Files): Likewise.
32038         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
32039         * modules/uniwidth/u16-width-tests (Files): Likewise.
32040         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
32041         * modules/uniwidth/u32-width-tests (Files): Likewise.
32042         * modules/uniwidth/width-tests (Files): Likewise.
32043         * modules/unlink-tests (Files): Likewise.
32044         * modules/unsetenv-tests (Files): Likewise.
32045         * modules/usleep-tests (Files): Likewise.
32046         * modules/utimens-tests (Files): Likewise.
32047         * modules/utimensat-tests (Files): Likewise.
32048         * modules/vasnprintf-posix-tests (Files): Likewise.
32049         * modules/vasnprintf-tests (Files): Likewise.
32050         * modules/vasprintf-posix-tests (Files): Likewise.
32051         * modules/vasprintf-tests (Files): Likewise.
32052         * modules/vdprintf-posix-tests (Files): Likewise.
32053         * modules/vfprintf-posix-tests (Files): Likewise.
32054         * modules/vprintf-posix-tests (Files): Likewise.
32055         * modules/vsnprintf-posix-tests (Files): Likewise.
32056         * modules/vsnprintf-tests (Files): Likewise.
32057         * modules/vsprintf-posix-tests (Files): Likewise.
32058         * modules/wcrtomb-tests (Files): Likewise.
32059         * modules/wcsnrtombs-tests (Files): Likewise.
32060         * modules/wcsrtombs-tests (Files): Likewise.
32061         * modules/wctype-tests (Files): Likewise.
32062         * modules/wcwidth-tests (Files): Likewise.
32063         * modules/xmemdup0-tests (Files): Likewise.
32064         * modules/xprintf-posix-tests (Files): Likewise.
32065         * modules/xvasprintf-tests (Files): Likewise.
32066
32067 2009-12-24  Eric Blake  <ebb9@byu.net>
32068
32069         test-nanosleep: fix typo
32070         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
32071         patch.
32072         Reported by Bruno Haible.
32073
32074 2009-12-24  Bruno Haible  <bruno@clisp.org>
32075
32076         Reduce namespace pollution on glibc systems.
32077         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
32078         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
32079         systems.
32080         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
32081         <getopt.h> on glibc systems.
32082         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
32083         systems.
32084         * lib/fcntl.c: Include <unistd.h> here instead.
32085
32086 2009-12-24  Bruno Haible  <bruno@clisp.org>
32087
32088         * lib/stdlib.in.h (includes): Fix typo in today's commit.
32089
32090 2009-12-24  Eric Blake  <ebb9@byu.net>
32091
32092         tests: add signature checks
32093         * tests/signature.h (SIGNATURE_CHECK): New file.
32094         * modules/atexit-tests (Files): Use it.
32095         * modules/btowc-tests (Files): Likewise.
32096         * modules/canonicalize-lgpl-tests (Files): Likewise.
32097         * modules/ceilf-tests (Files): Likewise.
32098         * modules/ceill-tests (Files): Likewise.
32099         * modules/chown-tests (Files): Likewise.
32100         * modules/dprintf-posix-tests (Files): Likewise.
32101         * modules/dup2-tests (Files): Likewise.
32102         * modules/dup3-tests (Files): Likewise.
32103         * modules/duplocale-tests (Files): Likewise.
32104         * modules/fchdir-tests (Files): Likewise.
32105         * modules/fcntl-tests (Files): Likewise.
32106         * modules/fdopendir-tests (Files): Likewise.
32107         * modules/fflush-tests (Files): Likewise.
32108         * modules/flock-tests (Files): Likewise.
32109         * modules/floorf-tests (Files): Likewise.
32110         * modules/floorl-tests (Files): Likewise.
32111         * modules/fnmatch-tests (Files): Likewise.
32112         * modules/fopen-tests (Files): Likewise.
32113         * modules/fprintf-posix-tests (Files): Likewise.
32114         * modules/freopen-tests (Files): Likewise.
32115         * modules/frexp-nolibm-tests (Files): Likewise.
32116         * modules/frexp-tests (Files): Likewise.
32117         * modules/frexpl-nolibm-tests (Files): Likewise.
32118         * modules/frexpl-tests (Files): Likewise.
32119         * modules/fseek-tests (Files): Likewise.
32120         * modules/fseeko-tests (Files): Likewise.
32121         * modules/fsync-tests (Files): Likewise.
32122         * modules/ftell-tests (Files): Likewise.
32123         * modules/ftello-tests (Files): Likewise.
32124         * modules/futimens-tests (Files): Likewise.
32125         * modules/getaddrinfo-tests (Files): Likewise.
32126         * modules/getcwd-tests (Files): Likewise.
32127         * modules/getdelim-tests (Files): Likewise.
32128         * modules/getdtablesize-tests (Files): Likewise.
32129         * modules/getgroups-tests (Files): Likewise.
32130         * modules/gethostname-tests (Files): Likewise.
32131         * modules/getline-tests (Files): Likewise.
32132         * modules/getopt-posix-tests (Files): Likewise.
32133         * modules/gettimeofday-tests (Files): Likewise.
32134         * modules/glob-tests (Files): Likewise.
32135         * modules/iconv-tests (Files): Likewise.
32136         * modules/inet_ntop-tests (Files): Likewise.
32137         * modules/inet_pton-tests (Files): Likewise.
32138         * modules/isblank-tests (Files): Likewise.
32139         * modules/lchown-tests (Files): Likewise.
32140         * modules/ldexpl-tests (Files): Likewise.
32141         * modules/link-tests (Files): Likewise.
32142         * modules/linkat-tests (Files): Likewise.
32143         * modules/lseek-tests (Files): Likewise.
32144         * modules/lstat-tests (Files): Likewise.
32145         * modules/mbrtowc-tests (Files): Likewise.
32146         * modules/mbsinit-tests (Files): Likewise.
32147         * modules/mbsnrtowcs-tests (Files): Likewise.
32148         * modules/mbsrtowcs-tests (Files): Likewise.
32149         * modules/memchr-tests (Files): Likewise.
32150         * modules/memcmp-tests (Files): Likewise.
32151         * modules/memmem-tests (Files): Likewise.
32152         * modules/memrchr-tests (Files): Likewise.
32153         * modules/mkdir-tests (Files): Likewise.
32154         * modules/mkfifo-tests (Files): Likewise.
32155         * modules/mkfifoat-tests (Files): Likewise.
32156         * modules/mknod-tests (Files): Likewise.
32157         * modules/nanosleep-tests (Files): Likewise.
32158         * modules/nl_langinfo-tests (Files): Likewise.
32159         * modules/obstack-printf-tests (Files): Likewise.
32160         * modules/open-tests (Files): Likewise.
32161         * modules/openat-tests (Files): Likewise.
32162         * modules/perror-tests (Files): Likewise.
32163         * modules/pipe2-tests (Files): Likewise.
32164         * modules/poll-tests (Files): Likewise.
32165         * modules/popen-tests (Files): Likewise.
32166         * modules/posix_spawn-tests (Files): Likewise.
32167         * modules/posix_spawnp-tests (Files): Likewise.
32168         * modules/pread-tests (Files): Likewise.
32169         * modules/printf-posix-tests (Files): Likewise.
32170         * modules/pty-tests (Files): Likewise.
32171         * modules/random_r-tests (Files): Likewise.
32172         * modules/rawmemchr-tests (Files): Likewise.
32173         * modules/readlink-tests (Files): Likewise.
32174         * modules/remove-tests (Files): Likewise.
32175         * modules/rename-tests (Files): Likewise.
32176         * modules/renameat-tests (Files): Likewise.
32177         * modules/rmdir-tests (Files): Likewise.
32178         * modules/round-tests (Files): Likewise.
32179         * modules/roundf-tests (Files): Likewise.
32180         * modules/roundl-tests (Files): Likewise.
32181         * modules/select-tests (Files): Likewise.
32182         * modules/setenv-tests (Files): Likewise.
32183         * modules/sigaction-tests (Files): Likewise.
32184         * modules/sleep-tests (Files): Likewise.
32185         * modules/snprintf-posix-tests (Files): Likewise.
32186         * modules/snprintf-tests (Files): Likewise.
32187         * modules/sprintf-posix-tests (Files): Likewise.
32188         * modules/stat-tests (Files): Likewise.
32189         * modules/strcasestr-tests (Files): Likewise.
32190         * modules/strchrnul-tests (Files): Likewise.
32191         * modules/strerror-tests (Files): Likewise.
32192         * modules/strsignal-tests (Files): Likewise.
32193         * modules/strstr-tests (Files): Likewise.
32194         * modules/strtod-tests (Files): Likewise.
32195         * modules/strverscmp-tests (Files): Likewise.
32196         * modules/symlink-tests (Files): Likewise.
32197         * modules/symlinkat-tests (Files): Likewise.
32198         * modules/times-tests (Files): Likewise.
32199         * modules/trunc-tests (Files): Likewise.
32200         * modules/truncf-tests (Files): Likewise.
32201         * modules/truncl-tests (Files): Likewise.
32202         * modules/tsearch-tests (Files): Likewise.
32203         * modules/uname-tests (Files): Likewise.
32204         * modules/unlink-tests (Files): Likewise.
32205         * modules/unsetenv-tests (Files): Likewise.
32206         * modules/usleep-tests (Files): Likewise.
32207         * modules/utimensat-tests (Files): Likewise.
32208         * modules/vasprintf-tests (Files): Likewise.
32209         * modules/vdprintf-posix-tests (Files): Likewise.
32210         * modules/vfprintf-posix-tests (Files): Likewise.
32211         * modules/vprintf-posix-tests (Files): Likewise.
32212         * modules/vsnprintf-posix-tests (Files): Likewise.
32213         * modules/vsnprintf-tests (Files): Likewise.
32214         * modules/vsprintf-posix-tests (Files): Likewise.
32215         * modules/wcrtomb-tests (Files): Likewise.
32216         * modules/wcsnrtombs-tests (Files): Likewise.
32217         * modules/wcsrtombs-tests (Files): Likewise.
32218         * modules/wcwidth-tests (Files): Likewise.
32219         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
32220         * tests/test-isinf.c (isinf): Likewise.
32221         * tests/test-isnan.c (isnan): Likewise.
32222         * tests/test-signbit.c (signbit): Likewise.
32223         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
32224         declaration, either as macro or with correct signature.
32225         (select): Ensure function under test is declared with correct
32226         signature in correct header.
32227         * tests/test-atexit.c (atexit): Likewise.
32228         * tests/test-btowc.c (btowc): Likewise.
32229         * tests/test-canonicalize-lgpl.c (realpath)
32230         (canonicalize_file_name): Likewise.
32231         * tests/test-ceilf1.c (ceilf): Likewise.
32232         * tests/test-ceill.c (ceill): Likewise.
32233         * tests/test-chown.c (chown): Likewise.
32234         * tests/test-dprintf-posix.c (dprintf): Likewise.
32235         * tests/test-dup2.c (dup2): Likewise.
32236         * tests/test-dup3.c (dup3): Likewise.
32237         * tests/test-duplocale.c (duplocale): Likewise.
32238         * tests/test-fchdir.c (fchdir): Likewise.
32239         * tests/test-fchownat.c (fchownat): Likewise.
32240         * tests/test-fcntl.c (fcntl): Likewise.
32241         * tests/test-fdopendir.c (fdopendir): Likewise.
32242         * tests/test-fflush.c (fflush): Likewise.
32243         * tests/test-flock.c (flock): Likewise.
32244         * tests/test-floorf1.c (floorf): Likewise.
32245         * tests/test-floorl.c (floorl): Likewise.
32246         * tests/test-fnmatch.c (fnmatch): Likewise.
32247         * tests/test-fopen.c (fopen): Likewise.
32248         * tests/test-fprintf-posix.c (fprintf): Likewise.
32249         * tests/test-freopen.c (freopen): Likewise.
32250         * tests/test-frexp.c (frexp): Likewise.
32251         * tests/test-frexpl.c (frexpl): Likewise.
32252         * tests/test-fseek.c (fseek): Likewise.
32253         * tests/test-fseeko.c (fseeko): Likewise.
32254         * tests/test-fstatat.c (fstatat): Likewise.
32255         * tests/test-fsync.c (fsync): Likewise.
32256         * tests/test-ftell.c (ftell): Likewise.
32257         * tests/test-ftello.c (ftello): Likewise.
32258         * tests/test-futimens.c (futimens): Likewise.
32259         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
32260         (gai_strerror): Likewise.
32261         * tests/test-getcwd.c (getcwd): Likewise.
32262         * tests/test-getdelim.c (getdelim): Likewise.
32263         * tests/test-getdtablesize.c (getdtablesize): Likewise.
32264         * tests/test-getgroups.c (getgroups): Likewise.
32265         * tests/test-gethostname.c (gethostname): Likewise.
32266         * tests/test-getline.c (getline): Likewise.
32267         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
32268         Likewise.
32269         * tests/test-gettimeofday.c (gettimeofday): Likewise.
32270         * tests/test-glob.c (glob, globfree): Likewise.
32271         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
32272         * tests/test-inet_ntop.c (inet_ntop): Likewise.
32273         * tests/test-inet_pton.c (inet_pton): Likewise.
32274         * tests/test-isblank.c (isblank): Likewise.
32275         * tests/test-lchown.c (lchown): Likewise.
32276         * tests/test-ldexpl.c (ldexpl): Likewise.
32277         * tests/test-link.c (link): Likewise.
32278         * tests/test-linkat.c (linkat): Likewise.
32279         * tests/test-lseek.c (lseek): Likewise.
32280         * tests/test-lstat.c (lstat): Likewise.
32281         * tests/test-mbrtowc.c (mbrtowc): Likewise.
32282         * tests/test-mbsinit.c (mbsinit): Likewise.
32283         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
32284         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
32285         * tests/test-memchr.c (memchr): Likewise.
32286         * tests/test-memcmp.c (memcmp): Likewise.
32287         * tests/test-memmem.c (memmem): Likewise.
32288         * tests/test-memrchr.c (memrchr): Likewise.
32289         * tests/test-mkdir.c (mkdir): Likewise.
32290         * tests/test-mkdirat.c (mkdirat): Likewise.
32291         * tests/test-mkfifo.c (mkfifo): Likewise.
32292         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
32293         * tests/test-mknod.c (mknod): Likewise.
32294         * tests/test-nanosleep.c (nanosleep): Likewise.
32295         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
32296         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
32297         Likewise.
32298         * tests/test-open.c (open): Likewise.
32299         * tests/test-openat.c (openat): Likewise.
32300         * tests/test-perror.c (perror): Likewise.
32301         * tests/test-pipe2.c (pipe2): Likewise.
32302         * tests/test-poll.c (poll): Likewise.
32303         * tests/test-popen.c (popen, pclose): Likewise.
32304         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
32305         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
32306         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
32307         (posix_spawn_file_actions_destroy)
32308         (posix_spawn_file_actions_addclose)
32309         (posix_spawn_file_actions_addopen)
32310         (posix_spawn_file_actions_adddup2): Likewise.
32311         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
32312         * tests/test-pread.c (pread): Likewise.
32313         * tests/test-printf-posix.c (printf): Likewise.
32314         * tests/test-pty.c (openpty, forkpty): Likewise.
32315         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
32316         (random_r): Likewise.
32317         * tests/test-rawmemchr.c (rawmemchr): Likewise.
32318         * tests/test-readlink.c (readlink): Likewise.
32319         * tests/test-remove.c (remove): Likewise.
32320         * tests/test-rename.c (rename): Likewise.
32321         * tests/test-renameat.c (renameat): Likewise.
32322         * tests/test-rmdir.c (rmdir): Likewise.
32323         * tests/test-round1.c (round): Likewise.
32324         * tests/test-roundf1.c (roundf): Likewise.
32325         * tests/test-roundl.c (roundl): Likewise.
32326         * tests/test-setenv.c (setenv): Likewise.
32327         * tests/test-sigaction.c (sigaction): Likewise.
32328         * tests/test-sleep.c (sleep): Likewise.
32329         * tests/test-snprintf.c (snprintf): Likewise.
32330         * tests/test-sprintf-posix.c (sprintf): Likewise.
32331         * tests/test-stat.c (stat): Likewise.
32332         * tests/test-stpncpy.c (stpncpy): Likewise.
32333         * tests/test-strcasestr.c (strcasestr): Likewise.
32334         * tests/test-strchrnul.c (strchrnul): Likewise.
32335         * tests/test-strerror.c (strerror): Likewise.
32336         * tests/test-strsignal.c (strsignal): Likewise.
32337         * tests/test-strstr.c (strstr): Likewise.
32338         * tests/test-strtod.c (strtod): Likewise.
32339         * tests/test-strverscmp.c (strverscmp): Likewise.
32340         * tests/test-symlink.c (symlink): Likewise.
32341         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
32342         * tests/test-times.c (times): Likewise.
32343         * tests/test-trunc1.c (trunc): Likewise.
32344         * tests/test-truncf1.c (truncf): Likewise.
32345         * tests/test-truncl.c (truncl): Likewise.
32346         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
32347         Likewise.
32348         * tests/test-uname.c (uname): Likewise.
32349         * tests/test-unlink.c (unlink): Likewise.
32350         * tests/test-unlinkat.c (unlinkat): Likewise.
32351         * tests/test-unsetenv.c (unsetenv): Likewise.
32352         * tests/test-usleep.c (usleep): Likewise.
32353         * tests/test-utimensat.c (utimensat): Likewise.
32354         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
32355         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
32356         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
32357         * tests/test-vprintf-posix.c (vprintf): Likewise.
32358         * tests/test-vsnprintf.c (vsnprintf): Likewise.
32359         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
32360         * tests/test-wcrtomb.c (wcrtomb): Likewise.
32361         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
32362         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
32363         * tests/test-wcwidth.c (wcwidth): Likewise.
32364
32365         build: pull in conditional headers during GNULIB_POSIXCHECK
32366         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
32367         definitions from any conditionally-included headers.
32368         * lib/stdlib.in.h (includes): Likewise.
32369         * lib/unistd.in.h (includes): Likewise.
32370
32371 2009-12-24  Bruno Haible  <bruno@clisp.org>
32372
32373         * tests/test-argv-iter.c: Include header file being tested immediately
32374         after config.h.
32375         * tests/test-base64.c: Likewise.
32376         * tests/test-flock.c: Likewise.
32377         * tests/test-fsync.c: Likewise.
32378         * tests/test-getdate.c: Likewise.
32379         * tests/test-getndelim2.c: Likewise.
32380         * tests/test-isfinite.c: Likewise.
32381         * tests/test-isinf.c: Likewise.
32382         * tests/test-strerror.c: Likewise.
32383         * tests/test-strsignal.c: Likewise.
32384
32385 2009-12-23  Eric Blake  <ebb9@byu.net>
32386
32387         unistd: work around cygwin bug
32388         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
32389         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
32390         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
32391
32392 2009-12-23  Bruno Haible  <bruno@clisp.org>
32393
32394         localename: More tests.
32395         * tests/test-localename.c (SIZEOF): New macro.
32396         (categories): New variable.
32397         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
32398         test_locale_name_default): Add test w.r.t. thread locale.
32399         (test_locale_name_thread): New function.
32400         (main): Invoke it.
32401
32402         localename: Make aware of thread locale.
32403         * lib/localename.h (gl_locale_name_thread): New declaration.
32404         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
32405         behaviour with respect to thread locale.
32406         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
32407         <langinfo.h>, glthread/lock.h.
32408         (SIZE_BITS): New macro.
32409         (string_hash): New function.
32410         (struct hash_node): New type.
32411         (HASH_TABLE_SIZE): New macro.
32412         (struniq_hash_table, struniq_lock): New variables.
32413         (struniq): New function.
32414         (gl_locale_name_thread): New function.
32415         (gl_locale_name): Invoke it.
32416         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
32417         * modules/localename (Depends-on): Add lock.
32418         Reported by Mike Gran <spk121@yahoo.com>.
32419
32420 2009-12-23  Eric Blake  <ebb9@byu.net>
32421
32422         va-args: new module
32423         * modules/va-args: New file.
32424         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
32425         * MODULES.html.sh (Core language properties): Mention it.
32426
32427         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
32428         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
32429         named alias for __attribute__((__unused__)).
32430         * lib/chown.c: Update client.
32431         * lib/fchmodat.c: Likewise.
32432         * lib/fts.c: Likewise.
32433         * lib/getdate.y: Likewise.
32434         * lib/getgroups.c: Likewise.
32435         * lib/getopt.c: Likewise.
32436         * lib/getugroups.c: Likewise.
32437         * lib/mkdir.c: Likewise.
32438         * lib/mkfifo.c: Likewise.
32439         * lib/mkfifoat.c: Likewise.
32440         * lib/mknod.c: Likewise.
32441         * lib/mknodat.c: Likewise.
32442         * lib/readlink.c: Likewise.
32443         * lib/se-context.in.h: Likewise.
32444         * lib/se-selinux.in.h: Likewise.
32445         * lib/sockets.c: Likewise.
32446         * lib/symlink.c: Likewise.
32447         * lib/symlinkat.c: Likewise.
32448         * lib/unicodeio.c: Likewise.
32449         * lib/unistr.h: Likewise.
32450         * tests/test-areadlink.c: Likewise.
32451         * tests/test-areadlinkat.c: Likewise.
32452         * tests/test-filenamecat.c: Likewise.
32453         * tests/test-fseeko.c: Likewise.
32454         * tests/test-ftello.c: Likewise.
32455         * tests/test-getdate.c: Likewise.
32456         * tests/test-getgroups.c: Likewise.
32457         * tests/test-gethostname.c: Likewise.
32458         * tests/test-quotearg.c: Likewise.
32459         * tests/test-version-etc.c: Likewise.
32460         * tests/test-xalloc-die.c: Likewise.
32461         * tests/test-xfprintf-posix.c: Likewise.
32462         * tests/test-xprintf-posix.c: Likewise.
32463         * tests/test-xvasprintf.c: Likewise.
32464
32465         tests: avoid compiler warnings
32466         * tests/test-fcntl.c (main): Delete unused parameters.
32467         * tests/test-freopen-safer.c (main): Likewise.
32468         * tests/test-xalloc-die.c (main): Mark unused parameters.
32469         * tests/test-fseeko.c (main): Likewise.
32470         * tests/test-ftello.c (main): Likewise.
32471         * tests/test-nanosleep.c (main): Avoid declaration warning.
32472         * tests/test-sleep.c (main): Likewise.
32473         * tests/test-unsetenv.c (main): Silence warning about string
32474         literal.
32475         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
32476
32477 2009-12-23  Bruno Haible  <bruno@clisp.org>
32478
32479         * tests/test-localename.c (test_locale_name): New function, extracted
32480         from main. Also test mixed situations.
32481         (test_locale_name_posix, test_locale_name_environ,
32482         test_locale_name_default): New functions.
32483         (main): Invoke them all.
32484         * modules/localename-tests (configure.ac): Test for newlocale.
32485
32486 2009-12-23  Bruno Haible  <bruno@clisp.org>
32487
32488         unistd: Ensure getcwd gets declared before being overridden.
32489         * lib/unistd.in.h: Conditionally include <io.h>.
32490
32491 2009-12-22  Bruno Haible  <bruno@clisp.org>
32492
32493         wchar: Diagnose broken combination of glibc and gcc versions and flags.
32494         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
32495         (gl_WCHAR_H): Invoke it.
32496         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
32497         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
32498         Reported by Karl Berry <karl@freefriends.org>.
32499
32500 2009-12-22  Eric Blake  <ebb9@byu.net>
32501
32502         math, unistd: avoid redundant includes
32503         * lib/math.in.h (isnan): No need to re-include <math.h>.
32504         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
32505
32506         getsubopt: work around cygwin bug
32507         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
32508         avoid conflicting with system getsubopt.
32509         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
32510         bug.
32511
32512         getopt: synchronize from glibc
32513         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
32514         parameter order.  Adjust all callers.
32515         (_getopt_internal_r, main): Adjust quoting in error messages.
32516         Drop considerations for outdated POSIX 1003.2 error message.
32517         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
32518         callers.
32519         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
32520
32521         test-getopt: test stderr behavior
32522         * modules/getopt-posix-tests (Depends-on): Add dup2.
32523         * tests/test-getopt.c (ASSERT): Avoid stderr.
32524         (main): Move stderr to a temporary file.
32525         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
32526         Instead, add parameter to inform caller if output occurred.
32527         (test_getopt): Adjust all existing tests to expect silence, and
32528         add new tests of leading ":".
32529         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
32530         glibc shortcomings with leading "-:" or "+:" in optstring.
32531         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32532         Likewise.
32533         * doc/posix-functions/getopt.texi (getopt): Likewise.
32534
32535         test-getopt: enhance test
32536         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
32537         supports optind=0.
32538         * tests/test-getopt.c (OPTIND_MIN): Move...
32539         * tests/test-getopt.h (OPTIND_MIN): ...here.
32540         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
32541         Require that optind=0 works, since modern BSD supports it in
32542         addition to optreset, and since coreutils expects it.
32543         (test_getopt_long_only): New test.
32544         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
32545         glibc shortcomings with 'W;', and enforcement of optind=0.
32546         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32547         Likewise.
32548
32549 2009-12-21  Bruno Haible  <bruno@clisp.org>
32550
32551         localename: Improvements for MacOS X and Cygwin.
32552         * lib/localename.h (gl_locale_name_environ): New declaration.
32553         * lib/localename.c (gl_locale_name_environ): New function, extracted from
32554         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
32555         (gl_locale_name_posix): Invoke it.
32556         (gl_locale_name_default): Add comments. Use Windows native API also on
32557         Cygwin.
32558
32559 2009-12-21  Bruno Haible  <bruno@clisp.org>
32560
32561         Update list of Win32 locale ids.
32562         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
32563         (LANG_SAMI): Renamed from LANG_SAAMI.
32564         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
32565         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
32566         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
32567         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
32568         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
32569         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
32570         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
32571         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
32572         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
32573         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
32574         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
32575         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
32576         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
32577         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
32578         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
32579         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
32580         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
32581         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
32582         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
32583         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
32584         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
32585         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
32586         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
32587         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
32588         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
32589         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
32590         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
32591         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
32592         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
32593         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
32594         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
32595         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
32596         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
32597         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
32598         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
32599         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
32600         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
32601         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
32602         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
32603         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
32604         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
32605         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
32606         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
32607         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
32608         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
32609         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
32610         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
32611         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
32612         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
32613         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
32614         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
32615         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
32616         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
32617         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
32618         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
32619         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
32620         Add more languages and countries for Sami, Sorbian. Add more countries
32621         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
32622         for Pashto. Change country for Syriac, Tswana.
32623
32624 2009-12-21  Eric Blake  <ebb9@byu.net>
32625
32626         test-utimens: avoid spurious failure
32627         * tests/test-chown.h (nap): Factor...
32628         * tests/nap.h: ...into new file.
32629         * tests/test-lchown.h (nap): Avoid duplication.
32630         * tests/test-utimens-common.h (nap): Use shared implementation,
32631         necessary on file systems with 1-second resolution.
32632         * modules/chown-tests (Files): Include new file.
32633         * modules/fdutimensat-tests (Files): Likewise.
32634         * modules/futimens-tests (Files): Likewise.
32635         * modules/lchown-tests (Files): Likewise.
32636         * modules/openat-tests (Files): Likewise.
32637         * modules/utimens-tests (Files): Likewise.
32638         * modules/utimensat-tests (Files): Likewise.
32639
32640 2009-12-19  Eric Blake  <ebb9@byu.net>
32641
32642         futimens, utimensat: work around Linux bug
32643         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
32644         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
32645         * lib/utimensat.c (rpl_utimensat): Work around it.
32646         * lib/futimens.c (rpl_futimens): Adjust comment.
32647
32648         utimens: work around Linux ctime bug
32649         * lib/utimens.c (detect_ctime_bug): New helper function.
32650         (update_timespec): Differentiate between workaround needed for
32651         this bug vs. what is needed for systems that lack utimensat.
32652         (fdutimens, lutimens): Work around bug.
32653
32654         utimens: check for ctime update
32655         * tests/test-utimens-common.h (check_ctime): Define.
32656         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
32657         * tests/test-futimens.h (test_futimens): Likewise.
32658         * tests/test-lutimens.h (test_lutimens): Likewise.
32659         * doc/posix-functions/futimens.texi (futimens): Document the bug.
32660         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
32661
32662 2009-12-19  Bruno Haible  <bruno@clisp.org>
32663
32664         dprintf-posix: Check against memory leak fixed on 2009-12-15.
32665         * tests/test-dprintf-posix2.sh: New file.
32666         * tests/test-dprintf-posix2.c: New file.
32667         * modules/dprintf-posix-tests (Files): Add them.
32668         (configure.ac): Check for getrlimit and setrlimit.
32669         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
32670
32671 2009-12-19  Bruno Haible  <bruno@clisp.org>
32672
32673         fprintf-posix: Check against memory leak fixed on 2009-12-15.
32674         * tests/test-fprintf-posix3.sh: New file.
32675         * tests/test-fprintf-posix3.c: New file.
32676         * modules/fprintf-posix-tests (Files): Add them.
32677         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
32678
32679 2009-12-19  Eric Blake  <ebb9@byu.net>
32680
32681         dirfd: fix prototype
32682         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
32683         * lib/dirfd.c (dirfd): Likewise.
32684
32685         canonicalize: reduce memory usage
32686         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
32687         allocation to size.
32688         Reported by Solar Designer <solar@openwall.com>.
32689
32690 2009-12-19  Bruno Haible  <bruno@clisp.org>
32691
32692         New module attribute 'Applicability'.
32693         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
32694         * gnulib-tool: New option --extract-applicability.
32695         (func_usage): Document it.
32696         (sed_extract_prog): Recognize it.
32697         (func_get_applicability): New function.
32698         (func_import): Generalize handling of 'link-warning' module.
32699         * modules/link-warning (Applicability): New section.
32700         * modules/arg-nonnull (Applicability): New section.
32701         Repoted by Simon Josefsson <simon@josefsson.org>.
32702
32703 2009-12-19  Bruno Haible  <bruno@clisp.org>
32704
32705         fflush: tweak
32706         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
32707         * lib/fseeko.c (rpl_fseeko): Likewise.
32708
32709 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
32710
32711         * lib/gl_list.h: Fix typo in comment.
32712
32713 2009-12-16  Eric Blake  <ebb9@byu.net>
32714
32715         fcntl: use to simplify other modules
32716         * modules/cloexec (Depends-on): Add fcntl.
32717         * modules/fchdir (Depends-on): Likewise.
32718         * modules/fd-safer-flag (Depends-on): Likewise.
32719         * modules/unistd-safer (Depends-on): Likewise.
32720         * modules/dup3 (configure.ac): Set module indicator.
32721         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
32722         missing.
32723         * lib/fchdir.c (_gl_register_dup): Fix comment.
32724         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
32725         * lib/dup-safer.c (dup_safer): Likewise.
32726         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
32727         * lib/dup3.c (dup3): Likewise.
32728         * tests/test-fchdir.c (main): Enhance test.
32729         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
32730
32731         fcntl: port portions of fcntl to mingw
32732         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
32733         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
32734         replacement for mingw.
32735         * modules/fcntl (Description): Update.
32736         (Depends-on): Add dup2.
32737         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
32738         * modules/fcntl-h (Makefile.am): Substitute it.
32739         * lib/fcntl.in.h (fcntl): Update declaration.
32740         (F_DUPFD, F_GETFD): New macros, when needed.
32741         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32742         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
32743         * tests/test-fcntl.c (check_flags, main): Enhance test for items
32744         we now guarantee.
32745
32746         fcntl: work around cygwin bug in F_DUPFD
32747         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
32748         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
32749         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
32750         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
32751         * doc/posix-functions/fcntl.texi (fcntl): Document it.
32752
32753         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
32754         * modules/fcntl (Files): List new files.
32755         (configure.ac): Run a test.
32756         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
32757         * lib/fcntl.c (rpl_fcntl): Likewise.
32758         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
32759         (gl_FCNTL_H): Always replace fcntl.h.
32760         * modules/fcntl-h (Makefile.am): Substitute witnesses.
32761         * lib/fcntl.in.h (fcntl): Declare replacement.
32762         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
32763         needed, plus a witness.
32764         * doc/posix-functions/fcntl.texi (fcntl): Document this.
32765         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
32766         * tests/test-fcntl.c: New file.
32767         * modules/fcntl-tests: Likewise.
32768
32769         binary-io: avoid potential compilation warning
32770         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
32771         directives.
32772
32773         fflush: avoid compilation error on NetBSD
32774         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
32775         between off_t and fpos_t, since the latter is sometimes a struct.
32776         * lib/fseeko.c (rpl_fseeko): Likewise.
32777         Reported by Alexander Nasonov <alnsn@yandex.ru>.
32778
32779 2009-12-15  Eric Blake  <ebb9@byu.net>
32780
32781         fcntl-h, stdio, sys_ioctl: fix declarations
32782         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
32783         function must not take arguments.
32784         * lib/sys_ioctl.in.h (ioctl): Likewise.
32785         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
32786         (open): Add a link warning.
32787
32788 2009-12-15  Jim Meyering  <meyering@redhat.com>
32789
32790         areadlink, areadlink-with-size: relax license to LGPLv2+
32791         * modules/areadlink (License): Relax to LGPLv2+.
32792         * modules/areadlink-with-size (License): Likewise.
32793
32794 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
32795             Bruno Haible  <bruno@clisp.org>
32796
32797         *printf: Fix memory leak.
32798         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
32799         * lib/vfprintf.c (vfprintf): Likewise.
32800         * lib/dprintf.c (dprintf): Likewise.
32801         * lib/vdprintf.c (vdprintf): Likewise.
32802
32803 2009-12-14  Eric Blake  <ebb9@byu.net>
32804
32805         accept4: adjust module dependencies
32806         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
32807
32808         utimens: one more try at avoiding compiler warning
32809         * lib/utimens.c (lutimens): Lower scope of result.
32810
32811 2009-12-13  Bruno Haible  <bruno@clisp.org>
32812
32813         Move the malloc checking from module 'list' to new module 'xlist'.
32814         * modules/xlist: New file.
32815         * lib/gl_xlist.h: New file.
32816         * lib/gl_xlist.c: New file.
32817         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
32818         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
32819         gl_list_add_last, gl_list_add_before, gl_list_add_after,
32820         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
32821         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
32822         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
32823         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
32824         gl_sortedlist_nx_add): New declarations.
32825         (struct gl_list_implementation): Rename and change methods accordingly.
32826         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
32827         (gl_list_nx_create): Renamed from gl_list_create.
32828         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
32829         (gl_list_nx_set_at): Renamed from gl_list_set_at.
32830         (gl_list_nx_add_first): Renamed from gl_list_add_first.
32831         (gl_list_nx_add_last): Renamed from gl_list_add_last.
32832         (gl_list_nx_add_before): Renamed from gl_list_add_before.
32833         (gl_list_nx_add_after): Renamed from gl_list_add_after.
32834         (gl_list_nx_add_at): Renamed from gl_list_add_at.
32835         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
32836         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
32837         gl_list_create_empty.
32838         (gl_list_nx_create): Renamed from gl_list_create.
32839         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
32840         (gl_list_nx_set_at): Renamed from gl_list_set_at.
32841         (gl_list_nx_add_first): Renamed from gl_list_add_first.
32842         (gl_list_nx_add_last): Renamed from gl_list_add_last.
32843         (gl_list_nx_add_before): Renamed from gl_list_add_before.
32844         (gl_list_nx_add_after): Renamed from gl_list_add_after.
32845         (gl_list_nx_add_at): Renamed from gl_list_add_at.
32846         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
32847         * lib/gl_array_list.c: Don't include xalloc.h.
32848         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
32849         NULL upon out-of-memory.
32850         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
32851         out-of-memory.
32852         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
32853         Change return type to 'int'.
32854         (gl_array_nx_set_at): Renamed from gl_array_set_at.
32855         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
32856         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
32857         upon out-of-memory.
32858         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
32859         upon out-of-memory.
32860         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
32861         upon out-of-memory.
32862         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
32863         upon out-of-memory.
32864         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
32865         out-of-memory.
32866         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
32867         Update.
32868         (gl_array_list_implementation): Update.
32869         * lib/gl_carray_list.c: Don't include xalloc.h.
32870         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
32871         Return NULL upon out-of-memory.
32872         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
32873         out-of-memory.
32874         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
32875         Change return type to 'int'.
32876         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
32877         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
32878         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
32879         upon out-of-memory.
32880         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
32881         upon out-of-memory.
32882         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
32883         out-of-memory.
32884         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
32885         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
32886         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
32887         Update.
32888         (gl_carray_list_implementation): Update.
32889         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
32890         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
32891         gl_linked_create_empty. Return NULL upon out-of-memory.
32892         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
32893         out-of-memory.
32894         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
32895         Change return type to 'int'. Return -1 upon out-of-memory.
32896         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
32897         out-of-memory.
32898         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
32899         upon out-of-memory.
32900         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
32901         upon out-of-memory.
32902         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
32903         NULL upon out-of-memory.
32904         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
32905         upon out-of-memory.
32906         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
32907         out-of-memory.
32908         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
32909         Update.
32910         * lib/gl_linked_list.c: Don't include xalloc.h.
32911         (gl_linked_list_implementation): Update.
32912         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
32913         (add_to_bucket): Change return type to 'int'.
32914         (gl_linkedhash_list_implementation): Update.
32915         * lib/gl_anytree_list1.h (free_subtree): New function.
32916         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
32917         gl_tree_create_empty. Return NULL upon out-of-memory.
32918         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
32919         Change return type to 'int'. Return -1 upon out-of-memory.
32920         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
32921         out-of-memory.
32922         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
32923         (gl_tree_remove_node): New function, moved here from
32924         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
32925         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
32926         Update.
32927         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
32928         malloc, not xmalloc. Return NULL upon out-of-memory.
32929         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
32930         out-of-memory.
32931         (gl_tree_remove_node_from_tree): New function, extracted from
32932         gl_tree_remove_node.
32933         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
32934         upon out-of-memory.
32935         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
32936         out-of-memory.
32937         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
32938         upon out-of-memory.
32939         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
32940         upon out-of-memory.
32941         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
32942         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
32943         not xmalloc. Return NULL upon out-of-memory.
32944         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
32945         out-of-memory.
32946         (gl_tree_remove_node_from_tree): New function, extracted from
32947         gl_tree_remove_node.
32948         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
32949         upon out-of-memory.
32950         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
32951         out-of-memory.
32952         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
32953         upon out-of-memory.
32954         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
32955         upon out-of-memory.
32956         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
32957         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
32958         gl_anytree_list1.h before gl_anyavltree_list2.h.
32959         (gl_avltree_list_implementation): Update.
32960         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
32961         gl_anytree_list1.h before gl_anyavltree_list2.h.
32962         (gl_rbtree_list_implementation): Update.
32963         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
32964         Change return type to 'int'. Return -1 upon out-of-memory. Use
32965         __builtin_expect.
32966         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
32967         (gl_avltreehash_list_implementation): Update.
32968         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
32969         (gl_rbtreehash_list_implementation): Update.
32970         * modules/array-list (Depends-on): Remove xalloc.
32971         * modules/carray-list (Depends-on): Likewise.
32972         * modules/linked-list (Depends-on): Likewise.
32973         * modules/linkedhash-list (Depends-on): Likewise.
32974         * modules/avltree-list (Depends-on): Likewise.
32975         * modules/rbtree-list (Depends-on): Likewise.
32976         * modules/avltreehash-list (Depends-on): Likewise.
32977         * modules/rbtreehash-list (Depends-on): Likewise.
32978
32979         * modules/xsublist: New file.
32980         * lib/gl_xsublist.h: New file.
32981         * lib/gl_xsublist.c: New file.
32982         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
32983         (gl_sublist_nx_create): New declaration.
32984         * lib/gl_sublist.c: Don't include xalloc.h.
32985         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
32986         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
32987         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
32988         Change return type to 'int'. Return -1 upon out-of-memory.
32989         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
32990         upon out-of-memory.
32991         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
32992         NULL upon out-of-memory.
32993         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
32994         upon out-of-memory.
32995         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
32996         NULL upon out-of-memory.
32997         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
32998         NULL upon out-of-memory.
32999         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
33000         upon out-of-memory.
33001         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
33002         (gl_sublist_list_implementation): Update.
33003         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
33004         upon out-of-memory.
33005         * modules/sublist (Depends-on): Remove xalloc.
33006
33007         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
33008         * tests/test-carray_list.c: Likewise.
33009         * tests/test-linked_list.c: Likewise.
33010         * tests/test-linkedhash_list.c: Likewise.
33011         * tests/test-avltree_list.c: Likewise.
33012         * tests/test-rbtree_list.c: Likewise.
33013         * tests/test-avltreehash_list.c: Likewise.
33014         * tests/test-rbtreehash_list.c: Likewise.
33015         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
33016         * modules/carray-list-tests (Makefile.am): Likewise.
33017         * modules/linked-list-tests (Makefile.am): Likewise.
33018         * modules/linkedhash-list-tests (Makefile.am): Likewise.
33019         * modules/avltree-list-tests (Makefile.am): Likewise.
33020         * modules/rbtree-list-tests (Makefile.am): Likewise.
33021         * modules/avltreehash-list-tests (Makefile.am): Likewise.
33022         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
33023
33024         * NEWS: Mention the changes.
33025
33026         * lib/clean-temp.c: Include gl_xlist.h.
33027         * modules/clean-temp (Depends-on): Add xlist.
33028
33029         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
33030         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
33031
33032         * tests/test-array_oset.c: Include gl_xlist.h.
33033         * modules/array-oset-tests (Depends-on): Add xlist.
33034
33035         Reported by José E. Marchesi <jemarch@gnu.org>.
33036
33037 2009-12-13  Bruno Haible  <bruno@clisp.org>
33038
33039         Move the malloc checking from module 'oset' to new module 'xoset'.
33040         * modules/xoset: New file.
33041         * lib/gl_xoset.h: New file.
33042         * lib/gl_xoset.c: New file.
33043         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
33044         declarations.
33045         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
33046         (struct gl_oset_implementation): Rename and change methods accordingly.
33047         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
33048         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
33049         'int'. Mark as __warn_unused_result__.
33050         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
33051         gl_oset_create_empty.
33052         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
33053         'int'.
33054         * lib/gl_array_oset.c: Don't include xalloc.h.
33055         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
33056         malloc, not xmalloc.
33057         (grow): Change return type to 'int'. Don't call xalloc_die.
33058         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
33059         to 'int'.
33060         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
33061         'int'.
33062         (gl_array_oset_implementation): Update.
33063         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
33064         gl_tree_create_empty.
33065         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
33066         'int'.
33067         * lib/gl_avltree_oset.c: Don't include xalloc.h.
33068         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
33069         xmalloc.
33070         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
33071         not xmalloc.
33072         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
33073         xmalloc.
33074         (gl_avltree_oset_implementation): Update.
33075         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
33076         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
33077         xmalloc.
33078         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
33079         not xmalloc.
33080         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
33081         xmalloc.
33082         (gl_rbtree_oset_implementation): Update.
33083         * modules/array-oset (Depends-on): Remove xalloc.
33084         * modules/avltree-oset (Depends-on): Likewise.
33085         * modules/rbtree-oset (Depends-on): Likewise.
33086         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
33087         * tests/test-avltree_oset.c: Likewise.
33088         * tests/test-rbtree_oset.c: Likewise.
33089         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
33090         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
33091         * modules/rbtree-oset-tests (Makefile.am): Likewise.
33092         * NEWS: Mention the change.
33093
33094 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
33095
33096         maint.mk: allow a project to override release-prep commands
33097         * top/maint.mk (alpha, beta, stable): Move release-preparatory
33098         commands into a new rule.
33099         (release-prep): New rule.
33100         (release-prep-hook): New overridable variable.
33101
33102 2009-12-13  Bruno Haible  <bruno@clisp.org>
33103
33104         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
33105
33106 2009-12-13  Jim Meyering  <meyering@redhat.com>
33107
33108         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
33109         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
33110
33111 2009-12-12  Bruno Haible  <bruno@clisp.org>
33112
33113         duplocale: Tweak.
33114         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
33115
33116 2009-12-12  Karl Berry  <karl@gnu.org>
33117
33118         * config/srclist.txt (strtoll.c): tab changes, no more sync.
33119
33120 2009-12-12  Bruno Haible  <bruno@clisp.org>
33121
33122         * m4/po.m4: Undo incorrect untabification.
33123
33124 2009-12-12  Bruno Haible  <bruno@clisp.org>
33125
33126         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
33127         * modules/c-strtod (Depends-on): Add locale.
33128         * modules/c-strtold (Depends-on): Likewise.
33129
33130 2009-12-12  Bruno Haible  <bruno@clisp.org>
33131
33132         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
33133
33134 2009-12-11  Eric Blake  <ebb9@byu.net>
33135
33136         setenv: relax requirement in light of POSIX ruling
33137         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
33138         not NULL.
33139         * tests/test-setenv.c (main): Relax test.
33140         * tests/test-unsetenv.c (main): Likewise.
33141         * doc/posix-functions/setenv.texi (setenv): Document this.
33142         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
33143
33144 2009-12-11  Bruno Haible  <bruno@clisp.org>
33145
33146         New module 'fd-safer-flag'.
33147         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
33148         * lib/dup-safer.c (dup_safer_flag): Remove function.
33149         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
33150         * lib/fd-safer.c (fd_safer_flag): Remove function.
33151         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
33152         * modules/cloexec (configure.ac): Drop indicator macro.
33153         * modules/fd-safer-flag: New file.
33154         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
33155         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
33156         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
33157
33158 2009-12-11  Bruno Haible  <bruno@clisp.org>
33159
33160         Tests for module 'nl_langinfo'.
33161         * modules/nl_langinfo-tests: New file.
33162         * tests/test-nl_langinfo.sh: New file.
33163         * tests/test-nl_langinfo.c: New file.
33164
33165         New module 'nl_langinfo'.
33166         * lib/nl_langinfo.c: New file.
33167         * m4/nl_langinfo.m4: New file.
33168         * modules/nl_langinfo: New file.
33169         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
33170
33171 2009-12-11  Bruno Haible  <bruno@clisp.org>
33172
33173         Tests for module 'langinfo'.
33174         * modules/langinfo-tests: New file.
33175         * tests/test-langinfo.c: New file.
33176
33177         New module 'langinfo'.
33178         * lib/langinfo.in.h: New file.
33179         * m4/langinfo_h.m4: New file.
33180         * modules/langinfo: New file.
33181         * doc/posix-headers/langinfo.texi: Mention the new module.
33182
33183 2009-12-11  Bruno Haible  <bruno@clisp.org>
33184
33185         * lib/config.charset: Untabify.
33186
33187 2009-12-11  Bruno Haible  <bruno@clisp.org>
33188
33189         * modules/unistd-safer (configure.ac): Drop indicator macro.
33190
33191 2009-12-11  Bruno Haible  <bruno@clisp.org>
33192
33193         Move pipe2-safer code to its own file.
33194         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
33195         * lib/pipe-safer.c (pipe2_safer): Remove function.
33196         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
33197         (Makefile.am): Add it to lib_SOURCES.
33198
33199 2009-12-10  Bruno Haible  <bruno@clisp.org>
33200
33201         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
33202
33203 2009-12-10  Bruno Haible  <bruno@clisp.org>
33204
33205         Declare which arguments expect non-NULL values, for GCC and clang.
33206         * build-aux/arg-nonnull.h: New file.
33207         * modules/arg-nonnull: New file.
33208         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
33209         (inet_ntop, inet_pton): Use it.
33210         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
33211         (closedir, dirfd, opendir, scandir, alphasort): Use it.
33212         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
33213         (open, openat): Use it.
33214         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
33215         (fnmatch): Use it.
33216         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
33217         (getopt, getopt_long, getopt_long_only): Use it.
33218         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
33219         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
33220         Use it.
33221         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
33222         (iconv_open): Use it.
33223         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
33224         (strtoimax, strtoumax): Use it.
33225         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
33226         (duplocale): Use it.
33227         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
33228         (frexp, frexpl): Use it.
33229         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
33230         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
33231         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
33232         (tsearch, tfind, tdelete, twalk): Use it.
33233         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
33234         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
33235         sigpending): Use it.
33236         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
33237         (posix_spawn, posix_spawnp, posix_spawnattr_init,
33238         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
33239         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
33240         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
33241         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
33242         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
33243         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
33244         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
33245         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
33246         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
33247         Use it.
33248         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
33249         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
33250         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
33251         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
33252         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
33253         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
33254         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
33255         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
33256         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
33257         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
33258         strtoull, unsetenv): Use it.
33259         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
33260         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
33261         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
33262         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
33263         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
33264         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
33265         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
33266         (strcasecmp, strncasecmp): Use it.
33267         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
33268         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
33269         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
33270         rpl_setsockopt): Use it.
33271         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
33272         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
33273         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
33274         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
33275         (gettimeofday): Use it.
33276         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
33277         (times): Use it.
33278         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
33279         (uname): Use it.
33280         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
33281         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
33282         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
33283         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
33284         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
33285         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
33286         unlinkat, write): Use it.
33287         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
33288         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
33289         * lib/argv-iter.h: Include arg-nonnull.h.
33290         (_ATTRIBUTE_NONNULL_): Remove macro.
33291         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
33292         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
33293         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
33294         optimization.
33295         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
33296         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
33297         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
33298         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
33299         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
33300         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
33301         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
33302         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
33303         * modules/arpa_inet (Depends-on): Add arg-nonnull.
33304         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
33305         * modules/dirent (Depends-on): Add arg-nonnull.
33306         (Makefile.am): Insert arg-nonnull.h into dirent.h.
33307         * modules/fcntl-h (Depends-on): Add arg-nonnull.
33308         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
33309         * modules/fnmatch (Depends-on): Add arg-nonnull.
33310         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
33311         * modules/getopt-posix (Depends-on): Add arg-nonnull.
33312         (Makefile.am): Insert arg-nonnull.h into getopt.h.
33313         * modules/glob (Depends-on): Add arg-nonnull.
33314         (Makefile.am): Insert arg-nonnull.h into glob.h.
33315         * modules/iconv_open (Depends-on): Add arg-nonnull.
33316         (Makefile.am): Insert arg-nonnull.h into iconv.h.
33317         * modules/inttypes (Depends-on): Add arg-nonnull.
33318         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
33319         * modules/locale (Depends-on): Add arg-nonnull.
33320         (Makefile.am): Insert arg-nonnull.h into locale.h.
33321         * modules/math (Depends-on): Add arg-nonnull.
33322         (Makefile.am): Insert arg-nonnull.h into math.h.
33323         * modules/netdb (Depends-on): Add arg-nonnull.
33324         (Makefile.am): Insert arg-nonnull.h into netdb.h.
33325         * modules/search (Depends-on): Add arg-nonnull.
33326         (Makefile.am): Insert arg-nonnull.h into search.h.
33327         * modules/signal (Depends-on): Add arg-nonnull.
33328         (Makefile.am): Insert arg-nonnull.h into signal.h.
33329         * modules/spawn (Depends-on): Add arg-nonnull.
33330         (Makefile.am): Insert arg-nonnull.h into spawn.h.
33331         * modules/stdio (Depends-on): Add arg-nonnull.
33332         (Makefile.am): Insert arg-nonnull.h into stdio.h.
33333         * modules/stdlib (Depends-on): Add arg-nonnull.
33334         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
33335         * modules/string (Depends-on): Add arg-nonnull.
33336         (Makefile.am): Insert arg-nonnull.h into string.h.
33337         * modules/strings (Depends-on): Add arg-nonnull.
33338         (Makefile.am): Insert arg-nonnull.h into strings.h.
33339         * modules/sys_socket (Depends-on): Add arg-nonnull.
33340         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
33341         * modules/sys_stat (Depends-on): Add arg-nonnull.
33342         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
33343         * modules/sys_time (Depends-on): Add arg-nonnull.
33344         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
33345         * modules/sys_times (Depends-on): Add arg-nonnull.
33346         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
33347         * modules/sys_utsname (Depends-on): Add arg-nonnull.
33348         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
33349         * modules/time (Depends-on): Add arg-nonnull.
33350         (Makefile.am): Insert arg-nonnull.h into time.h.
33351         * modules/unistd (Depends-on): Add arg-nonnull.
33352         (Makefile.am): Insert arg-nonnull.h into unistd.h.
33353         * modules/wchar (Depends-on): Add arg-nonnull.
33354         (Makefile.am): Insert arg-nonnull.h into wchar.h.
33355         * modules/argv-iter (Depends-on): Add arg-nonnull.
33356         * tests/test-canonicalize.c (null_ptr): New function.
33357         (main): Use it.
33358         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
33359         (main): Use it.
33360         * tests/test-memmem.c (null_ptr): New function.
33361         (main): Use it.
33362         Reported by Jim Meyering.
33363
33364 2009-12-10  Bruno Haible  <bruno@clisp.org>
33365
33366         Use spaces for indentation, not tabs.
33367         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
33368         * m4/*.m4: Untabify.
33369         * build-aux/*.h: Untabify.
33370         * tests/**/*.[hc]: Untabify.
33371         * README: New section "Indent with spaces, not TABs", based on
33372         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
33373         * NEWS: Mention the change.
33374
33375 2009-12-10  Bruno Haible  <bruno@clisp.org>
33376
33377         pty test: Fix link error.
33378         * modules/pty-tests (Makefile.am): Add the default LDADD value to
33379         test_pty_LDADD.
33380
33381 2009-12-07  Simon Josefsson  <simon@josefsson.org>
33382
33383         * modules/pty: New file.
33384         * modules/pty-tests: New file.
33385         * m4/pty.m4: New file.
33386         * tests/test-pty.c: New file.
33387         * doc/glibc-headers/pty.texi: Modified.
33388         * doc/glibc-functions/forkpty.texi: Modified.
33389         * doc/glibc-functions/openpty.texi: Modified.
33390
33391 2009-12-10  Bruno Haible  <bruno@clisp.org>
33392
33393         Avoid syntax error in C++ mode.
33394         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
33395
33396 2009-12-10  Bruno Haible  <bruno@clisp.org>
33397
33398         Use sed with option -e.
33399         * gnulib-tool (func_version, func_emit_copyright_notice,
33400         func_emit_initmacro_end, func_import, func_create_testdir): Pass
33401         option -e to sed.
33402         * modules/link-warning (Makefile.am): Likewise.
33403
33404 2009-12-10  Jim Meyering  <meyering@redhat.com>
33405
33406         mgetgroups: do not write bytes beyond end of malloc'd buffer
33407         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
33408         username, we call getgroups with a one-element-shorter buffer,
33409         but still told it the length was original, max_n_groups.
33410
33411 2009-12-09  Eric Blake  <ebb9@byu.net>
33412
33413         cloexec: relax license
33414         * modules/cloexec (Maintainer): Add myself.
33415         (License): Use LGPL, not GPL.
33416
33417         link-warning: optimize generation
33418         * modules/link-warning (Makefile.am): Reduce process usage.
33419
33420 2009-12-09  Bruno Haible  <bruno@clisp.org>
33421
33422         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
33423         workaround was added on 2009-11-17.
33424
33425 2009-12-09  Jim Meyering  <meyering@redhat.com>
33426             Bruno Haible  <bruno@clisp.org>
33427
33428         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
33429         * modules/link-warning (Makefile.am): Make the comment-removing sed
33430         command more robust in the face of bootstrap-prepended comment lines.
33431
33432 2009-12-09  Bruno Haible  <bruno@clisp.org>
33433
33434         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
33435         most one group.
33436
33437 2009-12-09  Simon Josefsson <simon@josefsson.org>
33438             Bruno Haible  <bruno@clisp.org>
33439
33440         * build-aux/link-warning.h: Add copyright notice.
33441         * modules/link-warning (Makefile.am): Generate link-warning.h from
33442         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
33443         * NEWS: Mention change in link-warning module.
33444         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
33445         * modules/dirent (Makefile.am): Add dependency to dirent.h.
33446         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
33447         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
33448         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
33449         * modules/math (Makefile.am): Add dependency to math.h.
33450         * modules/search (Makefile.am): Add dependency to search.h.
33451         * modules/signal (Makefile.am): Add dependency to signal.h.
33452         * modules/spawn (Makefile.am): Add dependency to spawn.h.
33453         * modules/stdio (Makefile.am): Add dependency to stdio.h.
33454         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
33455         * modules/string (Makefile.am): Add dependency to string.h.
33456         * modules/strings (Makefile.am): Add dependency to strings.h.
33457         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
33458         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
33459         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
33460         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
33461         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
33462         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
33463         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
33464         * modules/unistd (Makefile.am): Add dependency to unistd.h.
33465         * modules/wchar (Makefile.am): Add dependency to wchar.h.
33466
33467 2009-12-09  Bruno Haible  <bruno@clisp.org>
33468
33469         fchdir: Optimize away rpl_fstat when possible.
33470         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
33471         REPLACE_OPEN_DIRECTORY.
33472         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
33473
33474 2009-12-09  Bruno Haible  <bruno@clisp.org>
33475
33476         * lib/fchdir.c: Update comment.
33477
33478 2009-12-09  Bruno Haible  <bruno@clisp.org>
33479
33480         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
33481
33482 2009-12-08  Eric Blake  <ebb9@byu.net>
33483
33484         fchdir: avoid memory leak on re-registration.
33485         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
33486
33487 2009-12-08  Jim Meyering  <meyering@redhat.com>
33488
33489         init.sh: avoid Solaris 10 /bin/sh portability problem
33490         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
33491         sourced script:
33492           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
33493           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
33494           bar
33495         tests/init.sh relied on that, accepting a --set-path=DIR argument,
33496         and two tests used that idiom.
33497         * tests/init.sh: Update suggested usage comments.
33498         (path_prepend_): New function, to be used in place
33499         of the --src-path=DIR option.
33500         (setup_): Move PATH-prepending code into path_prepend_.
33501         * tests/test-pread.sh: Adapt to new usage.
33502         * tests/test-xalloc-die.sh: Likewise.
33503
33504 2009-12-08  Simon Josefsson  <simon@josefsson.org>
33505
33506         * doc/gnulib.texi (Glibc pty.h): Add.
33507         * doc/glibc-functions/forkpty.texi: Add.
33508         * doc/glibc-functions/openpty.texi: Add.
33509         Suggested by Bruno Haible.
33510
33511 2009-12-08  Eric Blake  <ebb9@byu.net>
33512
33513         fchdir: fix logic bugs
33514         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
33515         * tests/test-fchdir.c (main): Enhance test.
33516         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
33517         is in use.
33518
33519         dup2: fix logic bugs
33520         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
33521         REPLACE_DUP2 to decide when rpl_dup2 is needed.
33522         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
33523         exists.
33524         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
33525
33526 2009-12-07  Eric Blake  <ebb9@byu.net>
33527
33528         unlink: fix m4 detection
33529         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
33530
33531         unistd-safer: add unit test
33532         * modules/unistd-safer-tests: New file.
33533         * tests/test-dup-safer.c: Likewise.
33534         * tests/test-cloexec.c (setmode): Avoid compiler warning.
33535         * tests/test-dup2.c (setmode): Likewise.
33536         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
33537
33538         cloexec: preserve text vs. binary across dup_cloexec
33539         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
33540         mode.
33541         * modules/dup2-tests (Depends-on): Add binary-io.
33542         * modules/cloexec-tests (Depends-on): Likewise.
33543         * tests/test-dup2.c (setmode, is_mode): New helpers.
33544         (main): Add tests that translation mode is preserved.
33545         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
33546         Reported by Bruno Haible.
33547
33548         mgetgroups: reduce duplicate listings
33549         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
33550         resulting array.
33551         * tests/test-chown.h (test_chown): Simplify client.
33552         * tests/test-lchown.h (test_lchown): Likewise.
33553
33554 2009-12-06  Bruno Haible  <bruno@clisp.org>
33555
33556         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
33557         value.
33558
33559 2009-12-06  Bruno Haible  <bruno@clisp.org>
33560
33561         * lib/progname.c: Include stdio.h, stdlib.h.
33562         (set_program_name): Reject a NULL argument.
33563
33564 2009-12-05  Eric Blake  <ebb9@byu.net>
33565
33566         pipe2-safer: new module
33567         * modules/pipe2-safer: New file.
33568         * lib/unistd-safer.h (pipe2_safer): New prototype.
33569         * lib/unistd--.h (pipe2): New wrapper.
33570         * lib/pipe-safer.c (pipe2_safer): New function.
33571         * modules/pipe (Depends-on): Add pipe2-safer.
33572         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
33573
33574         stdlib-safer: preserve cloexec flag for mkostemp[s]
33575         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
33576         fd_safer_flag.
33577
33578         unistd-safer: allow preservation of cloexec status via flag
33579         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
33580         prototypes.
33581         * lib/dup-safer.c (dup_safer_flag): New function.
33582         * lib/fd-safer.c (fd_safer_flag): Likewise.
33583         * modules/cloexec (configure.ac): Set witness.
33584
33585         test-dup2: enhance test
33586         * modules/dup2-tests (Depends-on): Add cloexec.
33587         * tests/test-dup2.c (main): Enhance test.
33588
33589         cloexec: add dup_cloexec
33590         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
33591         header and comments.
33592         * lib/cloexec.c (set_cloexec_flag): Add comments.
33593         (dup_cloexec): New function, with mingw implementation borrowed
33594         from...
33595         * lib/w32spawn.h (dup_noinherit): ...here.
33596         * modules/execute (Depends-on): Add cloexec.
33597         * modules/pipe (Depends-on): Likewise.
33598         * modules/cloexec (Depends-on): Add dup2.
33599         * modules/cloexec-tests (Files): New file.
33600         * tests/test-cloexec.c: Likewise.
33601
33602         test-xalloc-die: fix test for mingw
33603         * modules/xalloc-die-tests (Files): Add tests/init.sh.
33604         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
33605         directory and .exe suffix off argv[0] output.
33606
33607         test-fseeko: fix test for mingw
33608         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
33609         than undefining fseek, so test will pass on mingw.
33610
33611 2009-12-05  Bruno Haible  <bruno@clisp.org>
33612
33613         * lib/progname.h (set_program_name): Clarify specification.
33614         * lib/progname.c (set_program_name): Likewise.
33615         Reported by Jim Meyering.
33616
33617 2009-12-05  Jim Meyering  <meyering@redhat.com>
33618
33619         maint.mk: backslash-escape parens in default regexp
33620         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
33621         backslash-escape the literal parentheses.
33622
33623         maint.mk: news-date-check: use grep -E
33624         * top/maint.mk (today): Define a Make variable, not a...
33625         (news-date-check): ...shell variable.
33626         (news-date-regexp): Use the Make variable.
33627         Use grep's -E option.  Change the failing diagnostic to mention
33628         the variable, $(news-date-regexp).
33629
33630 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
33631
33632         maintainer-makefile: allow customization of NEWS entry format
33633         * top/maint.mk (news-date-regexp): New overridable variable.
33634         (news-date-check): Use it.
33635
33636 2009-12-04  Eric Blake  <ebb9@byu.net>
33637
33638         mgetgroups: add xgetgroups, and avoid ENOSYS failures
33639         * lib/mgetgroups.h (xgetgroups): New prototype.
33640         * lib/mgetgroups.c (xgetgroups): New wrapper.
33641         (mgetgroups): Handle ENOSYS.
33642         * modules/mgetgroups (Depends-on): Add realloc.
33643         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
33644
33645         mgetgroups: avoid argument promotion issues with -1
33646         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
33647         for invalid gid_t.
33648         * tests/test-chown.h (getegid, test_chown): Likewise.
33649         * tests/test-lchown.h (getegid, test_lchown): Likewise.
33650
33651 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
33652
33653         exclude: Fix header file problems.
33654         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
33655
33656 2009-12-01  Jim Meyering  <meyering@redhat.com>
33657
33658         fts: fts_open: do not let an empty string cause immediate failure
33659         This is required in support of GNU rm, for which the command
33660         "rm A '' B" must process and remove both A and B, in spite of
33661         the empty string argument.
33662         * lib/fts.c (fts_open): Do not let the presence of an empty string
33663         cause fts_open to fail immediately.  Most fts-using tools must be
33664         able to process all arguments, in order, and can be expected to
33665         diagnose such arguments themselves.
33666
33667 2009-11-30  Eric Blake  <ebb9@byu.net>
33668
33669         utimens: fix compilation error
33670         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
33671         Declare variable at right scope.
33672
33673 2009-11-29  Jim Meyering  <meyering@redhat.com>
33674
33675         bootstrap: handle perl-5.11's changed --version output
33676         * build-aux/bootstrap (get_version): Handle perl separately,
33677         since perl-5.11's --version output is different.
33678
33679 2009-11-28  Jim Meyering  <meyering@redhat.com>
33680
33681         userspec: depend on the inttostr module, too
33682         * modules/userspec (Depends-on): Add inttostr.
33683
33684         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
33685         * lib/userspec.c (parse_with_separator): Do not accept a user ID
33686         number of MAXUID when it evaluates to (uid_t) -1.
33687         Likewise for group ID.  Reported by Matt McCutchen in
33688         <http://savannah.gnu.org/bugs/?28113>
33689
33690         userspec: reformat to use spaces, not TABs
33691         * lib/userspec.c: Expand TABs to spaces.
33692         Add Emacs' "indent-tabs-mode: nil" hint.
33693
33694 2009-11-27  Eric Blake  <ebb9@byu.net>
33695
33696         getopt-gnu: flush out another BSD bug
33697         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
33698         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
33699         flush out BSD bug.
33700         * tests/test-getopt.h (test_getopt): End lists with NULL.
33701         * tests/test-getopt_long.h (test_getopt_long): Likewise.
33702         (test_getopt_long_posix): Enhance test.
33703         * modules/getopt-posix-tests (Depends-on): Add stdbool.
33704         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
33705         getopt-gnu.
33706         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33707         Likewise.
33708
33709 2009-11-27  Simon Josefsson  <simon@josefsson.org>
33710
33711         * modules/idpriv-droptemp-tests (Notice): Fix text.
33712
33713 2009-11-27  Jim Meyering  <meyering@redhat.com>
33714
33715         test-xalloc-die: avoid spurious failure due to libtool argv difference
33716         In a libtool-enabled project, this test would fail due to a difference
33717         in the emitted program name, e.g.,
33718         -test-xalloc-die: memory exhausted
33719         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
33720         Use program to avoid that.
33721         * modules/xalloc-die-tests (Depends-on): Add progname.
33722         * tests/test-xalloc-die.c: Include progname.h".
33723         (program_name): Remove decl.
33724         (main): Call set_program_name.
33725         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
33726
33727 2009-11-26  Richard Jones  <rjones@redhat.com>
33728
33729         w32sock: leave win32 error in place.
33730         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
33731
33732 2009-11-26  Eric Blake  <ebb9@byu.net>
33733
33734         init.sh: suggest to use skip_ and fail_ functions in comments
33735         * tests/init.sh: Add a sentence.
33736
33737 2009-11-25  Bruno Haible  <bruno@clisp.org>
33738
33739         init.sh: add documentation in comments
33740         * tests/init.sh: Add some developer and user documentation.
33741
33742 2009-11-26  Jim Meyering  <meyering@redhat.com>
33743
33744         init.sh: accommodate even those who specify bogus srcdir manually
33745         * tests/init.sh: Normally, srcdir is guaranteed by automake and
33746         configure-time tests to be sanitized, so that there is no need to
33747         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
33748         (with no double quotes) suffices.  However, since tests may be
33749         invoked manually, and since you may explicitly set srcdir to the
33750         name of a directory containing spaces, do quote its uses here.
33751         * tests/test-pread.sh: Likewise.
33752         Suggested by Bruno Haible.
33753
33754         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
33755         * tests/test-pread.sh: Write no data into the pipe, because
33756         test-pread actually reads none.  This avoids a diagnostic,
33757         "bash: echo: write error: Broken pipe", that arises in the unusual
33758         event something is ignoring SIGPIPE, and might be interpreted
33759         as some sort of failure.  Reported by Bruno Haible.
33760
33761 2009-11-25  Jim Meyering  <meyering@redhat.com>
33762
33763         test-pread: cover failure with ESPIPE and EINVAL
33764         * tests/test-pread.c (main): Test for failure, too.
33765         * tests/test-pread.sh: Invoke with stdin on a pipe.
33766         Suggested by Eric Blake.
33767
33768         pread: improvement and fix
33769         * modules/pread (Depends-on): Depend on lseek, for portability to
33770         e.g., mingw.  Suggested by Eric Blake.
33771         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
33772
33773         unistd.in.h: correct declaration of pread
33774         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
33775         Reported by Richard W.M. Jones.
33776
33777         test-pread.sh: distribute the test script
33778         * modules/pread-tests (Files): Include test-pread.sh.
33779
33780         test-pread.sh: clean up
33781         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
33782         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
33783         That is unnecessary, since it's always ".".
33784         Suggestion from Eric Blake.
33785
33786         test-pread.sh: make executable
33787         * tests/test-pread.sh: Set executable bit.
33788         Reported by Eric Blake.
33789
33790         correct typo in test-pread.sh
33791         * tests/test-pread.sh: Add #! line.
33792
33793         test pread
33794         * tests/test-pread.c: New file.
33795         * tests/test-pread.sh: Likewise.
33796         * modules/pread-tests: Likewise.
33797
33798         pread: new module
33799         * modules/pread: New file.
33800         * lib/unistd.in.h (pread): Define/declare.
33801         * lib/pread.c (pread): New file.
33802         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
33803         * modules/unistd (Makefile.am): Substitute witnesses.
33804         * doc/posix-functions/pread.texi (pread): Update.
33805         * MODULES.html.sh: Add pread.
33806
33807 2009-11-25  Jim Meyering  <meyering@redhat.com>
33808
33809         tests/init.sh: new file to be used via most *.sh tests
33810         * tests/init.sh: New file.
33811
33812 2009-11-25  Eric Blake  <ebb9@byu.net>
33813
33814         utimens: work around older Linux failure with symlinks
33815         * lib/utimens.c (lutimensat_works_really): New variable.
33816         (fdutimens, lutimens): Use it to manage kernels that support
33817         nanosecond times on files, but not on symlinks.
33818         Reported by OndÅ™ej Vašík.
33819
33820         utimes: fix configure grammar
33821         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
33822
33823 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
33824
33825         regex: Fix fastmap for multibyte character ranges.
33826         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
33827         characters when a multibyte character range is included.
33828
33829 2009-11-22  Andy Wingo  <wingo@pobox.com>
33830
33831         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
33832         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
33833
33834 2009-11-24  Bruno Haible  <bruno@clisp.org>
33835
33836         doc: Most *_l functions exist in MacOS X 10.5.
33837         * doc/posix-functions/duplocale.texi: Update platforms list.
33838         * doc/posix-functions/freelocale.texi: Likewise.
33839         * doc/posix-functions/newlocale.texi: Likewise.
33840         * doc/posix-functions/uselocale.texi: Likewise.
33841         * doc/posix-functions/isalnum_l.texi: Likewise.
33842         * doc/posix-functions/isalpha_l.texi: Likewise.
33843         * doc/posix-functions/isblank_l.texi: Likewise.
33844         * doc/posix-functions/iscntrl_l.texi: Likewise.
33845         * doc/posix-functions/isdigit_l.texi: Likewise.
33846         * doc/posix-functions/isgraph_l.texi: Likewise.
33847         * doc/posix-functions/islower_l.texi: Likewise.
33848         * doc/posix-functions/isprint_l.texi: Likewise.
33849         * doc/posix-functions/ispunct_l.texi: Likewise.
33850         * doc/posix-functions/isspace_l.texi: Likewise.
33851         * doc/posix-functions/isupper_l.texi: Likewise.
33852         * doc/posix-functions/iswalnum_l.texi: Likewise.
33853         * doc/posix-functions/iswalpha_l.texi: Likewise.
33854         * doc/posix-functions/iswblank_l.texi: Likewise.
33855         * doc/posix-functions/iswcntrl_l.texi: Likewise.
33856         * doc/posix-functions/iswctype_l.texi: Likewise.
33857         * doc/posix-functions/iswdigit_l.texi: Likewise.
33858         * doc/posix-functions/iswgraph_l.texi: Likewise.
33859         * doc/posix-functions/iswlower_l.texi: Likewise.
33860         * doc/posix-functions/iswprint_l.texi: Likewise.
33861         * doc/posix-functions/iswpunct_l.texi: Likewise.
33862         * doc/posix-functions/iswspace_l.texi: Likewise.
33863         * doc/posix-functions/iswupper_l.texi: Likewise.
33864         * doc/posix-functions/iswxdigit_l.texi: Likewise.
33865         * doc/posix-functions/isxdigit_l.texi: Likewise.
33866         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
33867         * doc/posix-functions/strcasecmp_l.texi: Likewise.
33868         * doc/posix-functions/strcoll_l.texi: Likewise.
33869         * doc/posix-functions/strfmon_l.texi: Likewise.
33870         * doc/posix-functions/strftime_l.texi: Likewise.
33871         * doc/posix-functions/strncasecmp_l.texi: Likewise.
33872         * doc/posix-functions/strxfrm_l.texi: Likewise.
33873         * doc/posix-functions/tolower_l.texi: Likewise.
33874         * doc/posix-functions/toupper_l.texi: Likewise.
33875         * doc/posix-functions/towctrans_l.texi: Likewise.
33876         * doc/posix-functions/towlower_l.texi: Likewise.
33877         * doc/posix-functions/towupper_l.texi: Likewise.
33878         * doc/posix-functions/wcscoll_l.texi: Likewise.
33879         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
33880         * doc/posix-functions/wctrans_l.texi: Likewise.
33881         * doc/posix-functions/wctype_l.texi: Likewise.
33882         * doc/glibc-functions/strptime_l.texi: Likewise.
33883         * doc/glibc-functions/strtod_l.texi: Likewise.
33884         * doc/glibc-functions/strtof_l.texi: Likewise.
33885         * doc/glibc-functions/strtol_l.texi: Likewise.
33886         * doc/glibc-functions/strtold_l.texi: Likewise.
33887         * doc/glibc-functions/strtoll_l.texi: Likewise.
33888         * doc/glibc-functions/strtoul_l.texi: Likewise.
33889         * doc/glibc-functions/strtoull_l.texi: Likewise.
33890         * doc/glibc-functions/wcsftime_l.texi: Likewise.
33891         * doc/glibc-functions/wcstod_l.texi: Likewise.
33892         * doc/glibc-functions/wcstof_l.texi: Likewise.
33893         * doc/glibc-functions/wcstol_l.texi: Likewise.
33894         * doc/glibc-functions/wcstold_l.texi: Likewise.
33895         * doc/glibc-functions/wcstoll_l.texi: Likewise.
33896         * doc/glibc-functions/wcstoul_l.texi: Likewise.
33897         * doc/glibc-functions/wcstoull_l.texi: Likewise.
33898
33899 2009-11-24  Bruno Haible  <bruno@clisp.org>
33900
33901         duplocale: Fix logic bug.
33902         * lib/duplocale.c: Don't include <langinfo.h>.
33903         (_NL_LOCALE_NAME): Remove macro.
33904         (rpl_duplocale): Use setlocale instead of nl_langinfo.
33905         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
33906
33907 2009-11-23  Jim Meyering  <meyering@redhat.com>
33908
33909         test-update-copyright: don't hard-code /usr/bin/perl
33910         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
33911         perl to print the current year.  Gilles Espinasse reported that
33912         the replaced use of perl was hard-coded as /usr/bin/perl.
33913
33914 2009-11-23  Bruno Haible  <bruno@clisp.org>
33915
33916         duplocale: Add support for glibc 2.3.x.
33917         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
33918
33919 2009-11-22  Bruno Haible  <bruno@clisp.org>
33920
33921         vasnprintf: Tiny optimization.
33922         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
33923         MacOS X.
33924
33925 2009-11-22  Bruno Haible  <bruno@clisp.org>
33926
33927         Tests for module 'duplocale'.
33928         * modules/duplocale-tests: New file.
33929         * tests/test-duplocale.c: New file.
33930
33931         New module 'duplocale'.
33932         * m4/duplocale.m4: New file.
33933         * lib/locale.in.h (duplocale): New declaration.
33934         * lib/duplocale.c: New file.
33935         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
33936         gl_LOCALE_H_DEFAULTS): New macros.
33937         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
33938         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
33939         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
33940         REPLACE_DUPLOCALE.
33941         * modules/duplocale: New file.
33942         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
33943
33944 2009-11-22  Bruno Haible  <bruno@clisp.org>
33945
33946         * modules/locale-tests (configure.ac): Test for newlocale function.
33947         * tests/test-locale.c: When the system has extended locale functions,
33948         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
33949
33950         locale: Make locale_t available when possible.
33951         * lib/locale.in.h: Include <xlocale.h> when it exists.
33952         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
33953         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
33954         * modules/locale (Depends-on): Add extensions.
33955         (Makefile.am): Also substitute HAVE_XLOCALE_H.
33956         * doc/posix-headers/locale.texi: Document the problem with locale_t.
33957
33958 2009-11-22  Bruno Haible  <bruno@clisp.org>
33959
33960         Add comments.
33961         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
33962         invocation.
33963         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
33964         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33965         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33966
33967 2009-11-22  Bruno Haible  <bruno@clisp.org>
33968
33969         error: account for the possibility of freopen (stdout).
33970         * lib/error.c: Include <unistd.h>.
33971         (flush_stdout): New function, extracted from error and error_at_line.
33972         Determine stdout's fd dynamically.
33973         (error, error_at_line): Invoke flush_stdout.
33974         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
33975         * modules/error (Depends-on): Add unistd.
33976
33977 2009-11-22  Bruno Haible  <bruno@clisp.org>
33978
33979         diffseq: Add comment.
33980         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
33981
33982 2009-11-22  Jim Meyering  <meyering@redhat.com>
33983
33984         c-stack: avoid defining an unused static function
33985         * lib/c-stack.c (find_stack_direction): Do not define this function
33986         when it will not be used.
33987
33988         diffseq: avoid spurious gcc warnings
33989         * lib/diffseq.h (IF_LINT2): Define.
33990         (compareseq): Use it to initialize two members of "part".
33991         This avoids two used-uninitialized warnings.
33992
33993 2009-11-21  Jim Meyering  <meyering@redhat.com>
33994
33995         c-stack: avoid "ignoring return value of `write'" warning
33996         * lib/c-stack.c: Include "ignore-value.h".
33997         (die): Explicitly ignore each write return value.
33998         * modules/c-stack (Depends-on): Add ignore-value.
33999
34000 2009-11-21  Bruno Haible  <bruno@clisp.org>
34001
34002         diffseq: reduce scope of variable 'best'.
34003         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
34004         variable, earlier used for two different purposes.
34005
34006 2009-11-21  Jim Meyering  <meyering@redhat.com>
34007
34008         diffseq: remove useless assignment to "best"
34009         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
34010         assignment.  At that point "best" is already guaranteed to be zero.
34011
34012 2009-11-20  Eric Blake  <ebb9@byu.net>
34013
34014         build: mention ftp redirector in release announcements
34015         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
34016         values that used to come from cfg.mk; mention FTP redirect URL.
34017         * build-aux/announce-gen: Mention the mirror list.
34018         Suggested by Karl Berry.
34019
34020         nanosleep: improve port to mingw
34021         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
34022         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
34023         LIB_NANOSLEEP, but only when needed.
34024         * modules/select (Link): Document LIBSOCKET.
34025         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
34026         enough.
34027
34028         nanosleep: work around cygwin bug
34029         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
34030         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
34031         bug.
34032         (getnow): Delete, not needed.
34033         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
34034         LIB_CLOCK_GETTIME.
34035         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
34036         clock-time, gettime.
34037         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
34038         bug.
34039         * modules/nanosleep-tests: New test.
34040         * tests/test-nanosleep.c: New file.
34041
34042         sleep: work around cygwin bug
34043         * lib/sleep.c (rpl_sleep): Work around the bug.
34044         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
34045         (gl_PREREQ_SLEEP): Delete unused macro.
34046         * modules/sleep (Depends-on): Add verify.
34047         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
34048         * modules/unistd (Makefile.am): Substitute witness.
34049         * lib/unistd.in.h (sleep): Update prototype.
34050         * doc/posix-functions/sleep.texi (sleep): Document the bug.
34051         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
34052         * modules/sleep-tests (Depends-on): Check for alarm.
34053
34054 2009-11-20  Jim Meyering  <meyering@redhat.com>
34055
34056         maint.mk: improve sc_prohibit_magic_number_exit
34057         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
34058         so it does not match uses like System.exit(1).
34059         Add comments showing how to correct all offenders.
34060
34061 2009-11-19  Eric Blake  <ebb9@byu.net>
34062
34063         xalloc-die-tests: add missing library
34064         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
34065
34066         test-xvasprintf: silence compiler warnings
34067         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
34068         empty string from gcc.
34069
34070 2009-11-19  Jim Meyering  <meyering@redhat.com>
34071
34072         xfreopen: new module, from coreutils
34073         * modules/xfreopen: New module.
34074         * lib/xfreopen.c: New file.
34075         * lib/xfreopen.h: New file.
34076         * MODULES.html.sh (File stream based Input/Output"): Add it.
34077
34078 2009-11-19  Eric Blake  <ebb9@byu.net>
34079
34080         manywarnings: depend on warnings
34081         * modules/manywarnings (Depends-on): Add warnings.
34082
34083         build: avoid compiler warnings
34084         * lib/select.c (rpl_select): Delete unused variable.
34085         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
34086
34087 2009-11-18  Eric Blake  <ebb9@byu.net>
34088
34089         tests: avoid false negative with --with-packager
34090         * tests/test-version-etc.sh: Discard packager information.
34091         * tests/test-argp-version-etc-1.sh: Likewise.
34092         Reported by Mike Frysinger.
34093
34094         utimens: fix regression on Solaris
34095         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
34096         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
34097         can only change fd timestamps via futimesat.  Instead, use an
34098         additional witness macro to avoid BSD bug.
34099         Reported by Jim Meyering.
34100
34101 2009-11-17  Eric Blake  <ebb9@byu.net>
34102
34103         usleep: use it to simplify tests
34104         * modules/stat-time-tests (Depends-on): Add usleep.
34105         (configure.ac): Drop usleep check.
34106         * modules/chown-tests (Depends-on, configure.ac): Likewise.
34107         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
34108         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
34109         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
34110         * modules/openat-tests (Depends-on, configure.ac): Likewise.
34111         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
34112         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
34113         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
34114         Likewise.
34115         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
34116         * tests/test-lchown.h (nap): Likewise.
34117         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
34118         * tests/test-stat-time.c (nap): Likewise.
34119         * tests/test-utimens-common.h (nap): Update comments.
34120
34121         usleep: new module
34122         * modules/usleep: New file.
34123         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
34124         * lib/usleep.c (usleep): Likewise.
34125         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
34126         * modules/unistd (Makefile.am): Substitute witnesses.
34127         * lib/unistd.in.h (usleep): Add declaration.
34128         * doc/pastposix-functions/usleep.texi (usleep): Document this.
34129         * MODULES.html.sh (Date and time): Likewise.
34130         * modules/usleep-tests (Depends-on): New test.
34131         * tests/test-usleep.c: New file.
34132
34133         chown: work around OpenBSD bug
34134         * lib/chown.c (rpl_chown): Work around the bug.
34135         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
34136         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
34137         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
34138         * modules/chown (Depends-on): Add stdbool.
34139         * modules/lchown (Depends-on): Likewise.
34140         * doc/posix-functions/chown.texi (chown): Document the bug.
34141         * doc/posix-functions/lchown.texi (lchown): Likewise.
34142         * tests/test-lchown.h (test_chown): Relax test.
34143
34144         mkstemp: avoid conflict with C++ keyword template
34145         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
34146         * lib/mkostemp.c (mkostemp): Likewise.
34147         * lib/mkostemps.c (mkostemps): Likewise.
34148         * lib/mkstemp.c (mkstemp): Likewise.
34149         * lib/mkstemps.c (mkstemps): Likewise.
34150
34151         xalloc-die-tests: optimize
34152         * tests/test-xalloc-die.sh: Reduce number of processes.
34153
34154 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34155
34156         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
34157         patch from ludo@gnu.org (Ludovic Courtès).
34158
34159 2009-11-17  Jim Meyering  <meyering@redhat.com>
34160
34161         version-etc: use proper license string
34162         * modules/version-etc (License): Use LGPL, not LGPLv3+.
34163         * modules/version-etc-fsf: Likewise.
34164
34165 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34166
34167         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
34168         printed to stdout.  Deal with EOL differences.
34169
34170 2009-11-17  Eric Blake  <ebb9@byu.net>
34171
34172         unsetenv: work around Solaris bug
34173         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
34174         * lib/unsetenv.c (rpl_unsetenv): Work around it.
34175         Reported by Jim Meyering.
34176
34177         vasnprintf: avoid compiler warnings
34178         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
34179         variables.
34180         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
34181
34182 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34183
34184         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
34185         settings since xalloc-die is no longer the self test,
34186         xalloc-die.sh is.
34187
34188 2009-11-17  Jim Meyering  <meyering@redhat.com>
34189
34190         test-xalloc-die.sh: make the code agree with the commit log
34191         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
34192         at the end, just in case you happen to have a test-xalloc-die
34193         program in some other PATH directory.
34194
34195         test-xalloc-die.sh: fix a portability bug
34196         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
34197         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
34198         Otherwise, argv[0] (as often seen in diagnostics) would be too
34199         system-dependent, sometimes with, and sometimes without the leading "./".
34200
34201         version-etc-fsf: relax license to LGPLv3+
34202         * modules/version-etc-fsf (License): Relax license.
34203
34204 2009-11-16  Eric Blake  <ebb9@byu.net>
34205
34206         xalloc-die-tests: avoid printing null pointer
34207         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
34208         shell script.
34209         * tests/test-xalloc-die.c (program_name): Declare.
34210         * tests/test-xalloc-die.sh (tmpfiles): New file.
34211
34212         setenv, unsetenv: work around various bugs
34213         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
34214         (setenv) [HAVE_SETENV]: Work around bugs.
34215         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
34216         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
34217         for bugs.
34218         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
34219         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
34220         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
34221         * modules/stdlib (Makefile.am): Update substitutions.
34222         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
34223         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
34224         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
34225         * modules/setenv-tests: New test.
34226         * modules/unsetenv-tests: Likewise.
34227         * tests/test-setenv.c: New file.
34228         * tests/test-unsetenv.c: Likewise.
34229
34230 2009-11-16  Jim Meyering  <meyering@redhat.com>
34231
34232         version-etc: relax license to LGPLv3+
34233         * modules/version-etc (License): Relax license.
34234
34235         better AC_REQUIRE expanded-before-required-warning avoidance
34236         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
34237         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
34238         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
34239         which is no longer needed.
34240
34241 2009-11-16  Eric Blake  <ebb9@byu.net>
34242
34243         test-freading: clean up temporary file
34244         * tests/test-freading.c (main): Remove file on success, and use
34245         ASSERT more liberally.
34246         Reported by Jim Meyering.
34247
34248 2009-11-16  Jim Meyering  <meyering@redhat.com>
34249
34250         avoid new AC_REQUIRE expanded-before-required warnings
34251         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
34252         merely using it.
34253         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
34254         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
34255
34256 2009-11-15  Simon Josefsson  <simon@josefsson.org>
34257
34258         * tests/test-xalloc-die.c: New file.
34259         * modules/xalloc-die-tests: New file.
34260         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
34261         XFAIL_TESTS so it can be appended by modules.
34262
34263 2009-11-15  Simon Josefsson  <simon@josefsson.org>
34264
34265         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
34266         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
34267
34268 2009-11-14  Eric Blake  <ebb9@byu.net>
34269
34270         fnmatch: avoid compiler warning
34271         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
34272         to silence compiler warning about mismatch signedness in ?:.
34273         Reported by Robert Millan.
34274
34275         intprops: add double-inclusion guard
34276         * lib/intprops.h: Allow idempotent includes.
34277         Suggested by Bruce Korb.
34278
34279         openat: detect Solaris fchownat bug
34280         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
34281         penalizing glibc chownat when only lchownat is broken.
34282         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
34283         trailing slash bugs.
34284         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
34285         * modules/openat-tests (Files): Include more files.
34286         (Depends-on): Add mgetgroups, sleep, stat-time.
34287         (configure.ac): Add additional checks.
34288         (Makefile.am): Build new test.
34289         * tests/test-fchownat.c: New file.
34290
34291         lchown: detect Solaris and FreeBSD bug
34292         * lib/lchown.c (rpl_lchown): Work around bug.
34293         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
34294         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34295         * modules/unistd (Makefile.am): Populate it.
34296         * lib/unistd.in.h (lchown): Update declaration.
34297         * doc/posix-functions/lchown.texi (lchown): Document the bug.
34298         * modules/lchown-tests: New file.
34299         * tests/test-lchown.h (test_lchown): Likewise.
34300         * tests/test-lchown.c (main): Likewise.
34301
34302         chown: detect Solaris and FreeBSD bug
34303         * lib/chown.c (rpl_chown): Work around bug.
34304         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
34305         (gl_PREREQ_CHOWN): Delete.
34306         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34307         * modules/unistd (Makefile.am): Populate it.
34308         * lib/unistd.in.h (chown): Update declaration.
34309         * lib/lchown.c (chown): Update client.
34310         * modules/lchown (Depends-on): Add lstat.
34311         * doc/posix-functions/chown.texi (chown): Document the bug.
34312         * doc/posix-functions/getgroups.texi (getgroups): Document
34313         getgroups pitfall.
34314         * modules/chown-tests: New file.
34315         * tests/test-chown.h (test_chown): Likewise.
34316         * tests/test-chown.c (main): Likewise.
34317
34318 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
34319
34320         gnulib-tool: correctly detect absence of m4 directories
34321         * gnulib-tool: Avoid extra newline on data passed to wc -l.
34322
34323 2009-11-14  Jim Meyering  <meyering@redhat.com>
34324
34325         maint.mk: Prohibit inclusion of "xalloc.h" without use.
34326         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
34327
34328 2009-11-14  John W. Eaton  <jwe@gnu.org>
34329
34330         strftime.h: wrap funtion declaration in extern "C" block
34331         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
34332
34333 2009-11-13  Eric Blake  <ebb9@byu.net>
34334
34335         getgroups: avoid compiler warning
34336         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
34337
34338         getgroups: work around FreeBSD bug
34339         * lib/getgroups.c (rpl_getgroups): Work around the bug.
34340         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
34341         * doc/posix-functions/getgroups.texi (getgroups): Document it.
34342         * tests/test-getgroups.c (main): Fix buffer overrun.
34343
34344         getgroups: avoid compilation failure
34345         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
34346         * modules/getgroups (Depends-on): Add stdint.
34347
34348 2009-11-13  Jim Meyering  <meyering@redhat.com>
34349
34350         test-getgroups: avoid compilation failure
34351         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
34352
34353 2009-11-13  Eric Blake  <ebb9@byu.net>
34354
34355         mgetgroups: new module, taken from coreutils
34356         * modules/mgetgroups: New file.
34357         * lib/mgetgroups.h: Likewise.
34358         * lib/mgetgroups.c (mgetgroups): Likewise.
34359         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
34360         * MODULES.html.sh (Users and groups): Mention it.
34361
34362         getgroups: don't expose GETGROUPS_T to user
34363         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
34364         an element at a time if GETGROUPS_T is wrong size.
34365         * lib/getugroups.h (getugroups): Change signature.
34366         * lib/unistd.in.h (getgroups): Likewise.
34367         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
34368         signature needs fixing.
34369         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
34370         AC_TYPE_GETGROUPS.
34371         * modules/group-member (Depends-on): Add getgroups.
34372         * lib/group-member.c (group_info, get_group_info): Use gid_t.
34373         (group_member): Rely on getgroups replacement.
34374         * lib/getugroups.c (getugroups): Use gid_t.
34375         * tests/test-getgroups.c (main): Likewise.
34376         * NEWS: Mention the signature change.
34377         * doc/posix-functions/getgroups.texi (getgroups): Mention the
34378         problem with signature.
34379         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
34380         GETGROUPS_T is still useful for setgroups.
34381
34382         getgroups, getugroups: provide stubs for mingw
34383         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
34384         * lib/getugroups.c (getugroups): Likewise.
34385         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
34386         function.  Modernize replacement scheme.
34387         (gl_PREREQ_GETGROUPS): Delete.
34388         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
34389         * modules/getgroups (configure.ac): Declare witness.
34390         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
34391         * modules/unistd (Depends-on): Substitute witness.
34392         * lib/unistd.in.h (getgroups): Declare replacement.
34393
34394         getgroups: avoid calling exit
34395         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
34396         drop xalloc.
34397         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
34398         dependencies.
34399         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
34400         exiting, in the rare case of malloc failure.
34401
34402         getgroups: fix logic error
34403         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
34404         has more than 20 groups.
34405         * modules/getgroups-tests: New test.
34406         * tests/test-getgroups.c: New file.
34407
34408 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34409
34410         * tests/test-base64.c: Improve.
34411
34412 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34413
34414         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
34415         Blake <ebb9@byu.net>.
34416
34417 2009-11-13  Simon Josefsson  <simon@josefsson.org>
34418
34419         * tests/test-xvasprintf.c: Add %s%s related checks.
34420
34421 2009-11-12  Eric Blake  <ebb9@byu.net>
34422
34423         version-etc: match standards.texi style
34424         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
34425         and use <> only for URLs.
34426
34427 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
34428
34429         fts: do not fail on a submount during traversal
34430         * lib/fts.c (fts_build): Read the stat info again after opening
34431         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
34432         Original report at http://bugzilla.redhat.com/501848.
34433
34434 2009-11-12  Jim Meyering  <meyering@redhat.com>
34435
34436         bootstrap: sync from coreutils
34437         * build-aux/bootstrap (bootstrap_epilogue): New function.
34438         Use git_modules_config in one more place.  This make bootstrap's
34439         --gnulib-srcdir option more useful for testing.
34440
34441         bootstrap: generalize autoheader check
34442         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
34443         AC_CONFIG_HEADERS.
34444
34445 2009-11-11  Eric Blake  <ebb9@byu.net>
34446
34447         mkfifoat: use new modules for Solaris and BSD bugs
34448         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
34449         * lib/mkfifoat.c (mknodat): Split...
34450         * lib/mknodat.c (mknodat): ...into new file.
34451         * modules/mkfifoat (Files): Ship new file.
34452         (Depends-on): Add mkfifo, mknod.
34453         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
34454         (Depends-on): Add symlink.
34455         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
34456         redundant with test_mkfifo.h.
34457         (do_mkfifoat, do_mknodat): New helpers.
34458
34459         mknod: new module
34460         * modules/mknod: New file.
34461         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
34462         * lib/mknod.c (mknod): Likewise.
34463         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
34464         defaults.
34465         * modules/sys_stat (Makefile.am): Substitute them.
34466         * lib/sys_stat.in.h (mknod): Declare replacement.
34467         * MODULES.html.sh (Support for systems lacking POSIX:2008):
34468         Document it.
34469         * doc/posix-functions/mknod.texi (mknod): Likewise.
34470         * modules/mknod-tests: New test.
34471         * tests/test-mknod.c: Likewise.
34472
34473         mkfifo: new module
34474         * modules/mkfifo: New file.
34475         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
34476         * lib/mkfifo.c (mkfifo): Likewise.
34477         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
34478         defaults.
34479         * modules/sys_stat (Makefile.am): Substitute them.
34480         * lib/sys_stat.in.h (mkfifo): Declare replacement.
34481         * MODULES.html.sh (Support for systems lacking POSIX:2008):
34482         Document it.
34483         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
34484         * modules/mkfifo-tests: New test.
34485         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
34486         from test-mkfifoat.c.
34487         * tests/test-mkfifo.c: New file.
34488
34489         readlink: detect FreeBSD bug
34490         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
34491         slash on symlink.
34492         * doc/posix-functions/readlink.texi (readlink): Document the bug.
34493         * tests/test-readlink.h (test_readlink): Enhance test.
34494
34495         symlink: detect FreeBSD bug
34496         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
34497         slash on symlink.
34498         * doc/posix-functions/symlink.texi (symlink): Document the bug.
34499         * tests/test-symlink.h (test_symlink): Enhance test.
34500
34501 2009-11-10  Eric Blake  <ebb9@byu.net>
34502
34503         link: detect FreeBSD bug
34504         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
34505         symlink.
34506         * doc/posix-functions/link.texi (link): Document the bug.
34507         * tests/test-link.h (test_link): Enhance test.
34508         * tests/test-linkat.c (main): Update caller.
34509
34510         unlink, remove: detect FreeBSD bug
34511         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
34512         slash on symlink.
34513         * doc/posix-functions/unlink.texi (unlink): Document the bug.
34514         * doc/posix-functions/remove.texi (remove): Likewise.
34515         * tests/test-unlink.h (test_unlink): Enhance test.
34516         * tests/test-remove.c (main): Likewise.
34517
34518 2009-11-09  Eric Blake  <ebb9@byu.net>
34519
34520         rename: detect FreeBSD bug
34521         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
34522         slash on symlink.
34523         * modules/renameat-tests (Depends-on): Add filenamecat.
34524         * tests/test-rename.h (test_rename): Allow one more errno.
34525         * tests/test-renameat.c (main): Likewise.
34526         * doc/posix-functions/rename.texi (rename): Document the bug.
34527
34528         open: detect FreeBSD bug
34529         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
34530         symlink.
34531         * doc/posix-functions/open.texi (open): Document the bug.
34532         * doc/posix-functions/utimes.texi (utimes): Likewise.
34533         * tests/test-open.h (test_open): Add parameters, and test symlink
34534         handling.
34535         * tests/test-open.c (main): Adjust caller.
34536         * tests/test-fcntl-safer.c (main): Likewise.
34537         * modules/open-tests (Depends-on): Add stdbool, symlink.
34538         * modules/fcntl-safer-tests (Depends-on): Likewise.
34539         * tests/test-openat.c (main): Add test-open tests.
34540
34541         stat: detect FreeBSD bug
34542         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
34543         symlink.
34544         * doc/posix-functions/stat.texi (stat): Document the bug.
34545         * tests/test-stat.h (test_stat_func): Add argument.
34546         * tests/test-stat.c (main): Adjust caller.
34547         * tests/test-fstatat.c (main): Likewise.
34548         * modules/stat-tests (Depends-on): Add stdbool, symlink.
34549         Reported by Jim Meyering.
34550
34551 2009-11-09  James Youngman  <jay@gnu.org>
34552
34553         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
34554         * lib/strftime.c: Correct placement of #include "ignore-value.h".
34555
34556 2009-11-08  Jim Meyering  <meyering@redhat.com>
34557
34558         utimens: remove invalid futimesat call
34559         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
34560         It used the file descriptor of the target file as the DIR_FD
34561         parameter and NULL as the file name.  That caused failure with
34562         errno == EFAULT on FreeBSD-8.0-rc2
34563
34564 2009-11-07  Eric Blake  <ebb9@byu.net>
34565
34566         fflush, freadseek: use fseeko, not fseek
34567         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
34568         (clear_ungetc_buffer): Avoid potential problems on large files.
34569         * lib/freadseek.c (freadseek): Likewise.
34570         * modules/freadseek (Depends-on): Add fseeko.
34571         * modules/fseek (configure.ac): Set a witness.
34572         * tests/test-fflush.c (main): Use fseeko.
34573         * tests/test-fpurge.c (fseek): Disable link warning.
34574         * tests/test-freadable.c (fseek): Likewise.
34575         * tests/test-freading.c (fseek): Likewise.
34576         * tests/test-fseeko.c (fseek): Likewise.
34577         * tests/test-ftell.c (fseek): Likewise.
34578         * tests/test-ftello.c (fseek): Likewise.
34579         * tests/test-fwritable.c (fseek): Likewise.
34580         * tests/test-fwriting.c (fseek): Likewise.
34581
34582 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34583
34584         * modules/memchr (Depends-on): Drop getpagesize dependency.
34585
34586 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34587
34588         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
34589         Reported by Ludovic Courtès.
34590         * build-aux/pmccabe2html: Improve example usage.
34591         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
34592
34593 2009-11-06  Jim Meyering  <meyering@redhat.com>
34594
34595         do-release-commit-and-tag: New module.
34596         Automate the release-commit and tag process.
34597         * build-aux/do-release-commit-and-tag: New script, from coreutils.
34598         * modules/do-release-commit-and-tag: New file.
34599         * MODULES.html.sh (Support for maintaining and releasing): Add it.
34600
34601 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34602
34603         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
34604         because test-select.c uses inet_pton.
34605
34606 2009-11-06  Simon Josefsson  <simon@josefsson.org>
34607
34608         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
34609         GETADDRINFO_LIB.  Bump serial number.
34610         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
34611         Suggested by Eric Blake <ebb9@byu.net>.
34612
34613 2009-11-05  Eric Blake  <ebb9@byu.net>
34614
34615         strtod: detect darwin bug
34616         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
34617         Reported by Leo Davis.
34618
34619         freopen-safer: new module
34620         * modules/freopen-safer: New module.
34621         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
34622         * lib/freopen-safer.c (freopen_safer): New file.
34623         * lib/stdio-safer.h (freopen_safer): New declaration.
34624         * lib/stdio--.h (freopen): New override.
34625         * MODULES.html.sh (File stream based Input/Output): Mention it.
34626         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
34627         freopen-safer module.
34628         * doc/posix-functions/stderr.texi (stderr): Likewise.
34629         * doc/posix-functions/stdin.texi (stdin): Likewise.
34630         * doc/posix-functions/stdout.texi (stdout): Likewise.
34631         * modules/freopen-safer-tests: New test.
34632         * tests/test-reopen-safer.c: New file.
34633
34634 2009-11-05  Jim Meyering  <meyering@redhat.com>
34635
34636         maint.mk: Prohibit inclusion of "close-stream.h" without use.
34637         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
34638
34639 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34640
34641         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
34642
34643 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34644
34645         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
34646
34647 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34648
34649         Fix link error.
34650         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
34651         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34652
34653 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34654
34655         * tests/test-func.c: Also test value of __func__.
34656
34657 2009-11-05  Simon Josefsson  <simon@josefsson.org>
34658
34659         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
34660         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
34661
34662 2009-11-05  Bruno Haible  <bruno@clisp.org>
34663
34664         Fix link error.
34665         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
34666         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
34667         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
34668
34669 2009-11-05  Bruno Haible  <bruno@clisp.org>
34670
34671         Tests for module 'inet_pton'.
34672         * modules/inet_pton-tests: New file.
34673         * tests/test-inet_pton.c: New file.
34674
34675 2009-11-05  Bruno Haible  <bruno@clisp.org>
34676
34677         Tests for module 'inet_ntop'.
34678         * modules/inet_ntop-tests: New file.
34679         * tests/test-inet_ntop.c: New file.
34680
34681 2009-11-04  Eric Blake  <ebb9@byu.net>
34682
34683         stdlib-safer: wrap all mkstemp variants
34684         * modules/mkostemp (configure.ac): Set witness.
34685         * modules/mkostemps (configure.ac): Likewise.
34686         * modules/mkstemps (configure.ac): Likewise.
34687         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
34688         (mkstemps_safer): Wrap more functions.
34689         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
34690         wrapping.
34691         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
34692         (mkstemps_safer): Implement the wrappers.
34693
34694         mkstemps, mkostemps: new modules
34695         * modules/mkostemps: New module.
34696         * modules/mkstemps: Likewise.
34697         * lib/mkostemps.c (mkostemps): New file.
34698         * lib/mkstemps.c (mkstemps): Likewise.
34699         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
34700         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
34701         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
34702         * modules/stdlib (Makefile.am): Substitute them.
34703         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
34704         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
34705         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
34706         * doc/gnulib.texi (Glibc stdlib.h): Include them.
34707         * MODULES.html.sh (File system functions): Mention them.
34708
34709         tempname: resync from glibc
34710         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
34711         same values for __GT_FILE as glibc.  Abort even when assertions
34712         are disabled.
34713         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
34714         match its value otherwise.  Allow idempotent inclusion.
34715         * lib/mkdtemp.c (mkdtemp): Adjust caller.
34716         * lib/mkostemp.c (mkostemp): Likewise.
34717         * lib/mkstemp.c (mkstemp): Likewise.
34718         * lib/tmpfile.c (tmpfile): Likewise.
34719         * NEWS: Document this.
34720
34721         utimens: fix use of futimens on older Linux
34722         * lib/utimens.c (fdutimens): Use updated, rather than original,
34723         timespec to avoid bug in older Linux kernel.
34724         Reported by Simon Josefsson.
34725
34726 2009-11-04  Bruno Haible  <bruno@clisp.org>
34727
34728         Make num_processors more flexible and consistent.
34729         * lib/nproc.h (enum nproc_query): New type.
34730         (num_processors): Add a 'query' argument.
34731         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
34732         (num_processors): Add a 'query' argument. Test the value of the
34733         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
34734         mingw, count the number of CPUs available for the current process.
34735         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
34736         Check for sched_getaffinity and sched_getaffinity_np.
34737         * modules/nproc (Depends-on): Add c-ctype, extensions.
34738         * NEWS: Mention the change.
34739
34740 2009-11-03  Bruno Haible  <bruno@clisp.org>
34741
34742         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
34743
34744 2009-11-03  Jim Meyering  <meyering@redhat.com>
34745
34746         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
34747         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
34748         if it is defined.
34749
34750 2009-11-02  Eric Blake  <ebb9@byu.net>
34751
34752         mktime, timegm: share common declaration
34753         * lib/mktime-internal.h: New file.
34754         * lib/mktime.c: Use it rather than open-coding a declaration.
34755         * lib/timegm.c: Likewise.
34756         * modules/mktime (Files): Ship it.
34757         * modules/timegm (Files): Likewise.
34758         Suggested by Bruno Haible.
34759
34760         test-update-copyright: update test to match script changes
34761         * tests/test-update-copyright.sh: Avoid hard-coding perl
34762         location.  Don't update *.bak created by earlier runs.
34763
34764 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
34765             Simon Josefsson  <simon@josefsson.org>
34766             Bruno Haible  <bruno@clisp.org>
34767
34768         Fix link error on Solaris 8.
34769         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
34770         also in libnsl. Define also INET_PTON_LIB.
34771         * modules/inet_pton (Link): New section.
34772
34773 2009-11-02  Simon Josefsson  <simon@josefsson.org>
34774             Bruno Haible  <bruno@clisp.org>
34775
34776         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
34777         * modules/inet_ntop (Link): New section.
34778         Reported by Boyan Kasarov <bkasarov@gmail.com>.
34779
34780 2009-11-02  Eric Blake  <ebb9@byu.net>
34781
34782         maint: avoid compiler warnings in m4 macros
34783         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
34784         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
34785
34786 2009-11-02  Simon Josefsson  <simon@josefsson.org>
34787
34788         * m4/pmccabe2html.m4: Remove file.
34789         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
34790         function.  Change maintainer.
34791         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
34792         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
34793         Courtès).
34794
34795 2009-10-31  Eric Blake  <ebb9@byu.net>
34796
34797         fseeko: fix m4 regression
34798         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
34799         regression from 2009-10-27.
34800         Reported by Ralf Wildenhues.
34801
34802 2009-10-31  Jim Meyering  <meyering@redhat.com>
34803
34804         inttostr: aesthetics and improved (compile-time) safety
34805         Define inttype_is_signed rather than inttype_is_unsigned,
34806         since the sole use is via "#if inttype_is_signed".
34807         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
34808         inttype_is_unsigned.
34809         * lib/offtostr.c (inttype_is_signed): Likewise.
34810         * lib/uinttostr.c (inttype_is_signed): Likewise.
34811         * lib/umaxtostr.c (inttype_is_signed): Likewise.
34812         * lib/inttostr.c (inttostr): Use verify to cross-check the
34813         inttype_is_signed value and the signedness of the actual type.
34814         * modules/inttostr (Depends-on): Add verify.
34815
34816 2009-10-30  Eric Blake  <ebb9@byu.net>
34817
34818         build: avoid compiler warnings
34819         * lib/fchmodat.c (lchmod): Mark unused variables.
34820         * lib/getopt.c (_getopt_initialize): Likewise.
34821         * lib/mktime.c (__mktime_internal): Provide prototype.
34822         * lib/inttostr.c (inttostr): Avoid compiler warning even with
34823         older gcc that do not understand #pragma GCC diagnostic.
34824         * lib/uinttostr.c (inttype_is_unsigned): Define.
34825         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
34826
34827 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34828
34829         stat: fix compilation on AIX
34830         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
34831         only see struct stat64.
34832
34833 2009-10-30  Eric Blake  <ebb9@byu.net>
34834
34835         exclude: make more robust
34836         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
34837         rather than masking a coding bug.
34838         Suggested by Bruno Haible.
34839
34840 2009-10-30  Jim Meyering  <meyering@redhat.com>
34841
34842         perl scripts: remove #!/usr/bin/perl in favor of more portable...
34843         Rather than putting #!/usr/bin/perl on the first line,
34844         start with a variant of what's recommended by "man perlrun" that
34845         invokes the first "perl" program from your shell's search path.
34846         * build-aux/gitlog-to-changelog: Replace #!... as above.
34847         Add a "Local Variables" perl mode setting.
34848         Prompted by a patch from Ludovic Courtès.
34849         Improved by Eric Blake.
34850         * build-aux/useless-if-before-free: Likewise.
34851         * build-aux/announce-gen: Likewise.
34852         * build-aux/update-copyright: Likewise.
34853
34854 2009-10-29  Eric Blake  <ebb9@byu.net>
34855
34856         filenamecat-lgpl: adjust clients
34857         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
34858         filenamecat.
34859         * modules/renameat (Depends-on): Likewise.
34860
34861         filenamecat: split into filenamecat-lgpl
34862         * modules/filenamecat-lgpl: New module.
34863         * modules/filenamecat (Files): Move library-safe files into
34864         filenamecat-lgpl.
34865         (Depends-on): Add filenamecat-lgpl.
34866         (configure.ac): Declare witness.
34867         * lib/filenamecat.h (file_name_concat): Only declare when using
34868         GPL module.
34869         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
34870         Move...
34871         * lib/filenamecat-lgpl.c: ...into new file.
34872         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
34873         (gl_FILE_NAME_CONCAT): Use it.
34874         * MODULES.html.sh (File system functions): Mention new module.
34875
34876         argp: avoid memory leak
34877         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
34878         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
34879         base_name, since the latter malloc()s and can call exit().
34880         Leak introduced 2006-07-03.
34881
34882         dirname-lgpl: adjust clients that don't need full dirname
34883         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
34884         * modules/filenamecat (Depends-on): Likewise.
34885         * modules/linkat (Depends-on): Likewise.
34886         * modules/mkancesdirs (Depends-on): Likewise.
34887         * modules/mkdir (Depends-on): Likewise.
34888         * modules/openat (Depends-on): Likewise.
34889         * modules/savewd (Depends-on): Likewise.
34890         * modules/rename (Depends-on): Likewise.
34891         (License): Relax license.
34892         * modules/mkdir-tests (Depends-on): Drop progname.
34893         (Makefile.am): Delete unneeded LDADD.
34894         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
34895
34896         dirname: split into dirname-lgpl
34897         * modules/dirname-lgpl: New module.
34898         * modules/dirname (Files): Move library-safe files into
34899         dirname-lgpl.
34900         (Depends-on): Add dirname-lgpl.
34901         (configure.ac): Declare witness.
34902         * modules/double-slash-root (License): Relax license.
34903         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
34904         module.
34905         * lib/dirname.c (dir_len, mdir_name): Move...
34906         * lib/dirname-lgpl.c: ...into new file.
34907         * lib/basename.c (last_component, base_len): Move...
34908         * lib/basename-lgpl.c: ...into new file.
34909         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
34910         (gl_DIRNAME): Use it.
34911         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
34912         Mention new module.
34913         * modules/dirname-tests (Depends-on): Add progname.
34914         * tests/test-dirname.c (program_name): Delete.
34915
34916         mkdir: make safe for libraries
34917         * modules/mkdir (Depends-on): Drop xalloc.
34918         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
34919         exit.
34920
34921         tests: avoid some compiler warnings
34922         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
34923         literals.
34924         * tests/test-memchr.c (main): Avoid type mismatch.
34925         * tests/test-arpa_inet.c (main): Avoid unused parameters.
34926         * tests/test-base64.c (main): Likewise.
34927         * tests/test-getdelim.c (main): Likewise.
34928         * tests/test-gethostname.c (main): Likewise.
34929         * tests/test-getline.c (main): Likewise.
34930         * tests/test-netinet_in.c (main): Likewise.
34931         * tests/test-select.c (open_server_socket, main): Likewise.
34932         * tests/test-select-stdin.c (main): Likewise.
34933         * tests/test-sockets.c (main): Likewise.
34934         * tests/test-strsignal.c (main): Likewise.
34935         * tests/test-sys_select.c (main): Likewise.
34936         * tests/test-sys_socket.c (main): Likewise.
34937         * tests/test-u64.c (main): Likewise.
34938         * tests/test-xfprintf-posix.c (main): Likewise.
34939         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
34940
34941         sockets: avoid compiler warning
34942         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
34943
34944         maint: detect usage(1) and other suspicious exits
34945         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
34946
34947 2009-10-29  Jim Meyering  <meyering@redhat.com>
34948
34949         timespec: long-to-int truncation could make timespec_cmp malfunction
34950         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
34951         a multiple of 2^32 nanoseconds as no difference.
34952
34953 2009-10-28  Jim Meyering  <meyering@redhat.com>
34954
34955         fprintftime: wrap macro code argument in "do {...} while(0)"
34956         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
34957         cpy macro must be a statement that can be followed by a semicolon.
34958         Now that the else clause contains a comment and is hence longer
34959         than one line, I require curly braces.  That in turn requires
34960         that we wrap this code block in the standard do...while(0).
34961
34962         fprintftime: remove stray semicolon from previous change
34963         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
34964
34965         fprintftime: avoid a warning about ignored fwrite return value
34966         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
34967         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
34968         that is unsafe.
34969         * modules/fprintftime (Depends-on): Add ignore-value.
34970
34971         exclude: avoid an unwarranted warning
34972         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
34973
34974 2009-10-27  Eric Blake  <ebb9@byu.net>
34975
34976         fseek: avoid compilation failure when fflush is replaced
34977         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
34978         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
34979         module is in use.
34980         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
34981         module is not in use; since REPLACE_FSEEK worked otherwise.
34982         (GNULIB_FTELLO): Likewise for ftell.
34983         Reported by Ian Beckwith and others.
34984
34985 2009-10-27  Bruno Haible  <bruno@clisp.org>
34986
34987         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
34988         Reported by Jim Meyering.
34989
34990 2009-10-27  Jim Meyering  <jim@meyering.net>
34991             Bruno Haible  <bruno@clisp.org>
34992
34993         Avoid warning despite dropping the return value of fwrite.
34994         * lib/unicodeio.c: Include ignore-value.h.
34995         (fwrite_success_callback): Explicitly ignore fwrite's return value.
34996         * modules/unicodeio (Depends-on): Add ignore-value.
34997
34998 2009-10-26  Eric Blake  <ebb9@byu.net>
34999
35000         areadlinkat: fix fallback path
35001         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
35002         pointer and zero.
35003
35004 2009-10-22  Pádraig Brady  <P@draigBrady.com>
35005
35006         Use a better IO block size for modern systems
35007         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
35008         * lib/md2.c: Likewise.
35009         * lib/md4.c: Likewise.
35010         * lib/md5.c: Likewise.
35011         * lib/sha1.c: Likewise.
35012         * lib/sha256.c: Likewise.
35013         * lib/sha512.c: Likewise.
35014
35015 2009-10-22  Eric Blake  <ebb9@byu.net>
35016
35017         tests: avoid several compiler warnings
35018         * tests/test-getcwd.c (main): Avoid buffer underflow.
35019         * tests/test-getdate.c (main): String literals are not safe with
35020         putenv, so use setenv.  Declare unused argument.
35021         * modules/getdate-tests (Depends-on): Add setenv.
35022         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
35023         problems with string literals in char *.
35024         * tests/test-hash.c (main): Avoid shadowing declaration.
35025         (insert_new): Treat string literals as char const *.
35026         * tests/test-getopt.h (test_getopt): Likewise.
35027         (getopt_loop): Alter types to minimize casting elsewhere.
35028         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
35029         (test_getopt_long_posix): Likewise.
35030         (do_getopt_long): Add wrapper to minimize casting.
35031         * tests/test-atexit.c (clear_temp_file): Use void.
35032         * tests/test-areadlink-with-size.c (main): Declare unused
35033         arguments.
35034         * tests/test-areadlink.c (main): Likewise.
35035         * tests/test-areadlinkat-with-size.c (main): Likewise.
35036         * tests/test-areadlinkat.c (main): Likewise.
35037         * tests/test-canonicalize-lgpl.c (main): Likewise.
35038         * tests/test-canonicalize.c (main): Likewise.
35039         * tests/test-dirent-safer.c (main): Likewise.
35040         * tests/test-dirname.c (main): Likewise.
35041         * tests/test-dup2.c (main): Likewise.
35042         * tests/test-fchdir.c (main): Likewise.
35043         * tests/test-fcntl-h.c (main): Likewise.
35044         * tests/test-fcntl-safer.c (main): Likewise.
35045         * tests/test-fdopendir.c (main): Likewise.
35046         * tests/test-fdutimensat.c (main): Likewise.
35047         * tests/test-fflush.c (main): Likewise.
35048         * tests/test-filenamecat.c (main): Likewise.
35049         * tests/test-filevercmp.c (main): Likewise.
35050         * tests/test-fopen-safer.c (main): Likewise.
35051         * tests/test-fopen.c (main): Likewise.
35052         * tests/test-fpending.c (main): Likewise.
35053         * tests/test-fpurge.c (main): Likewise.
35054         * tests/test-freading.c (main): Likewise.
35055         * tests/test-fstatat.c (main): Likewise.
35056         * tests/test-fsync.c (main): Likewise.
35057         * tests/test-futimens.c (main): Likewise.
35058         * tests/test-getndelim2.c (main): Likewise.
35059         * tests/test-gettimeofday.c (main): Likewise.
35060         * tests/test-getopt.c (main): Likewise.
35061         * tests/test-i-ring.c (main): Likewise.
35062         * tests/test-inttypes.c (main): Likewise.
35063         * tests/test-link.c (main): Likewise.
35064         * tests/test-lstat.c (main): Likewise.
35065         * tests/test-math.c (main): Likewise.
35066         * tests/test-md5.c (main): Likewise.
35067         * tests/test-memchr2.c (main): Likewise.
35068         * tests/test-memrchr.c (main): Likewise.
35069         * tests/test-mkdir.c (main): Likewise.
35070         * tests/test-mkdirat.c (main): Likewise.
35071         * tests/test-mkfifoat.c (main): Likewise.
35072         * tests/test-open.c (main): Likewise.
35073         * tests/test-openat-safer.c (main): Likewise.
35074         * tests/test-openat.c (main): Likewise.
35075         * tests/test-quotearg.c (main): Likewise.
35076         * tests/test-rawmemchr.c (main): Likewise.
35077         * tests/test-readlink.c (main): Likewise.
35078         * tests/test-remove.c (main): Likewise.
35079         * tests/test-rename.c (main): Likewise.
35080         * tests/test-renameat.c (main): Likewise.
35081         * tests/test-rmdir.c (main): Likewise.
35082         * tests/test-sha1.c (main): Likewise.
35083         * tests/test-signal.c (main): Likewise.
35084         * tests/test-sigaction.c (main): Likewise.
35085         * tests/test-stat.c (main): Likewise.
35086         * tests/test-stat-time.c (main): Likewise.
35087         * tests/test-stddef.c (main): Likewise.
35088         * tests/test-stdint.c (main): Likewise.
35089         * tests/test-stdio.c (main): Likewise.
35090         * tests/test-stdlib.c (main): Likewise.
35091         * tests/test-strchrnul.c (main): Likewise.
35092         * tests/test-strerror.c (main): Likewise.
35093         * tests/test-string.c (main): Likewise.
35094         * tests/test-strtod.c (main): Likewise.
35095         * tests/test-strverscmp.c (main): Likewise.
35096         * tests/test-symlink.c (main): Likewise.
35097         * tests/test-symlinkat.c (main): Likewise.
35098         * tests/test-sys_stat.c (main): Likewise.
35099         * tests/test-sys_time.c (main): Likewise.
35100         * tests/test-time.c (main): Likewise.
35101         * tests/test-unistd.c (main): Likewise.
35102         * tests/test-unlink.c (main): Likewise.
35103         * tests/test-unlinkat.c (main): Likewise.
35104         * tests/test-utimens.c (main): Likewise.
35105         * tests/test-utimensat.c (main): Likewise.
35106         * tests/test-version-etc.c (main): Likewise.
35107         * tests/test-wchar.c (main): Likewise.
35108         * tests/test-wctype.c (main): Likewise.
35109         * tests/test-xprintf-posix.c (main): Likewise.
35110         * tests/test-posixtm.c (main): Likewise.
35111         (STREQ): Delete unused macro.
35112         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
35113         shadowed variables.
35114         * tests/test-memchr.c (main): Likewise.
35115
35116 2009-10-21  Eric Blake  <ebb9@byu.net>
35117
35118         areadlinkat: avoid failure on older glibc
35119         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
35120         rather than mis-comparing 0 against FUNC_RESULT of char*.
35121
35122 2009-10-21  Bruno Haible  <bruno@clisp.org>
35123
35124         * modules/stpncpy (License): Relicense under LGPLv2+.
35125         Reported by David Lutterkort <lutter@redhat.com>.
35126
35127 2009-10-20  Eric Blake  <ebb9@byu.net>
35128
35129         utimensat: work around Solaris 9 bug
35130         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
35131         has trailing slash bugs.
35132         * tests/test-lutimens.h (test_lutimens): Enhance test.
35133         * tests/test-utimens.h (test_utimens): Likewise.
35134         * doc/posix-functions/utime.texi (utime): Enhance documentation.
35135         * doc/posix-functions/utimes.texi (utimes): Likewise.
35136         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35137         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
35138         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
35139         * doc/posix-functions/futimens.texi (futimens): Likewise.
35140
35141         fdutimensat: new module
35142         * modules/fdutimensat: New file.
35143         * lib/fdutimensat.c (fdutimensat): Likewise.
35144         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
35145         * MODULES.html.sh (File system functions): Mention module.
35146         * modules/fdutimensat-tests: New test.
35147         * tests/test-fdutimensat.c: Likewise.
35148
35149         doc: regenerate INSTALL
35150         * doc/INSTALL: Reflect recent autoconf update.
35151         * doc/INSTALL.ISO: Likewise.
35152         * doc/INSTALL.UTF-8: Likewise.
35153
35154 2009-10-20  Pádraig Brady  <P@draigBrady.com>
35155
35156         acl: warn if ACL support is not detected
35157         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
35158
35159 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
35160
35161         * lib/nproc.h: Add extern "C" block for C++.
35162
35163 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
35164             Bruno Haible  <bruno@clisp.org>
35165
35166         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
35167         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
35168         * doc/posix-functions/isalpha.texi: Likewise.
35169         * doc/posix-functions/isblank.texi: Likewise.
35170         * doc/posix-functions/iscntrl.texi: Likewise.
35171         * doc/posix-functions/isdigit.texi: Likewise.
35172         * doc/posix-functions/isgraph.texi: Likewise.
35173         * doc/posix-functions/islower.texi: Likewise.
35174         * doc/posix-functions/isprint.texi: Likewise.
35175         * doc/posix-functions/ispunct.texi: Likewise.
35176         * doc/posix-functions/isspace.texi: Likewise.
35177         * doc/posix-functions/isupper.texi: Likewise.
35178         * doc/posix-functions/isxdigit.texi: Likewise.
35179
35180 2009-10-18  Bruno Haible  <bruno@clisp.org>
35181
35182         Tests for module 'isblank'.
35183         * modules/isblank-tests: New file.
35184         * tests/test-isblank.c: New file.
35185
35186         New module 'isblank'.
35187         * lib/isblank.c: New file.
35188         * m4/isblank.m4: New file.
35189         * modules/isblank: New file.
35190         * doc/posix-functions/isblank.texi: Mention the new module.
35191
35192 2009-10-18  Bruno Haible  <bruno@clisp.org>
35193
35194         New module 'ctype'.
35195         * lib/ctype.in.h: New file.
35196         * m4/ctype.m4: New file.
35197         * modules/ctype: New file.
35198         * doc/posix-headers/ctype.texi: Mention the new module.
35199
35200 2009-10-18  Jim Meyering  <meyering@redhat.com>
35201
35202         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
35203         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
35204         right after its initialization, rather than farther down.
35205         Keeping these in close proximity makes it easier to ensure
35206         that each such variable is initialized.  E.g.,
35207
35208             LIB_CLOCK_GETTIME=
35209             AC_SUBST([LIB_CLOCK_GETTIME])
35210
35211         This change also increments these serial numbers.
35212         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
35213         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
35214         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35215
35216 2009-10-18  Bruno Haible  <bruno@clisp.org>
35217
35218         Don't let environment variables perturb build.
35219         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
35220         (gl_PREREQ_GETHRXTIME): ... not here.
35221
35222 2009-10-18  Bruno Haible  <bruno@clisp.org>
35223
35224         Avoid symlink attack in localcharset module.
35225         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
35226         (O_NOFOLLOW): Define fallback.
35227         (get_charset_aliases): Don't open the file if it is a symbolic link.
35228         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
35229         gl_FCNTL_H.
35230         (gl_FCNTL_H): Require it.
35231         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
35232         * modules/localcharset (Files): Add m4/fcntl_h.m4.
35233         Reported by Fergal Glynn <fglynn@veracode.com>.
35234
35235 2009-10-18  Bruno Haible  <bruno@clisp.org>
35236
35237         Implement nproc for mingw.
35238         * lib/nproc.c: Include <windows.h>
35239         (num_processors): On native Windows platforms, try GetSystemInfo.
35240
35241 2009-10-18  Bruno Haible  <bruno@clisp.org>
35242
35243         Implement nproc for IRIX.
35244         * lib/nproc.c: Include <sys/sysmp.h>.
35245         (num_processors): On IRIX systems, try sysmp.
35246         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
35247
35248 2009-10-18  Bruno Haible  <bruno@clisp.org>
35249
35250         Implement nproc for HP-UX.
35251         * lib/nproc.c: Include <sys/pstat.h>
35252         (num_processors): On HP-UX systems, try pstat_getdynamic.
35253         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
35254         pstat_getdynamic.
35255
35256 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
35257             Bruno Haible  <bruno@clisp.org>
35258
35259         Implement nproc for NetBSD, OpenBSD.
35260         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
35261         (ARRAY_SIZE): New macro.
35262         (num_processors): On BSD systems, try sysctl of HW_NCPU.
35263         * m4/nproc.m4: New file.
35264         * modules/nproc (Files): Add m4/nproc.m4.
35265         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
35266         (Makefile.am): Instead, augment lib_SOURCES.
35267
35268 2009-10-18  Bruno Haible  <bruno@clisp.org>
35269
35270         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
35271         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
35272         sys/param.h.
35273
35274 2009-10-16  Eric Blake  <ebb9@byu.net>
35275
35276         utimensat: new module
35277         * modules/utimensat: New file.
35278         * lib/utimensat.c (utimensat): Likewise.
35279         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35280         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
35281         so we can work around Linux bugs.
35282         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35283         * modules/sys_stat (Makefile.am): Substitute them.
35284         * lib/sys_stat.in.h (utimensat): Declare it.
35285         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35286         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35287         * modules/utimensat-tests: New test.
35288         * tests/test-utimensat.c: Likewise.
35289
35290         utimens: let lutimens work on non-symlinks
35291         * lib/utimens.c (lutimens): Fall back to utimens rather than
35292         failing with ENOSYS, when file is not a symlink.
35293         (utimens): Reduce redirection.
35294         * tests/test-lutimens.h (test_lutimens): Update test to cover
35295         non-symlinks.
35296         * tests/test-utimens.h (test_utimens): Update test to cover
35297         symlinks.
35298         * tests/test-utimens.c (main): Update caller.
35299
35300         utimens: cache whether utimensat syscall works
35301         * lib/utimens.c (utimensat_works_really): New cache variable.
35302         (fdutimens, lutimens): Use it to avoid failing syscall.
35303
35304         test-stat-time, test-utimens: improve portability
35305         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
35306         ext4 on alpha, and for cygwin.
35307         * tests/test-utimens-common.h: New file.
35308         (nap): Factor delays into single function.
35309         * tests/test-lutimens.h (test_lutimens): Use new header.
35310         * tests/test-futimens.h (test_futimens): Likewise.
35311         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
35312         timestamps to occur from same machine, as was done previously for
35313         test_utimens.
35314         * modules/utimens-tests (Files): Ship new file.
35315         * modules/futimens-tests (Files): Likewise.
35316         Reported in part by Jim Meyering.
35317
35318         sys_stat: sort replacement declarations
35319         * lib/sys_stat.in.h: Sort declarations.
35320         * lib/futimens.c (futimens): Fix typo.
35321
35322 2009-10-15  Jim Meyering  <meyering@redhat.com>
35323
35324         don't let environment settings perturb build
35325         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
35326         could cause a configure-time and/or build-time malfunction.
35327         Typically, a configure-time function-in-library test is performed
35328         via code like this:
35329
35330           LIB_VAR=
35331           AC_SUBST([LIB_VAR])
35332           prefix_saved_LIBS=$LIBS
35333             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
35334                        [test "$ac_cv_search_FUNC" = "none required" ||
35335                         LIB_VAR=$ac_cv_search_FUNC])
35336           LIBS=$prefix_saved_LIBS
35337
35338         However, in each of the files affected by this change, the LIB_VAR=
35339         initialization was omitted.  Thus, when set in the environment, its
35340         value would propagate into generated Makefiles when FUNC is not found
35341         in LIB_NAME.
35342         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
35343         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
35344         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35345
35346 2009-10-14  Eric Blake  <ebb9@byu.net>
35347
35348         fchdir: avoid infinite recursion in mingw
35349         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
35350         recursing.
35351
35352         test-stat-time: port to mingw
35353         * tests/test-stat-time.c (force_unlink): Return a value.
35354         (test_ctime) [W32]: Fix compilation error.
35355         (nap): Don't call usleep with too large an argument.  Use
35356         force_unlink.
35357         * doc/pastposix-functions/usleep.texi (usleep): Document the
35358         portability issue.
35359
35360 2009-10-13  Jim Meyering  <meyering@redhat.com>
35361
35362         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
35363         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
35364         * modules/pipe-filter-ii: Likewise.
35365         * modules/sys_socket-tests: Likewise.
35366         * modules/tsearch-tests: Likewise.
35367         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
35368         (check): Depend on it.
35369
35370 2009-10-12  Eric Blake  <ebb9@byu.net>
35371
35372         utimens-tests: port to NFS file systems
35373         * tests/test-utimens.h (test_utimens): Refactor utimecmp
35374         comparisons to avoid spurious failures from timestamp drift
35375         between NFS machines.
35376
35377 2009-10-12  Eric Blake  <ebb9@byu.net>
35378
35379         stat-time-tests: minor cleanups
35380         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
35381         * tests/test-stat-time.c (nap): Separate assignment from call.
35382         Suggested by Paolo Bonzini and Bruno Haible.
35383
35384         sys_stat: guarantee struct timespec
35385         * lib/sys_stat.in.h (includes): Always include <time.h>
35386         * modules/sys_stat (Depends-on): Add time.
35387         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
35388         mode_t permission values.
35389         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
35390         get at subsecond timestamps.
35391
35392 2009-10-10  Eric Blake  <ebb9@byu.net>
35393
35394         futimens: new module
35395         * modules/futimens: New file.
35396         * lib/futimens.c (futimens): Likewise.
35397         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
35398         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
35399         we can work around Linux bugs.
35400         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
35401         * modules/sys_stat (Makefile.am): Substitute them.
35402         * lib/sys_stat.in.h (futimens): Declare it.
35403         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35404         * doc/posix-functions/futimens.texi (futimens): Likewise.
35405         * modules/futimens-tests: New test.
35406         * tests/test-futimens.c: Likewise.
35407
35408         utimens: introduce fdutimens
35409         * lib/utimens.h (fdutimens): New prototype.
35410         * lib/utimens.c (gl_futimens): Move guts...
35411         (fdutimens): ...to new interface.
35412         * tests/test-utimens.c (do_fdutimens): Use it.
35413
35414         utimens: add UTIME_NOW and UTIME_OMIT support
35415         * lib/utimens.c (validate_timespec, update_timespec): New helper
35416         functions.
35417         (gl_futimens, lutimens): Use them.
35418         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
35419         stdbool, sys_stat.
35420         (Link): Mention resulting library dependency.
35421         * modules/utimecmp (Link): Likewise.
35422         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
35423         (Makefile.am): Pick up library dependency.
35424         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
35425         definition.
35426         * tests/test-sys_stat.c: Test the definitions.
35427         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
35428         * NEWS: Document library dependency.
35429
35430         utimecmp: support symlink timestamps
35431         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
35432         hashing when possible.  Use pathconf when available.
35433         (SYSCALL_RESOLUTION): Recognize tighter resolution.
35434         * modules/utimecmp (Depends-on): Add lstat.
35435
35436         utimens: add lutimens interface
35437         * lib/utimens.c (lutimens): New function.
35438         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
35439         * lib/utimens.h (lutimens): Declare new interface.
35440         * tests/test-utimens.c (main): Enhance test.
35441         * tests/test-lutimens.h (test_lutimens): New file.
35442         * modules/utimens-tests (Files): Distribute it.
35443         (Depends-on): Add symlink.
35444         (configure.ac): Check for usleep.
35445
35446         utimens: validate futimens usage
35447         * lib/utimens.c (gl_futimens): Require valid fd up front, using
35448         fewer syscalls on failure later on.  Avoid compiler warning on
35449         mingw.
35450         * modules/utimens (Depends-on): Add dup2.
35451
35452         utimens: add test
35453         * modules/utimens-tests: New test.
35454         * tests/test-utimens.h: New file.
35455         * tests/test-futimens.h: Likewise.
35456         * tests/test-utimens.c: Likewise.
35457
35458         doc: mention timestamp portability issues
35459         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
35460         instead.
35461         * doc/posix-functions/utime.texi (utime): Likewise.
35462         * doc/posix-functions/utimes.texi (utimes): Likewise.
35463         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
35464         instead.
35465         * doc/posix-functions/futimens.texi (futimens): Mention utimens
35466         module.
35467         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35468         Mention weakness with symlink timestamps.
35469         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
35470         to utimensat/futimens instead.
35471         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
35472
35473         test-dup2: enhance test
35474         * tests/test-dup2.c (main): Also check AT_FDCWD.
35475
35476         test-stat-time: avoid more spurious failures
35477         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
35478         xfs; and avoid race if the two timestamps cross quantization edge.
35479
35480         relocatable: prefer 'file system' over 'filesystem'
35481         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
35482         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
35483         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
35484         * doc/relocatable.texi (Enabling Relocatability): Likewise.
35485         * lib/relocatable.c (compute_curr_prefix): Likewise.
35486
35487 2009-10-10  Jim Meyering  <meyering@redhat.com>
35488
35489         stat-time-tests: check for the usleep function
35490         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
35491
35492 2009-10-10  Bruno Haible  <bruno@clisp.org>
35493
35494         * modules/xnanosleep: Put the Link section after the Include section.
35495
35496 2009-10-09  Eric Blake  <ebb9@byu.net>
35497
35498         dup2: work around FreeBSD 6.1 bug
35499         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
35500         * doc/posix-functions/dup2.texi (dup2): Document it.
35501         Reported by Nelson H. F. Beebe and Jim Meyering.
35502
35503         test-stat-time: port to buggy NFS clients
35504         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
35505         (test_ctime): Also skip test if mtime and ctime are skewed.
35506
35507         maint: prefer 'file system' over 'filesystem'
35508         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
35509         * doc/posix-functions/lstat.texi (lstat): Likewise.
35510         * lib/file-has-acl.c (file_has_acl): Likewise.
35511         * lib/fwriteerror.c [TEST]: Likewise.
35512         * tests/test-areadlink.h (test_areadlink): Likewise.
35513         * tests/test-areadlinkat-with-size.c (main): Likewise.
35514         * tests/test-areadlinkat.c (main): Likewise.
35515         * tests/test-canonicalize-lgpl.c (main): Likewise.
35516         * tests/test-canonicalize.c (main): Likewise.
35517         * tests/test-fstatat.c (main): Likewise.
35518         * tests/test-linkat.c (main): Likewise.
35519         * tests/test-lstat.h (test_lstat_func): Likewise.
35520         * tests/test-mkdir.h (test_mkdir): Likewise.
35521         * tests/test-readlink.h (test_readlink): Likewise.
35522         * tests/test-remove.c (main): Likewise.
35523         * tests/test-rename.h (test_rename): Likewise.
35524         * tests/test-renameat.c (main): Likewise.
35525         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35526         * tests/test-symlink.h (test_symlink): Likewise.
35527         * tests/test-symlinkat.c (main): Likewise.
35528         * tests/test-unlink.h (test_unlink_func): Likewise.
35529         * tests/test-unlinkat.c (main): Likewise.
35530
35531         maint: make realtime library usage explicit
35532         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
35533         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
35534         * modules/settime (Link): Likewise.
35535         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
35536
35537         test-stat-time: speed up execution
35538         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
35539         warning on mingw.
35540         (nap): New helper function.
35541         (prepare_test): Use it to reduce sleep time.
35542         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
35543         execution.
35544         * modules/stat-time-tests (configure.ac): Check for usleep.
35545
35546 2009-10-09  Jim Meyering  <meyering@redhat.com>
35547
35548         selinux-h: always use getfilecon wrappers
35549         * lib/getfilecon.c: New file.
35550         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
35551         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
35552         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
35553         (fgetfilecon): Provide a stub.
35554         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
35555         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
35556         file unconditionally.
35557         When <selinux/selinux.h> is found, arrange to use wrappers.
35558         * modules/selinux-h (Files): Add getfilecon.c.
35559         (Makefile.am): Substitute include-next-related bits
35560         into the now-always-generated selinux/selinux.h file.
35561         * doc/glibc-functions/lgetfilecon.texi: New file.
35562         * doc/glibc-functions/fgetfilecon.texi: New file.
35563         * doc/glibc-functions/getfilecon.texi: New file.
35564         * doc/glibc-functions/getfilecon-desc.texi: New file.
35565         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
35566         which to pull in the new files.
35567         * MODULES.html.sh (Misc): Add selinux-h.
35568
35569 2009-10-08  Jim Meyering  <meyering@redhat.com>
35570
35571         unistd: fix comment typo
35572         * lib/unistd.in.h (euidaccess): Fix a comment typo.
35573
35574 2009-10-08  Eric Blake  <ebb9@byu.net>
35575
35576         areadlink: use SIZE_MAX consistently
35577         * modules/areadlink (Depends-on): Add stdint.
35578         * modules/areadlink-with-size (Depends-on): Likewise.
35579         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
35580         gives NULL; drop sys/types, since unistd gives size_t; and add
35581         stdint for SIZE_MAX.
35582         (SIZE_MAX): Rely on headers.
35583         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
35584         and add stdint.
35585         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
35586         (SIZE_MAX): Likewise.
35587         (INITIAL_BUF_SIZE): Turn into enum.
35588         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
35589
35590 2009-10-08  Jim Meyering  <meyering@redhat.com>
35591
35592         areadlinkat: avoid compilation failure
35593         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
35594         Fix typo in comment.
35595
35596 2009-10-07  Eric Blake  <ebb9@byu.net>
35597
35598         areadlinkat-with-size: new module
35599         * modules/areadlinkat-with-size: New module.
35600         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
35601         * lib/areadlink.h (areadlinkat): Declare it.
35602         * MODULES.html.sh (File system functions): Mention it.
35603         * modules/areadlinkat-with-size-tests: New test.
35604         * tests/test-areadlinkat-with-size.c: New file.
35605
35606         xreadlinkat: new module
35607         * modules/xreadlinkat: New module.
35608         * lib/xreadlinkat.c (xreadlinkat): New file.
35609         * lib/xreadlink.h (xreadlinkat): Declare it.
35610         * MODULES.html.sh (File system functions): Mention it.
35611
35612         areadlinkat: new module
35613         * lib/at-func.c (FUNC_FAIL): New define.
35614         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
35615         * modules/areadlinkat: New module.
35616         * lib/linkat.c (areadlinkat): Move...
35617         * lib/areadlinkat.c (areadlinkat): ...to new file.
35618         * lib/areadlink.h (areadlinkat): Declare it.
35619         * modules/linkat (Depends-on): Add areadlinkat.
35620         * MODULES.html.sh (File system functions): Mention it.
35621         * modules/areadlinkat-tests: New test.
35622         * tests/test-areadlinkat.c: New file.
35623
35624         areadlink, areadlink-with-size: add tests
35625         * modules/areadlink-tests: New test.
35626         * modules/areadlink-with-size-tests: Likewise.
35627         * tests/test-areadlink.h: New file.
35628         * tests/test-areadlink.c: Likewise.
35629         * tests/test-areadlink-with-size.c: Likewise.
35630
35631         maint: minor cleanups
35632         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
35633         _UNUSED_PARAMETER_ instead.
35634         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
35635         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
35636         * modules/linkat-tests (Files): Distribute test-link.h.
35637
35638         openat, utimens: whitespace cleanup
35639         * lib/openat.c: Prefer space throughout, rather than mix of 8
35640         spaces vs. tabs.
35641         * lib/at-func.c: Likewise.
35642         * lib/utimens.c: Likewise.
35643
35644         openat: avoid using wrong fd
35645         * lib/openat.c (openat_permissive): Reject user's fd if saving the
35646         working directory chooses same fd.
35647         * lib/at-func.c (AT_FUNC_NAME): Likewise.
35648
35649         mkdir, mkdirat: fix cygwin 1.5.x bug
35650         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
35651         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
35652         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
35653         bug.
35654         (gl_PREREQ_MKDIR): Delete unused macro.
35655         * modules/mkdir (Files): Track file rename.
35656         (configure.ac): Update macro name.
35657         * modules/openat (Depends-on): Add mkdir.
35658         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
35659
35660         mkdir, mkdirat: add tests
35661         * modules/mkdir-tests: New test.
35662         * tests/test-mkdir.h: New file.
35663         * tests/test-mkdir.c: Likewise.
35664         * tests/test-mkdirat.c: Likewise.
35665         * modules/openat-tests (Files): Add new files.
35666         (Makefile.am): Run new test.
35667
35668 2009-10-06  Eric Blake  <ebb9@byu.net>
35669
35670         doc: tweak *at function documentation
35671         * doc/posix-functions/faccessat.texi (faccessat): Mention
35672         known issue with replacement.
35673         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
35674         * doc/posix-functions/linkat.texi (linkat): Likewise.
35675         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
35676         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
35677         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
35678         * doc/posix-functions/renameat.texi (renameat): Likewise.
35679         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35680
35681         openat: fix GNU/Hurd bug in unlinkat
35682         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
35683         broken.
35684         * doc/posix-functions/unlink.texi (unlink): Document this.
35685         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
35686
35687         fdopendir: fix GNU/Hurd bug
35688         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
35689         allowing non-directory fds.
35690         * lib/fdopendir.c (rpl_fdopendir): Work around it.
35691         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
35692         * modules/dirent (Makefile.am): Substitute it.
35693         * lib/dirent.in.h (fdopendir): Declare replacement.
35694         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
35695         * tests/test-fdopendir.c (main): Test something other than
35696         /dev/null, since on Hurd that behaves like a directory.
35697
35698         test-symlink: port to GNU/Hurd
35699         * tests/test-symlink.h (test_symlink): Relax expected errno.
35700
35701         doc: tweak more cygwin information
35702         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
35703         now compatible with glibc.
35704         * doc/posix-functions/getopt.texi (getopt): Likewise.
35705
35706         getopt-gnu: add another test
35707         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
35708         guarantee behavior relied on by m4.
35709         * tests/test-getopt.c (main): Use it.
35710         * modules/getopt-posix-tests (Depends-on): Add setenv.
35711         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
35712
35713         getopt: fix compilation on darwin
35714         * lib/getopt.in.h (includes): Leave breadcrumbs during system
35715         include.
35716         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
35717         Reported by Ludovic Courtès.
35718
35719 2009-10-06  Bruno Haible  <bruno@clisp.org>
35720
35721         * modules/size_max (Description): Discourage its use.
35722         Reported by Simon Josefsson.
35723
35724 2009-10-06  Jim Meyering  <meyering@redhat.com>
35725
35726         linkat: avoid compilation failure
35727         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
35728
35729 2009-10-05  Eric Blake  <ebb9@byu.net>
35730
35731         linkat: support Linux 2.6.17
35732         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
35733         linkat on Linux, but allow cache variable override.
35734         * lib/linkat.c (rpl_linkat): Define override.
35735         * modules/linkat (Depends-on): Add symlinkat.
35736         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
35737         * modules/unistd (Makefile.am): Substitute it.
35738         * lib/unistd.in.h (linkat): Declare replacement.
35739         Reported by Pádraig Brady.
35740
35741         quotearg: port test to systems with C.UTF-8 locale
35742         * tests/test-quotearg.c (struct result_strings): Add another
35743         member, differentiating between C.ASCII and C.UTF-8 handling.
35744         (compare_strings): Add parameter.
35745         (main): Adjust all callers.
35746
35747         getopt: avoid clash with FreeBSD _getopt_internal
35748         * lib/getopt.in.h (_getopt_internal): Override the name.
35749         * lib/getopt_int.h (includes): Pick up any overrides.
35750         Reported by Reuben Thomas.
35751
35752         hash: allow C89 compilation
35753         * lib/hash.c (check_tuning): Move declaration before statement.
35754         Reported by Reuben Thomas.
35755
35756 2009-10-05  Karl Berry  <karl@gnu.org>
35757
35758         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
35759
35760 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
35761             Bruno Haible  <bruno@clisp.org>
35762
35763         * lib/uname.c (uname): Use a table-driven algorithm to compute
35764         Windows NT versions.
35765
35766 2009-10-04  Bruno Haible  <bruno@clisp.org>
35767
35768         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
35769         program_invocation_short_name.
35770         * modules/progname (configure.ac): Test for presence of
35771         program_invocation_short_name.
35772         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
35773
35774 2009-10-04  Bruno Haible  <bruno@clisp.org>
35775
35776         * lib/progname.c (set_program_name): Fix comment.
35777         Reported by Jim Meyering.
35778
35779 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
35780             Bruno Haible  <bruno@clisp.org>
35781
35782         * lib/uname.c: Include <string.h>.
35783         (uname): Do only one call to GetVersionEx in the common case.
35784
35785 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
35786             Bruno Haible  <bruno@clisp.org>
35787
35788         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
35789         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
35790         (uname): Add support for Windows CE and various non-x86 CPU types.
35791
35792 2009-10-03  Bruno Haible  <bruno@clisp.org>
35793
35794         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
35795         invocation to tests/configure.ac.
35796         Reported by Ian Beckwith <ianb@erislabs.net>.
35797
35798 2009-10-02  Eric Blake  <ebb9@byu.net>
35799
35800         fchdir: avoid compiler warning
35801         * lib/fchdir.c (canonicalize_file_name)
35802         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
35803
35804         test-open: support mingw errno values
35805         * tests/test-open.h (test_open): Relax test.
35806         * tests/test-fopen.h (test_fopen): Likewise.
35807         * tests/test-openat-safer.c (main): Likewise.
35808
35809         open: fix opening directory on mingw
35810         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
35811
35812         test-open: on GNU/Hurd, /dev/null is a directory
35813         * tests/test-fopen.h (main): Rename...
35814         (test_fopen): ...to this.  Use a guaranteed non-directory when
35815         confirming open behavior on trailing slash.
35816         * tests/test-openat-safer.c (main): Likewise.
35817         * tests/test-open.h (main): Likewise....
35818         (test_open): ...to this.
35819         * tests/test-fopen.c (main): Adjust caller.
35820         * tests/test-fopen-safer.c (main): Likewise.
35821         * tests/test-open.c (main): Likewise.
35822         * tests/test-fcntl-safer.c (main): Likewise.
35823         Reported by Samuel Thibault.
35824
35825         rename, fchdir: don't ignore chdir failure
35826         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
35827         * lib/rename.c (rpl_rename) [W32]: Likewise.
35828         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
35829         an empty destination directory if source cannot be renamed,
35830         although there is still possibility for failure.
35831         * doc/posix-functions/rename.texi (rename): Document the race.
35832         Reported by Jim Meyering.
35833
35834         maint: cleanup whitespace in recent commits
35835         * lib/rename.c (rpl_rename): Remove tabs.
35836         * tests/test-link.h (test_link): Likewise.
35837         * lib/fchdir.c (get_name): Likewise.
35838         Reported by Jim Meyering.
35839
35840 2009-10-02  Ben Pfaff  <blp@gnu.org>
35841
35842         relocatable-prog-wrapper: Add missing dependency on
35843         double-slash-root.
35844         * modules/relocatable-prog-wrapper: Add dependency.
35845         Reported by Ian Beckwith <ianb@erislabs.net>.
35846
35847 2009-10-02  Eric Blake  <ebb9@byu.net>
35848
35849         renameat: fix Solaris bugs
35850         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
35851         needed fixing.
35852         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
35853         * modules/stdio (Makefile.am): Substitute it.
35854         * lib/stdio.in.h (renameat): Declare replacement.
35855         * lib/renameat.c (rpl_renameat): Implement fix.
35856
35857         renameat: new module
35858         * modules/renameat: New file.
35859         * lib/renameat.c (renameat): Likewise.
35860         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
35861         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
35862         * modules/stdio (Makefile.am): Substitute them.
35863         * lib/stdio.in.h (renameat): Declare it.
35864         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
35865         * doc/posix-functions/renameat.texi (renameat): Likewise.
35866         * modules/renameat-tests: New test.
35867         * tests/test-renameat.c: Likewise.
35868
35869         rename: fix mingw bugs
35870         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
35871         directory overwrite bugs.
35872
35873         rename: fix another cygwin 1.5 bug
35874         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
35875         checks.
35876         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
35877         unnecessary cygwin workarounds.  Also work around bug with moving
35878         full directory onto an empty one.
35879         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
35880
35881         rename-dest-slash: merge into rename module
35882         * modules/rename-dest-slash (Status): Mark obsolete.
35883         (Depends-on): Add rename.
35884         (Files): Let rename do it all.
35885         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
35886         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
35887         * m4/rename-dest-slash.m4: ...so this file can be deleted.
35888         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
35889         * lib/rename.c (rpl_rename): Update comments.
35890
35891         rename: fix cygwin 1.5.x bugs
35892         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
35893         * lib/rename.c (rpl_rename): Work around them.
35894         * modules/rename (Depends-on): Add same-inode.
35895
35896         rename: fix Solaris 10 bug
35897         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
35898         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
35899         was the only bug.
35900
35901         rename: fix Solaris 9 bug
35902         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
35903         on non-directory.  Avoid calling exit.
35904         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
35905         strdup.
35906         * modules/rename-tests (Depends-on): Drop lstat.
35907         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
35908         (gl_PREREQ_RENAME): Delete unused macro.
35909
35910         rename-dest-slash: fix NetBSD bug
35911         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
35912         links.
35913         * modules/rename-dest-slash (Depends-on): Add same-inode.
35914
35915         rename-tests: new test, exposes several platform bugs
35916         * modules/rename-tests: New file.
35917         * tests/test-rename.h: Likewise.
35918         * tests/test-rename.c: Likewise.
35919         * doc/posix-functions/rename.texi (rename): Improve documentation,
35920         including bugs that will eventually be fixed in gnulib.
35921
35922 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
35923
35924         * lib/uname.c: Include <stdlib.h>
35925         (uname): Assume version info is available.
35926
35927 2009-10-02  Jim Meyering  <meyering@redhat.com>
35928
35929         gnu-web-doc-update: correct --help output
35930         * build-aux/gnu-web-doc-update: Make --help output relevant.
35931
35932         gnu-web-doc-update: add standard options
35933         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
35934
35935         gnu-web-doc-update: New module.
35936         Use this script to automatically update the on-line web documentation
35937         for your GNU project at http://www.gnu.org/software/$pkg/manual/
35938         * modules/gnu-web-doc-update: New file, from coreutils.
35939         * build-aux/gnu-web-doc-update: New script.
35940
35941 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
35942
35943         link: LoadLibrary is not needed.
35944         * lib/link.c: Use GetModuleHandle.
35945
35946 2009-10-01  Eric Blake  <ebb9@byu.net>
35947
35948         getopt: bump serial number
35949         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
35950         change.
35951
35952         tests: tighten link, rmdir, and remove tests
35953         * tests/test-link.h (includes): No need to use <config.h> here.
35954         Clean up if directory hard link was created, otherwise test for
35955         trailing '.'.
35956         * tests/test-linkat.c (main): Simplify.
35957         * tests/test-remove.c (main): Enhance test for trailing '.'.
35958         * tests/test-rmdir.h (test_rmdir_func): Likewise.
35959
35960 2009-10-01  Jim Meyering  <meyering@redhat.com>
35961
35962         maint.mk: requiring "make major" was annoying, for a "minor" release.
35963         What is intended is "stable", to contrast with alpha and beta,
35964         so require "make stable", not "make major".
35965         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
35966         (get_tool_versions): Likewise.
35967         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
35968
35969 2009-09-30  Ben Pfaff  <blp@gnu.org>
35970
35971         Fix broken build of replacement for Windows tmpfile().
35972         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
35973         flags argument added along with the 'mkostemp' module.
35974
35975 2009-09-28  Bruno Haible  <bruno@clisp.org>
35976
35977         Avoid identifier clash with POSIX function 'remove' defined as a macro.
35978         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
35979         to 'remove_elt'.
35980         (gl_list_remove): Update.
35981         * lib/gl_list.c (gl_list_remove): Update.
35982         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
35983         to 'remove_elt'.
35984         (gl_oset_remove): Update.
35985         * lib/gl_list.c (gl_oset_remove): Update.
35986         Reported by Eric Blake.
35987
35988 2009-09-28  Eric Blake  <ebb9@byu.net>
35989
35990         doc: mention yet more cygwin 1.7 status
35991         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
35992         cygwin.
35993         * doc/glibc-functions/execvpe.texi (execvpe): New file.
35994         * doc/gnulib.texi (Glibc unistd.h): Mention it.
35995
35996         argp: fix test failure
35997         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
35998         that are not upper-case.  Pass correct range to tolower.
35999
36000 2009-09-27  Jim Meyering  <meyering@redhat.com>
36001
36002         test-yesno: work around sparc-dash here-document infelicity
36003         Without this change, the literal \177 byte in a here document
36004         would make dash 0.5.5.1-3 access uninitialized memory.
36005         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
36006         Instead, use a marker, "@", and filter through tr to create the desired
36007         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
36008
36009 2009-09-27  Bruno Haible  <bruno@clisp.org>
36010
36011         Disable untested support for new flavours of ACLs on AIX.
36012         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
36013         progress.
36014         * lib/set-mode-acl.c (qset_acl): Likewise.
36015
36016 2008-12-07  Bruno Haible  <bruno@clisp.org>
36017
36018         Add support for new flavours of ACLs on AIX. (Untested.)
36019         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
36020         (file_has_acl): Add support for newer AIX.
36021         * lib/set-mode-acl.c (qset_acl): Likewise.
36022         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
36023         Rainer Tammer <tammer@tammer.net>.
36024
36025 2009-09-26  Eric Blake  <ebb9@byu.net>
36026
36027         argp: fix compilation of getopt
36028         * lib/getopt.in.h (includes): Use different guard than glibc.
36029         Reported by Sergey Poznyakoff.
36030
36031         doc: mention more cygwin 1.7 status
36032         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
36033         bug.
36034         * doc/posix-functions/execl.texi (execl): Likewise.
36035         * doc/posix-functions/execle.texi (execle): Likewise.
36036         * doc/posix-functions/execlp.texi (execlp): Likewise.
36037         * doc/posix-functions/execv.texi (execv): Likewise.
36038         * doc/posix-functions/execve.texi (execve): Likewise.
36039         * doc/posix-functions/execvp.texi (execvp): Likewise.
36040         * doc/glibc-functions/canonicalize_file_name.texi
36041         (canonicalize_file_name): Cygwin 1.7 now provides this.
36042         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
36043         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
36044         on AT_SYMLINK_NOFOLLOW.
36045
36046 2009-09-24  Eric Blake  <ebb9@byu.net>
36047
36048         test-linkat: make test more robust
36049         * tests/test-linkat.c (main): Avoid collision with EEXIST.
36050
36051         getopt: fix inclusion guards for cygwin
36052         * modules/getopt-posix (Depends-on): Add include-next.
36053         (Makefile.am): Substitute more items in replacement header.
36054         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
36055         <getopt.h>.
36056         * lib/getopt.in.h (includes): Use split inclusion guard, and
36057         prefer <getopt.h> over include <unistd.h> when one is present.
36058         (option): Also override name of 'struct option'.
36059
36060         same-inode: revert prior change; it is not yet ready
36061         * NEWS: Undo mention of this change.
36062         * lib/same-inode.h (same-inode.h): Undo tri-state change.
36063         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
36064         * lib/cycle-check.c (cycle_check): Likewise.
36065         * lib/same.c (same_name): Likewise.
36066         * lib/at-func2.c (at_func2): Likewise.
36067
36068 2009-09-23  Eric Blake  <ebb9@byu.net>
36069
36070         linkat: new module
36071         * modules/linkat: New file.
36072         * lib/at-func2.c (at_func2): Likewise.
36073         * lib/linkat.c (linkat): Likewise.
36074         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
36075         * lib/openat-priv.h (at_func2): Add declaration.
36076         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36077         * modules/unistd (Makefile.am): Substitute them.
36078         * lib/unistd.in.h (linkat): Declare it.
36079         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36080         * doc/posix-functions/linkat.texi (linkat): Likewise.
36081         * doc/posix-functions/link.texi (link): Tweak wording.
36082         * tests/test-link.c (main): Move guts...
36083         * tests/test-link.h (test_link): ...into new file.
36084         * modules/linkat-tests: New test.
36085         * tests/test-linkat.c: Likewise.
36086         * modules/link-tests (Files): Ship new file.
36087         (Depends-on): Add stdbool.
36088
36089         dirname: add library-safe mdir_name
36090         * lib/dirname.h (mdir_name): New prototype.
36091         * lib/dirname.c (dir_name): Move guts...
36092         (mdir_name): ...to new function that avoids xalloc_die.
36093
36094         fchdir: another mingw fix
36095         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
36096         * lib/fchdir.c (get_name): New helper method; skips canonicalize
36097         on mingw (where it has not yet been ported), and make it optional
36098         elsewhere.
36099         (_gl_register_fd): Use it.
36100
36101         same-inode: make SAME_INODE tri-state, to port to mingw
36102         * NEWS: Mention this change.
36103         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
36104         st_ino always being 0.
36105         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
36106         * lib/cycle-check.c (cycle_check): Likewise.
36107         * lib/same.c (same_name): Likewise.
36108
36109         lstat: avoid mingw compilation error
36110         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
36111         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
36112         lstat ourselves.
36113         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
36114         was adequate.
36115         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
36116         the checks for lstat.
36117         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
36118
36119         link: fix test failure on Solaris 9
36120         * lib/link.c (rpl_link): Don't assume link will catch bogus
36121         trailing slash on source.
36122
36123         test-symlinkat: enhance test
36124         * tests/test-readlink.c (main): Move guts...
36125         * tests/test-readlink.h (test_readlink): ...into new file.
36126         * tests/test-symlink.c (main): Move guts...
36127         * tests/test-symlink.h (test_symlink): ...into new file.
36128         * tests/test-symlinkat.c (main): Use new files for further
36129         coverage.
36130         (do_symlink, do_readlink): New helper functions.
36131         * modules/symlink-tests (Files): Ship new file.
36132         (Depends-on): Add stdbool.
36133         * modules/readlink-tests (Files): Ship new file.
36134         (Depends-on): Add stdbool.
36135         * modules/symlinkat-tests (Files): Use new files.
36136
36137 2009-09-23  Eric Blake  <ebb9@byu.net>
36138
36139         readlink: document portability issue with symlink length
36140         * doc/posix-functions/lstat.texi (lstat): Mention that some file
36141         systems have bogus st_size on symlinks, and mention the
36142         areadlink-with-size module.
36143         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
36144         * doc/posix-functions/readlink.texi (readlink): Mention the
36145         areadlink module, and ERANGE failure.
36146         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36147         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
36148
36149         readlink: fix Solaris 9 bug with trailing slash
36150         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
36151         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
36152         * doc/posix-functions/readlink.texi (readlink): Document this.
36153         * modules/readlink-tests: New test.
36154         * tests/test-readlink.c: Likewise.
36155
36156         readlink: fix cygwin 1.5.x bug with return type
36157         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
36158         * lib/unistd.in.h (readlink): Use ssize_t.
36159         * lib/readlink.c (readlink): Likewise.
36160         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36161         * modules/unistd (Makefile.am): Substitute it.
36162         * lib/unistd.in.h (readlink): Declare replacement.
36163         * doc/posix-functions/readlink.texi (readlink): Document this.
36164
36165         symlink: use throughout gnulib
36166         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
36167         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
36168         symlink is not used.
36169         * modules/symlinkat (Depends-on): Add symlink.
36170         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36171         * modules/canonicalize-tests (Depends-on): Likewise.
36172         * modules/lstat-tests (Depends-on): Likewise.
36173         * modules/openat-tests (Depends-on): Likewise.
36174         * modules/remove-tests (Depends-on): Likewise.
36175         * modules/rmdir-tests (Depends-on): Likewise.
36176         * modules/unlink-tests (Depends-on): Likewise.
36177         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
36178         * tests/test-canonicalize.c (symlink): Likewise.
36179         * tests/test-fstatat.c (symlink): Likewise.
36180         * tests/test-lstat.c (symlink): Likewise.
36181         * tests/test-remove.c (symlink): Likewise.
36182         * tests/test-rmdir.c (symlink): Likewise.
36183         * tests/test-unlink.c (symlink): Likewise.
36184         * tests/test-unlinkat.c (symlink): Likewise.
36185
36186         symlink: new module, for Solaris 9 bug
36187         * modules/symlink: New file.
36188         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
36189         * lib/symlink.c: Likewise.
36190         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
36191         * modules/unistd (Makefile.am): Substitute them.
36192         * lib/unistd.in.h (symlink): Declare replacement.
36193         * MODULES.html.sh (File system functions): Mention it.
36194         * doc/posix-functions/symlink.texi (symlink): Likewise.
36195         * modules/symlink-tests: New test.
36196         * tests/test-symlink.c: Likewise.
36197
36198 2009-09-23  Bruno Haible  <bruno@clisp.org>
36199
36200         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
36201         when needed.
36202         Test case: gnulib-tool --import --with-tests atexit inttypes.
36203         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
36204
36205 2009-09-23  Bruno Haible  <bruno@clisp.org>
36206
36207         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
36208         subcommand, not in a subshell.
36209
36210 2009-09-22  Eric Blake  <ebb9@byu.net>
36211
36212         unistd: sort replacement declarations
36213         * lib/unistd.in.h: Sort declarations.
36214
36215         open, openat: minor optimization
36216         * lib/open.c (open): If open succeeded, len is non-zero.
36217         * lib/openat.c (rpl_openat): Likewise.
36218
36219         link-follow: ensure correct result
36220         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
36221         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
36222         distinguish between possible failures.
36223
36224 2009-09-21  Eric Blake  <ebb9@byu.net>
36225
36226         fts: avoid compiler warning
36227         * lib/fts.c (dirent_inode_sort_may_be_useful)
36228         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
36229
36230 2009-09-19  Bruno Haible  <bruno@clisp.org>
36231
36232         * lib/progreloc.c (canonicalize_file_name): New declaration.
36233
36234 2009-09-19  Eric Blake  <ebb9@byu.net>
36235
36236         link: fix quoting
36237         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
36238
36239         openat: fix openat bugs on Solaris 9
36240         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
36241         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
36242         * modules/openat (Depends-on): Add open.
36243         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
36244         * modules/fcntl-h (Makefile.am): Substitute it.
36245         * lib/fcntl.in.h (openat): Declare replacement.
36246         * doc/posix-functions/openat.texi (openat): Document this.
36247
36248         openat: move fstatat and unlinkat into correct files
36249         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
36250         compiled.
36251         * lib/openat.c (fstatat, unlinkat): Move...
36252         * lib/fstatat.c (fstatat): ...into correct files.
36253         * lib/unlinkat.c (unlinkat): Likewise.
36254
36255         openat: fix unlinkat bugs on Solaris 9
36256         * lib/unlinkat.c (unlinkat): New file.
36257         * modules/openat (Depends-on): Add unlink.
36258         (Files): Distribute it.
36259         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
36260         trailing slash behavior is broken.
36261         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
36262         * modules/unistd (Makefile.am): Substitute it.
36263         * lib/unistd.in.h (unlinkat): Declare replacement.
36264         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
36265
36266         openat: fix fstatat bugs on Solaris 9
36267         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
36268         stat.
36269         * doc/posix-functions/fstatat.texi (fstatat): Document this.
36270
36271         test-unlinkat: enhance test, to expose Solaris 9 bug
36272         * tests/test-unlink.c (main): Factor guts...
36273         * tests/test-unlink.h (test_rmdir_func): ...into new file.
36274         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
36275         * tests/test-rmdir.c (main): Adjust caller.
36276         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
36277         (unlinker): New helper function.
36278         (rmdirat): Enhance check.
36279         * modules/rmdir-tests (Depends-on): Add stdbool.
36280         * modules/unlink-tests (Depends-on): Likewise.
36281         (Files): Add test-unlink.h.
36282         * modules/openat-tests (Files): Likewise.
36283         (Depends-on): Add unlinkdir.
36284
36285         test-fstatat: new test, to expose Solaris 9 bugs
36286         * tests/test-stat.c (main): Factor guts...
36287         * tests/test-stat.h (test_stat_func): ...into new file.
36288         * tests/test-lstat.c (main): Factor guts...
36289         * tests/test-lstat.h (test_lstat_func): ...into new file.
36290         * tests/test-fstatat.c: New file.
36291         * modules/stat-tests (Files): Add test-stat.h.
36292         * modules/lstat-tests (Files): Add test-lstat.h.
36293         (Depends-on): Add stdbool.
36294         * modules/openat-tests (Depends-on): Add pathmax.
36295         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
36296         (Makefile.am): Run new test.
36297
36298         remove: new module, for mingw and Solaris 9 bugs
36299         * modules/remove: New file.
36300         * lib/remove.c: Likewise.
36301         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
36302         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
36303         * modules/stdio (Makefile.am): Use them.
36304         * lib/stdio.in.h (remove): Declare replacement.
36305         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36306         * doc/posix-functions/remove.texi (remove): Likewise.
36307         * modules/remove-tests: New test.
36308         * tests/test-remove.c: Likewise.
36309
36310         unlink: new module, for Solaris 9 bug
36311         * modules/unlink: New file.
36312         * lib/unlink.c: Likewise.
36313         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
36314         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36315         * modules/unistd (Makefile.am): Use them.
36316         * lib/unistd.in.h (stat): Declare replacement.
36317         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36318         * doc/posix-functions/unlink.texi (unlink): Likewise.
36319         * modules/unlink-tests: New test.
36320         * tests/test-unlink.c: Likewise.
36321
36322         lstat: fix Solaris 9 bug
36323         * lib/lstat.c (lstat): Also check for trailing slash on
36324         non-symlink, non-directories.  Use stat module to simplify logic.
36325         * doc/posix-functions/lstat.texi (lstat): Document it.
36326         * modules/lstat-tests (Depends-on): Add errno, same-inode.
36327         (configure.ac): Check for symlink.
36328         * tests/test-lstat.c (main): Add more tests.
36329
36330         stat: add as dependency to other modules
36331         * modules/chown (Depends-on): Add stat.
36332         * modules/euidaccess (Depends-on): Likewise.
36333         * modules/fchdir (Depends-on): Likewise.
36334         * modules/isdir (Depends-on): Likewise.
36335         * modules/link (Depends-on): Likewise.
36336         * modules/lstat (Depends-on): Likewise.
36337         * modules/mkdir-p (Depends-on): Likewise.
36338         * modules/modechange (Depends-on): Likewise.
36339         * modules/open (Depends-on): Likewise.
36340         * modules/readlink (Depends-on): Likewise.
36341         * modules/same (Depends-on): Likewise.
36342
36343         stat: fix Solaris 9 bug
36344         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
36345         slash.
36346         * lib/stat.c (rpl_stat): Work around it.
36347         * doc/posix-functions/stat.texi (stat): Update documentation.
36348
36349         stat: new module, for mingw bug
36350         * modules/stat: New file.
36351         * lib/stat.c: Likewise.
36352         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
36353         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36354         * modules/sys_stat (Makefile.am): Use them.
36355         * lib/sys_stat.in.h (stat): Declare replacement.
36356         * lib/openat.c (fstatat): Deal with lstat and stat being function
36357         macros.
36358         * modules/openat (Depends-on): Add inline.
36359         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36360         * doc/posix-functions/stat.texi (stat): Likewise.
36361         * modules/stat-tests: New test.
36362         * tests/test-stat.c: Likewise.
36363
36364 2009-09-19  Jim Meyering  <meyering@redhat.com>
36365
36366         syntax-check: detect unnecessary inclusion of canonicalize.h
36367         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
36368
36369 2009-09-19  Eric Blake  <ebb9@byu.net>
36370
36371         canonicalize-lgpl: adjust clients to use correct header
36372         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36373         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
36374         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
36375         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
36376         * lib/progreloc.c (includes): Likewise.
36377
36378 2009-09-19  Jim Meyering  <meyering@redhat.com>
36379
36380         test-posixtm.c: correct a comment
36381         * tests/test-posixtm.c: Correct first-line comment.
36382         Spotted by Eric Blake.
36383
36384 2009-09-16  Jim Meyering  <meyering@redhat.com>
36385
36386         posixtm-tests: make T const-correct; add a test case
36387         * tests/test-posixtm.c (T): Declare const.
36388         Add a test for -(2^31+1).
36389         Remove useless can-succeed-only-in-2002 test.
36390
36391         posixtm-tests: adjust the sole failing test
36392         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
36393         expected output matches what mktime now produces.  Cross-checked via
36394         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
36395
36396         posixtm: move #ifdef'd tests into a new module
36397         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
36398         * tests/test-posixtm.c: ... this new file.
36399         * modules/posixtm-tests: New module.
36400
36401 2009-09-19  Eric Blake  <ebb9@byu.net>
36402
36403         openat: simplify use of at-func.c
36404         * lib/at-func.c (includes): Include prerequisites here, to
36405         simplify requirements on client files.
36406         * lib/openat-priv.h: Add double-inclusion guard.
36407         * lib/faccessat.c (includes): Simplify.
36408         * lib/fchmodat.c (includes): Likewise.
36409         * lib/fchownat.c (includes): Likewise.
36410         * lib/mkdirat.c (includes): Likewise.
36411         * lib/mkfifoat.c (includes): Likewise.
36412         * lib/symlinkat.c (includes): Likewise.
36413
36414         openat: allow return of fd 0
36415         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
36416         * modules/save-cwd (Depends-on): Replace fcntl-safer with
36417         unistd-safer.
36418         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
36419         <fcntl.h>; this module does not leak fds.
36420         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
36421         must be allowed to return 0, leaving openat_safer to add the
36422         safety.
36423         (openat_permissive): Avoid writing to just-opened fd 2 if
36424         restoring the current directory fails.
36425         * lib/openat-die.c (openat_restore_fail): Add comment.
36426         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
36427         (save_cwd): Guarantee safe fd, but without use of open_safer.
36428         * tests/test-openat.c: New test.
36429         * modules/openat-tests (Files, Makefile.am): Distribute and build
36430         new file.
36431
36432         relocatable-prog-wrapper: fix build
36433         * modules/relocatable-prog-wrapper (Files): Update name of
36434         canonicalize m4 file, broken on 2009-09-17.
36435         Reported by emad hajjar <aleppos@hotmail.com>.
36436
36437 2009-09-19  Bruno Haible  <bruno@clisp.org>
36438
36439         * lib/safe-alloc.h: Use the standard header with GPL copyright.
36440         * lib/safe-alloc.c: Likewise.
36441         Reported by Ian Beckwith <ianb@erislabs.net>.
36442
36443 2009-09-18  Bruno Haible  <bruno@clisp.org>
36444
36445         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
36446         Reported by <erobles@sensacd.com.mx>.
36447
36448 2009-09-17  Eric Blake  <ebb9@byu.net>
36449
36450         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
36451         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
36452         slashes when checking if last component is missing.
36453         * tests/test-canonicalize.c (main): Test this.
36454
36455         canonicalize, canonicalize-lgpl: honor // if distinct from /
36456         * modules/canonicalize (Files): Add double-slash-root.m4.
36457         * modules/canonicalize-lgpl (Files): Likewise.
36458         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
36459         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
36460         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
36461         fallback definition.
36462         (canonicalize_filename_mode): Use it to protect //.
36463         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
36464         (__realpath): Likewise.
36465         * tests/test-canonicalize.c (main): Test this.
36466         * tests/test-canonicalize-lgpl.c (main): Likewise.
36467         * modules/canonicalize-tests (Depends-on): Add same-inode.
36468         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36469
36470         canonicalize-lgpl: fix glibc bug with trailing slash
36471         * m4/canonicalize-lgpl.m4: Move contents...
36472         * m4/canonicalize.m4: ...here.
36473         (gl_CANONICALIZE_LGPL): Factor realpath check...
36474         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
36475         glibc 2.3.5 bug, fixed 2005-04-27.
36476         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
36477         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
36478         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
36479         * modules/canonicalize-lgpl (Files): Manage file rename.
36480         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
36481         * modules/stdlib (Makefile.am): Substitute witness.
36482         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
36483         is needed.
36484         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
36485         replacement is required.
36486         * lib/canonicalize.c (canonicalize_file_name): Likewise.
36487         * doc/glibc-functions/canonicalize_file_name.texi
36488         (canonicalize_file_name): Document this.
36489         * doc/posix-functions/realpath.texi (realpath): Likewise.
36490
36491         canonicalize-lgpl: reject non-directory with trailing slash
36492         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
36493         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
36494         catches failures in glibc 2.3.5.
36495         * tests/test-canonicalize.c (main): Likewise.
36496
36497         canonicalize-lgpl: use native realpath if it works
36498         * lib/canonicalize-lgpl.c (realpath): Guard with
36499         FUNC_REALPATH_WORKS.
36500         * lib/stdlib.in.h (realpath): Make declaration optional based on
36501         HAVE_REALPATH.
36502         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
36503         native realpath works.
36504         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
36505         * modules/stdlib (Makefile.am): Substitute witness.
36506
36507         canonicalize, canonicalize-lgpl: use <stdlib.h>
36508         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
36509         (Include): Mention <stdlib.h>.
36510         (configure.ac): Mention functions we provide.
36511         * modules/canonicalize (configure.ac): Likewise.
36512         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
36513         realpath if canonicalize_file_name is missing.
36514         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
36515         * modules/stdlib (Makefile.am): Substitute witnesses.
36516         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
36517         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
36518         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
36519         * NEWS: Document this.
36520         * doc/glibc-functions/canonicalize_file_name.texi
36521         (canonicalize_file_name): Likewise.
36522         * doc/posix-functions/realpath.texi (realpath): Likewise.
36523         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
36524
36525         test-canonicalize: consolidate into single C program
36526         * tests/test-canonicalize.sh: Delete; move setup into...
36527         * tests/test-canonicalize.c (main): ...the program, making it
36528         easier to run in debugger.  Add some tests.
36529         * modules/canonicalize-tests (Files): Remove unused file.
36530         (Depends-on): Add progname.
36531         (configure.ac, Makefile.am): Simplify.
36532
36533         test-canonicalize-lgpl: consolidate into single C program
36534         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
36535         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
36536         easier to run in debugger.  Add some tests.
36537         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
36538         (configure.ac, Makefile.am): Simplify.
36539
36540         canonicalize: avoid resolvepath
36541         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
36542         unnecessary checks.
36543         * lib/canonicalize.c (includes): Simplify.
36544         (canonicalize_file_name): Drop resolvepath implementation.
36545         * modules/canonicalize (Depends-on): Drop filenamecat.
36546
36547         canonicalize: don't lose errno
36548         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
36549         over calls to free.
36550
36551         canonicalize: simplify errno handling
36552         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
36553         assignment.
36554
36555         canonicalize, canonicalize-lgpl: update module dependencies
36556         * modules/canonicalize (Depends-on): Add extensions, lstat,
36557         pathmax, stdlib.
36558         (Files): Drop pathmax.h.
36559         (configure.ac): Adjust macro name.
36560         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
36561         lstat, stdlib, sys_stat.
36562         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
36563         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
36564         extensions.
36565         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
36566         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
36567         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
36568         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
36569         declaration, if available.
36570         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
36571         we can rely on the readlink module.
36572         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
36573         (includes): Use <unistd.h> unconditionally.
36574
36575 2009-09-17  Eric Blake  <ebb9@byu.net>
36576
36577         maint: make Include sections of modules consistent
36578         * modules/alloca: Use only header name; no need to list #include.
36579         * modules/alloca-opt: Likewise.
36580         * modules/arpa_inet: Likewise.
36581         * modules/canon-host: Likewise.
36582         * modules/configmake: Likewise.
36583         * modules/dirent: Likewise.
36584         * modules/eealloc: Likewise.
36585         * modules/environ: Likewise.
36586         * modules/fchdir: Likewise.
36587         * modules/fcntl: Likewise.
36588         * modules/fcntl-h: Likewise.
36589         * modules/gethrxtime: Likewise.
36590         * modules/gettime: Likewise.
36591         * modules/ignore-value: Likewise.
36592         * modules/inet_ntop: Likewise.
36593         * modules/inet_pton: Likewise.
36594         * modules/inttypes: Likewise.
36595         * modules/isnand-nolibm: Likewise.
36596         * modules/isnanf-nolibm: Likewise.
36597         * modules/mbchar: Likewise.
36598         * modules/mbfile: Likewise.
36599         * modules/mbiter: Likewise.
36600         * modules/mbuiter: Likewise.
36601         * modules/netdb: Likewise.
36602         * modules/netinet_in: Likewise.
36603         * modules/nproc: Likewise.
36604         * modules/pagealign_alloc: Likewise.
36605         * modules/poll: Likewise.
36606         * modules/printf-frexp: Likewise.
36607         * modules/pthread: Likewise.
36608         * modules/putenv: Likewise.
36609         * modules/random_r: Likewise.
36610         * modules/relocatable-prog: Likewise.
36611         * modules/search: Likewise.
36612         * modules/select: Likewise.
36613         * modules/selinux-h: Likewise.
36614         * modules/settime: Likewise.
36615         * modules/signal: Likewise.
36616         * modules/size_max: Likewise.
36617         * modules/socklen: Likewise.
36618         * modules/ssize_t: Likewise.
36619         * modules/stdarg: Likewise.
36620         * modules/stdbool: Likewise.
36621         * modules/stddef: Likewise.
36622         * modules/stdint: Likewise.
36623         * modules/stdio: Likewise.
36624         * modules/stdlib: Likewise.
36625         * modules/string: Likewise.
36626         * modules/strings: Likewise.
36627         * modules/sys_file: Likewise.
36628         * modules/sys_ioctl: Likewise.
36629         * modules/sys_select: Likewise.
36630         * modules/sys_socket: Likewise.
36631         * modules/sys_stat: Likewise.
36632         * modules/sys_time: Likewise.
36633         * modules/sys_times: Likewise.
36634         * modules/sys_utsname: Likewise.
36635         * modules/sys_wait: Likewise.
36636         * modules/sysexits: Likewise.
36637         * modules/time: Likewise.
36638         * modules/times: Likewise.
36639         * modules/tmpfile: Likewise.
36640         * modules/trim: Likewise.
36641         * modules/unistd: Likewise.
36642         * modules/wchar: Likewise.
36643         * modules/wctype: Likewise.
36644
36645 2009-09-17  Bruno Haible  <bruno@clisp.org>
36646
36647         Make getdate.y compile on QNX and NetBSD 5 / i386.
36648         * m4/getdate.m4 (gl_GETDATE): Conditionally define
36649         TIME_T_FITS_IN_LONG_INT.
36650         * lib/getdate.y (long_time_t): New type.
36651         (relative_time): Change type of 'seconds' field to long_time_t.
36652         (get_date): Update types of local variables. Check against overflow
36653         during conversion from long_time_t to time_t.
36654         Reported by Matt Kraai <kraai@ftbfs.org>
36655         and Hasso Tepper <hasso@netbsd.org>.
36656
36657 2009-09-17  Bruno Haible  <bruno@clisp.org>
36658
36659         * modules/COPYING: Update copyright years.
36660         * modules/README: Likeiwse.
36661         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
36662         Reported by Ian Beckwith <ianb@erislabs.net>.
36663
36664 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
36665
36666         * users.txt: Update references for gnuit package.
36667
36668 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
36669
36670         * m4/getdelim.m4: Fix typo in copyright line.
36671
36672 2009-09-17  Bruno Haible  <bruno@clisp.org>
36673
36674         * lib/atoll.c: Use the standard header with GPL copyright.
36675         * lib/argz.in.h: Likewise.
36676         * lib/glob.c: Likewise.
36677         * lib/glob-libc.h: Likewise.
36678         * lib/random_r.c: Likewise.
36679         * lib/siglist.h: Likewise.
36680         * lib/strsignal.c: Likewise.
36681         Reported by Ian Beckwith <ianb@erislabs.net>.
36682
36683 2009-09-17  Eric Blake  <ebb9@byu.net>
36684
36685         rmdir: ensure correct dependency order
36686         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
36687
36688 2009-09-17  Bruno Haible  <bruno@clisp.org>
36689
36690         Disable assertion that fails on NetBSD 5 / i386.
36691         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
36692         Reported by Sam Steingold <sds@gnu.org>
36693         and Hasso Tepper <hasso@netbsd.org>.
36694
36695 2009-09-16  Eric Blake  <ebb9@byu.net>
36696
36697         unlinkdir: port to mingw
36698         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
36699         on which no one can unlink a directory.
36700
36701         stdlib: sort witness names
36702         * modules/stdlib (Makefile.am): Sort replacements.
36703         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
36704         * lib/stdlib.in.h: Likewise.
36705
36706         parse-duration-tests: avoid link failure
36707         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
36708         LIBINTL.
36709         Reported by Tom G. Christensen.
36710
36711         openat-tests: ensure unlinkat behaves like rmdir
36712         * tests/test-rmdir.c (main): Factor guts...
36713         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
36714         * modules/rmdir-tests (Files): Ship new file.
36715         * modules/openat-tests: New test.
36716         * tests/test-unlinkat.c: Likewise.
36717
36718         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
36719         * modules/rmdir-errno (Status, Notice): Now obsolete.
36720
36721         rmdir: work around cygwin 1.5.x and mingw bugs
36722         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
36723         * lib/rmdir.c (rmdir): Work around it.
36724         * modules/rmdir (Status, Notice): No longer obsolete.
36725         (Files): Add dos.m4.
36726         (Depends-on): Add unistd.
36727         (configure.ac): Set witnesses.
36728         (License): Relax to LGPLv2+.
36729         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
36730         * modules/unistd (Makefile.am): Substitute witnesses.
36731         * lib/unistd.in.h (rmdir): Declare replacement.
36732         * doc/posix-functions/rmdir.texi (rmdir): Document this.
36733         * modules/rmdir-tests: New tests.
36734         * tests/test-rmdir.c: Likewise.
36735
36736 2009-09-15  Eric Blake  <ebb9@byu.net>
36737
36738         fchdir: improve use of replacement functions
36739         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
36740         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
36741         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
36742         REPLACE_CLOSEDIR.
36743         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
36744         * modules/sys_stat (Makefile.am): Substitute correct witness.
36745         * modules/dirent (Makefile.am): Likewise.
36746         * modules/unistd (Makefile.am): Likewise.
36747         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
36748         * lib/unistd.in.h (dup): Likewise.
36749         * lib/sys_stat.in.h (fstat): Likewise.
36750
36751         maint: ignore gnulib-tool temp files
36752         * .gitignore: Ignore files created during gnulib-tool --test.
36753
36754 2009-09-13  Jim Meyering  <meyering@redhat.com>
36755
36756         posixtm: don't reject a time that specify "60" as the number of seconds
36757         * lib/posixtm.c (posixtime): The code to reject invalid dates
36758         would also reject a time specified with the .60 suffix.
36759         But POSIX allows that, in order to accommodate leap seconds.
36760         So don't reject it.
36761         (main): Adjust tests accordingly.
36762         * modules/posixtm (Depends-on): Add stpcpy.
36763
36764 2009-09-11  Jim Meyering  <meyering@redhat.com>
36765
36766         announce-gen: include [$release_type] in emitted Subject:
36767         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
36768         e.g., [stable] in the emitted Subject: line.
36769
36770 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36771
36772         Remove obsolete macros from several modules.
36773         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
36774         obsolete Autoconf macros with their modern counterparts.
36775         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
36776         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
36777         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
36778         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
36779         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
36780         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
36781         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
36782         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
36783         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
36784         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
36785         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
36786         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
36787         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
36788         * m4/sockets.m4 (gl_SOCKETS): Likewise.
36789         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
36790         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
36791         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
36792         * m4/time_r.m4 (gl_TIME_R): Likewise.
36793         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
36794         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
36795         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
36796
36797         Fix copyright header in build-aux scripts.
36798         * build-aux/git-version-gen: Fix copyright header to match GPLv3
36799         recommendation.
36800         * build-aux/ncftpput-ftp: Likewise.
36801         * build-aux/update-copyright: Likewise.
36802
36803 2009-09-09  Eric Blake  <ebb9@byu.net>
36804
36805         test-link: allow Linux choice of errno
36806         * tests/test-link.c (main): Relax test for alternate error.
36807
36808         strndup: fix improper m4 caching
36809         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
36810         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
36811         (gl_PREREQ_STRNDUP): Delete.
36812         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
36813         * modules/string (Makefile.am): Substitute it.
36814         * lib/string.in.h (strndup): Modernize prototype.
36815
36816         getcwd: port to mingw
36817         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
36818         different from the POSIX assumptions made throughout the getcwd
36819         module; fortunately, the mingw getcwd does not need replacement.
36820         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
36821         * modules/getcwd-tests: New test.
36822         * tests/test-getcwd.c: Likewise.
36823
36824         link: fix platform bugs
36825         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
36826         * lib/link.c (link): Work around them.  Fix related mingw bug.
36827         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
36828         * modules/unistd (Makefile.am): Substitute it.
36829         * lib/unistd.in.h (link): Declare replacement.
36830         * doc/posix-functions/link.texi (link): Document this.
36831         * modules/link (Depends-on): Add strdup-posix, sys_stat.
36832
36833         test-link: consolidate into single C program, test more cases
36834         * tests/test-link.sh: Delete.
36835         * tests/test-link.c: Test more error conditions.  Exposes bugs on
36836         at least Cygwin and Solaris.
36837         * modules/link-tests (Files): Remove unused file.
36838         (Depends-on): Add errno, sys_stat.
36839         (Makefile.am): Simplify.
36840
36841 2009-09-08  Bruno Haible  <bruno@clisp.org>
36842
36843         Work around towlower, towupper bug on mingw.
36844         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
36845         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
36846         * doc/posix-functions/towlower.texi: Mention the mingw bug.
36847         * doc/posix-functions/towupper.texi: Likewise.
36848         Reported by Eric Blake.
36849
36850 2009-09-08  Jim Meyering  <meyering@redhat.com>
36851
36852         build: don't try to run autoheader if we don't use it
36853         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
36854         is not used in configure.ac.
36855
36856 2009-09-08  Eric Blake  <ebb9@byu.net>
36857
36858         euidaccess: fix compilation error
36859         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
36860
36861         rawmemchr: relax license
36862         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
36863         okay.
36864         Reported by Jim Meyering.
36865
36866         mkfifoat: new module
36867         * modules/mkfifoat: New file.
36868         * lib/mkfifoat.c: Likewise.
36869         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
36870         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36871         * modules/sys_stat (Makefile.am): Use them.
36872         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
36873         * MODULES.html.sh (File system functions): Mention module.
36874         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
36875         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
36876         * modules/mkfifoat-tests: New test.
36877         * tests/test-mkfifoat.c: Likewise.
36878
36879         strchrnul: relax license
36880         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
36881         okay.
36882         Reported by Jim Meyering.
36883
36884 2009-09-08  Eric Blake  <ebb9@byu.net>
36885
36886         fstatat: fix compilation on Solaris
36887         * lib/fstatat.c (includes): Add fcntl.h.
36888         Reported by Pádraig Brady.
36889
36890 2009-09-07  Eric Blake  <ebb9@byu.net>
36891
36892         rename: modernize replacement
36893         * modules/rename (Depends-on): Add stdio.
36894         (configure.ac): Declare witness.
36895         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
36896         stdio take care of replacement.
36897         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
36898         * modules/stdio (Makefile.am): Substitute them.
36899         * lib/stdio.in.h (rename): Declare replacement.
36900         * lib/rename.c (includes): Allow cross-compilation to non-windows
36901         machines.
36902         * doc/posix-functions/rename.texi (rename): Improve
36903         documentation.
36904
36905         stdio: sort witness names
36906         * modules/stdio (Makefile.am): Sort replacements.
36907         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
36908         * lib/stdio.in.h: Likewise.
36909
36910         getcwd: minor cleanups
36911         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
36912         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
36913
36914         openat: provide more convenience names
36915         * modules/faccessat (configure.ac): Add C witness.
36916         * lib/unistd.in.h (readlinkat): Fix typo.
36917         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
36918         convenience wrappers.
36919         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
36920         wrappers in syntax checks.
36921
36922 2009-09-06  Eric Blake  <ebb9@byu.net>
36923
36924         doc: fix comments in recent patches
36925         * lib/faccessat.c: Mention correct function.
36926         * lib/fchmodat.c: Likewise.
36927         * lib/fchownat.c: Likewise.
36928         * lib/symlinkat.c: Likewise.
36929         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
36930         constants.
36931
36932         faccessat, symlinkat: continue cleanup of previous patch
36933         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
36934         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
36935         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
36936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
36937         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
36938         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
36939         set.
36940
36941 2009-09-06  Bruno Haible  <bruno@clisp.org>
36942
36943         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
36944         (fstatat): Declare if GNULIB_FSTATAT is set.
36945         (mkdirat): Declare if GNULIB_MKDIRAT is set.
36946         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
36947         (unlinkat): Declare if GNULIB_UNLINKAT is set.
36948         * modules/fcntl-h (Files): Remove m4/openat.m4.
36949         * modules/sys_stat (Files): Remove m4/openat.m4.
36950         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
36951         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
36952         * modules/unistd (Files): Remove m4/openat.m4.
36953         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
36954         GNULIB_OPENAT.
36955         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
36956         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
36957         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
36958         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
36959         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
36960         gl_OPENAT_DEFAULTS.
36961         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
36962         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
36963         Don't require gl_OPENAT_DEFAULTS.
36964         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
36965         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
36966         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
36967         (gl_OPENAT_DEFAULTS): Remove macro.
36968
36969 2009-09-06  Bruno Haible  <bruno@clisp.org>
36970
36971         * modules/openat (configure.ac): Remove unneeded witness.
36972
36973 2009-09-06  Bruno Haible  <bruno@clisp.org>
36974
36975         Set errno to ENOSYS when a function is entirely unsupported.
36976         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
36977         EOPNOTSUPP.
36978         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
36979         * modules/chown (Depends-on): Remove errno.
36980
36981 2009-09-06  Bruno Haible  <bruno@clisp.org>
36982
36983         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
36984
36985 2009-09-06  Bruno Haible  <bruno@clisp.org>
36986
36987         * lib/sys_stat.in.h: Fix preprocessor command indentation.
36988
36989 2009-09-06  Ben Pfaff  <blp@gnu.org>
36990             Bruno Haible  <bruno@clisp.org>
36991
36992         Work around a glibc bug in strtok_r.
36993         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
36994         Undefine if UNDEFINE_STRTOK_R is set.
36995         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
36996         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36997         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
36998         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
36999         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
37000         UNDEFINE_STRTOK_R.
37001         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
37002
37003 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
37004
37005         exclude: minor fix
37006         * lib/exclude.c: Include wctype.h
37007
37008 2009-09-06  Akim Demaille  <demaille@gostai.com>
37009
37010         bootstrap: improve error message
37011         * build-aux/bootstrap (find_tool): Upon failure, report the list
37012         of candidates.
37013         Honor the initial value of the envvar.
37014
37015 2009-09-05  Eric Blake  <ebb9@byu.net>
37016
37017         symlinkat: new module
37018         * modules/symlinkat: New file.
37019         * lib/symlinkat.c: Likewise.
37020         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
37021         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
37022         * modules/unistd (Makefile.am): Use them.
37023         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
37024         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
37025         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
37026         * MODULES.html.sh (File system functions): Mention module.
37027         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
37028         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
37029         * modules/symlinkat-tests: New test.
37030         * tests/test-symlinkat.c: Likewise.
37031
37032         test-openat-safer: add more checks
37033         * tests/test-openat-safer.c (main): Check more code paths.
37034
37035 2009-09-05  Jim Meyering  <meyering@redhat.com>
37036
37037         syntax-check: detect unnecessary inclusion of openat.h
37038         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
37039
37040 2009-09-05  Bruno Haible  <bruno@clisp.org>
37041
37042         Support towlower, towupper.
37043         * doc/posix-functions/towlower.texi: Mention module wctype.
37044         * doc/posix-functions/towupper.texi: Likewise.
37045         * lib/wctype.in.h (towlower, towupper): New functions.
37046         * tests/test-wctype.c: Include stdio.h, stdlib.h.
37047         (ASSERT): New macro.
37048         (e): New variable.
37049         (main): Test also towlower, towupper. Test WEOF argument.
37050         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37051
37052 2009-09-05  Bruno Haible  <bruno@clisp.org>
37053
37054         Fix conversion behaviour when the input is invalid.
37055         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
37056         mark occurring in first pass of indirect conversion.
37057         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
37058         input.
37059         Found by clang's static analyzer.
37060
37061 2009-09-05  Bruno Haible  <bruno@clisp.org>
37062
37063         * tests/test-striconveh.c (main): Test indirect conversion on platforms
37064         where direct conversion is possible.
37065
37066 2009-09-04  Eric Blake  <ebb9@byu.net>
37067
37068         openat: fail with ENOENT on empty name
37069         * lib/openat-proc.c (openat_proc_name): Special-case the empty
37070         buffer.
37071
37072         link-follow: fix logic bug in prior patch
37073         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
37074         reversed sense of yes and no in prior patch.  Avoid confusing
37075         compilation failure with desired semantics.
37076
37077         link-follow: accomodate mingw and cross-compilation
37078         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
37079         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
37080         cross-compilation results to -1, to make linkat easier to
37081         implement when cross-compiling.  Trivially support mingw.
37082         * modules/link-follow (configure.ac): Call new name.
37083         * NEWS: Mention this.
37084
37085 2009-09-03  Eric Blake  <ebb9@byu.net>
37086
37087         faccessat: compile replacement
37088         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
37089         needed.
37090
37091         fts: fix compilation error
37092         * lib/fts.c (includes): Re-add "openat.h", for
37093         openat_needs_fchdir.
37094
37095         faccessat: new module
37096         * modules/faccessat: New file.
37097         * lib/faccessat.c: Likewise.
37098         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
37099         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37100         * modules/unistd (Makefile.am): Use it.
37101         * lib/unistd.in.h (faccessat): Declare it.
37102         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
37103         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
37104         * MODULES.html.sh (File system functions): Mention it.
37105         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
37106         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
37107
37108         euidaccess: prefer POSIX over non-standard implementation
37109         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
37110         * lib/euidaccess.c (euidaccess): Use it if available.
37111
37112         openat: make template easier to use
37113         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
37114         AT_FUNC_F2 to be undefined.
37115         (VALIDATE_FLAG): New macro; use it to reject bad flags.
37116         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
37117         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
37118         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
37119         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
37120         Likewise.
37121         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
37122         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
37123         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
37124         Likewise.
37125
37126         openat: declare in POSIX headers
37127         * NEWS: Mention this.
37128         * modules/openat (configure.ac): Declare witnesses.
37129         (Depends-on): Add fcntl-h, sys_stat, unistd.
37130         (Include): Mention correct headers.
37131         * modules/fcntl-h (Depends-on): Add link-warning.
37132         (Files): Add openat.m4.
37133         (Makefile.am): Substitute witnesses.
37134         * modules/sys_stat (Files, Makefile.am): Likewise.
37135         * modules/unistd (Files, Makefile.am): Likewise.
37136         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
37137         (gl_OPENAT_DEFAULTS): New macro.
37138         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
37139         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
37140         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
37141         (SYS_STAT_H): Remove unused variable.
37142         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
37143         * lib/fcntl--.h (includes): Remove unneeded header.
37144         * lib/openat-safer.c (includes): Likewise.
37145         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
37146         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
37147         appropriate headers.
37148         (__OPENAT_PREFIX): Delete.
37149         * lib/fcntl.in.h (openat): Provide declaration.
37150         (AT_FDCWD): Fix Solaris bug.
37151         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
37152         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
37153         * lib/fchmodat.c (includes):  Adjust to find declaration.
37154         * lib/fchownat.c (includes): Likewise.
37155         * lib/mkdirat.c (includes): Likewise.
37156         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
37157         still visible.
37158
37159 2009-09-02  Eric Blake  <ebb9@byu.net>
37160
37161         errno: use consistently
37162         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
37163         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
37164         * lib/canonicalize.c (ELOOP): Likewise.
37165         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
37166         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
37167         * lib/lchown.c (EOPNOTSUPP): Likewise.
37168         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
37169         * lib/savewd.c (ESTALE): Likewise.
37170         * lib/settime.c (ENOSYS): Likewise.
37171         * lib/utimens.c (ENOSYS): Likewise.
37172         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
37173         * lib/chdir-safer.c (ELOOP): Likewise.
37174         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
37175         * modules/c-stack (Depends-on): Add errno.
37176         * modules/canonicalize (Depends-on): Likewise.
37177         * modules/chdir-safer (Depends-on): Likewise.
37178         * modules/fdopendir (Depends-on): Likewise.
37179         * modules/inet_ntop (Depends-on): Likewise.
37180         * modules/inet_pton (Depends-on): Likewise.
37181         * modules/lchown (Depends-on): Likewise.
37182         * modules/openat (Depends-on): Likewise.
37183         * modules/savewd (Depends-on): Likewise.
37184         * modules/settime (Depends-on): Likewise.
37185         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
37186
37187         fts: avoid leaking fds
37188         * modules/fts (Depends-on): Add cloexec.
37189         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
37190         flag.
37191
37192         fts: make directory fds more robust
37193         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
37194         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
37195
37196         backupfile, chdir-long, fts, savedir: make safer
37197         * lib/backupfile.c (includes): Use "dirent--.h", since
37198         numbered_backup can write to stderr during readdir.
37199         * lib/savedir.c (includes): Likewise.
37200         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
37201         emulation can write to stderr on failure.
37202         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
37203         * lib/getcwd.c: Document why opendir_safer is unused.
37204         * lib/glob.c: Likewise.
37205         * lib/scandir.c: Likewise.
37206         * lib/openat-proc.c: Likewise, for open_safer.
37207         * modules/backupfile (Depends-on): Add dirent-safer.
37208         * modules/savedir (Depends-on): Likewise.
37209         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
37210         * modules/chdir-long (Depends-on): Add openat-safer.
37211
37212         openat-safer: new module
37213         * modules/openat-safer: New file.
37214         * lib/openat-safer.c: Likewise.
37215         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
37216         * lib/fcntl-safer.h (openat_safer): Declare.
37217         * lib/fcntl--.h (openat): Override.
37218         * MODULES.html.sh (File descriptor based I/O): Mention it.
37219         * lib/openat.h: Add double-inclusion guards.
37220         * lib/openat.c (includes): Only include "fcntl-safer.h", not
37221         "fcntl--.h", so we can implement openat.
37222         * modules/openat-safer-tests: New test.
37223         * tests/test-openat-safer.c: New file.
37224
37225         dirent-safer: new module
37226         * modules/dirent-safer: New file.
37227         * lib/dirent--.h: Likewise.
37228         * lib/dirent-safer.h: Likewise.
37229         * lib/opendir-safer.c: Likewise.
37230         * m4/dirent-safer.m4: Likewise.
37231         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
37232         * modules/dirent-safer-tests: New test.
37233         * tests/test-dirent-safer.c: New file.
37234         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
37235
37236         fdopendir: optimize on mingw
37237         * lib/unistd.in.h (_gl_directory_name): New prototype.
37238         * lib/fchdir.c (_gl_directory_name): Implement it.
37239         (fchdir): Use it to simplify implementation.
37240         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
37241         fchdir, when available, to avoid calling [f]chdir().
37242
37243         fdopendir: split into its own module
37244         * lib/openat.c (fdopendir): Move...
37245         * lib/fdopendir.c: ...into new file.
37246         * modules/fdopendir: New module.
37247         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
37248         * modules/openat (Depends-on): Add fdopendir.
37249         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
37250         fdopendir here.
37251         * modules/savedir (Depends-on): Only need fdopendir, not full
37252         openat.
37253         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
37254         * lib/openat.h (fdopendir): Drop prototype.
37255         * lib/dirent.in.h (fdopendir): Provide prototype.
37256         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
37257         * modules/dirent (Makefile.am): Substitute them.
37258         * MODULES.html.sh (File system functions): Mention it.
37259         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
37260         * modules/fdopendir-tests: New file.
37261         * tests/test-fdopendir.c: Likewise.
37262
37263         fchdir: use more consistent macro convention
37264         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
37265         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
37266         REPLACE_FCHDIR, rather than relying on config.h macros.
37267         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
37268         inside a single make-time REPLACE_FCHDIR block, rather than using
37269         the config.h FCHDIR_REPLACEMENT.
37270         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
37271         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
37272         Manage fstat replacement.
37273         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
37274         REPLACE_FCHDIR.
37275         * modules/sys_stat (Files): Add m4/unistd_h.m4.
37276         (Makefile.am): Substitute REPLACE_FCHDIR.
37277         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
37278         FCHDIR_REPLACEMENT.
37279         * lib/dup-safer.c (dup_safer): Likewise.
37280         * lib/dup2.c (rpl_dup2): Likewise.
37281         * lib/dup3.c (rpl_dup3): Likewise.
37282         * lib/open.c (rpl_open): Likewise.
37283
37284         fchdir: simplify error handling, and support dup3
37285         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
37286         stdbool, malloc-posix, realloc-posix.
37287         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
37288         (ensure_dirs_slot): Return false on allocation failure.
37289         (rpl_dup2): Delete.
37290         (_gl_register_dup): New function.
37291         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
37292         (_gl_register_fd): Close fd on allocation failure.
37293         * lib/fcntl.in.h (_gl_register_fd): Update signature.
37294         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
37295         prototype.
37296         (rpl_dup2_fchdir): Delete prototype.
37297         * lib/open.c (open): Update caller.
37298         * lib/dup2.c (dup2): Track fchdir metadata.
37299         * lib/dup3.c (dup3): Likewise.
37300         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
37301         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
37302
37303 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37304
37305         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
37306         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
37307         don't pass arguments to AC_OUTPUT.
37308
37309 2009-09-02  Bruno Haible  <bruno@clisp.org>
37310
37311         * modules/mkdtemp (License): Relicense under LGPLv2+.
37312         Reported by Paolo Bonzini.
37313
37314 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37315
37316         Replace uses of obsolete autoconf macros in Jim's modules.
37317         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
37318         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
37319         can evoke a warning from autoconf when run with -Wobsolete
37320         enabled.  They were declared obsolete for good reasons (see
37321         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
37322         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
37323         should not continue using the deprecated macros.
37324         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
37325         obsolete Autoconf macros with modern counterparts.
37326         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
37327         * m4/dos.m4 (gl_AC_DOS): Likewise.
37328         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
37329         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
37330         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
37331         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
37332         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
37333         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
37334         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
37335         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
37336         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
37337         Likewise.
37338         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
37339         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
37340         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
37341         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
37342         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
37343         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
37344
37345 2009-09-01  Eric Blake  <ebb9@byu.net>
37346
37347         fchdir: fix off-by-one bug in previous patch
37348         * lib/fchdir.c (rpl_fstat): Use correct bounds.
37349         (_gl_unregister_fd): Delete useless if.
37350
37351 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
37352
37353         maint.mk: sort the list of syntax-check rules
37354         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
37355         easier to get a sense of progress when the rules are run sequentially
37356         and take a long time.
37357
37358 2009-09-01  Simon Josefsson  <simon@josefsson.org>
37359
37360         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
37361         * modules/netinet_in: Likewise.
37362         * modules/sys_file: Likewise.
37363         * modules/sys_ioctl: Likewise.
37364         * modules/sys_select: Likewise.
37365         * modules/sys_socket: Likewise.
37366         * modules/sys_stat: Likewise.
37367         * modules/sys_time: Likewise.
37368         * modules/sys_times: Likewise.
37369         * modules/sys_utsname: Likewise.
37370         * modules/sys_wait: Likewise.
37371
37372 2009-09-01  Jim Meyering  <meyering@redhat.com>
37373
37374         fts: help ensure that return values are not ignored
37375         * lib/fts_.h (__GNUC_PREREQ): Define.
37376         (__attribute_warn_unused_result__): Define.
37377         (fts_children, fts_close, fts_open, fts_read): Declare with
37378         __attribute_warn_unused_result__.
37379
37380         fts: fts_close now fails also when closing a dir file descriptor fails
37381         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
37382         and propagate to caller, along with errno.
37383
37384         announce-gen: correct formatting in --help output
37385         * build-aux/announce-gen (usage): Move the one-line description in
37386         --help output "up", to where it belongs, just after Usage:.
37387
37388 2009-08-31  Eric Blake  <ebb9@byu.net>
37389
37390         fchdir: port to mingw
37391         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
37392         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
37393         opened, then use a substitute.
37394         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
37395         replacement.
37396         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
37397         (_gl_register_fd): No need to check stat if open already filters
37398         all directories.
37399         (fchdir): Fix error condition to match POSIX.
37400         * modules/fchdir (Depends-on): Add sys_stat.
37401         * doc/posix-functions/open.texi (open): Document the limitation.
37402         * modules/fchdir-tests: New file.
37403         * tests/test-fchdir.c: Likewise.
37404
37405         canonicalize: allow cross-testing from cygwin to mingw
37406         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
37407         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
37408         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
37409         Likewise.
37410         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
37411         target does not support symlinks.
37412         * tests/test-canonicalize-lgpl.sh: Likewise.
37413
37414         chown: avoid compilation warning on mingw
37415         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
37416         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
37417         mingw.
37418         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
37419         * modules/chown (Depends-on): Add errno.
37420
37421 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
37422
37423         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
37424         command.
37425
37426 2009-08-31  Jim Meyering  <meyering@redhat.com>
37427
37428         canonicalize: remove useless initialization
37429         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
37430         initialization of local, "end".
37431
37432 2009-08-30  Bruno Haible  <bruno@clisp.org>
37433
37434         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
37435         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
37436         ENOSYS.
37437
37438 2009-08-30  Bruno Haible  <bruno@clisp.org>
37439
37440         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
37441         /usr/xpg4/bin/tr when it exists.
37442         * tests/test-pipe-filter-gi1.sh: Likewise.
37443
37444 2009-08-30  Bruno Haible  <bruno@clisp.org>
37445
37446         Work around deficient /usr/bin/id program on Solaris.
37447         * tests/test-file-has-acl.sh (ID): New variable.
37448         * tests/test-set-mode-acl.sh (ID): Likewise.
37449         * tests/test-copy-acl.sh (ID): Likewise.
37450         * tests/test-copy-file.sh (ID): Likewise.
37451
37452 2009-08-30  Bruno Haible  <bruno@clisp.org>
37453
37454         New module 'xstriconveh'.
37455         * lib/xstriconveh.h: New file.
37456         * lib/xstriconveh.c: New file.
37457         * modules/xstriconveh: New file.
37458
37459 2009-08-30  Bruno Haible  <bruno@clisp.org>
37460
37461         Make it easier to use mem_cd_iconveh.
37462         * lib/striconveh.h (iconveh_t): New type.
37463         (iconveh_open, iconveh_close): New declarations.
37464         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
37465         with a single 'const iconveh_t *' argument.
37466         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
37467         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
37468         with a single 'const iconveh_t *' argument.
37469         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
37470         * tests/test-striconveh.c (main): Update.
37471         * NEWS: Mention the change.
37472
37473 2009-08-30  Bruno Haible  <bruno@clisp.org>
37474
37475         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
37476         problem.
37477
37478 2009-08-30  Bruno Haible  <bruno@clisp.org>
37479
37480         Work around iconv_open problem on Solaris.
37481         * lib/iconv_open-solaris.gperf: New file.
37482         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
37483         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
37484         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
37485         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
37486         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
37487         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
37488
37489 2009-08-29  Jim Meyering  <meyering@redhat.com>
37490
37491         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
37492         * top/maint.mk (cvs-check): Remove target; it was just an alias
37493         to the better-named vc-diff-check.
37494         (maintainer-distcheck): Remove rule.  It was used only from
37495         the (alpha/beta/major) target, and all of its commands but one
37496         were coreutils-specific.
37497         (vc-dist): Remove rule.
37498         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
37499         Run vc-diff-check, not vc-dist.
37500         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
37501
37502 2009-08-27  Bruno Haible  <bruno@clisp.org>
37503
37504         * tests/test-bitrotate.c (main): Remove test that uses a shift count
37505         of 0.
37506
37507 2009-08-27  Bruno Haible  <bruno@clisp.org>
37508
37509         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
37510         compilers.
37511         * doc/func.texi: Document the SunPRO C bug.
37512
37513 2009-08-27  Bruno Haible  <bruno@clisp.org>
37514
37515         Fix link error on Solaris.
37516         * tests/test-parse-duration.c (xstrdup): Remove function.
37517
37518 2009-08-26  Pádraig Brady  <P@draigbrady.com>
37519
37520         ignore-value: handle pointer types, too
37521         * lib/ignore-value.h (__attribute__): Remove definition.
37522         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
37523         of a more concise and more-often effective "(void) i" statement.
37524         (ignore_ptr): New function to suppress warnings from functions that
37525         return pointers, and to make it explicit that one function doesn't
37526         handle all cases.
37527
37528 2009-08-25  Bruno Haible  <bruno@clisp.org>
37529
37530         dup2: work around a Linux bug.
37531         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
37532         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
37533         * doc/posix-functions/dup2.texi: Mention the Linux bug.
37534         Reported by Simon Josefsson.
37535
37536 2009-08-25  Jim Meyering  <meyering@redhat.com>
37537
37538         libguestfs uses gnulib
37539         * users.txt: Add libguestfs.
37540
37541 2009-08-24  Eric Blake  <ebb9@byu.net>
37542
37543         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
37544         * lib/pipe2.c (includes): Add binary-io.h.
37545         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
37546
37547 2009-08-24  Bruno Haible  <bruno@clisp.org>
37548
37549         Tolerate declared but missing accept4 syscall.
37550         * lib/accept4.c (accept4): Invoke original accept4 function first, if
37551         available.
37552         * lib/sys_socket.in.h (accept4): If the function is already present,
37553         override it.
37554         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
37555         * modules/accept4 (Makefile.am): Compile accept4.c always.
37556         Reported by Paolo Bonzini and Eric Blake.
37557
37558 2009-08-23  Bruno Haible  <bruno@clisp.org>
37559
37560         New module 'accept4'.
37561         * lib/sys_socket.in.h (accept4): New declaration.
37562         * lib/accept4.c: New file.
37563         * m4/accept4.m4: New file.
37564         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
37565         GNULIB_ACCEPT4, HAVE_ACCEPT4.
37566         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
37567         HAVE_ACCEPT4.
37568         * modules/accept4: New file.
37569         * doc/glibc-functions/accept4.texi: Mention the new module.
37570
37571 2009-08-24  Jim Meyering  <meyering@redhat.com>
37572
37573         progname: also set global program_invocation_name, when possible
37574         Before this change, a libtool-enabled program that calls glibc's
37575         error function would report the program name as
37576         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
37577         * modules/progname (configure.ac): Check for a declaration of
37578         program_invocation_name.
37579         * lib/progname.c:  Include <errno.h>.
37580         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
37581         Set program_invocation_name.
37582
37583 2009-08-23  Bruno Haible  <bruno@clisp.org>
37584
37585         * lib/dup3.c: Include <string.h>.
37586
37587 2009-08-23  Bruno Haible  <bruno@clisp.org>
37588
37589         * lib/dup3.c (dup3): Test only once whether the system actually exists.
37590         * lib/pipe2.c (pipe2): Likewise.
37591         Suggested by Eric Blake.
37592
37593 2009-08-23  Bruno Haible  <bruno@clisp.org>
37594
37595         Tolerate declared but missing dup3 syscall.
37596         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
37597         * lib/unistd.in.h (dup3): If the function is already present,
37598         override it.
37599         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
37600         * modules/dup3 (Makefile.am): Compile dup3.c always.
37601         Reported by Paolo Bonzini.
37602
37603 2009-08-23  Bruno Haible  <bruno@clisp.org>
37604
37605         Tolerate declared but missing pipe2 syscall.
37606         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
37607         available.
37608         * lib/unistd.in.h (pipe2): If the function is already present,
37609         override it.
37610         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
37611         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
37612         Reported by Paolo Bonzini.
37613
37614 2009-08-23  Bruno Haible  <bruno@clisp.org>
37615
37616         * lib/pipe2.c (pipe2): Move #ifs inside function.
37617
37618 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37619
37620         quotearg: document limitations of quote_these_too
37621         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
37622         those limitations are created.
37623         * lib/quotearg.h (set_char_quoting): Document that digits and
37624         letters that are special after backslash are not permitted.
37625         (quotearg_char): Cross-reference set_char_quoting documentation.
37626
37627 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
37628
37629         quotearg: implement custom_quoting_style
37630         * lib/quotearg.c: (struct quoting_options): Add left_quote and
37631         right_quote fields.
37632         (set_custom_quoting): New public function.
37633         (quotearg_buffer_restyled): Add left_quote and right_quote
37634         arguments, handle them very much like locale quoting, and update
37635         all uses.
37636         (quotearg_n_custom): New public function.
37637         (quotearg_n_custom_mem): New public function.
37638         (quotearg_custom): New public function.
37639         (quotearg_custom_mem): New public function.
37640         * lib/quotearg.h: Prototype and document new public functions.
37641         (enum quoting_style): For escape_quoting_style and
37642         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
37643         ignored even though they're otherwise like c_quoting_style.
37644         Add custom_quoting_style member and document with comparison to
37645         clocale_quoting_style.
37646         * tests/test-quotearg.c (custom_quotes): New array.
37647         (custom_results): New array.
37648         (main): Extend to test custom quoting.
37649
37650 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37651
37652         quotearg: fix right quote escaping when it's in quote_these_too
37653         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
37654         quote, be sure to prepend only one backslash.
37655         * tests/test-quotearg.c (use_quote_double_quotes): New function.
37656         (main): Test it.
37657
37658 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
37659
37660         quotearg-tests: test escaping of embedded locale quotes
37661         * tests/test-quotearg.c (struct result_strings): Add member for
37662         new input.
37663         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
37664         (inputs): Add new input.
37665         (results_g): Add expected results.
37666         (flag_results): Likewise.
37667         (locale_results): Likewise.
37668         (compare_strings): Check those.
37669
37670 2009-08-23  Bruno Haible  <bruno@clisp.org>
37671
37672         Tests for module 'dup3'.
37673         * modules/dup3-tests: New file.
37674         * tests/test-dup3.c: New file.
37675
37676         New module 'dup3'.
37677         * lib/unistd.in.h (dup3): New declaration.
37678         * lib/dup3.c: New file.
37679         * m4/dup3.m4: New file.
37680         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
37681         HAVE_DUP3.
37682         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
37683         * modules/dup3: New file.
37684         * doc/glibc-functions/dup3.texi: Mention the new module.
37685
37686 2009-08-23  Bruno Haible  <bruno@clisp.org>
37687
37688         Tweak the dup2 test.
37689         * tests/test-dup2.c (main): Create the test file empty. Verify that an
37690         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
37691         the test file is still empty. Fix argument order of lseek.
37692
37693 2009-08-23  Bruno Haible  <bruno@clisp.org>
37694
37695         Avoid test link errors when the modules getopt-gnu, gettext are used.
37696         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
37697         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37698
37699 2009-08-23  Bruno Haible  <bruno@clisp.org>
37700
37701         Fix getdtablesize() on mingw.
37702         * lib/getdtablesize.c (getdtablesize): Implement differently.
37703         * lib/unistd.in.h (getdtablesize): Improve comment.
37704
37705 2009-08-23  Bruno Haible  <bruno@clisp.org>
37706
37707         New module 'mkostemp'.
37708         Based on Ulrich Drepper's 2007-08-10 change in glibc.
37709         * lib/stdlib.in.h (mksotemp): New declaration.
37710         * lib/mkostemp.c: New file, from glibc with modifications.
37711         * lib/tempname.h (GT_FILE): Remove outdated comment.
37712         (gen_tempname): Add flags argument.
37713         * lib/tempname.c (__GT_BIGFILE): Remove macro.
37714         (__GT_FILE): Map to 1.
37715         (small_open, large_open): Remove macros.
37716         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
37717         * lib/mkstemp.c (mkstemp): Update.
37718         * lib/mkdtemp.c (mkdtemp): Likewise.
37719         * m4/mkostemp.m4: New file.
37720         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
37721         HAVE_MKOSTEMP.
37722         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
37723         HAVE_MKOSTEMP.
37724         * modules/mkostemp: New file, based on modules/mkstemp.
37725         * doc/glibc-functions/mkostemp.texi: Mention the new module.
37726         * NEWS: Mention the change.
37727
37728 2009-08-23  Bruno Haible  <bruno@clisp.org>
37729
37730         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
37731         Reported by Eric Blake.
37732
37733 2009-08-23  Bruno Haible  <bruno@clisp.org>
37734
37735         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
37736         Reported by Eric Blake.
37737
37738 2009-08-23  Bruno Haible  <bruno@clisp.org>
37739
37740         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
37741         * modules/pipe2 (Depends-on): Likewise.
37742
37743 2009-08-23  Eric Blake  <ebb9@byu.net>
37744
37745         fcntl-h: add O_TTY_INIT support
37746         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
37747         * tests/test-fcntl-h.c (o): Test it.
37748         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37749
37750         fcntl-h: rename from fcntl, in preparation for fcntl(2)
37751         * modules/fcntl: Move <fcntl.h> header replacement...
37752         * modules/fcntl-h: ...to new name, so as not to collide with
37753         like-named function.
37754         * tests/test-fcntl.c: Rename...
37755         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
37756         * modules/fcntl-tests: Rename...
37757         * modules/fcntl-h-tests: ...to this.  Update test file name.
37758         * modules/chdir-long (Depends-on): Update clients.
37759         * modules/chdir-safer (Depends-on): Likewise.
37760         * modules/fcntl-safer (Depends-on): Likewise.
37761         * modules/fts (Depends-on): Likewise.
37762         * modules/mkancesdirs (Depends-on): Likewise.
37763         * modules/mkdir-p (Depends-on): Likewise.
37764         * modules/open (Depends-on): Likewise.
37765         * modules/savewd (Depends-on): Likewise.
37766         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
37767         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
37768
37769 2009-08-22  Bruno Haible  <bruno@clisp.org>
37770
37771         * modules/binary-io (License): Relicense under LGPL.
37772         * modules/pipe2 (License): Likewise.
37773
37774 2009-08-22  Bruno Haible  <bruno@clisp.org>
37775
37776         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
37777         return value.
37778         * lib/pipe-filter-gi.c (filter_init): Likewise.
37779         Reported by Eric Blake.
37780
37781 2009-08-22  Bruno Haible  <bruno@clisp.org>
37782
37783         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
37784         * modules/pipe (Depends-on): Add pipe2.
37785
37786 2009-08-22  Bruno Haible  <bruno@clisp.org>
37787
37788         Tests for module 'pipe2'.
37789         * modules/pipe2-tests: New file.
37790         * tests/test-pipe2.c: New file.
37791
37792         New module 'pipe2'.
37793         * lib/unistd.in.h (pipe2): New declaration.
37794         * lib/pipe2.c: New file.
37795         * m4/pipe2.m4: New file.
37796         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
37797         HAVE_PIPE2.
37798         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
37799         * modules/pipe2: New file.
37800         * doc/glibc-functions/pipe2.texi: Mention the new module.
37801
37802 2009-08-22  Bruno Haible  <bruno@clisp.org>
37803
37804         Reference some new glibc functions.
37805         * doc/glibc-functions/accept4.texi: New file.
37806         * doc/glibc-functions/dup3.texi: New file.
37807         * doc/glibc-functions/mkostemp.texi: New file.
37808         * doc/glibc-functions/pipe2.texi: New file.
37809         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
37810         (Glibc sys/socket.h): Refer to accept4.
37811         (Glibc unistd.h): Refer to dup3, pipe2.
37812         Reported by Eric Blake.
37813
37814 2009-08-22  Jim Meyering  <meyering@redhat.com>
37815             Bruno Haible  <bruno@clisp.org>
37816
37817         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
37818         This makes it so packages using automake-1.11's silent-rules option
37819         can print e.g., a single "GEN    configmake.h" line, rather than
37820         the 30+ statements that perform the job.  If you want to see the
37821         actual commands, you can still run "make V=1".
37822         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
37823         so that make output is abbreviated when those variables are defined
37824         appropriately.
37825         * modules/argz: Likewise.
37826         * modules/arpa_inet: Likewise.
37827         * modules/byteswap: Likewise.
37828         * modules/configmake: Likewise.
37829         * modules/dirent: Likewise.
37830         * modules/errno: Likewise.
37831         * modules/fcntl: Likewise.
37832         * modules/float: Likewise.
37833         * modules/fnmatch: Likewise.
37834         * modules/getopt-posix: Likewise.
37835         * modules/glob: Likewise.
37836         * modules/iconv_open: Likewise.
37837         * modules/inttypes: Likewise.
37838         * modules/localcharset: Likewise.
37839         * modules/locale: Likewise.
37840         * modules/math: Likewise.
37841         * modules/netdb: Likewise.
37842         * modules/netinet_in: Likewise.
37843         * modules/poll: Likewise.
37844         * modules/posix_spawnp-tests: Likewise.
37845         * modules/sched: Likewise.
37846         * modules/search: Likewise.
37847         * modules/selinux-h: Likewise.
37848         * modules/signal: Likewise.
37849         * modules/spawn: Likewise.
37850         * modules/stdarg: Likewise.
37851         * modules/stdbool: Likewise.
37852         * modules/stddef: Likewise.
37853         * modules/stdint: Likewise.
37854         * modules/stdio: Likewise.
37855         * modules/stdlib: Likewise.
37856         * modules/string: Likewise.
37857         * modules/strings: Likewise.
37858         * modules/sys_file: Likewise.
37859         * modules/sys_ioctl: Likewise.
37860         * modules/sys_select: Likewise.
37861         * modules/sys_socket: Likewise.
37862         * modules/sys_stat: Likewise.
37863         * modules/sys_time: Likewise.
37864         * modules/sys_times: Likewise.
37865         * modules/sys_utsname: Likewise.
37866         * modules/sys_wait: Likewise.
37867         * modules/sysexits: Likewise.
37868         * modules/time: Likewise.
37869         * modules/unistd: Likewise.
37870         * modules/wchar: Likewise.
37871         * modules/wctype: Likewise.
37872
37873 2009-08-22  Jim Meyering  <meyering@redhat.com>
37874
37875         announce-gen: detect write failure
37876         * build-aux/announce-gen: Add Coda at end.
37877         Remove equivalent-but-more-verbose block at top.
37878
37879 2009-08-19  Akim Demaille  <demaille@gostai.com>
37880
37881         bootstrap: --help to stdout.
37882         * bootstrap (usage): Don't send --help to stderr.
37883         Use a here doc instead of a long string.
37884
37885 2009-08-21  Eric Blake  <ebb9@byu.net>
37886
37887         test-popen-safer: split from test-popen
37888         * tests/test-popen.c (main): Move...
37889         * tests/test-popen.h: ...into new file.
37890         * tests/test-popen-safer2.c: New file.
37891         * modules/popen-tests (Files): Add test-popen.h.
37892         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
37893         Suggested by Bruno Haible.
37894
37895         test-fcntl-safer: split from test-open
37896         * tests/test-open.c (main): Move...
37897         * tests/test-open.h: ...into new file.
37898         * tests/test-fcntl-safer.c: New file.
37899         * modules/open-tests (Files): Add test-open.h.
37900         * modules/fcntl-safer-tests: New file.
37901         Suggested by Bruno Haible.
37902
37903         test-fopen-safer: split from test-fopen
37904         * tests/test-fopen.c (main): Move...
37905         * tests/test-fopen.h: ...into new file.
37906         * tests/test-fopen-safer.c: New file.
37907         * modules/fopen-tests (Files): Add test-fopen.h.
37908         * modules/fopen-safer-tests: New file.
37909         Suggested by Bruno Haible.
37910
37911 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
37912
37913         popen-safer: test O_CLOEXEC at run-time.
37914         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
37915
37916 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
37917
37918         fcntl: move more flags to the header
37919         * lib/cloexec.c: Do not define FD_CLOEXEC here.
37920         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
37921         * lib/fcntl.in.h: Do both things here.
37922
37923 2009-08-21  Jim Meyering  <meyering@redhat.com>
37924
37925         consistently remove $@-t before redirecting to it
37926         * modules/argz: Remove $@-t and $@ before redirecting to the former.
37927         * modules/alloca-opt: Likewise.
37928         * modules/byteswap: Likewise.
37929         * modules/fnmatch: Likewise.
37930         * modules/getopt-posix: Likewise.
37931         * modules/glob: Likewise.
37932         * modules/poll: Likewise.
37933         * modules/posix_spawnp-tests: Likewise.
37934         * modules/sys_socket: Likewise.
37935         * modules/sysexits: Likewise.
37936
37937 2009-08-21  Eric Blake  <ebb9@byu.net>
37938
37939         popen: simplify access to original popen
37940         * lib/popen.c (rpl_popen): No need to worry about popen being a
37941         macro.
37942         Reported by Bruno Haible.
37943
37944 2009-08-20  Eric Blake  <ebb9@byu.net>
37945
37946         build: avoid some compiler warnings
37947         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
37948         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
37949         type.
37950         (new_exclude_segment, excluded_file_pattern_p)
37951         (excluded_file_name_p): Reduce scope.
37952         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
37953         old-style declaration.
37954
37955 2009-08-20  Simon Josefsson  <simon@josefsson.org>
37956
37957         * tests/test-exclude1.sh: Handle Windows EOL.
37958         * tests/test-exclude2.sh: Likewise.
37959         * tests/test-exclude3.sh: Likewise.
37960         * tests/test-exclude4.sh: Likewise.
37961         * tests/test-exclude5.sh: Likewise.
37962         * tests/test-exclude6.sh: Likewise.
37963         * tests/test-exclude7.sh: Likewise.
37964
37965 2009-08-19  Akim Demaille  <demaille@gostai.com>
37966
37967         bootstrap: find sha1sum when named gsha1sum.
37968         * bootstrap (find_tool): New.
37969         ($SHA1SUM): New.
37970         Use it.
37971
37972 2009-08-20  Jim Meyering  <meyering@redhat.com>
37973
37974         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
37975         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
37976         expression that converts "." in a file name to "\." in the resulting
37977         regexp.  Start with a dummy statement, so that prior shell variable
37978         definitions are expanded portably.  Reported by Simon Josefsson.
37979
37980 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
37981
37982         Fix polling for writeability of a screen buffer.
37983         * lib/poll.c: Distinguish input and screen buffers for the
37984         Win32 implementation.
37985         * lib/select.c: Likewise.
37986
37987 2009-08-19  Eric Blake  <ebb9@byu.net>
37988
37989         popen-safer: prevent popen from clobbering std descriptors
37990         * modules/popen-safer: New file.
37991         * lib/popen-safer.c: Likewise.
37992         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
37993         * lib/stdio--.h (popen): Provide override.
37994         * lib/stdio-safer.h (popen_safer): Provide declaration.
37995         * tests/test-popen.c (includes): Partially test this.
37996         * modules/popen-safer-tests: New file, for more tests.
37997         * tests/test-popen-safer.c: Likewise.
37998         * MODULES.html.sh (file stream based Input/Output): Mention it.
37999
38000         tests: test some of the *-safer modules
38001         * modules/fopen-safer (Depends-on): Add fopen.
38002         * modules/fcntl-safer (Depends-on): Add fcntl.
38003         * modules/stdlib-safer (Depends-on): Add stdlib.
38004         (configure.ac): Set indicator.
38005         * modules/unistd-safer (configure.ac): Likewise.
38006         * modules/tmpfile-safer (configure.ac): Likewise.
38007         (Depends-on): Add tmpfile.
38008         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
38009         active.
38010         * tests/test-fopen.c (includes): Test safer versions when they are
38011         in use.
38012         * tests/test-open.c (includes): Likewise.
38013
38014         popen: fix cygwin 1.5 bug when stdin closed
38015         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
38016         * modules/popen: New file.
38017         * modules/popen-tests: Likewise.
38018         * tests/test-popen.c: Likewise.
38019         * m4/popen.m4: Likewise.
38020         * lib/popen.c: Likewise.
38021         * lib/stdio.in.h (popen): New declaration.
38022         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
38023         * modules/stdio (Makefile.am): Likewise.
38024         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
38025
38026 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
38027
38028         maint.mk: give full control over update-copyright exclusions
38029         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
38030         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
38031         (update-copyright): Don't force inclusion of top-level
38032         ChangeLog.  Don't force exclusion of all COPYING files, but make
38033         them the default exclusion instead.
38034
38035 2009-08-16  Bruno Haible  <bruno@clisp.org>
38036
38037         Fix test failures on Solaris 10.
38038         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
38039         tests when Solaris iconv() is used.
38040         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
38041         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
38042         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
38043         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
38044         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
38045
38046 2009-08-16  Bruno Haible  <bruno@clisp.org>
38047
38048         Fix test failures on Solaris 10.
38049         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
38050         'tr' program and pass it as first argument.
38051         * tests/test-pipe-filter-gi1.sh: Likewise.
38052         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
38053         program as first argument.
38054         * tests/test-pipe-filter-gi1.c (main): Likewise.
38055
38056 2009-08-16  Eric Blake  <ebb9@byu.net>
38057
38058         fpurge: fix previous commits
38059         * modules/fpurge (Makefile.am): Make replacement conditional,
38060         partially reverting 2007-04-29 change; missed in previous
38061         attempt.
38062         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
38063         is missing.
38064
38065 2009-08-16  Bruno Haible  <bruno@clisp.org>
38066
38067         Clarify fpurge's effect on the file position.
38068         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
38069         * tests/test-fpurge.c (main): Make a second pass for checking the file
38070         position.
38071
38072 2009-08-16  Bruno Haible  <bruno@clisp.org>
38073
38074         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
38075         declaration of fpurge is missing.
38076         * tests/test-fpurge.c (main): Check that the file has not more contents
38077         than expected. Close the file before removing it.
38078
38079 2009-08-15  Eric Blake  <ebb9@byu.net>
38080
38081         fpurge: don't wrap working cygwin implementation
38082         * lib/fpurge.c (fpurge): Fix comment typo.
38083         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
38084         1.7 to avoid replacement.
38085         * tests/test-fpurge.c (main): Enhance test.
38086
38087 2009-08-15  Eric Blake  <ebb9@byu.net>
38088         and Jim Meyering  <meyering@redhat.com>
38089
38090         test-update-copyright: skip if perl is insufficient
38091         * tests/test-update-copyright.sh: Failure to run maintainer tool
38092         should not cause testsuite failure on cygwin 1.5.
38093
38094 2009-08-14  Eric Blake  <ebb9@byu.net>
38095
38096         doc: mention more functions added in cygwin 1.7.0
38097         * doc/posix-headers/limits.texi (limits.h): Update for recent
38098         cygwin additions.
38099         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
38100         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
38101         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
38102         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
38103         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
38104
38105 2009-08-14  Eric Blake  <ebb9@byu.net>
38106
38107         maint.mk: simplify update-copyright rule
38108         * top/maint.mk (update-copyright-local): Delete, and document how
38109         to do it in cfg.mk instead.
38110         (update-copyright-exclude-regexp): Delete, and document how to do
38111         it in .x-update-copyright instead.
38112         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
38113         exclude ChangeLog.
38114
38115 2009-08-14  Bruno Haible  <bruno@clisp.org>
38116
38117         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
38118
38119 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38120
38121         maint.mk: support update-copyright-env
38122         * top/maint.mk (update-copyright-env): Define place-holder.
38123         (update-copyright): Expand $(update-copyright-env) before
38124         invoking update-copyright.
38125
38126 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38127
38128         update-copyright: implement forced reformatting
38129         * build-aux/update-copyright: Implement and document
38130         UPDATE_COPYRIGHT_FORCE.
38131         * tests/test-update-copyright.sh: Test it.
38132
38133 2009-08-14  Eric Blake  <ebb9@byu.net>
38134         and Bruno Haible  <bruno@clisp.org>
38135
38136         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
38137         * tests/test-locale.c: Revert previous patch related to NULL.
38138         * tests/test-stdio.c: Likewise.
38139         * tests/test-stdlib.c: Likewise.
38140         * tests/test-string.c: Likewise.
38141         * tests/test-unistd.c: Likewise.
38142         * modules/time-tests (Depends-on): Add verify.
38143         * modules/wchar-tests (Depends-on): Likewise.
38144         * tests/test-time.c: Test for NULL compliance.
38145         * tests/test-wchar.c: Likewise.
38146         * modules/locale (Depends-on): Add stddef.
38147         * modules/stdio (Depends-on): Likewise.
38148         * modules/stdlib (Depends-on): Likewise.
38149         * modules/string (Depends-on): Likewise.
38150         * modules/time (Depends-on): Likewise.
38151         * modules/unistd (Depends-on): Likewise.
38152         * modules/wchar (Depends-on): Likewise.
38153         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
38154         * lib/stdlib.in.h (includes): Likewise.
38155         * lib/string.in.h (includes): Likewise.
38156         * lib/time.in.h (includes): Likewise.
38157         * lib/unistd.in.h (includes): Likewise.
38158         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
38159         replaced.
38160         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38161         * m4/stddef_h.m4: New file.
38162         * modules/stddef: Likewise.
38163         * lib/stddef.in.h: Likewise.
38164         * modules/stddef-tests: Likewise.
38165         * tests/test-stddef.c: Likewise.
38166         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
38167         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
38168         * doc/posix-headers/locale.texi (locale.h): Likewise.
38169         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
38170         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
38171         * doc/posix-headers/string.texi (string.h): Likewise.
38172         * doc/posix-headers/time.texi (time.h): Likewise.
38173         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
38174         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
38175
38176 2009-08-14  Eric Blake  <ebb9@byu.net>
38177
38178         doc: improve git diff of texinfo files
38179         * .gitattributes: Add rule for *.texi files, with hint on how to
38180         use it.
38181         Copied from m4, and based on a report by Bruno Haible.
38182
38183 2009-08-14  Bruno Haible  <bruno@clisp.org>
38184
38185         Disable multithread support by default on Cygwin 1.5.x for real.
38186         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
38187
38188 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38189
38190         update-copyright: much ado about intervals
38191         * build-aux/update-copyright: Implement and document
38192         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
38193         of copyright year intervals.
38194         Also, document UPDATE_COPYRIGHT_YEAR.
38195         * tests/test-update-copyright.sh: Test it.
38196
38197         update-copyright: convert 2-digit to 4-digit years
38198         * build-aux/update-copyright: Implement and document.
38199         * tests/test-update-copyright.sh: Update.
38200
38201 2009-08-14  Jim Meyering  <meyering@redhat.com>
38202
38203         test-exclude: avoid coreutils "make check" failure
38204         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
38205         just as in test-argmatch.c.
38206
38207 2009-08-13  Eric Blake  <ebb9@byu.net>
38208
38209         test-dup2: fix bad assumption
38210         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
38211         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
38212
38213         test-version-etc: fix CRLF portability issue
38214         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
38215         recognize \r.
38216         * tests/test-argp-version-etc-1.sh: Likewise.
38217
38218         getopt: update client modules
38219         * modules/argp (Depends-on): Use getopt-gnu.
38220         * modules/git-merge-changelog (Depends-on): Likewise.
38221         * modules/long-options (Depends-on): Likewise.
38222         * modules/xstrtol (Depends-on): Likewise.
38223
38224 2009-08-13  Simon Josefsson  <simon@josefsson.org>
38225
38226         * tests/test-version-etc.sh: Don't fail on different
38227         project/version.  Don't fail on CRLF differences.  Rewrite to use
38228         multiple -e instead of multiple sed forks, suggested by Eric Blake
38229         <ebb9@byu.net>.
38230         * tests/test-argp-version-etc-1.sh: Likewise.
38231
38232 2009-08-13  Simon Josefsson  <simon@josefsson.org>
38233
38234         * tests/test-version-etc.sh: Don't fail on different
38235         project/version.
38236
38237 2009-08-12  Bruno Haible  <bruno@clisp.org>
38238
38239         Tests for modules 'getopt-posix', 'getopt-gnu'.
38240         * modules/getopt-posix-tests: New file.
38241         * tests/test-getopt.c: New file.
38242         * tests/test-getopt.h: New file.
38243         * tests/test-getopt_long.h: New file.
38244
38245         New modules 'getopt-posix', 'getopt-gnu'.
38246         * modules/getopt-gnu: New file, renamed from modules/getopt.
38247         * modules/getopt-posix: New file.
38248         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
38249         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
38250         (gl_GETOPT): Remove macro.
38251         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
38252         Disable the test against BSD systems that declare optreset. Test
38253         against mingw bug. Test against lack of support of optional arguments
38254         on many platforms.
38255         * doc/glibc-headers/getopt.texi: Update module name and list of
38256         relevant platforms.
38257         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
38258         'getopt-gnu' and more portability problems.
38259         * NEWS: Mention the changes.
38260
38261 2009-08-12  Bruno Haible  <bruno@clisp.org>
38262
38263         Ensure that optarg etc. get declared by <unistd.h>.
38264         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
38265         AC_USE_SYSTEM_EXTENSIONS.
38266         * modules/getopt (Depends-on): Add 'extensions'.
38267
38268 2009-08-12  Bruno Haible  <bruno@clisp.org>
38269
38270         Avoid test link errors.
38271         * modules/pipe-filter-ii-tests (Makefile.am): Define
38272         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
38273         * modules/pipe-filter-gi-tests (Makefile.am): Define
38274         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
38275         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38276
38277 2009-08-12  Bruno Haible  <bruno@clisp.org>
38278
38279         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
38280         gl_GETOPT_SUBSTITUTE before.
38281         (gl_GETOPT): Use it.
38282         * m4/argp.m4 (gl_ARGP): Update.
38283         Reported by Sergey Poznyakoff.
38284
38285         * m4/getopt.m4: Reorder macros.
38286         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
38287         (gl_GETOPT_SUBSTITUTE): Remove macro.
38288
38289 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38290
38291         Minor improvement in gitlog-to-changelog
38292
38293         * build-aux/gitlog-to-changelog: New option `--format' makes
38294         output format string configurable.
38295
38296 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
38297
38298         Optimize exclude: use hash tables for non-wildcard patterns.
38299
38300         * lib/exclude.c: Include hash.h and mbuiter.h
38301         (struct exclude_pattern, exclude_segment): New data types.
38302         (struct exclude): Rewrite.
38303         (fnmatch_pattern_has_wildcards): New function.
38304         (new_exclude_segment, free_exclude_segment): New functions.
38305         (excluded_file_pattern_p, excluded_file_name_p): New functions.
38306         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
38307         * lib/exclude.h (is_fnmatch_pattern): New prototype.
38308         * modules/exclude: Depend on hash and mbuiter.
38309
38310         * modules/exclude-tests: New file.
38311         * tests/test-exclude.c: New file.
38312         * tests/test-exclude1.sh: New file.
38313         * tests/test-exclude2.sh: New file.
38314         * tests/test-exclude3.sh: New file.
38315         * tests/test-exclude4.sh: New file.
38316         * tests/test-exclude5.sh: New file.
38317         * tests/test-exclude6.sh: New file.
38318         * tests/test-exclude7.sh: New file.
38319
38320 2009-08-12  Bruno Haible  <bruno@clisp.org>
38321
38322         Ensure that getopt() gets declared by <unistd.h>.
38323         * lib/unistd.in.h: Conditionally include getopt.h.
38324         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
38325         Set GNULIB_UNISTD_H_GETOPT.
38326         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38327         GNULIB_UNISTD_H_GETOPT.
38328         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
38329
38330 2009-08-12  Bruno Haible  <bruno@clisp.org>
38331
38332         Clarify logic.
38333         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
38334         gl_replace_getopt instead of GETOPT_H.
38335
38336 2009-08-12  Bruno Haible  <bruno@clisp.org>
38337
38338         * m4/getopt.m4: Add comments.
38339
38340 2009-08-12  Bruno Haible  <bruno@clisp.org>
38341
38342         Disable multithread support by default on Cygwin 1.5.x.
38343         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
38344         set gl_use_threads=no if not specified otherwise.
38345
38346 2009-08-11  Bruno Haible  <bruno@clisp.org>
38347
38348         Avoid compilation error on NetBSD 5.0.
38349         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
38350         * tests/test-stdio.c: Likewise.
38351         * tests/test-stdlib.c: Likewise.
38352         * tests/test-string.c: Likewise.
38353         * tests/test-unistd.c: Likewise.
38354         Reported by Greg Troxel <gdt@ir.bbn.com>
38355         at <https://savannah.gnu.org/support/?106973>.
38356
38357 2009-08-11  Bruno Haible  <bruno@clisp.org>
38358
38359         * modules/dup2-tests (Depends-on): Remove close.
38360
38361         Undo 2009-07-19 commit.
38362         * modules/acl-tests (Depends-on): Remove close.
38363         * modules/binary-io-tests (Depends-on): Likewise.
38364         * modules/closein-tests (Depends-on): Likewise.
38365         * modules/flock-tests (Depends-on): Likewise.
38366         * modules/fsync-tests (Depends-on): Likewise.
38367         * modules/lseek-tests (Depends-on): Likewise.
38368         * modules/pipe-tests (Depends-on): Likewise.
38369         * modules/posix_spawn-tests (Depends-on): Likewise.
38370         * modules/posix_spawnp-tests (Depends-on): Likewise.
38371         * modules/stat-time-tests (Depends-on): Likewise.
38372         * modules/yesno-tests (Depends-on): Likewise.
38373
38374 2009-08-10  Bruno Haible  <bruno@clisp.org>
38375
38376         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
38377
38378 2009-08-10  Bruno Haible  <bruno@clisp.org>
38379
38380         Fix a gcc warning.
38381         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
38382
38383 2009-08-10  Bruno Haible  <bruno@clisp.org>
38384
38385         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
38386         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
38387         not only the first time.
38388         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
38389         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
38390         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
38391         is 1, not only the the first time.
38392
38393 2009-08-10  Bruno Haible  <bruno@clisp.org>
38394
38395         Make it possible to use module 'gethostname' without module 'close'.
38396         * lib/unistd.in.h (close): Evoke a link error only if
38397         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
38398         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
38399         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38400         * modules/unistd (Makefile.am): Substitute
38401         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38402         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
38403         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
38404         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
38405         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38406         * modules/sys_ioctl (Makefile.am): Substitute
38407         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38408         * modules/socket (configure.ac): On native Windows, set
38409         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
38410         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
38411         Reported by Sam Steingold <sds@gnu.org>.
38412
38413 2009-08-10  Bruno Haible  <bruno@clisp.org>
38414
38415         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
38416         * modules/ioctl (configure.ac): Likewise.
38417
38418 2009-08-10  Bruno Haible  <bruno@clisp.org>
38419
38420         Avoid collision between gnulib wrapper and libintl wrapper.
38421         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
38422         already defined in intl/printf.c.
38423         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
38424         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
38425
38426 2009-08-09  Bruno Haible  <bruno@clisp.org>
38427
38428         Make <sys/select.h> really self-contained, also on Solaris 10.
38429         * lib/sys_select.in.h: Include <string.h>.
38430         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
38431         Solaris 10 problem.
38432         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
38433         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
38434         Reported by Jim Meyering.
38435
38436 2009-08-09  Bruno Haible  <bruno@clisp.org>
38437
38438         Avoid warnings from 'aclocal' that are due to a use of macro name
38439         AM_XGETTEXT_OPTION that is not defined in automake.
38440         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
38441         automake.
38442         * modules/error (configure.ac): Likewise.
38443         * modules/propername (configure.ac): Likewise.
38444         * modules/vasprintf (configure.ac): Likewise.
38445         * modules/verror (configure.ac): Likewise.
38446         * modules/xprintf (configure.ac): Likewise.
38447         * modules/xvasprintf (configure.ac): Likewise.
38448
38449 2009-08-08  Bruno Haible  <bruno@clisp.org>
38450
38451         Avoid compilation error in C++ mode.
38452         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
38453         Reported by Sam Steingold <sds@gnu.org>.
38454
38455 2009-08-08  Bruno Haible  <bruno@clisp.org>
38456
38457         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
38458         for the various Unix platforms.
38459         * doc/posix-headers/limits.texi: Update platforms list regarding
38460         HOST_NAME_MAX.
38461         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38462
38463 2009-08-07  Jim Meyering  <meyering@redhat.com>
38464
38465         selinux-at: fix typo in a comment
38466         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
38467         Spotted by Paolo Bonzini.
38468
38469         selinux-at: remove redundant m4 code, add documentation
38470         * modules/selinux-at (configure.ac): Remove redundant code.
38471         LIB_SELINUX is already set via the dependent module, selinux-h.
38472         (Include): Add quotes around selinux-at.h.
38473         * lib/selinux-at.h: Add documentation.
38474         Reported by Bruno Haible in
38475         http://marc.info/?l=gnulib-bug&m=124958988300749
38476
38477 2009-08-07  Bruno Haible  <bruno@clisp.org>
38478
38479         Avoid link error on MacOS X 10.3 and 10.4.
38480         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
38481         on non-ELF systems.
38482         * lib/argp-pv.c (argp_program_version): Likewise.
38483         Reported by Simon Josefsson.
38484
38485 2009-08-07  Simon Josefsson  <simon@josefsson.org>
38486
38487         * tests/test-version-etc.sh: Use $EXEEXT.
38488
38489 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
38490
38491         update-copyright: update documentation to point to maint.mk
38492         * build-aux/update-copyright: Here.
38493
38494 2009-08-06  Jim Meyering  <meyering@redhat.com>
38495
38496         maint.mk: support update-copyright-local
38497         * top/maint.mk (update-copyright-local): Define place-holder.
38498         (update-copyright): Depend on $(update-copyright-local).
38499
38500 2009-08-06  Jim Meyering  <meyering@redhat.com>
38501
38502         selinux-at: new module
38503         Initially written for coreutils, this module will soon be
38504         used by findutils, too.
38505         * MODULES.html.sh [Misc]: Add selinux-at.
38506         * lib/selinux-at.h: New file, from coreutils.
38507         * lib/selinux-at.c: Likewise.
38508         * modules/selinux-at: Likewise.
38509         (License): Change from LGPL to GPL, since it depends
38510         on the GPL'd openat module.
38511
38512         doc: update README
38513         * README: Remove references to cogito.
38514         Remove cvs-repo-updating instructions from 2007.
38515         Don't imply that CVS is better if you have limited disk space.
38516
38517 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38518
38519         update-copyright: support C-style comments
38520         * build-aux/update-copyright: Implement and document.
38521         * tests/test-update-copyright.sh: Test.
38522
38523 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38524
38525         update-copyright: support omitted "(C)"
38526         * build-aux/update-copyright: Implement and document.  Also,
38527         allow variable whitespace before "(C)".
38528         * tests/test-update-copyright.sh: Test.
38529
38530 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38531
38532         update-copyright: don't trip on non-FSF copyright statements
38533         * build-aux/update-copyright: Fix so that the first correctly
38534         formatted FSF copyright statement is recognized no matter what
38535         appears before it.  Update documentation.
38536         * tests/test-update-copyright.sh: Test that.
38537
38538 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38539
38540         update-copyright: clean up code a little
38541         * build-aux/update-copyright: Append "_re" to the name of any
38542         variable holding a regular expression.
38543         Replace "old" and "new" with "stmt" in variable names.
38544         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
38545         handled correctly.
38546         Format code more consistently.
38547
38548 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
38549
38550         update-copyright-tests: improve portability
38551         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
38552         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
38553
38554 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
38555
38556         update-copyright: support @copyright{} and &copy;
38557         * build-aux/update-copyright: Implement and document.
38558         * tests/test-update-copyright.sh: Test.
38559
38560 2009-08-04  Jim Meyering  <meyering@redhat.com>
38561
38562         update-copyright-tests: correctly test EOL=\r\n handling
38563         * tests/test-update-copyright.sh: Put \r at the end of some lines
38564         for the dos-eol tests.  Based on a patch by Joel E. Denny.
38565
38566         maint.mk: make update-copyright exclusion list more configurable
38567         * top/maint.mk (update-copyright): Default to excluding COPYING,
38568         but allow an override, in case someone does want to update that file.
38569
38570         maint.mk: don't update copyright date in COPYING
38571         * top/maint.mk (update-copyright): Exclude COPYING.
38572
38573         maint.mk: add a copyright-updating rule
38574         * top/maint.mk (update-copyright): New rule.
38575         Derived from coreutils/Makefile.am.
38576
38577         update-copyright: rename some variables
38578         * build-aux/update-copyright: Rename a few variables for clarity.
38579         Tweak syntax.  List Joel E. Denny as coauthor.
38580
38581 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
38582
38583         update-copyright: fix bug for 2-digit last year and add tests
38584         * build-aux/update-copyright: Fix bug.
38585         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
38586         specified.
38587         * modules/update-copyright-tests: New
38588         * tests/test-update-copyright.sh: New.
38589
38590 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38591
38592         update-copyright: handle leading tabs in line prefix
38593         * build-aux/update-copyright: Count leading tabs as 8 spaces
38594         when computing margin.  This helps with the formatting of
38595         ChangeLogs, for example.
38596         Fix documentation a little.
38597
38598 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38599
38600         update-copyright: support EOL=\r\n
38601         * build-aux/update-copyright: Implement that.
38602
38603 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
38604
38605         update-copyright: automatically format copyright statements
38606         * build-aux/update-copyright: Implement that.
38607         Also, be a little more predictable and safer by always failing
38608         when the full copyright format is not perfectly recognized as an
38609         unbroken whole.  Discussed at
38610         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
38611         Rewrite documentation.
38612
38613 2009-08-03  Bruno Haible  <bruno@clisp.org>
38614
38615         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
38616
38617 2009-08-02  Bruno Haible  <bruno@clisp.org>
38618
38619         Tests for module 'uname'.
38620         * modules/uname-tests: New file.
38621         * tests/test-uname.c: New file.
38622
38623         New module 'uname'.
38624         * lib/uname.c: New file.
38625         * m4/uname.m4: New file.
38626         * modules/uname: New file.
38627         * doc/posix-functions/uname.texi: Mention the new module.
38628
38629 2009-08-02  Bruno Haible  <bruno@clisp.org>
38630
38631         Tests for module 'sys_utsname'.
38632         * modules/sys_utsname-tests: New file.
38633         * tests/test-sys_utsname.c: New file.
38634
38635         New module 'sys_utsname'.
38636         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
38637         * m4/sys_utsname_h.m4: New file.
38638         * modules/sys_utsname: New file.
38639         * doc/posix-headers/sys_utsname.texi: Mention the new module.
38640
38641 2009-08-02  Bruno Haible  <bruno@clisp.org>
38642
38643         Implicitly initialize the sockets library.
38644         * lib/gethostname.c: Include sockets.h.
38645         (rpl_gethostname): Invoke gl_sockets_startup.
38646         * lib/socket.c: Include sockets.h.
38647         (rpl_socket): Invoke gl_sockets_startup.
38648         * modules/gethostname (Depends-on): Add sockets.
38649         * modules/socket (Depends-on): Likewise.
38650         * tests/test-poll.c: Don't include sockets.h.
38651         (main): Don't invoke gl_sockets_startup.
38652         * tests/test-select.c: Don't include sockets.h.
38653         (main): Don't invoke gl_sockets_startup.
38654
38655 2009-08-02  Bruno Haible  <bruno@clisp.org>
38656
38657         Allow multiple calls to gl_sockets_startup.
38658         * lib/sockets.c (initialized_sockets_version): New variable.
38659         (gl_sockets_startup): Do nothing if already called for this or a higher
38660         version.
38661         (gl_sockets_cleanup): Reset initialized_sockets_version.
38662
38663 2009-08-03  Simon Josefsson  <simon@josefsson.org>
38664
38665         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
38666         different project/version.
38667
38668 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
38669             Bruno Haible  <bruno@clisp.org>
38670
38671         Tests for module 'pipe-filter-gi'.
38672         * modules/pipe-filter-gi-tests: New file.
38673         * tests/test-pipe-filter-gi1.sh: New file.
38674         * tests/test-pipe-filter-gi1.c: New file.
38675         * tests/test-pipe-filter-gi2.sh: New file.
38676         * tests/test-pipe-filter-gi2-main.c: New file.
38677         * tests/test-pipe-filter-gi2-child.c: New file.
38678
38679         New module 'pipe-filter-gi'.
38680         * lib/pipe-filter-gi.c: New file.
38681         * modules/pipe-filter-gi: New file.
38682
38683 2009-08-02  Bruno Haible  <bruno@clisp.org>
38684             Paolo Bonzini  <bonzini@gnu.org>
38685
38686         Tests for module 'pipe-filter-ii'.
38687         * modules/pipe-filter-ii-tests: New file.
38688         * tests/test-pipe-filter-ii1.sh: New file.
38689         * tests/test-pipe-filter-ii1.c: New file.
38690         * tests/test-pipe-filter-ii2.sh: New file.
38691         * tests/test-pipe-filter-ii2-main.c: New file.
38692         * tests/test-pipe-filter-ii2-child.c: New file.
38693
38694         New module 'pipe-filter-ii'.
38695         * lib/pipe-filter.h: New file.
38696         * lib/pipe-filter-ii.c: New file.
38697         * lib/pipe-filter-aux.h: New file.
38698         * modules/pipe-filter-ii: New file.
38699
38700 2009-08-02  Simon Josefsson  <simon@josefsson.org>
38701
38702         * lib/gc-libgcrypt.c: Change copyright to FSF.
38703         * lib/gc-gnulib.c: Likewise.
38704
38705 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
38706
38707         * lib/gethostname.c: Include limits.h.
38708
38709 2009-08-02  Simon Josefsson  <simon@josefsson.org>
38710             Bruno Haible  <bruno@clisp.org>
38711
38712         Ensure HOST_NAME_MAX as part of the gethostname module.
38713         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
38714         define also HOST_NAME_MAX.
38715         * tests/test-gethostname.c: Include <limits.h>.
38716         (main): Check also HOST_NAME_MAX.
38717         * doc/posix-headers/limits.texi: Document the mingw problem.
38718
38719 2009-08-02  Bruno Haible  <bruno@clisp.org>
38720
38721         * lib/gethostname.c (gethostname): Fix handling of large len argument.
38722         Add comments.
38723
38724 2009-03-31  Simon Josefsson  <simon@josefsson.org>
38725
38726         * lib/gethostname.c: Add Windows wrapper.
38727         * m4/gethostname.m4: Look for gethostname in -lws2_32.
38728         * modules/gethostname: Depend on sys_socket & errno, for also
38729         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
38730         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
38731
38732 2009-07-31  Jim Meyering  <meyering@redhat.com>
38733
38734         getloadavg: fix symbol name in comment
38735         * lib/getloadavg.c: Correct a typo I introduced when adding
38736         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
38737         Matt Kraai spotted the problem.
38738
38739 2009-07-29  Matt Kraai  <mkraai@beckman.com>
38740
38741         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
38742         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
38743         code also if ! defined N_NAME_POINTER.
38744         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
38745         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
38746         but the n_name member is a 12-byte array.
38747
38748 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
38749
38750         update-copyright: generalize comment handling
38751         * build-aux/update-copyright: Handle copyright statements
38752         within more comment styles.
38753         Document usage.
38754         Report any file with an external copyright holder or parse failure.
38755
38756 2009-07-29  Jim Meyering  <meyering@redhat.com>
38757
38758         mktime: correct setting of REPLACE_MKTIME
38759         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
38760
38761         update-copyright: new module
38762         * modules/update-copyright: New file.
38763         * build-aux/update-copyright: New file.
38764         * MODULES.html.sh (maint+release support): Add update-copyright.
38765
38766 2009-07-27  Bruno Haible  <bruno@clisp.org>
38767
38768         Fix compilation error when <ctime> is used and mktime is replaced.
38769         * lib/time.in.h (mktime): New declaration.
38770         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
38771         REPLACE_MKTIME instead of defining mktime in config.h.
38772         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
38773         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
38774         Reported by Ross McFarland <rwmcfa1@neces.com>.
38775
38776 2009-07-27  Bruno Haible  <bruno@clisp.org>
38777
38778         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
38779         Reported by Matt Kraai <mkraai@beckman.com>.
38780
38781 2009-07-25  Jim Meyering  <meyering@redhat.com>
38782
38783         maint.mk: avoid warnings about missing files
38784         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
38785         diagnostic when .prev-version does not exist.
38786         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
38787         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
38788         nonexistent cfg.mk.
38789         Suggestions from Simon Josefsson.
38790
38791 2009-07-25  Bruno Haible  <bruno@clisp.org>
38792
38793         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
38794         defined as macros. Needed on QNX 6.4.1.
38795         Reported by Matt Kraai <mkraai@beckman.com>.
38796
38797 2009-07-23  Jim Meyering  <meyering@redhat.com>
38798
38799         maint.mk: invoke "make dist" with a working value of XZ_OPT
38800         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
38801
38802 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
38803
38804         Make fseeko.c compile on QNX.
38805         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
38806
38807 2009-07-22  Peter Simons  <simons@cryp.to>
38808
38809         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
38810         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
38811         * lib/md4.h: Likewise.
38812         * lib/md5.h: Likewise.
38813         * lib/sha1.h: Likewise.
38814         * lib/sha256.h: Likewise.
38815         * lib/sha512.h: Likewise.
38816
38817         tests-sha1: don't assign literal string to 'char *' variable
38818         * tests/test-sha1.c (main): Declare locals with "const" to match
38819         attributes of the right hand side.
38820
38821 2009-07-21  Eric Blake  <ebb9@byu.net>
38822
38823         dup2: fix more mingw problems
38824         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
38825         fd to itself.
38826         * doc/posix-functions/dup2.texi (dup2): Document the bug.
38827         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
38828         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
38829         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
38830         care of mingw bugs.
38831
38832 2009-07-21  Jim Meyering  <meyering@redhat.com>
38833
38834         vc-list-files: avoid failure when /bin/sh is dash
38835         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
38836         On some Debian based systems, /bin/sh is a symlink to dash, and running
38837         this command would omit the "/" following each 'tests' prefix:
38838           dash -x build-aux/vc-list-files -C . tests
38839         That is because bash and dash work differently:
38840           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
38841           bash ok
38842           dash odd
38843
38844 2009-07-21  Eric Blake  <ebb9@byu.net>
38845
38846         dup2-tests: test previous patch
38847         * modules/dup2-tests: New file.
38848         * tests/test-dup2.c: Likewise.
38849         * tests/test-open.c (main): Avoid unspecified behavior.
38850         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
38851         test.
38852
38853         dup2: work around mingw and cygwin 1.5 bug
38854         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
38855         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38856         * modules/unistd (Makefile.am): Substitute it.
38857         * lib/unistd.in.h (dup2): Declare the replacement.
38858         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
38859         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
38860         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
38861         * modules/execute (Depends-on): Add dup2.
38862         * modules/fseterr (Depends-on): Likewise.
38863         * modules/pipe (Depends-on): Likewise.
38864         * modules/posix_spawn-internal (Depends-on): Likewise.
38865
38866 2009-07-21  Bruno Haible  <bruno@clisp.org>
38867
38868         * modules/.gitattributes: New file.
38869
38870 2009-07-20  Bruno Haible  <bruno@clisp.org>
38871
38872         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
38873         (main): Use it.
38874
38875 2009-07-20  Eric Blake  <ebb9@byu.net>
38876
38877         test-pipe: make a bit more robust.
38878         * tests/test-pipe.c (myerr): Allow error messages regardless of
38879         what we do to stderr.
38880         (test_pipe): Rearrange to avoid deadlock.
38881         (child_main): Try a larger read, to ensure we avoided deadlock.
38882         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
38883         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
38884         if misused.
38885
38886 2009-07-19  Jim Meyering  <meyering@redhat.com>
38887
38888         fts: avoid false-positive cycle-detection
38889         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
38890         for each new command line argument.
38891
38892 2009-07-19  Bruno Haible  <bruno@clisp.org>
38893
38894         Fix build error on mingw with the modules sys_select and unistd.
38895         * modules/acl-tests (Depends-on): Add close.
38896         * modules/binary-io-tests (Depends-on): Likewise.
38897         * modules/closein-tests (Depends-on): Likewise.
38898         * modules/flock-tests (Depends-on): Likewise.
38899         * modules/fsync-tests (Depends-on): Likewise.
38900         * modules/lseek-tests (Depends-on): Likewise.
38901         * modules/pipe-tests (Depends-on): Likewise.
38902         * modules/posix_spawn-tests (Depends-on): Likewise.
38903         * modules/posix_spawnp-tests (Depends-on): Likewise.
38904         * modules/stat-time-tests (Depends-on): Likewise.
38905         * modules/yesno-tests (Depends-on): Likewise.
38906
38907 2009-07-19  Bruno Haible  <bruno@clisp.org>
38908
38909         Unify conditionals.
38910         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
38911         macros, not at the compiler macros.
38912         * lib/pipe.c: Likewise.
38913         * lib/execute.c: Likewise.
38914         * lib/spawni.c: Likewise.
38915
38916 2009-07-19  Bruno Haible  <bruno@clisp.org>
38917
38918         Fix handling of closed stdin/stdout/stderr on mingw.
38919         * lib/w32spawn.h: Include unistd.h.
38920         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
38921         file descriptor with O_NOINHERIT flag.
38922         (fd_safer_noinherit): New function, based on fd-safer.c.
38923         (dup_safer_noinherit): New function, based on dup-safer.c.
38924         (undup_safer_noinherit): New function.
38925         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
38926         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
38927         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
38928         instead of fd_safer.
38929         * tests/test-pipe.c: Include <windows.h>.
38930         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
38931         result.
38932
38933         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
38934         from main.
38935         (test_pipe): Pass an extra argument for disambiguation.
38936         (main): Invoke parent_main or child_main.
38937
38938         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
38939         consistently.
38940
38941 2009-07-18  Eric Blake  <ebb9@byu.net>
38942
38943         test-pipe: fix mingw build
38944         * tests/test-pipe.c (main): Avoid fcntl on mingw.
38945
38946 2009-07-18  Bruno Haible  <bruno@clisp.org>
38947
38948         * modules/pipe-tests (Makefile.am): Fix typo.
38949
38950 2009-07-18  Eric Blake  <ebb9@byu.net>
38951
38952         error: fix mingw build
38953         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
38954         Reported by Bruno Haible.
38955
38956         error: avoid undefined use of stdout
38957         * lib/error.c (error, error_at_line): Check that fd 1 is open
38958         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
38959         is handling faults and the close_stdout module wants to report the
38960         detection of closed stdout as an error.
38961
38962 2009-07-17  Eric Blake  <ebb9@byu.net>
38963
38964         pipe: be robust in face of closed fds
38965         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
38966         should cause child to misbehave.
38967         * modules/pipe-tests: New module.
38968         * tests/test-pipe.c: New file.
38969         * tests/test-pipe.sh: New file.
38970         Reported by Akim Demaille.
38971
38972 2009-07-14  Bruno Haible  <bruno@clisp.org>
38973
38974         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
38975         Reported by anonymous kc.
38976
38977 2009-07-07  Jim Meyering  <meyering@redhat.com>
38978
38979         maint.mk: don't look for translatable strings in *.m4 or *.mk
38980         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
38981         when searching for translatable strings.
38982
38983 2009-07-05  Jim Meyering  <meyering@redhat.com>
38984
38985         remove superfluous parentheses in STREQ definition
38986         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
38987         * lib/getugroups.c (STREQ): Likewise.
38988         * lib/fnmatch.c (STREQ): Likewise.
38989         Spotted by Bruno Haible.
38990
38991 2009-07-04  Jim Meyering  <meyering@redhat.com>
38992
38993         argv-iter: new module
38994         * MODULES.html.sh: Add argv-iter.
38995         * lib/argv-iter.c, lib/argv-iter.h: New files.
38996         * modules/argv-iter: New file.
38997         * modules/argv-iter-tests: New file.
38998         * tests/test-argv-iter.c: Test it.
38999
39000 2009-07-04  Bruno Haible  <bruno@clisp.org>
39001
39002         Fix assertion.
39003         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
39004         contains more exact copies of a given entry than file2, leave the extra
39005         copies unpaired rather than aborting.
39006         Reported by Eric Blake.
39007
39008 2009-07-02  Bruno Haible  <bruno@clisp.org>
39009
39010         Speedup git-merge-changelog for git cherry-pick.
39011         * lib/git-merge-changelog.c (struct entries_mapping): New type.
39012         (entries_mapping_get): New function, extracted from compute_mapping.
39013         (entries_mapping_reverse_get): New function.
39014         (compute_mapping): Add a 'full' argument. Return the result in a
39015         'struct entries_mapping'.
39016         (main): Update. Access the mappings through entries_mapping_get.
39017         Reported by Eric Blake.
39018
39019 2009-07-02  Bruno Haible  <bruno@clisp.org>
39020
39021         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
39022         best_i.
39023
39024 2009-07-02  Bruno Haible  <bruno@clisp.org>
39025
39026         Speed up approximate search for matching ChangeLog entries.
39027         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
39028         argument. Call fstrcmp_bounded instead of fstrcmp.
39029         (compute_mapping, try_split_merged_entry, main): Update callers.
39030
39031 2009-07-02  Bruno Haible  <bruno@clisp.org>
39032
39033         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
39034
39035 2009-06-30  Bruno Haible  <bruno@clisp.org>
39036
39037         Reduce the number of uc_is_cased calls.
39038         * lib/unicase.h (casing_suffix_context_t): Add
39039         'first_char_except_ignorable' field.
39040         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
39041         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
39042         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
39043         Update initializer.
39044         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
39045         case-ignorable characters.
39046         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
39047         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
39048         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
39049         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
39050         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
39051
39052 2009-06-30  Bruno Haible  <bruno@clisp.org>
39053
39054         Tests for module 'unicase/ignorable'.
39055         * modules/unicase/ignorable-tests: New file.
39056         * tests/unicase/test-ignorable.c: New file, generated by
39057         gen-uni-tables.
39058
39059         Tests for module 'unicase/cased'.
39060         * modules/unicase/cased-tests: New file.
39061         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
39062         * tests/unicase/test-predicate-part1.h: New file, derived from
39063         tests/unictype/test-predicate-part1.h.
39064         * tests/unicase/test-predicate-part2.h: New file, same as
39065         tests/unictype/test-predicate-part2.h.
39066
39067         Fix evaluation of "Before C" condition of FINAL_SIGMA.
39068         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
39069         (output_casing_properties): New function.
39070         (main): Call it.
39071         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
39072         * lib/unicase/cased.c: Include unictype/bitmap.h.
39073         (uc_is_cased): Define through a bitmap lookup.
39074         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
39075         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
39076         (uc_is_case_ignorable): Define through a bitmap lookup.
39077         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
39078         lib/unictype/bitmap.h.
39079         (Depends-on): Add inline. Clean up.
39080         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
39081         lib/unictype/bitmap.h.
39082         (Depends-on): Add inline. Clean up.
39083         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
39084         recognition.
39085         * tests/unicase/test-u16-tolower.c (main): Likewise.
39086         * tests/unicase/test-u32-tolower.c (main): Likewise.
39087
39088 2009-06-30  Bruno Haible  <bruno@clisp.org>
39089
39090         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
39091         * lib/unicase/u16-casemap.c: Likewise.
39092         * lib/unicase/u32-casemap.c: Likewise.
39093
39094 2009-06-29  Bruno Haible  <bruno@clisp.org>
39095
39096         Define u32_casefold as a wrapper around u32_ct_casefold.
39097         * lib/unicase/u32-casefold.c: Update.
39098         * modules/unicase/u32-casefold (Depends-on): Add
39099         unicase/u32-ct-casefold, unicase/empty-prefix-context,
39100         unicase/empty-suffix-context. Clean up.
39101
39102         Define u16_casefold as a wrapper around u16_ct_casefold.
39103         * lib/unicase/u16-casefold.c: Update.
39104         * modules/unicase/u16-casefold (Depends-on): Add
39105         unicase/u16-ct-casefold, unicase/empty-prefix-context,
39106         unicase/empty-suffix-context. Clean up.
39107
39108         Define u8_casefold as a wrapper around u8_ct_casefold.
39109         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
39110         * lib/unicase/u8-casefold.c: Update.
39111         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
39112         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39113
39114         Define u32_totitle as a wrapper around u32_ct_totitle.
39115         * lib/unicase/u32-totitle.c: Update.
39116         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
39117         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39118
39119         Define u16_totitle as a wrapper around u16_ct_totitle.
39120         * lib/unicase/u16-totitle.c: Update.
39121         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
39122         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39123
39124         Define u8_totitle as a wrapper around u8_ct_totitle.
39125         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
39126         functions.
39127         (FUNC): Delegate to U_CT_TOTITLE.
39128         * lib/unicase/u8-totitle.c: Update.
39129         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
39130         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39131
39132         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
39133         invocation.
39134         * modules/unicase/u32-tolower (Depends-on): Add
39135         unicase/empty-prefix-context, unicase/empty-suffix-context.
39136
39137         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
39138         invocation.
39139         * modules/unicase/u16-tolower (Depends-on): Add
39140         unicase/empty-prefix-context, unicase/empty-suffix-context.
39141
39142         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
39143         * modules/unicase/u8-tolower (Depends-on): Add
39144         unicase/empty-prefix-context, unicase/empty-suffix-context.
39145
39146         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
39147         invocation.
39148         * modules/unicase/u32-toupper (Depends-on): Add
39149         unicase/empty-prefix-context, unicase/empty-suffix-context.
39150
39151         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
39152         invocation.
39153         * modules/unicase/u16-toupper (Depends-on): Add
39154         unicase/empty-prefix-context, unicase/empty-suffix-context.
39155
39156         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
39157         * modules/unicase/u8-toupper (Depends-on): Add
39158         unicase/empty-prefix-context, unicase/empty-suffix-context.
39159
39160         New module 'unicase/u32-ct-casefold'.
39161         * lib/unicase/u32-ct-casefold.c: New file.
39162         * modules/unicase/u32-ct-casefold: New file.
39163
39164         New module 'unicase/u16-ct-casefold'.
39165         * lib/unicase/u16-ct-casefold.c: New file.
39166         * modules/unicase/u16-ct-casefold: New file.
39167
39168         New module 'unicase/u8-ct-casefold'.
39169         * lib/unicase/u8-ct-casefold.c: New file.
39170         * lib/unicase/u-ct-casefold.h: New file, derived from
39171         lib/unicase/u-casefold.h.
39172         * modules/unicase/u8-ct-casefold: New file.
39173
39174         New module 'unicase/u32-ct-totitle'.
39175         * lib/unicase/u32-ct-totitle.c: New file.
39176         * modules/unicase/u32-ct-totitle: New file.
39177
39178         New module 'unicase/u16-ct-totitle'.
39179         * lib/unicase/u16-ct-totitle.c: New file.
39180         * modules/unicase/u16-ct-totitle: New file.
39181
39182         New module 'unicase/u8-ct-totitle'.
39183         * lib/unicase/u8-ct-totitle.c: New file.
39184         * lib/unicase/u-ct-totitle.h: New file, derived from
39185         lib/unicase/u-totitle.h.
39186         * modules/unicase/u8-ct-totitle: New file.
39187
39188         New module 'unicase/u32-ct-tolower'.
39189         * lib/unicase/u32-ct-tolower.c: New file.
39190         * modules/unicase/u32-ct-tolower: New file.
39191
39192         New module 'unicase/u16-ct-tolower'.
39193         * lib/unicase/u16-ct-tolower.c: New file.
39194         * modules/unicase/u16-ct-tolower: New file.
39195
39196         New module 'unicase/u8-ct-tolower'.
39197         * lib/unicase/u8-ct-tolower.c: New file.
39198         * modules/unicase/u8-ct-tolower: New file.
39199
39200         New module 'unicase/u32-ct-toupper'.
39201         * lib/unicase/u32-ct-toupper.c: New file.
39202         * modules/unicase/u32-ct-toupper: New file.
39203
39204         New module 'unicase/u16-ct-toupper'.
39205         * lib/unicase/u16-ct-toupper.c: New file.
39206         * modules/unicase/u16-ct-toupper: New file.
39207
39208         New module 'unicase/u8-ct-toupper'.
39209         * lib/unicase/u8-ct-toupper.c: New file.
39210         * modules/unicase/u8-ct-toupper: New file.
39211
39212         Add context arguments to u*_casemap functions.
39213         * lib/unicase/unicasemap.h: Include unicase.h.
39214         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
39215         suffix_context arguments.
39216         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
39217         functions.
39218         (FUNC): Add prefix_context and suffix_context arguments. Use
39219         uc_is_cased and uc_is_case_ignorable.
39220         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
39221         * lib/unicase/u16-casemap.c: Likewise.
39222         * lib/unicase/u32-casemap.c: Likewise.
39223         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
39224         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39225         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
39226         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39227         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
39228         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
39229
39230         New module 'unicase/u32-suffix-context'.
39231         * lib/unicase/u32-suffix-context.c: New file.
39232         * modules/unicase/u32-suffix-context: New file.
39233
39234         New module 'unicase/u16-suffix-context'.
39235         * lib/unicase/u16-suffix-context.c: New file.
39236         * modules/unicase/u16-suffix-context: New file.
39237
39238         New module 'unicase/u8-suffix-context'.
39239         * lib/unicase/u8-suffix-context.c: New file.
39240         * lib/unicase/u-suffix-context.h: New file.
39241         * modules/unicase/u8-suffix-context: New file.
39242
39243         New module 'unicase/empty-suffix-context'.
39244         * lib/unicase/empty-suffix-context.c: New file.
39245         * modules/unicase/empty-suffix-context: New file.
39246
39247         New module 'unicase/u32-prefix-context'.
39248         * lib/unicase/u32-prefix-context.c: New file.
39249         * modules/unicase/u32-prefix-context: New file.
39250
39251         New module 'unicase/u16-prefix-context'.
39252         * lib/unicase/u16-prefix-context.c: New file.
39253         * modules/unicase/u16-prefix-context: New file.
39254
39255         New module 'unicase/u8-prefix-context'.
39256         * lib/unicase/u8-prefix-context.c: New file.
39257         * lib/unicase/u-prefix-context.h: New file.
39258         * lib/unicase/context.h: New file.
39259         * modules/unicase/u8-prefix-context: New file.
39260
39261         New module 'unicase/empty-prefix-context'.
39262         * lib/unicase/empty-prefix-context.c: New file.
39263         * modules/unicase/empty-prefix-context: New file.
39264
39265         New module 'unicase/ignorable'.
39266         * lib/unicase/ignorable.c: New file.
39267         * modules/unicase/ignorable: New file.
39268
39269         New module 'unicase/cased'.
39270         * lib/unicase/caseprop.h: New file.
39271         * lib/unicase/cased.c: New file.
39272         * modules/unicase/cased: New file.
39273
39274         New functions for case mapping of substrings.
39275         * lib/unicase.h (casing_prefix_context_t): New type.
39276         (unicase_empty_prefix_context): New variable.
39277         (u8_casing_prefix_context, u16_casing_prefix_context,
39278         u32_casing_prefix_context, u8_casing_prefixes_context,
39279         u16_casing_prefixes_context, u32_casing_prefixes_context): New
39280         declarations.
39281         (casing_suffix_context_t): New type.
39282         (unicase_empty_suffix_context): New variable.
39283         (u8_casing_suffix_context, u16_casing_suffix_context,
39284         u32_casing_suffix_context, u8_casing_suffixes_context,
39285         u16_casing_suffixes_context, u32_casing_suffixes_context,
39286         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
39287         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
39288         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
39289         declarations.
39290
39291 2009-06-28  Jim Meyering  <meyering@redhat.com>
39292
39293         boostrap: indent only with spaces
39294         * build-aux/bootstrap: Indent only with spaces, never TABs.
39295
39296         bootstrap: split long lines
39297         * build-aux/bootstrap: Keep line length < 80.
39298
39299         bootstrap: sync from coreutils
39300         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
39301         just as autoreconf does.  Verify a list of prerequisite
39302         package-name,version-number pairs if defined in bootstrap.conf.
39303         Refer to README-prereq, if prerequisites are not satisfied.
39304
39305 2009-06-27  Eric Blake  <ebb9@byu.net>
39306
39307         tests: add test for bogus NULL definition
39308         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
39309         * tests/test-stdlib.c: Likewise.
39310         * tests/test-string.c: Likewise.
39311         * tests/test-locale.c: Likewise.
39312         * tests/test-unistd.c: Likewise.
39313         * modules/stdio-tests (Depends-on): Add verify.
39314         * modules/stdlib-tests (Depends-on): Likewise.
39315         * modules/string-tests (Depends-on): Likewise.
39316         * modules/locale-tests (Depends-on): Likewise.
39317         * modules/unistd-tests (Depends-on): Likewise.
39318
39319 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
39320
39321         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
39322         self-explaining comment.
39323         * m4/selinux-selinux-h: Update serial.
39324         (gl_LIBSELINUX): New macro, adding a warning for missing development
39325         packages to code extracted from...
39326         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
39327         Add warning for missing development packages here, too.
39328
39329 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
39330
39331         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
39332
39333 2009-06-25  Eric Blake  <ebb9@byu.net>
39334
39335         version-etc: fix regression
39336         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
39337         gcc.
39338         (version_etc): Use it, to catch bugs with trailing NULL.
39339         * lib/version-etc.c (version_etc_arn): Delete unused argument.
39340         (version_etc_va): Fix logic bug.
39341         * modules/version-etc-tests: Add test.
39342         * tests/test-version-etc.c: New file.
39343         * tests/test-version-etc.sh: Likewise.
39344
39345 2009-06-25  Sam Steingold  <sds@gnu.org>
39346
39347         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
39348         mbtowc declaration.
39349
39350 2009-06-25  Eric Blake  <ebb9@byu.net>
39351
39352         fpurge: migrate into <stdio.h>
39353         * lib/fpurge.h: Delete...
39354         * lib/stdio.in.h (fpurge): ...and declare here, instead.
39355         * lib/fpurge.c (fpurge): Change declaring header.
39356         * modules/fpurge (Files): Drop deleted file.
39357         (Depends-on): Add stdio.
39358         (configure.ac): Set witness.
39359         * modules/stdio (Makefile.am): Support fpurge macros.
39360         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39361         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
39362         * lib/fflush.c: Update client.
39363         * tests/test-fpurge.c: Likewise.
39364         * NEWS: Mention the change.
39365
39366 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39367
39368         * lib/argp-version-etc.c (program_authors): Add const
39369         qualifier.
39370         * lib/version-etc.c: Fix typos in the comments.
39371         * modules/argp-version-etc: Depends on version-etc.
39372
39373 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39374
39375         argp-version-etc: new module.
39376
39377         * lib/argp-version-etc.c: New file.
39378         * lib/argp-version-etc.h: New file.
39379         * modules/argp-version-etc: New file.
39380         * modules/argp-version-etc-tests: New file.
39381         * tests/test-argp-version-etc.c: New test.
39382         * tests/test-argp-version-etc-1.sh: New test.
39383
39384 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39385
39386         Provide additional interfaces and documentation for version-etc
39387         module.
39388
39389         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
39390         interfaces.
39391         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
39392         prototypes.
39393
39394 2009-06-24  Bruno Haible  <bruno@clisp.org>
39395
39396         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
39397         HAVE_LIB${NAME} macro.
39398         Reported by Sam Steingold <sds@gnu.org>.
39399
39400 2009-06-23  Simon Josefsson  <simon@josefsson.org>
39401
39402         * modules/hash-tests (test_hash_LDADD): Link to libintl when
39403         needed.
39404
39405 2009-06-21  Bruno Haible  <bruno@clisp.org>
39406
39407         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
39408         work.
39409         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
39410         together with LIB${NAME}, LTLIB${NAME}.
39411         Reported by Sam Steingold <sds@gnu.org>.
39412
39413 2009-06-20  Jim Meyering  <meyering@redhat.com>
39414
39415         tests: make sc_require_test_exit_idiom more generic
39416         * top/maint.mk (Exit_witness_file): New overridable variable.
39417         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
39418         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
39419
39420 2009-06-19  Jim Meyering  <meyering@redhat.com>
39421
39422         hash: reverse order of src/dst parameters in an internal interface
39423         * lib/hash.c (transfer_entries): Reverse order of parameters to
39424         put DST before SRC.  Adjust callers.
39425
39426         tests: test-hash: avoid wholesale duplication
39427         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
39428         Instead, use a loop and add a single conditional.
39429
39430         tests: test-hash: allow seed selection via a command line argument
39431         * tests/test-hash.c (get_seed): New function.
39432         (main): Use it.
39433
39434 2009-06-19  Eric Blake  <ebb9@byu.net>
39435
39436         hash: avoid memory leak on allocation failure
39437         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
39438         failure.  Factor repeated algorithm...
39439         (transfer_entries): ...into new helper routine.
39440         (hash_delete): React to hash_rehash return value.
39441
39442         hash: reduce memory pressure in hash_rehash no-op case
39443         * lib/hash.c (next_prime): Avoid overflow.
39444         (hash_initialize): Factor bucket size computation...
39445         (compute_bucket_size): ...into new helper function.
39446         (hash_rehash): Use new function and open coding to reduce memory
39447         pressure, and avoid a memory leak in USE_OBSTACK code.
39448         Reported by Jim Meyering.
39449
39450 2009-06-18  Eric Blake  <ebb9@byu.net>
39451
39452         hash: make rotation more obvious
39453         * modules/hash (Depends-on): Add bitrotate and stdint.
39454         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
39455         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
39456         (SIZE_MAX): Rely on headers for definition.
39457         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
39458         (raw_hasher): Use rotr_sz.
39459         Suggested by Jim Meyering.
39460
39461         hash: fix memory leak in last patch
39462         * lib/hash.c (hash_rehash): Avoid memory leak.
39463
39464         hash: avoid no-op rehashing
39465         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
39466
39467         hash: provide default callback functions
39468         * lib/hash.c (raw_hasher, raw_comparator): New functions.
39469         (hash_initialize): Use them as defaults.
39470         * tests/test-hash.c (main): Test this.
39471
39472         hash: minor optimization
39473         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
39474         when possible.
39475         (hash_initialize): Document this promise.
39476         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
39477         * tests/test-hash.c (hash_compare_strings): Test this.
39478
39479 2009-06-18  Bruno Haible  <bruno@clisp.org>
39480
39481         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
39482         going to be replaced anyway.
39483
39484 2009-06-18  Bruno Haible  <bruno@clisp.org>
39485
39486         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
39487         in one place.
39488         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
39489         be replaced anyway.
39490
39491 2009-06-18  Eric Blake  <ebb9@byu.net>
39492
39493         hash: check for resize before insertion
39494         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
39495         threshold before insertion, so that a pathological hash_rehash
39496         that fills every bucket can still trigger another rehash.
39497
39498 2009-06-18  Jim Meyering  <meyering@redhat.com>
39499
39500         hash-tests: add a loop around the small tests
39501         * tests/test-hash.c (main): Repeat small tests with selected
39502         small initial table sizes.
39503
39504 2009-06-17  Eric Blake  <ebb9@byu.net>
39505
39506         hash: minor cleanups
39507         * lib/hash.h (hash_entry): Make opaque, by moving...
39508         * lib/hash.c (hash_entry): ...here.
39509         (hash_insert): Clarify restrictions on what can be inserted.
39510         (hash_get_next): Clarify when it is safe to remove an element
39511         during traversal.
39512         (check_tuning): Skip verification when tuning is known safe.
39513         (hash_initialize): Clarify restrictions on tuning.
39514
39515 2009-06-17  Jim Meyering  <jim@meyering.net>
39516         and Eric Blake  <ebb9@byu.net>
39517
39518         hash-tests: new module
39519         * modules/hash-tests: New file.
39520         * tests/test-hash.c: New file.
39521
39522 2009-06-17  Eric Blake  <ebb9@byu.net>
39523
39524         strstr-simple: document new module
39525         * MODULES.html.sh: Document new module.
39526
39527         strstr, strcasestr: replace on platforms with broken memchr
39528         * modules/strstr: Split into...
39529         * modules/strstr-simple: ...new module that does not care about
39530         performance, but does care about glibc bug.
39531         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
39532         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
39533         if platform memchr is broken, per Debian bug 521737.
39534         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
39535         memchr.
39536         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
39537         * doc/posix-functions/strstr.texi (strstr): Document the fix.
39538         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
39539         * modules/mountlist (Depends-on): Add strstr-simple.
39540         * modules/gen-uni-tables (Depends-on): Likewise.
39541         * modules/argz (Depends-on): Add strstr.
39542
39543 2009-06-17  Bruno Haible  <bruno@clisp.org>
39544
39545         * modules/posix_spawn-internal (Depends-on): Add errno.
39546
39547 2009-06-17  Bruno Haible  <bruno@clisp.org>
39548
39549         Define missing ESTALE on Interix 3.5.
39550         * lib/errno.in.h (ESTALE): Assign a value if missing.
39551         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
39552         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
39553         missing.
39554         * doc/posix-headers/errno.texi: Mention the Interix bug.
39555         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
39556
39557 2009-06-15  Eric Blake  <ebb9@byu.net>
39558
39559         memchr, memchr2: add valgrind exception
39560         * lib/memchr.valgrind: New file.
39561         * lib/memchr2.valgrind: New file.
39562         * modules/memchr (Files): Distribute valgrind file.
39563         * modules/memchr2 (Files): Likewise.
39564
39565         docs: memchr is no longer obsolete
39566         * MODULES.html.sh: Move memchr from obsolete to string.h section.
39567         * lib/string.in.h (memchr): Simplify logic.
39568
39569 2009-06-14  Jim Meyering  <meyering@redhat.com>
39570
39571         link-follow: fix the "checking..." message to not mention trailing slash
39572         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
39573         never considered trailing slashes.
39574
39575 2009-06-14  Bruno Haible  <bruno@clisp.org>
39576
39577         * m4/memchr.m4: Mention also the bug on IA-64.
39578         * doc/posix-functions/memchr.texi: Likewise.
39579
39580 2009-06-12  Eric Blake  <ebb9@byu.net>
39581
39582         memchr: detect broken x86_64 and alpha implementations
39583         * modules/memchr-tests (Depends-on): Move mmap detection...
39584         * modules/memchr (Depends-on): ...here.
39585         (configure.ac): Set indicator.
39586         * lib/string.in.h (memchr): Declare replacement.
39587         * modules/string (Makefile.am): Trigger replacement.
39588         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
39589         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
39590         bugs.
39591         * doc/posix-functions/memchr.texi (memchr): Document the bug.
39592         * modules/getpagesize (License): Relax license.
39593
39594 2009-06-11  Bruno Haible  <bruno@clisp.org>
39595
39596         * lib/idpriv.h: Add more references.
39597
39598 2009-06-08  Bruno Haible  <bruno@clisp.org>
39599
39600         Tests for module 'idpriv-droptemp'.
39601         * modules/idpriv-droptemp-tests: New file.
39602         * tests/test-idpriv-droptemp.sh: New file.
39603         * tests/test-idpriv-droptemp.su.sh: New file.
39604         * tests/test-idpriv-droptemp.c: New file.
39605
39606         New module 'idpriv-droptemp'.
39607         * lib/idpriv-droptemp.c: New file.
39608         * modules/idpriv-droptemp: New file.
39609
39610 2009-06-08  Bruno Haible  <bruno@clisp.org>
39611
39612         Tests for module 'idpriv-drop'.
39613         * modules/idpriv-drop-tests: New file.
39614         * tests/test-idpriv-drop.sh: New file.
39615         * tests/test-idpriv-drop.su.sh: New file.
39616         * tests/test-idpriv-drop.c: New file.
39617
39618         New module 'idpriv-drop'.
39619         * lib/idpriv.h: New file.
39620         * lib-idpriv-drop.c: New file.
39621         * m4/idpriv.m4: New file.
39622         * modules/idpriv-drop: New file.
39623
39624 2009-06-08  Bruno Haible  <bruno@clisp.org>
39625
39626         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
39627         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39628         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39629         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39630         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39631         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39632         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39633
39634 2009-06-08  Eric Blake  <ebb9@byu.net>
39635
39636         test-strstr: use memory fence, when possible
39637         * tests/test-strstr.c (main): Use memory fence, in order to be
39638         more likely to trigger Debian bug 521737.
39639         * modules/strstr-tests (Files): Pull in additional files.
39640
39641         memchr: no longer obsolete, for wider field testing
39642         * modules/memchr (Status, Notice): Delete, this module is no
39643         longer obsolete.
39644         * modules/vasnprintf (Depends-on): Add memchr.
39645
39646 2009-06-07  Jim Meyering  <meyering@redhat.com>
39647
39648         hash: declare some functions with the warn_unused_result attribute
39649         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
39650
39651 2009-06-07  Bruno Haible  <bruno@clisp.org>
39652
39653         * tests/test-alignof.c: Don't test int64_t if it does not exist.
39654         Reported by Eric Blake.
39655
39656 2009-06-06  Eric Blake  <ebb9@byu.net>
39657
39658         test-alignof: fix typo with long double
39659         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
39660         compiler error.
39661
39662 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
39663
39664         Escape non-texinfo { and }s.
39665         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
39666         markup error.
39667
39668 2009-06-04  Jim Meyering  <meyering@redhat.com>
39669
39670         gitlog-to-changelog: don't infloop on an empty commit log
39671         * build-aux/gitlog-to-changelog: Warn about an empty log message.
39672         Reported by Boris Petersen <transacid@centerim.org>.
39673
39674 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
39675
39676         version-etc: extend for packagers
39677         Add three new configure options, intended for packagers:
39678           --with-packager="packager name"
39679           --with-packager-version="packager-specific version"
39680           --with-packager-bug-reports="packager bug reporting"
39681         An example with coreutils:
39682           $ ./configure \
39683             --with-packager=Gentoo \
39684             --with-packager-bug-report=http://bugs.gentoo.org/ \
39685             --with-packager-version="patchset 1.6"
39686           $ ./src/ls --version | head -n2
39687           ls (GNU coreutils) 7.1-dirty
39688           Packaged by Gentoo (patchset 1.6)
39689         Note that the bug reporting info via --help doesn't show up because
39690         coreutils uses its own custom emit_bug_reporting_address() implementation
39691         in src/system.h.  If it didn't, it'd look like:
39692           $ ./src/ls --help | tail -n4
39693           Report bugs to <bug-coreutils@gnu.org>.
39694           Report Gentoo bugs to <http://bugs.gentoo.org/>.
39695           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
39696           General help using GNU software: <http://www.gnu.org/gethelp/>.
39697         * lib/version-etc.c: Print new information, if provided.
39698         * m4/version-etc.m4: New file.
39699         * modules/version-etc (Files): Add m4/version-etc.m4.
39700         (configure.ac): Add gl_VERSION_ETC.
39701
39702 2009-05-31  Bruno Haible  <bruno@clisp.org>
39703
39704         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
39705         and 'int64_t'.
39706         * modules/alignof-tests (Dependencies): Add stdint.
39707         Reported by Eric Blake.
39708
39709 2009-05-31  Bruno Haible  <bruno@clisp.org>
39710
39711         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
39712         restriction due to compiler bugs.
39713         Reported by Eric Blake.
39714
39715 2009-05-31  Simon Josefsson  <simon@josefsson.org>
39716             Bruno Haible  <bruno@clisp.org>
39717
39718         Fix test-alignof failure.
39719         * lib/alignof.h (alignof_slot): New macro.
39720         (alignof_type): New macro, with the same semantics as the previous
39721         'alignof'.
39722         (alignof): Alias to alignof_slot.
39723         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
39724         check that the results are usable as constant expressions.
39725
39726 2009-05-31  Bruno Haible  <bruno@clisp.org>
39727
39728         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
39729         * tests/test-memchr.c (main): Check that memchr does not read past the
39730         first occurrence of the byte.
39731         * tests/test-strstr.c (main): Update comment.
39732         Suggested by Eric Blake.
39733
39734 2009-05-30  Bruno Haible  <bruno@clisp.org>
39735
39736         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
39737         detail how to use dumpbin.
39738         Reported by David Byron <dbyron@dbyron.com>.
39739
39740 2009-06-02  Simon Josefsson  <simon@josefsson.org>
39741
39742         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
39743
39744 2009-06-02  Simon Josefsson  <simon@josefsson.org>
39745
39746         * m4/manywarnings.m4: Add GCC 4.4 warnings.
39747
39748 2009-05-28  Bruno Haible  <bruno@clisp.org>
39749
39750         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
39751         build-aux/ files.
39752
39753 2009-05-28  Simon Josefsson  <simon@josefsson.org>
39754
39755         * gnulib-tool (func_import): Transform license on build-aux/ files too.
39756
39757 2009-05-27  Simon Josefsson  <simon@josefsson.org>
39758
39759         * gnulib-tool (sed_transform_main_lib_file)
39760         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
39761         regexps.
39762
39763 2009-05-26  Simon Josefsson  <simon@josefsson.org>
39764
39765         * tests/test-strstr.c: Add another self-test.
39766         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
39767         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
39768
39769 2009-05-23  Bruno Haible  <bruno@clisp.org>
39770
39771         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
39772         change.
39773
39774 2009-05-21  Bruno Haible  <bruno@clisp.org>
39775
39776         Simplify use of mode_t varargs.
39777         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
39778         uses 'mode_t' or 'int'.
39779         * lib/openat.c (openat): Likewise.
39780         * lib/open-safer.c (open_safer): Likewise.
39781         * m4/mode_t.m4: New file.
39782         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
39783         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
39784         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
39785         * modules/open (Files): Add m4/mode_t.m4.
39786         * modules/openat (Files): Likewise.
39787         * modules/fcntl-safer (Files): Likewise.
39788         Suggested by Eric Blake.
39789
39790 2009-05-21  Pádraig Brady  <P@draigbrady.com>
39791
39792         * doc/glibc-functions/fallocate.texi: New file.
39793         * doc/gnulib.texi: Include it.
39794
39795 2009-05-21  Eric Blake  <ebb9@byu.net>
39796             Bruno Haible  <bruno@clisp.org>
39797
39798         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
39799         invocations.
39800         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
39801
39802 2009-05-21  Eric Blake  <ebb9@byu.net>
39803             Bruno Haible  <bruno@clisp.org>
39804
39805         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
39806         include_next. Fix of 2008-11-20 commit.
39807         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
39808         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
39809         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
39810         NEXT_MATH_H.
39811         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
39812         instead of NEXT_MATH_H.
39813
39814 2009-05-21  Bruno Haible  <bruno@clisp.org>
39815
39816         Avoid redefinition warnings for SIZE_MAX.
39817         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
39818         Reported by Simon Josefsson.
39819
39820 2009-05-21  Bruno Haible  <bruno@clisp.org>
39821
39822         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
39823         AC_CACHE_VAL.
39824
39825 2009-05-20  Bruno Haible  <bruno@clisp.org>
39826
39827         Make zeroptr.h work on mingw.
39828         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
39829         mprotect.
39830         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
39831         * modules/memchr2-tests (configure.ac): Likewise.
39832         * modules/memcmp-tests (configure.ac): Likewise.
39833         * modules/memmem-tests (configure.ac): Likewise.
39834         * modules/memrchr-tests (configure.ac): Likewise.
39835         Reported by Simon Josefsson.
39836
39837 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39838
39839         * tests/test-glob.c: Include string.h for strcmp prototype.
39840
39841 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39842
39843         * modules/getdelim (Depends-on): Add explicit stdint, although it
39844         was implicitly already pulled in via realloc-posix.
39845         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
39846
39847 2009-05-20  Simon Josefsson  <simon@josefsson.org>
39848
39849         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
39850         G. Christensen" <tgc@jupiterrise.com>.
39851         * m4/sys_socket_h.m4: Check for sa_family_t.
39852         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
39853         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
39854         * tests/test-sys_socket.c: Check that sa_family_t works.
39855
39856 2009-05-18  Eric Blake  <ebb9@byu.net>
39857
39858         maint.mk: allow gnulib_dir in VPATH build
39859         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
39860
39861 2009-05-15  Jim Meyering  <meyering@redhat.com>
39862
39863         maint.mk: Give gnulib_dir a default definition.
39864         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
39865         Thus, most packages no longer need to specify this variable in cfg.mk
39866
39867 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
39868
39869         rename.m4: fix typos that would make non-mingw cross-configure fail
39870         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
39871
39872 2009-05-13  Eric Blake  <ebb9@byu.net>
39873
39874         mmap-anon: avoid out-of-order autoconf expansion
39875         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
39876         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
39877         * modules/memchr-tests (Depends-on): Add extensions.
39878         * modules/memchr2-tests (Depends-on): Add extensions.
39879         * modules/memcmp-tests (Depends-on): Add extensions.
39880         * modules/memmem-tests (Depends-on): Add extensions.
39881         * modules/memrchr-tests (Depends-on): Add extensions.
39882
39883 2009-05-13  Bruno Haible  <bruno@clisp.org>
39884
39885         Make some tests ISO C 99 compliant.
39886         * tests/zerosize-ptr.h: New file.
39887         * tests/test-memchr.c: Include zerosize-ptr.h.
39888         (main): Use a zero-size object pointer instead of NULL.
39889         * tests/test-memchr2.c: Include zerosize-ptr.h.
39890         (main): Use a zero-size object pointer instead of NULL.
39891         * tests/test-memcmp.c: Include zerosize-ptr.h.
39892         (main): Use a zero-size object pointer instead of NULL.
39893         * tests/test-memmem.c: Include zerosize-ptr.h.
39894         (main): Use a zero-size object pointer instead of NULL.
39895         * tests/test-memrchr.c: Include zerosize-ptr.h.
39896         (main): Use a zero-size object pointer instead of NULL.
39897         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
39898         m4/mmap-anon.m4.
39899         (Depends-on): Add getpagesize.
39900         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39901         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
39902         m4/mmap-anon.m4.
39903         (Depends-on): Add getpagesize.
39904         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39905         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
39906         m4/mmap-anon.m4.
39907         (Depends-on): Add getpagesize.
39908         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39909         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
39910         m4/mmap-anon.m4.
39911         (Depends-on): Add getpagesize.
39912         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39913         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
39914         m4/mmap-anon.m4.
39915         (Depends-on): Add getpagesize.
39916         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
39917
39918 2009-05-12  Bruno Haible  <bruno@clisp.org>
39919
39920         Tests for module 'alignof'.
39921         * modules/alignof-tests: New file.
39922         * tests/test-alignof.c: New file.
39923
39924 2009-05-12  Bruno Haible  <bruno@clisp.org>
39925
39926         Fix alignof macro.
39927         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
39928         vendor compilers that are always correct.
39929
39930 2009-05-12  Bruno Haible  <bruno@clisp.org>
39931
39932         Make the MAP_ANONYMOUS detection work on HP-UX 11.
39933         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
39934         not whether its fully works.
39935
39936 2009-05-12  Bruno Haible  <bruno@clisp.org>
39937
39938         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
39939
39940 2009-05-12  Jim Meyering  <meyering@redhat.com>
39941
39942         * top/maint.mk: Adjust backslash alignment.
39943
39944 2009-05-11  Simon Josefsson  <simon@josefsson.org>
39945
39946         * top/maint.mk: Make $(srcdir)/build-aux configurable.
39947
39948 2009-05-11  Eric Blake  <ebb9@byu.net>
39949
39950         argp: avoid undefined behavior
39951         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
39952         macros.
39953
39954 2009-05-08  Simon Josefsson  <simon@josefsson.org>
39955
39956         * tests/test-vc-list-files-git.sh: Do git config of user.email and
39957         user.name to prevent git commit from complaining.
39958
39959 2009-05-10  Bruno Haible  <bruno@clisp.org>
39960
39961         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
39962         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
39963         it rewrites every file name only once.
39964         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
39965
39966 2009-05-08  Bruno Haible  <bruno@clisp.org>
39967
39968         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
39969         instead of 'max'.
39970
39971 2009-05-08  Simon Josefsson  <simon@josefsson.org>
39972
39973         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
39974         sockaddr_storage test.
39975
39976 2009-05-07  Simon Josefsson  <simon@josefsson.org>
39977
39978         * modules/sys_socket (Makefile.am): Substitute
39979         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
39980         * m4/sys_socket_h.m4: Check for sockaddr_storage.
39981         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
39982         * tests/test-sys_socket.c: Check sockaddr_storage.
39983
39984 2009-05-08  Bruno Haible  <bruno@clisp.org>
39985
39986         New module 'alignof'.
39987         * lib/alignof.h: New file.
39988         * modules/alignof: New file.
39989
39990 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
39991             Bruno Haible  <bruno@clisp.org>
39992
39993         Fix test-file-has-acl on FreeBSD.
39994         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
39995         mask is implicitly added.
39996         * tests/test-file-has-acl.c: Include <signal.h>.
39997         (main): Terminate the test after 5 seconds.
39998         * modules/acl-tests (configure.ac): Check for alarm function.
39999
40000 2009-05-04  Bruno Haible  <bruno@clisp.org>
40001
40002         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
40003         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
40004         * modules/errno (configure.ac): Drop AC_REQUIRE.
40005         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
40006         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
40007
40008 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40009
40010         * modules/glob-tests: New module.
40011         * tests/test-glob.c: Add.
40012
40013 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40014
40015         * modules/fnmatch-tests: New module.
40016         * tests/test-fnmatch.c: Add.
40017
40018 2009-05-04  Eric Blake  <ebb9@byu.net>
40019
40020         maint: make the new no-submodule-changes rule VPATH-safe
40021         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
40022
40023 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40024             Bruno Haible  <bruno@clisp.org>
40025
40026         acl: Fix infinite loop on FreeBSD.
40027         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
40028         of return value from acl_get_entry.
40029         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
40030         Likewise.
40031
40032 2009-05-03  Bruno Haible  <bruno@clisp.org>
40033
40034         * lib/acl-internal.h (acl_entries): Clarify return value.
40035         * lib/acl_entries.c (acl_entries): Likewise.
40036
40037 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40038
40039         Bug fix in acl module.
40040         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
40041
40042 2009-05-03  Bruno Haible  <bruno@clisp.org>
40043
40044         Create gperf-generated file in the source dir, not in the build dir.
40045         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
40046         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
40047         * modules/unicase/locale-language (unicase/locale-languages.h):
40048         Likewise.
40049         * modules/unicase/special-casing (unicase/special-casing-table.h):
40050         Likewise.
40051         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
40052         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
40053         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
40054         Reported by Ralf Wildenhues.
40055
40056 2009-05-03  Bruno Haible  <bruno@clisp.org>
40057
40058         * modules/fnmatch (Description, configure.ac): Taken from
40059         fnmatch-posix.
40060         * modules/fnmatch-posix: Turn into a symbolic reference to the
40061         'fnmatch' module, and deprecate.
40062         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
40063
40064 2009-05-03  Bruno Haible  <bruno@clisp.org>
40065
40066         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
40067         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
40068         Reported by Ralf Wildenhues.
40069
40070 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40071
40072         * m4/fnmatch.m4: Fix fnmatch re-define.
40073
40074 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40075
40076         priv-set: new module and tests; adapt write-any-file
40077         * lib/priv-set.c: New file.
40078         * lib/priv-set.h: New file.
40079         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
40080         * lib/write-any-file.c: Simplify by using priv-set module.
40081         * m4/priv-set.m4: New file.
40082         * modules/priv-set: New file.
40083         * modules/unlinkdir: Add dependency on priv-set module.
40084         * modules/write-any-file: Likewise.
40085
40086         Tests for module 'priv-set'.
40087         * modules/priv-set-tests: New file.
40088         * tests/test-priv-set.c: New file.
40089
40090 2009-05-03  Jim Meyering  <meyering@redhat.com>
40091             Bruno Haible  <bruno@clisp.org>
40092
40093         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
40094         use the converted UTF-8 variant of the name instead.
40095
40096 2009-05-03  Jim Meyering  <meyering@redhat.com>
40097
40098         tests: tighten some getdate tests
40099         * tests/test-getdate.c (main): Tighten tests: require equality,
40100         not just greater than.  Set TZ envvar to UTC0.
40101
40102 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
40103
40104         getdate: correctly interpret "next monday" when run on a Monday
40105         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
40106         that e.g., "next tues" (when run on a tuesday) results in a date
40107         that is one week in the future, and not today's date.
40108         I.e., add a week when the wday is the same as the current one.
40109         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
40110         and earlier by Martin Bernreuther and Jan Minář.
40111         * tests/test-getdate.c (main): Check that "next DAY" is always in
40112         the future and that "last DAY" is always in the past.
40113
40114 2009-05-02  Jim Meyering  <meyering@redhat.com>
40115
40116         build: ensure that a release build fails when a submodule is unclean
40117         * top/maint.mk (no-submodule-changes): New rule.
40118         (alpha beta major): Depend on it.
40119
40120 2009-05-02  Bruno Haible  <bruno@clisp.org>
40121
40122         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
40123         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
40124         shell variable gl_fnmatch_required to detect which variant is
40125         requested.
40126         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
40127         gl_FUNC_FNMATCH_POSIX.
40128         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
40129         exclude fnmatch-posix.
40130
40131 2009-05-02  Bruno Haible  <bruno@clisp.org>
40132
40133         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
40134         * modules/mbsrtowcs (License): Change to LGPLv2+.
40135         * modules/strnlen1 (License): Likewise.
40136         Reported by Simon Josefsson.
40137
40138 2009-05-02  Bruno Haible  <bruno@clisp.org>
40139
40140         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
40141         "cross".
40142         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
40143         gnulib-tool was called with option --source-base=lib.
40144
40145 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40146
40147         Use automake *-local hooks without commands, for extensibility.
40148         * modules/localcharset (Makefile.am): Rename install-exec-local
40149         rule to install-exec-localcharset, and make it a prerequisite of
40150         install-exec-local.  Likewise, rename the uninstall-local rule to
40151         uninstall-localcharset, and make it a prerequisite of the former.
40152
40153 2009-05-01  Bruno Haible  <bruno@clisp.org>
40154
40155         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
40156         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
40157         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
40158         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
40159         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
40160         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
40161         m4/locale-zh.m4, m4/codeset.m4.
40162
40163         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
40164         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
40165         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
40166         m4/locale-zh.m4.
40167
40168         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
40169         REPLACE_WCRTOMB if mbstate_t must be replaced.
40170         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
40171         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
40172
40173 2009-05-01  Bruno Haible  <bruno@clisp.org>
40174
40175         Avoid compiler warnings when redefining macros defined by <libintl.h>.
40176         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
40177         dngettext, dcngettext, textdomain, bindtextdomain,
40178         bind_textdomain_codeset): Undefine before redefining.
40179
40180 2009-04-30  Bruno Haible  <bruno@clisp.org>
40181
40182         Fix bug introduced on 2009-04-25.
40183         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
40184         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
40185         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
40186         is defined.
40187         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
40188         is defined.
40189         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
40190         is defined.
40191         Reported by Elbert_Pol <elbert.pol@gmail.com>.
40192
40193 2009-04-28  Bruno Haible  <bruno@clisp.org>
40194
40195         Comment tweaks.
40196         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
40197         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
40198         * lib/unicase.h (u*_casexfrm): Likewise.
40199         Reported by Paolo Bonzini.
40200
40201 2009-04-28  Bruno Haible  <bruno@clisp.org>
40202
40203         Fix a compilation error.
40204         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
40205         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
40206         Reported by Jim Meyering.
40207
40208 2009-04-27  Bruno Haible  <bruno@clisp.org>
40209
40210         New module 'libunistring'.
40211         * modules/libunistring: New file.
40212         * m4/libunistring.m4: New file.
40213         * MODULES.html.sh (Unicode string functions): Add it.
40214
40215 2009-04-27  Eric Blake  <ebb9@byu.net>
40216
40217         maint.mk: allow package-specific header to provide <config.h>
40218         * top/maint.mk (sc_require_config_h): New variable.
40219         (sc_require_config_h, sc_require_config_h_first): Use it.
40220
40221 2009-04-27  Simon Josefsson  <simon@josefsson.org>
40222
40223         * top/maint.mk (sc_avoid_if_before_free): Except
40224         useless-if-before-free script.
40225
40226 2009-04-27  Eric Blake  <ebb9@byu.net>
40227
40228         maintainer-makefile: depend on all required helper scripts
40229         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
40230         useless-if-before-free.
40231         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
40232         version, rather than assuming gnulib checkout is available.
40233         Reported by Simen Josefsson.
40234
40235 2009-04-26  Bruno Haible  <bruno@clisp.org>
40236
40237         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
40238         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
40239         "../" or "..".
40240
40241 2009-04-26  Bruno Haible  <bruno@clisp.org>
40242
40243         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
40244         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
40245         AC_LIB_HAVE_LINKFLAGS.
40246
40247 2009-04-26  Bruno Haible  <bruno@clisp.org>
40248
40249         Simplify calling convention of u*_conv_from_encoding.
40250         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
40251         u32_conv_from_encoding): Expect a resultbuf argument and return the
40252         result directly as a pointer.
40253         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
40254         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
40255         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
40256         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
40257         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
40258         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
40259         Update.
40260         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
40261         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
40262         * lib/vasnprintf.c (VASNPRINTF): Update.
40263         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
40264         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
40265         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
40266         * NEWS: Mention the change.
40267
40268 2009-04-26  Bruno Haible  <bruno@clisp.org>
40269
40270         Simplify calling convention of u*_conv_to_encoding.
40271         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
40272         u32_conv_to_encoding): Expect a resultbuf argument and return the
40273         result directly as a pointer.
40274         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
40275         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
40276         freeing scaled_offsets if mem_iconveha failed.
40277         * lib/unicase/u-casexfrm.h (FUNC): Update.
40278         * lib/uninorm/u-normxfrm.h (FUNC): Update.
40279         * lib/vasnprintf.c (VASNPRINTF): Update.
40280         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
40281         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
40282         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
40283         * NEWS: Mention the change.
40284
40285 2009-04-26  Bruno Haible  <bruno@clisp.org>
40286
40287         Avoid test failures on AIX and OSF/1.
40288         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
40289         malloc(0).
40290         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
40291         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
40292         Likewise.
40293         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
40294         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
40295         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
40296         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
40297         * doc/posix-functions/malloc.texi: Document the portability problem
40298         related to malloc(0).
40299
40300 2009-04-26  Bruno Haible  <bruno@clisp.org>
40301
40302         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
40303         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
40304         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
40305
40306 2009-04-25  Bruno Haible  <bruno@clisp.org>
40307
40308         Avoid link error when creating a namespace clean library.
40309         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
40310         as macro with arguments if already defined as an alias.
40311         * lib/signbitf.c (gl_signbitf): Don't undefine.
40312         * lib/signbitd.c (gl_signbitd): Don't undefine.
40313         * lib/signbitl.c (gl_signbitl): Don't undefine.
40314
40315 2009-04-25  Jim Meyering  <meyering@redhat.com>
40316
40317         vc-list-files: fix another quoting bug
40318         * build-aux/vc-list-files: Avoid sed backslash expansion
40319         of pathological directory names.
40320
40321 2009-04-25  Eric Blake  <ebb9@byu.net>
40322
40323         vc-list-files: fix shell quoting error
40324         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
40325         timestamp.
40326
40327 2009-04-25  Jim Meyering  <meyering@redhat.com>
40328
40329         vc-list-files: restore lost functionality with subdir argument
40330         * build-aux/vc-list-files: When given a non-"." sub-directory
40331         argument, substitute the $dir/ prefix back onto each resulting name.
40332         Otherwise, coreutils' root_tests check would fail.
40333
40334 2009-04-24  Eric Blake  <ebb9@byu.net>
40335
40336         vc-list-files: ignore git symlinks
40337         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
40338         than ls-files, to ignore git symlinks.
40339
40340         maint.mk: import improvements from m4
40341         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
40342         (move_if_change): Delete unused macro.
40343         (news-date-check, vc-diff-check): Support VPATH builds.
40344         (announcement): Likewise.  Split --bootstrap-tools list...
40345         (boostrap-tools): ...into separate list, which can be overridden
40346         in cfg.mk.
40347         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
40348         requiring dependency on useless-if-before-free module.
40349         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
40350         Support VPATH builds.
40351
40352 2009-04-24  Jim Meyering  <meyering@redhat.com>
40353
40354         maint.mk: remove coreutils-specific rules and variables
40355         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
40356         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
40357         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
40358
40359         maint.mk: remove obsolete rule
40360         * top/maint.mk (rel-check): Remove rule.
40361         (WGET, WGETFLAGS): Remove now-unused variables.
40362
40363 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40364
40365         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
40366         consistency.
40367
40368         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
40369         '$(PATH_SEPARATOR)' instead of ':'.
40370
40371 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40372
40373         * lib/getopt1.c (main): Use 'const' for static array.
40374
40375 2009-04-24  Simon Josefsson  <simon@josefsson.org>
40376
40377         * top/maint.mk: Sync with coreutils.
40378         * NEWS: Explain incompatibilities.
40379
40380 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40381             Bruno Haible  <bruno@clisp.org>
40382
40383         Fix cross-compilation results.
40384         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
40385         statement, as third argument of AC_TRY_RUN.
40386         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
40387         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
40388         Likewise.
40389         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
40390         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
40391         Likewise.
40392         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
40393         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
40394         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
40395
40396 2009-04-20  Bruno Haible  <bruno@clisp.org>
40397
40398         Avoid test failure on mingw.
40399         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
40400
40401 2009-04-20  Bruno Haible  <bruno@clisp.org>
40402
40403         Avoid compilation error on mingw.
40404         * modules/localename-tests (Depends-on): Add locale.
40405
40406 2009-04-19  Bruno Haible  <bruno@clisp.org>
40407
40408         Support for building a shared library on Windows platforms.
40409         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
40410         (main): Test the presence of UNINORM_NFC here.
40411         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
40412         (main): Test the presence of UNINORM_NFD here.
40413         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
40414         (main): Test the presence of UNINORM_NFKC here.
40415         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
40416         (main): Test the presence of UNINORM_NFKD here.
40417
40418 2009-04-19  Bruno Haible  <bruno@clisp.org>
40419
40420         Avoid a compiler warning.
40421         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
40422         Change type of variable 'sequence'.
40423
40424 2009-04-19  Bruno Haible  <bruno@clisp.org>
40425
40426         * modules/configmake (Makefile.am): When the contents of configmake.h
40427         does not change, arrange to preserve its modification time.
40428
40429 2009-04-17  Simon Josefsson  <simon@josefsson.org>
40430
40431         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
40432         gettext domain.
40433
40434 2009-04-16  Jim Meyering  <meyering@redhat.com>
40435
40436         useless-if-before-free: improve conversion code
40437         * build-aux/useless-if-before-free: Adjust code-in-comment to match
40438         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
40439
40440 2009-04-14  Bruno Haible  <bruno@clisp.org>
40441
40442         * modules/fcntl (Depends-on): Add extensions.
40443         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
40444
40445 2009-04-12  Ben Pfaff  <blp@gnu.org>
40446
40447         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
40448         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
40449
40450 2009-03-20  Ben Pfaff  <blp@gnu.org>
40451
40452         Make rename replace existing destinations on Windows.
40453         * m4/rename.m4: Add test for Mingw.
40454         * lib/rename.c: Add rename replacement that uses MoveFileEx with
40455         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
40456         * doc/posix-functions/rename.texi: Document.
40457
40458 2009-04-10  Bruno Haible  <bruno@clisp.org>
40459
40460         New include file "iconveh.h".
40461         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
40462         * lib/striconveh.h: Include it.
40463         (enum iconv_ilseq_handler): Remove definition.
40464         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
40465         striconveh.h.
40466         * lib/striconveha.c: Include striconveh.h.
40467         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
40468         * modules/striconveh (Files): Add lib/iconveh.h.
40469         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
40470         lib/striconveh.h.
40471
40472 2009-04-10  Bruno Haible  <bruno@clisp.org>
40473
40474         * lib/uniconv.h: Update comment.
40475
40476 2009-04-10  Bruno Haible  <bruno@clisp.org>
40477
40478         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
40479         always.
40480         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
40481         * lib/unistr/u16-mbtouc-aux.c: Likewise.
40482         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
40483         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
40484         "unistring-notinline.h", so that the function gets defined always.
40485         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
40486         * lib/unistr/u8-uctomb.c: Likewise.
40487         * lib/unistr/u16-mbtouc.c: Likewise.
40488         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
40489         * lib/unistr/u16-uctomb.c: Likewise.
40490         * lib/unistr/u32-mbtouc.c: Likewise.
40491         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
40492         * lib/unistr/u32-uctomb.c: Likewise.
40493
40494 2009-04-10  Bruno Haible  <bruno@clisp.org>
40495
40496         Mark 'utime' obsolete.
40497         * modules/utime (Status, Notice): New sections.
40498         Suggested by Jim Meyering.
40499
40500         Fix cross-compile guess for utime test.
40501         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
40502         autoconf.
40503         * doc/posix-functions/utime.texi: Give more precisions.
40504         Reported by Jan <ipif@ymail.com>.
40505
40506 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
40507
40508         filevercmp: correct today's change
40509         * lib/filevercmp.c: Also handle coreutils' test inputs.
40510         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
40511
40512         Fix regression in 'filevercmp' module. Thanks Sven Joachim
40513         for reporting it.
40514         * lib/filevercmp.c: Special handle for "", "." and "..".
40515         * tests/test-filevercmp.c: Enlarge the set suite.
40516
40517 2009-04-07  Jim Meyering  <meyering@redhat.com>
40518
40519         useless-if-before-free: show how to remove braced useless free, too
40520         * build-aux/useless-if-before-free: still only in a comment, though.
40521
40522 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
40523
40524         maint.mk: import changes to syntax-check macros from coreutils
40525         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
40526         Use them in the relevant macros.
40527
40528 2009-04-06  Bruno Haible  <bruno@clisp.org>
40529
40530         Fix unportable use of bit-fields.
40531         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
40532         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
40533         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
40534
40535 2009-04-06  Bruno Haible  <bruno@clisp.org>
40536
40537         Avoid test failures on AIX and OSF/1.
40538         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
40539         that malloc(0) = NULL.
40540         * tests/unicase/test-u8-tolower.c (check): Likewise.
40541         * tests/unicase/test-u8-totitle.c (check): Likewise.
40542         * tests/unicase/test-u8-toupper.c (check): Likewise.
40543         * tests/unicase/test-u16-casefold.c (check): Likewise.
40544         * tests/unicase/test-u16-tolower.c (check): Likewise.
40545         * tests/unicase/test-u16-totitle.c (check): Likewise.
40546         * tests/unicase/test-u16-toupper.c (check): Likewise.
40547         * tests/unicase/test-u32-casefold.c (check): Likewise.
40548         * tests/unicase/test-u32-tolower.c (check): Likewise.
40549         * tests/unicase/test-u32-totitle.c (check): Likewise.
40550         * tests/unicase/test-u32-toupper.c (check): Likewise.
40551         * tests/uninorm/test-u8-nfc.c (check): Likewise.
40552         * tests/uninorm/test-u8-nfd.c (check): Likewise.
40553         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
40554         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
40555         * tests/uninorm/test-u16-nfc.c (check): Likewise.
40556         * tests/uninorm/test-u16-nfd.c (check): Likewise.
40557         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
40558         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
40559         * tests/uninorm/test-u32-nfc.c (check): Likewise.
40560         * tests/uninorm/test-u32-nfd.c (check): Likewise.
40561         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
40562         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
40563
40564 2009-04-05  Bruno Haible  <bruno@clisp.org>
40565
40566         Work around an autoconf limitation.
40567         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
40568         comment line if it would be longer than 3 KB.
40569
40570 2009-04-05  Bruno Haible  <bruno@clisp.org>
40571
40572         Avoid test failure with libiconv-1.13.
40573         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
40574         of the expected test results.
40575
40576 2009-04-05  Bruno Haible  <bruno@clisp.org>
40577
40578         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
40579         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
40580         that it should be installed.
40581
40582 2009-04-05  Bruno Haible  <bruno@clisp.org>
40583
40584         * gnulib-tool: New option --copy-file.
40585         (func_usage): Document it.
40586         (func_dest_tmpfilename): Moved out of func_import.
40587         (func_add_file, func_update_file): New functions, extracted from
40588         func_import.
40589         (func_import): Update.
40590
40591 2009-04-05  Karl Berry  <karl@gnu.org>
40592
40593         * README: prominently mention gnulib-tool.
40594         Rearrange sections so getting the code is near the top.
40595
40596 2009-04-05  Bruno Haible  <bruno@clisp.org>
40597
40598         * lib/unicase.h: Mention u*_cmp2.
40599         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
40600         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
40601         * lib/unicase/ulc-casecmp.c: Likewise.
40602         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
40603         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
40604         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
40605         unistr/u8-cmp.
40606         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
40607         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
40608         unistr/u16-cmp.
40609         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
40610         unistr/u32-cmp.
40611
40612         * lib/uninorm.h: Mention u*_cmp2.
40613         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
40614         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
40615         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
40616         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
40617         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
40618         unistr/u8-cmp.
40619         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
40620         unistr/u16-cmp.
40621         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
40622         unistr/u32-cmp.
40623
40624         New module 'unistr/u32-cmp2'.
40625         * lib/unistr/u32-cmp2.c: New file.
40626         * modules/unistr/u32-cmp2: New file.
40627
40628         New module 'unistr/u16-cmp2'.
40629         * lib/unistr/u16-cmp2.c: New file.
40630         * modules/unistr/u16-cmp2: New file.
40631
40632         New module 'unistr/u8-cmp2'.
40633         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
40634         * lib/unistr/u8-cmp2.c: New file.
40635         * lib/unistr/u-cmp2.h: New file.
40636         * modules/unistr/u8-cmp2: New file.
40637
40638 2009-04-05  Bruno Haible  <bruno@clisp.org>
40639
40640         * lib/unictype.h (uc_property_is_valid): New macro.
40641         * tests/unictype/test-pr_byname.c (main): Use it.
40642
40643         * lib/unistr.h: Doc fixes.
40644         * lib/uniconv.h: Doc fixes.
40645         * lib/unictype.h: Doc fixes.
40646
40647 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
40648
40649         Port coreutils 7.2 to Solaris 8.
40650
40651         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
40652         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
40653         for Solaris 8.  This is a bit of a hack, as it means it's the
40654         caller's responsibility to add -lnsl if needed, but most likely it
40655         won't be needed since only getaddrinfo uses this and getaddrinfo
40656         isn't needed on Solaris 8.
40657
40658         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
40659         problem to Solaris 8 encountered with coreutils 7.2, which
40660         resulted in a message "fnmatch.c:292: warning: passing argument 4
40661         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
40662         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
40663
40664 2009-04-03  Simon Josefsson  <simon@josefsson.org>
40665
40666         * m4/ld-version-script.m4: Add FIXME comment.
40667
40668 2009-04-02  Simon Josefsson  <simon@josefsson.org>
40669
40670         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
40671         SOVERSION variable.
40672
40673 2009-04-02  Bruno Haible  <bruno@clisp.org>
40674
40675         * Makefile (info, html, dvi, pdf): Combine the rules.
40676         Suggested by Jim Meyering.
40677
40678 2009-04-01  Bruno Haible  <bruno@clisp.org>
40679
40680         * Makefile (info, html, dvi, pdf): New targets.
40681         Reported by Reuben Thomas <rrt@sc3d.org>.
40682
40683 2009-04-01  Bruno Haible  <bruno@clisp.org>
40684
40685         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
40686         can be put into PATH.
40687         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
40688
40689 2009-04-01  Bruno Haible  <bruno@clisp.org>
40690
40691         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
40692
40693 2009-04-01  Bruno Haible  <bruno@clisp.org>
40694
40695         Rename module 'visibility'.
40696         * modules/lib-symbol-visibility: Renamed from modules/visibility.
40697         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
40698         * doc/gnulib.texi: Update.
40699         * MODULES.html.sh (Misc): Update.
40700         * NEWS: Mention the change.
40701
40702 2009-04-01  Simon Josefsson  <simon@josefsson.org>
40703
40704         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
40705         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
40706         Eric Blake <ebb9@byu.net> for review.
40707         * MODULES.html.sh: Add lib-msvc-compat.
40708         * doc/gnulib.texi: Link to new section.
40709         * m4/ld-output-def.m4: New file.
40710         * doc/ld-output-def.texi: New file.
40711
40712 2009-04-01  Simon Josefsson  <simon@josefsson.org>
40713
40714         Rename ld-version-script to lib-symbol-versions.  Suggested by
40715         Bruno Haible <bruno@clisp.org>.
40716         * modules/ld-version-script: Renamed to lib-symbol-versions.
40717         * doc/ld-version-script.texi: Fix module name.
40718         * MODULES.html.sh: Add lib-symbol-versions.
40719
40720 2009-03-31  Simon Josefsson  <simon@josefsson.org>
40721
40722         * modules/u64-tests: New file.
40723         * tests/test-u64.c: New file.
40724
40725 2009-03-04  Simon Josefsson  <simon@josefsson.org>
40726
40727         * MODULES.html.sh: Mention u64.
40728         * modules/u64: New module.
40729         * modules/crypto/sha512: Depend on u64 module instead of providing
40730         u64.h.
40731
40732 2009-03-27  Eric Blake  <ebb9@byu.net>
40733
40734         test-strerror: make debugging EAI_SYSTEM easier
40735         * modules/getaddrinfo-tests (Depends-on): Add strerror.
40736         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
40737         failure was EAI_SYSTEM.
40738
40739 2009-03-25  Bruno Haible  <bruno@clisp.org>
40740
40741         Fix a problem with --enable-relocatable on Solaris 7.
40742         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
40743         since 2008-02-24.
40744
40745 2009-03-25  Eric Blake  <ebb9@byu.net>
40746
40747         test-sockets: avoid gcc warning
40748         * tests/test-sockets.c (main): Silence compiler warning.
40749
40750 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
40751
40752         New modules nproc, pthread, contributed by Glen Lenker.
40753
40754         * MODULES.html.sh: Add pthread, nproc.
40755         * lib/nproc.c: New file.
40756         * lib/nproc.h: New file.
40757         * lib/pthread.in.h: New file.
40758         * m4/pthread.m4: New file.
40759         * modules/nproc: New file.
40760         * modules/pthread: New file.
40761
40762 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40763
40764         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
40765         New variable.
40766
40767 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
40768
40769         filevercmp: handle simple~ and numbered.~3~ backup suffixes
40770         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
40771         * tests/test-filevercmp.c: Add tests for backup suffixes.
40772
40773 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40774
40775         * modules/stdlib (Depends-on): Add stdint, needed when defining
40776         struct random_data on, for example, HP-UX 10.20.  Reported by
40777         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40778
40779 2009-03-24  Simon Josefsson  <simon@josefsson.org>
40780
40781         * lib/readline.c (readline): Call fflush on stdout after printing
40782         prompt.
40783
40784 2009-03-20  Bruno Haible  <bruno@clisp.org>
40785
40786         Remove dependency from 'close' module to -lws2_32 on native Windows.
40787         * lib/close-hook.h: New file.
40788         * lib/close-hook.c: New file.
40789         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
40790         w32sock.h.
40791         (_gl_close_fd_maybe_socket): Remove function.
40792         (rpl_close): Invoke execute_all_close_hooks instead of
40793         _gl_close_fd_maybe_socket.
40794         * lib/sockets.c: Include close-hook.h, w32sock.h.
40795         (close_fd_maybe_socket): New function, essentially from lib/close.c.
40796         (close_sockets_hook): New variable.
40797         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
40798         (gl_sockets_cleanup): Unregister it.
40799         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
40800         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
40801         * modules/close-hook: New file.
40802         * modules/close (Files): Remove lib/w32sock.h.
40803         (Depends-on): Add close-hook.
40804         (Link): Remove section.
40805         * modules/sockets (Files): Add lib/w32sock.h.
40806         (Depends-on): Add close-hook.
40807         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
40808         invocation.
40809         * NEWS: Mention that LIB_CLOSE is gone.
40810
40811 2009-03-23  Eric Blake  <ebb9@byu.net>
40812
40813         signal-tests: test previous patch
40814         * tests/test-signal.c: New file.
40815         * modules/signal-tests: Likewise.
40816
40817         signal.h: always support 'volatile sig_atomic_t'
40818         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
40819         (gl_SIGNAL_H_DEFAULTS): Add a default.
40820         * modules/signal (Makefile.am): Substitute if needed.
40821         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
40822         users can blindly add volatile.
40823         * doc/posix-headers/signal.texi (signal.h): Document it.
40824         Reported by Matthew Woehlke.
40825
40826 2009-03-23  Jim Meyering  <meyering@redhat.com>
40827
40828         pathmax: PATH_MAX: use pathconf only when available
40829         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
40830         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
40831         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
40832         This avoids a link failure in a PSP cross-compilation environment
40833         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
40834
40835         * lib/vasnprintf.c (divide): Fix typo in comment.
40836
40837 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40838
40839         * gnulib-tool (func_filter_filelist): Fix comment.
40840
40841 2009-03-20  Bruno Haible  <bruno@clisp.org>
40842
40843         Make sockets.h self-contained.
40844         * lib/sockets.c: Include sockets.h first.
40845         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
40846
40847 2009-03-19  Eric Blake  <ebb9@byu.net>
40848
40849         doc: mention more functions added in cygwin 1.7.0
40850         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
40851         addition.
40852         * doc/posix-functions/log2f.texi: Likewise.
40853
40854 2009-03-19  Jim Meyering  <meyering@redhat.com>
40855
40856         fsusage: avoid syntax error due to statement-before-declaration
40857         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
40858         after all declarations.  Reported by Matthew Woehlke in
40859         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
40860
40861 2009-03-18  Eric Blake  <ebb9@byu.net>
40862
40863         build-aux/compile: sync from automake
40864         * build-aux/compile: New file, from automake.
40865         * config/srclist.txt: Mention build-aux/compile.
40866
40867 2009-03-17  Bruno Haible  <bruno@clisp.org>
40868
40869         * lib/git-merge-changelog.c: Fix typo in comment.
40870         Reported by Reuben Thomas <rrt@sc3d.org>.
40871
40872 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
40873
40874         * m4/regex.m4: update and improve help for
40875         --without-included-regex.
40876
40877 2009-03-17  Simon Josefsson  <simon@josefsson.org>
40878
40879         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
40880         failure on missing include files.
40881
40882 2009-03-17  Eric Blake  <ebb9@byu.net>
40883
40884         doc: mention more functions added in cygwin 1.7.0
40885         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
40886         addition.
40887         * doc/posix-functions/fwscanf.texi: Likewise.
40888         * doc/posix-functions/swprintf.texi: Likewise.
40889         * doc/posix-functions/swscanf.texi: Likewise.
40890         * doc/posix-functions/vfwprintf.texi: Likewise.
40891         * doc/posix-functions/vfwscanf.texi: Likewise.
40892         * doc/posix-functions/vswprintf.texi: Likewise.
40893         * doc/posix-functions/vswscanf.texi: Likewise.
40894         * doc/posix-functions/vwprintf.texi: Likewise.
40895         * doc/posix-functions/vwscanf.texi: Likewise.
40896         * doc/posix-functions/wcscasecmp.texi: Likewise.
40897         * doc/posix-functions/wcsdup.texi: Likewise.
40898         * doc/posix-functions/wcsftime.texi: Likewise.
40899         * doc/posix-functions/wcsncasecmp.texi: Likewise.
40900         * doc/posix-functions/wprintf.texi: Likewise.
40901         * doc/posix-functions/wscanf.texi: Likewise.
40902         * doc/glibc-functions/gethostbyname2.texi: Likewise.
40903
40904 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40905
40906         maint.mk: really add $(AM_MAKEFLAGS)
40907         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
40908         was inadvertently omitted in the last commit.
40909         Spotted by Bruno Haible.
40910
40911         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
40912         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
40913         $(AM_MAKEFLAGS)' rather than plain `make'.
40914
40915         gnulib-tool: execute $MAKE not make
40916         * gnulib-tool: Default $MAKE to 'make'.
40917         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
40918         than make.  Initialize $MAKE in the do-autobuild script.
40919
40920         gnulib-tool: use $MAKE not make in generated files
40921         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
40922         make, in generated files.  Initialize $MAKE in the do-autobuild
40923         script.
40924
40925         * top/GNUmakefile (_have-git-version-gen): Fix typo.
40926
40927         GNUmakefile: disable parallelism only for multiple, recursive targets
40928         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
40929         additions in the Makefile.
40930         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
40931         by Automake.
40932         (.NOTPARALLEL): Only disable parallel builds if multiple targets
40933         are listed on the command line and at least one of them is
40934         listed in $(ALL_RECURSIVE_TARGETS).
40935
40936 2009-03-14  Bruno Haible  <bruno@clisp.org>
40937
40938         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
40939         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
40940         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
40941         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
40942         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
40943         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
40944         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
40945         unistr/u8-uctomb.
40946         * modules/unistr/u8-strchr (Depends-on): Likewise.
40947         * modules/unistr/u8-strrchr (Depends-on): Likewise.
40948         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
40949         unistr/u16-uctomb.
40950         * modules/unistr/u16-strchr (Depends-on): Likewise.
40951         * modules/unistr/u16-strrchr (Depends-on): Likewise.
40952
40953 2009-03-12  Bruno Haible  <bruno@clisp.org>
40954
40955         Work around select() bug on Interix 3.5.
40956         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
40957         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
40958         * m4/select.m4: New file.
40959         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
40960         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
40961         * modules/select (Files): Add m4/select.m4.
40962         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
40963         * modules/nanosleep (Depends-on): Add select.
40964         * modules/poll (Depends-on): Likewise.
40965         * doc/posix-functions/select.texi: Mention the Interix bug.
40966         Reported by Markus Duft <mduft@gentoo.org>.
40967
40968         * lib/select.c: Renamed from lib/winsock-select.c.
40969         * modules/select (Files): Add lib/select.c, remove
40970         lib/winsock-select.c.
40971         (configure.ac): Update.
40972
40973 2009-03-12  Jim Meyering  <meyering@redhat.com>
40974
40975         avoid gcc warnings about unused macro definitions
40976         * lib/readtokens.c (STREQ): Remove unused definition.
40977         * lib/xmalloc.c (SIZE_MAX): Likewise.
40978         * lib/openat-die.c (N_): Likewise.
40979         * lib/mountlist.c (SIZE_MAX): Remove definition.
40980         Instead, include <stdint.h>.
40981         * lib/readutmp.c: Likewise.
40982         * modules/readutmp (Depends-on): Add stdint.
40983         * modules/mountlist (Depends-on): Add stdint.
40984         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
40985
40986 2009-03-10  Bruno Haible  <bruno@clisp.org>
40987
40988         Tests for module 'mbmemcasecoll'.
40989         * modules/mbmemcasecoll-tests: New file.
40990         * tests/test-mbmemcasecoll1.sh: New file.
40991         * tests/test-mbmemcasecoll2.sh: New file.
40992         * tests/test-mbmemcasecoll3.sh: New file.
40993         * tests/test-mbmemcasecoll.c: New file.
40994
40995         New module 'mbmemcasecoll'.
40996         * lib/mbmemcasecoll.h: New file.
40997         * lib/mbmemcasecoll.c: New file.
40998         * modules/mbmemcasecoll: New file.
40999
41000         * tests/test-mbmemcasecmp.h: New file, extracted from
41001         tests/test-mbmemcasecmp.c.
41002         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
41003         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
41004         (main): Update.
41005         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
41006
41007 2009-03-09  Bruno Haible  <bruno@clisp.org>
41008
41009         Tests for module 'mbmemcasecmp'.
41010         * modules/mbmemcasecmp-tests: New file.
41011         * tests/test-mbmemcasecmp1.sh: New file.
41012         * tests/test-mbmemcasecmp2.sh: New file.
41013         * tests/test-mbmemcasecmp3.sh: New file.
41014         * tests/test-mbmemcasecmp.c: New file.
41015
41016         New module 'mbmemcasecmp'.
41017         * lib/mbmemcasecmp.h: New file.
41018         * lib/mbmemcasecmp.c: New file.
41019         * modules/mbmemcasecmp: New file.
41020
41021 2009-03-09  Bruno Haible  <bruno@clisp.org>
41022
41023         Tests for module 'unicase/ulc-casecoll'.
41024         * modules/unicase/ulc-casecoll-tests: New file.
41025         * tests/unicase/test-ulc-casecoll1.sh: New file.
41026         * tests/unicase/test-ulc-casecoll2.sh: New file.
41027         * tests/unicase/test-ulc-casecoll.c: New file.
41028
41029         New module 'unicase/ulc-casecoll'.
41030         * lib/unicase.h (ulc_casecoll): New declaration.
41031         * lib/unicase/ulc-casecoll.c: New file.
41032         * modules/unicase/ulc-casecoll: New file.
41033
41034         New module 'unicase/ulc-casexfrm'.
41035         * lib/unicase.h (ulc_casexfrm): New declaration.
41036         * lib/unicase/ulc-casexfrm.c: New file.
41037         * modules/unicase/ulc-casexfrm: New file.
41038
41039 2009-03-09  Bruno Haible  <bruno@clisp.org>
41040
41041         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
41042         invocations.
41043
41044         * m4/mbscasecmp.m4: Remove file.
41045         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
41046         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
41047
41048         * m4/mbscasestr.m4: Remove file.
41049         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
41050         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
41051
41052         * m4/mbschr.m4: Remove file.
41053         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
41054         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
41055
41056         * m4/mbscspn.m4: Remove file.
41057         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
41058         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
41059
41060         * m4/mbslen.m4: Remove file.
41061         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
41062         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
41063
41064         * m4/mbsncasecmp.m4: Remove file.
41065         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
41066         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
41067
41068         * m4/mbsnlen.m4: Remove file.
41069         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
41070         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
41071
41072         * m4/mbspbrk.m4: Remove file.
41073         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
41074         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
41075
41076         * m4/mbspcasecmp.m4: Remove file.
41077         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
41078         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
41079
41080         * m4/mbsrchr.m4: Remove file.
41081         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
41082         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
41083
41084         * m4/mbssep.m4: Remove file.
41085         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
41086         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
41087
41088         * m4/mbsspn.m4: Remove file.
41089         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
41090         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
41091
41092         * m4/mbsstr.m4: Remove file.
41093         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
41094         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
41095
41096         * m4/mbstok_r.m4: Remove file.
41097         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
41098         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
41099
41100         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
41101
41102         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
41103         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
41104
41105         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
41106
41107 2009-03-08  Bruno Haible  <bruno@clisp.org>
41108
41109         Tests for module 'unicase/ulc-casecmp'.
41110         * modules/unicase/ulc-casecmp-tests: New file.
41111         * tests/unicase/test-ulc-casecmp1.sh: New file.
41112         * tests/unicase/test-ulc-casecmp2.sh: New file.
41113         * tests/unicase/test-ulc-casecmp.c: New file.
41114
41115         New module 'unicase/ulc-casecmp'.
41116         * lib/unicase.h (ulc_casecmp): New declaration.
41117         * lib/unicase/ulc-casecmp.c: New file.
41118         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
41119         'const SRC_UNIT *'.
41120         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
41121         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
41122         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
41123         * modules/unicase/ulc-casecmp: New file.
41124
41125         Tests for module 'unicase/u32-is-cased'.
41126         * modules/unicase/u32-is-cased-tests: New file.
41127         * tests/unicase/test-u32-is-cased.c: New file.
41128
41129         Tests for module 'unicase/u16-is-cased'.
41130         * modules/unicase/u16-is-cased-tests: New file.
41131         * tests/unicase/test-u16-is-cased.c: New file.
41132
41133         Tests for module 'unicase/u8-is-cased'.
41134         * modules/unicase/u8-is-cased-tests: New file.
41135         * tests/unicase/test-u8-is-cased.c: New file.
41136         * tests/unicase/test-is-cased.h: New file.
41137
41138         New module 'unicase/u32-is-cased'.
41139         * lib/unicase/u32-is-cased.c: New file.
41140         * modules/unicase/u32-is-cased: New file.
41141
41142         New module 'unicase/u16-is-cased'.
41143         * lib/unicase/u16-is-cased.c: New file.
41144         * modules/unicase/u16-is-cased: New file.
41145
41146         New module 'unicase/u8-is-cased'.
41147         * lib/unicase/u8-is-cased.c: New file.
41148         * lib/unicase/u-is-cased.h: New file.
41149         * modules/unicase/u8-is-cased: New file.
41150
41151         Tests for module 'unicase/u32-is-casefolded'.
41152         * modules/unicase/u32-is-casefolded-tests: New file.
41153         * tests/unicase/test-u32-is-casefolded.c: New file.
41154
41155         Tests for module 'unicase/u16-is-casefolded'.
41156         * modules/unicase/u16-is-casefolded-tests: New file.
41157         * tests/unicase/test-u16-is-casefolded.c: New file.
41158
41159         Tests for module 'unicase/u8-is-casefolded'.
41160         * modules/unicase/u8-is-casefolded-tests: New file.
41161         * tests/unicase/test-u8-is-casefolded.c: New file.
41162         * tests/unicase/test-is-casefolded.h: New file.
41163
41164         New module 'unicase/u32-is-casefolded'.
41165         * lib/unicase/u32-is-casefolded.c: New file.
41166         * modules/unicase/u32-is-casefolded: New file.
41167
41168         New module 'unicase/u16-is-casefolded'.
41169         * lib/unicase/u16-is-casefolded.c: New file.
41170         * modules/unicase/u16-is-casefolded: New file.
41171
41172         New module 'unicase/u8-is-casefolded'.
41173         * lib/unicase/u8-is-casefolded.c: New file.
41174         * modules/unicase/u8-is-casefolded: New file.
41175
41176         Tests for module 'unicase/u32-is-titlecase'.
41177         * modules/unicase/u32-is-titlecase-tests: New file.
41178         * tests/unicase/test-u32-is-titlecase.c: New file.
41179
41180         Tests for module 'unicase/u16-is-titlecase'.
41181         * modules/unicase/u16-is-titlecase-tests: New file.
41182         * tests/unicase/test-u16-is-titlecase.c: New file.
41183
41184         Tests for module 'unicase/u8-is-titlecase'.
41185         * modules/unicase/u8-is-titlecase-tests: New file.
41186         * tests/unicase/test-u8-is-titlecase.c: New file.
41187         * tests/unicase/test-is-titlecase.h: New file.
41188
41189         New module 'unicase/u32-is-titlecase'.
41190         * lib/unicase/u32-is-titlecase.c: New file.
41191         * modules/unicase/u32-is-titlecase: New file.
41192
41193         New module 'unicase/u16-is-titlecase'.
41194         * lib/unicase/u16-is-titlecase.c: New file.
41195         * modules/unicase/u16-is-titlecase: New file.
41196
41197         New module 'unicase/u8-is-titlecase'.
41198         * lib/unicase/u8-is-titlecase.c: New file.
41199         * modules/unicase/u8-is-titlecase: New file.
41200
41201         Tests for module 'unicase/u32-is-lowercase'.
41202         * modules/unicase/u32-is-lowercase-tests: New file.
41203         * tests/unicase/test-u32-is-lowercase.c: New file.
41204
41205         Tests for module 'unicase/u16-is-lowercase'.
41206         * modules/unicase/u16-is-lowercase-tests: New file.
41207         * tests/unicase/test-u16-is-lowercase.c: New file.
41208
41209         Tests for module 'unicase/u8-is-lowercase'.
41210         * modules/unicase/u8-is-lowercase-tests: New file.
41211         * tests/unicase/test-u8-is-lowercase.c: New file.
41212         * tests/unicase/test-is-lowercase.h: New file.
41213
41214         New module 'unicase/u32-is-lowercase'.
41215         * lib/unicase/u32-is-lowercase.c: New file.
41216         * modules/unicase/u32-is-lowercase: New file.
41217
41218         New module 'unicase/u16-is-lowercase'.
41219         * lib/unicase/u16-is-lowercase.c: New file.
41220         * modules/unicase/u16-is-lowercase: New file.
41221
41222         New module 'unicase/u8-is-lowercase'.
41223         * lib/unicase/u8-is-lowercase.c: New file.
41224         * modules/unicase/u8-is-lowercase: New file.
41225
41226         Tests for module 'unicase/u32-is-uppercase'.
41227         * modules/unicase/u32-is-uppercase-tests: New file.
41228         * tests/unicase/test-u32-is-uppercase.c: New file.
41229
41230         Tests for module 'unicase/u16-is-uppercase'.
41231         * modules/unicase/u16-is-uppercase-tests: New file.
41232         * tests/unicase/test-u16-is-uppercase.c: New file.
41233
41234         Tests for module 'unicase/u8-is-uppercase'.
41235         * modules/unicase/u8-is-uppercase-tests: New file.
41236         * tests/unicase/test-u8-is-uppercase.c: New file.
41237         * tests/unicase/test-is-uppercase.h: New file.
41238
41239         New module 'unicase/u32-is-uppercase'.
41240         * lib/unicase/u32-is-uppercase.c: New file.
41241         * modules/unicase/u32-is-uppercase: New file.
41242
41243         New module 'unicase/u16-is-uppercase'.
41244         * lib/unicase/u16-is-uppercase.c: New file.
41245         * modules/unicase/u16-is-uppercase: New file.
41246
41247         New module 'unicase/u8-is-uppercase'.
41248         * lib/unicase/u8-is-uppercase.c: New file.
41249         * modules/unicase/u8-is-uppercase: New file.
41250
41251         New module 'unicase/u32-is-invariant'.
41252         * lib/unicase/u32-is-invariant.c: New file.
41253         * modules/unicase/u32-is-invariant: New file.
41254
41255         New module 'unicase/u16-is-invariant'.
41256         * lib/unicase/u16-is-invariant.c: New file.
41257         * modules/unicase/u16-is-invariant: New file.
41258
41259         New module 'unicase/u8-is-invariant'.
41260         * lib/unicase/u8-is-invariant.c: New file.
41261         * lib/unicase/invariant.h: New file.
41262         * lib/unicase/u-is-invariant.h: New file.
41263         * modules/unicase/u8-is-invariant: New file.
41264
41265         Tests for module 'unicase/u32-casecoll'.
41266         * modules/unicase/u32-casecoll-tests: New file.
41267         * tests/unicase/test-u32-casecoll.c: New file.
41268
41269         Tests for module 'unicase/u16-casecoll'.
41270         * modules/unicase/u16-casecoll-tests: New file.
41271         * tests/unicase/test-u16-casecoll.c: New file.
41272
41273         Tests for module 'unicase/u8-casecoll'.
41274         * modules/unicase/u8-casecoll-tests: New file.
41275         * tests/unicase/test-u8-casecoll.c: New file.
41276
41277         New module 'unicase/u32-casecoll'.
41278         * lib/unicase/u32-casecoll.c: New file.
41279         * modules/unicase/u32-casecoll: New file.
41280
41281         New module 'unicase/u16-casecoll'.
41282         * lib/unicase/u16-casecoll.c: New file.
41283         * modules/unicase/u16-casecoll: New file.
41284
41285         New module 'unicase/u8-casecoll'.
41286         * lib/unicase/u8-casecoll.c: New file.
41287         * lib/unicase/u-casecoll.h: New file.
41288         * modules/unicase/u8-casecoll: New file.
41289
41290         New module 'unicase/u32-casexfrm'.
41291         * lib/unicase/u32-casexfrm.c: New file.
41292         * modules/unicase/u32-casexfrm: New file.
41293
41294         New module 'unicase/u16-casexfrm'.
41295         * lib/unicase/u16-casexfrm.c: New file.
41296         * modules/unicase/u16-casexfrm: New file.
41297
41298         New module 'unicase/u8-casexfrm'.
41299         * lib/unicase/u8-casexfrm.c: New file.
41300         * lib/unicase/u-casexfrm.h: New file.
41301         * modules/unicase/u8-casexfrm: New file.
41302
41303         Tests for module 'unicase/u32-casecmp'.
41304         * modules/unicase/u32-casecmp-tests: New file.
41305         * tests/unicase/test-u32-casecmp.c: New file.
41306
41307         Tests for module 'unicase/u16-casecmp'.
41308         * modules/unicase/u16-casecmp-tests: New file.
41309         * tests/unicase/test-u16-casecmp.c: New file.
41310
41311         Tests for module 'unicase/u8-casecmp'.
41312         * modules/unicase/u8-casecmp-tests: New file.
41313         * tests/unicase/test-u8-casecmp.c: New file.
41314         * tests/unicase/test-casecmp.h: New file.
41315
41316         New module 'unicase/u32-casecmp'.
41317         * lib/unicase/u32-casecmp.c: New file.
41318         * modules/unicase/u32-casecmp: New file.
41319
41320         New module 'unicase/u16-casecmp'.
41321         * lib/unicase/u16-casecmp.c: New file.
41322         * modules/unicase/u16-casecmp: New file.
41323
41324         New module 'unicase/u8-casecmp'.
41325         * lib/unicase/u8-casecmp.c: New file.
41326         * lib/unicase/u-casecmp.h: New file.
41327         * modules/unicase/u8-casecmp: New file.
41328
41329         Tests for module 'unicase/u32-casefold'.
41330         * modules/unicase/u32-casefold-tests: New file.
41331         * tests/unicase/test-u32-casefold.c: New file.
41332
41333         Tests for module 'unicase/u16-casefold'.
41334         * modules/unicase/u16-casefold-tests: New file.
41335         * tests/unicase/test-u16-casefold.c: New file.
41336
41337         Tests for module 'unicase/u8-casefold'.
41338         * modules/unicase/u8-casefold-tests: New file.
41339         * tests/unicase/test-u8-casefold.c: New file.
41340
41341         New module 'unicase/u32-casefold'.
41342         * lib/unicase/u32-casefold.c: New file.
41343         * modules/unicase/u32-casefold: New file.
41344
41345         New module 'unicase/u16-casefold'.
41346         * lib/unicase/u16-casefold.c: New file.
41347         * modules/unicase/u16-casefold: New file.
41348
41349         New module 'unicase/u8-casefold'.
41350         * lib/unicase/u8-casefold.c: New file.
41351         * lib/unicase/u-casefold.h: New file.
41352         * modules/unicase/u8-casefold: New file.
41353
41354         New module 'unicase/tocasefold'.
41355         * lib/unicase/casefold.h: New file.
41356         * lib/unicase/tocasefold.c: New file.
41357         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
41358         * modules/unicase/tocasefold: New file.
41359
41360         Tests for module 'unicase/u32-totitle'.
41361         * modules/unicase/u32-totitle-tests: New file.
41362         * tests/unicase/test-u32-totitle.c: New file.
41363
41364         Tests for module 'unicase/u16-totitle'.
41365         * modules/unicase/u16-totitle-tests: New file.
41366         * tests/unicase/test-u16-totitle.c: New file.
41367
41368         Tests for module 'unicase/u8-totitle'.
41369         * modules/unicase/u8-totitle-tests: New file.
41370         * tests/unicase/test-u8-totitle.c: New file.
41371
41372         New module 'unicase/u32-totitle'.
41373         * lib/unicase/u32-totitle.c: New file.
41374         * modules/unicase/u32-totitle: New file.
41375
41376         New module 'unicase/u16-totitle'.
41377         * lib/unicase/u16-totitle.c: New file.
41378         * modules/unicase/u16-totitle: New file.
41379
41380         New module 'unicase/u8-totitle'.
41381         * lib/unicase/u8-totitle.c: New file.
41382         * lib/unicase/u-totitle.h: New file.
41383         * modules/unicase/u8-totitle: New file.
41384
41385         Tests for module 'unicase/u32-tolower'.
41386         * modules/unicase/u32-tolower-tests: New file.
41387         * tests/unicase/test-u32-tolower.c: New file.
41388
41389         Tests for module 'unicase/u16-tolower'.
41390         * modules/unicase/u16-tolower-tests: New file.
41391         * tests/unicase/test-u16-tolower.c: New file.
41392
41393         Tests for module 'unicase/u8-tolower'.
41394         * modules/unicase/u8-tolower-tests: New file.
41395         * tests/unicase/test-u8-tolower.c: New file.
41396
41397         New module 'unicase/u32-tolower'.
41398         * lib/unicase/u32-tolower.c: New file.
41399         * modules/unicase/u32-tolower: New file.
41400
41401         New module 'unicase/u16-tolower'.
41402         * lib/unicase/u16-tolower.c: New file.
41403         * modules/unicase/u16-tolower: New file.
41404
41405         New module 'unicase/u8-tolower'.
41406         * lib/unicase/u8-tolower.c: New file.
41407         * modules/unicase/u8-tolower: New file.
41408
41409         Tests for module 'unicase/u32-toupper'.
41410         * modules/unicase/u32-toupper-tests: New file.
41411         * tests/unicase/test-u32-toupper.c: New file.
41412
41413         Tests for module 'unicase/u16-toupper'.
41414         * modules/unicase/u16-toupper-tests: New file.
41415         * tests/unicase/test-u16-toupper.c: New file.
41416
41417         Tests for module 'unicase/u8-toupper'.
41418         * modules/unicase/u8-toupper-tests: New file.
41419         * tests/unicase/test-u8-toupper.c: New file.
41420
41421         New module 'unicase/u32-toupper'.
41422         * lib/unicase/u32-toupper.c: New file.
41423         * modules/unicase/u32-toupper: New file.
41424
41425         New module 'unicase/u16-toupper'.
41426         * lib/unicase/u16-toupper.c: New file.
41427         * modules/unicase/u16-toupper: New file.
41428
41429         New module 'unicase/u8-toupper'.
41430         * lib/unicase/u8-toupper.c: New file.
41431         * modules/unicase/u8-toupper: New file.
41432
41433         New module 'unicase/u32-casemap'.
41434         * lib/unicase/u32-casemap.c: New file.
41435         * modules/unicase/u32-casemap: New file.
41436
41437         New module 'unicase/u16-casemap'.
41438         * lib/unicase/u16-casemap.c: New file.
41439         * modules/unicase/u16-casemap: New file.
41440
41441         New module 'unicase/u8-casemap'.
41442         * lib/unicase/unicasemap.h: New file.
41443         * lib/unicase/u8-casemap.c: New file.
41444         * lib/unicase/u-casemap.h: New file.
41445         * modules/unicase/u8-casemap: New file.
41446
41447         New module 'unicase/special-casing'.
41448         * lib/unicase/special-casing.h: New file.
41449         * lib/unicase/special-casing.c: New file.
41450         * lib/unicase/special-casing-table.gperf: New file, generated by
41451         gen-uni-tables.c.
41452         * modules/unicase/special-casing: New file.
41453
41454         Tests for module 'unicase/locale-language'.
41455         * modules/unicase/locale-language-tests: New file.
41456         * tests/unicase/test-locale-language.sh: New file.
41457         * tests/unicase/test-locale-language.c: New file.
41458
41459         New module 'unicase/locale-language'.
41460         * lib/unicase/locale-language.c: New file.
41461         * lib/unicase/locale-languages.gperf: New file.
41462         * modules/unicase/locale-language: New file.
41463
41464         Generate more tables for case conversion and case folding.
41465         * lib/gen-uni-tables.c (SCC_*): New enum items.
41466         (struct special_casing_rule): New type.
41467         (casing_rules, num_casing_rules, allocated_casing_rules): New
41468         variables.
41469         (add_casing_rule, fill_casing_rules): New functions.
41470         (struct casefold_rule): New type.
41471         (casefolding_rules, num_casefolding_rules,
41472         allocated_casefolding_rules): New variables.
41473         (fill_casefolding_rules): New function.
41474         (unicode_casefold): New variable.
41475         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
41476         sort_casing_rules, output_casing_rules): New functions.
41477         (main): Accept to more arguments: SpecialCasing.txt and
41478         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
41479         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
41480         Output mapping for casefolding.
41481
41482         * lib/unicase.h: Include stdbool.h, uninorm.h.
41483         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
41484         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
41485         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
41486         arguments.
41487         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
41488         resultp arguments.
41489         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
41490         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
41491         resultp arguments.
41492         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
41493         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
41494         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
41495         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
41496         declarations.
41497         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
41498
41499 2009-03-08  Bruno Haible  <bruno@clisp.org>
41500
41501         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
41502         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
41503         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
41504         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
41505
41506 2009-03-07  Bruno Haible  <bruno@clisp.org>
41507
41508         Adjust u*_normcmp, u*_normcoll API.
41509         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
41510         u16_normcoll, u32_normcoll): Change failure conventions.
41511         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
41512         errno and return -1.
41513         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
41514
41515 2009-03-07  Bruno Haible  <bruno@clisp.org>
41516
41517         Tests for module 'uninorm/u32-normcoll'.
41518         * modules/uninorm/u32-normcoll-tests: New file.
41519         * tests/uninorm/test-u32-normcoll.c: New file.
41520
41521         Tests for module 'uninorm/u16-normcoll'.
41522         * modules/uninorm/u16-normcoll-tests: New file.
41523         * tests/uninorm/test-u16-normcoll.c: New file.
41524
41525         Tests for module 'uninorm/u8-normcoll'.
41526         * modules/uninorm/u8-normcoll-tests: New file.
41527         * tests/uninorm/test-u8-normcoll.c: New file.
41528
41529 2009-03-07  Bruno Haible  <bruno@clisp.org>
41530
41531         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
41532         tests/uninorm/test-u32-normcmp.c.
41533         * tests/uninorm/test-u32-normcmp.c: Include it.
41534         (test_nonascii): New function, extracted from main. Add some more
41535         tests.
41536         (main): Invoke test_ascii and test_nonascii.
41537         * modules/uninorm/u32-normcmp-tests (Files): Add
41538         tests/uninorm/test-u32-normcmp.h.
41539         (Depends-on): Remove uninorm/u32-normcmp.
41540
41541         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
41542         tests/uninorm/test-u16-normcmp.c.
41543         * tests/uninorm/test-u16-normcmp.c: Include it.
41544         (test_nonascii): New function, extracted from main. Add some more
41545         tests.
41546         (main): Invoke test_ascii and test_nonascii.
41547         * modules/uninorm/u16-normcmp-tests (Files): Add
41548         tests/uninorm/test-u16-normcmp.h.
41549         (Depends-on): Remove uninorm/u16-normcmp.
41550
41551         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
41552         tests/uninorm/test-u8-normcmp.c.
41553         * tests/uninorm/test-u8-normcmp.c: Include it.
41554         (test_nonascii): New function, extracted from main. Add some more
41555         tests.
41556         (main): Invoke test_ascii and test_nonascii.
41557         * modules/uninorm/u8-normcmp-tests (Files): Add
41558         tests/uninorm/test-u8-normcmp.h.
41559         (Depends-on): Remove uninorm/u8-normcmp.
41560
41561 2009-03-07  Bruno Haible  <bruno@clisp.org>
41562
41563         New module 'uninorm/u32-normcoll'.
41564         * lib/uninorm/u32-normcoll.c: New file.
41565         * modules/uninorm/u32-normcoll: New file.
41566
41567         New module 'uninorm/u16-normcoll'.
41568         * lib/uninorm/u16-normcoll.c: New file.
41569         * modules/uninorm/u16-normcoll: New file.
41570
41571         New module 'uninorm/u8-normcoll'.
41572         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
41573         declarations.
41574         * lib/uninorm/u8-normcoll.c: New file.
41575         * lib/uninorm/u-normcoll.h: New file.
41576         * modules/uninorm/u8-normcoll: New file.
41577
41578         New module 'uninorm/u32-normxfrm'.
41579         * lib/uninorm/u32-normxfrm.c: New file.
41580         * modules/uninorm/u32-normxfrm: New file.
41581
41582         New module 'uninorm/u16-normxfrm'.
41583         * lib/uninorm/u16-normxfrm.c: New file.
41584         * modules/uninorm/u16-normxfrm: New file.
41585
41586         New module 'uninorm/u8-normxfrm'.
41587         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
41588         declarations.
41589         * lib/uninorm/u8-normxfrm.c: New file.
41590         * lib/uninorm/u-normxfrm.h: New file.
41591         * modules/uninorm/u8-normxfrm: New file.
41592
41593 2009-03-07  Bruno Haible  <bruno@clisp.org>
41594
41595         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
41596         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
41597         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
41598
41599 2009-03-07  Bruno Haible  <bruno@clisp.org>
41600
41601         New module 'memxfrm'.
41602         * lib/memxfrm.h: New file.
41603         * lib/memxfrm.c: New file.
41604         * modules/memxfrm: New file.
41605
41606 2009-03-07  Bruno Haible  <bruno@clisp.org>
41607
41608         New module 'memcmp2'.
41609         * lib/memcmp2.h: New file.
41610         * lib/memcmp2.c: New file.
41611         * modules/memcmp2: New file.
41612
41613 2009-03-07  Bruno Haible  <bruno@clisp.org>
41614
41615         Tests for module 'uninorm/decomposing-form'.
41616         * modules/uninorm/decomposing-form-tests: New file.
41617         * tests/uninorm/test-decomposing-form.c: New file.
41618
41619         New module 'uninorm/decomposing-form'.
41620         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
41621         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
41622         Add 'decomposing_variant' field.
41623         * lib/uninorm/decomposing-form.c: New file.
41624         * lib/uninorm/nfc.c (uninorm_nfc): Update.
41625         * lib/uninorm/nfd.c (uninorm_nfd): Update.
41626         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
41627         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
41628         * modules/uninorm/decomposing-form: New file.
41629         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
41630         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
41631
41632 2009-03-07  Bruno Haible  <bruno@clisp.org>
41633
41634         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
41635         strings.
41636
41637 2009-03-06  Bruno Haible  <bruno@clisp.org>
41638
41639         Tests for module 'uninorm/u32-normcmp'.
41640         * tests/uninorm/test-u32-normcmp.c: New file.
41641         * modules/uninorm/u32-normcmp-tests: New file.
41642
41643         Tests for module 'uninorm/u16-normcmp'.
41644         * tests/uninorm/test-u16-normcmp.c: New file.
41645         * modules/uninorm/u16-normcmp-tests: New file.
41646
41647         Tests for module 'uninorm/u8-normcmp'.
41648         * tests/uninorm/test-u8-normcmp.c: New file.
41649         * modules/uninorm/u8-normcmp-tests: New file.
41650
41651         New module 'uninorm/u32-normcmp'.
41652         * lib/uninorm/u32-normcmp.c: New file.
41653         * modules/uninorm/u32-normcmp: New file.
41654
41655         New module 'uninorm/u16-normcmp'.
41656         * lib/uninorm/u16-normcmp.c: New file.
41657         * modules/uninorm/u16-normcmp: New file.
41658
41659         New module 'uninorm/u8-normcmp'.
41660         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
41661         declarations.
41662         * lib/uninorm/u8-normcmp.c: New file.
41663         * lib/uninorm/u-normcmp.h: New file.
41664         * modules/uninorm/u8-normcmp: New file.
41665
41666 2009-03-06  Bruno Haible  <bruno@clisp.org>
41667
41668         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
41669         Reported by Eric Blake.
41670
41671 2009-03-06  Eric Blake  <ebb9@byu.net>
41672             Bruno Haible  <bruno@clisp.org>
41673
41674         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
41675         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
41676         condition.
41677         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
41678         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
41679         condition.
41680         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
41681
41682 2009-03-06  Eric Blake  <ebb9@byu.net>
41683
41684         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
41685         to avoid compiler warnings.
41686         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
41687
41688 2009-03-05  Bruno Haible  <bruno@clisp.org>
41689
41690         * tests/test-ftell.c (main): Disable test beyond end of file on
41691         FreeMiNT.
41692         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
41693
41694 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
41695
41696         * lib/filevercmp.c: Move hidden files up in ordering.
41697         * tests/test-filevercmp.c: Add tests for hidden files.
41698
41699 2009-03-04  Bruno Haible  <bruno@clisp.org>
41700
41701         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
41702         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
41703         AM_CFLAGS.
41704         Reported by Simon Josefsson.
41705
41706 2009-03-03  Bruno Haible  <bruno@clisp.org>
41707
41708         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
41709         Reported by Simon Josefsson.
41710
41711         * doc/ld-version-script.texi: Update node reference.
41712
41713 2009-03-03  Bruno Haible  <bruno@clisp.org>
41714
41715         * modules/visibility (License): Change to 'unlimited'.
41716         Suggested by Simon Josefsson.
41717
41718 2009-03-03  Jim Meyering  <meyering@redhat.com>
41719
41720         unlinkdir: cannot_unlink_dir may modify process state
41721         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
41722         it's neither thread-safe nor appropriate for use in a library.
41723
41724 2009-03-03  Eric Blake  <ebb9@byu.net>
41725
41726         test-closein: silence test under Darwin
41727         * tests/test-closein.sh: Ignore stderr from cat, since we don't
41728         care if it dies from EPIPE or EBADF.
41729
41730 2009-03-03  Bruno Haible  <bruno@clisp.org>
41731
41732         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
41733         earlier.
41734         * doc/visibility.texi: Fix @node and @section.
41735
41736 2009-03-03  Simon Josefsson  <simon@josefsson.org>
41737
41738         * doc/gnulib.texi: Link to sections for ld version script and
41739         visibility.
41740         * doc/visibility.texi: Add @node and @section.
41741         * modules/ld-version-script: New module.
41742         * m4/ld-version-script.m4: New file.
41743         * doc/ld-version-script.texi: New file.
41744
41745 2009-03-02  David Lutterkort  <lutter@redhat.com>
41746
41747         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
41748         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41749
41750 2009-03-02  Bruno Haible  <bruno@clisp.org>
41751
41752         * doc/visibility.texi: Mention libtool's -export-symbols option.
41753
41754 2009-03-02  Jim Meyering  <meyering@redhat.com>
41755
41756         announce-gen: new option: --no-print-checksums
41757         * build-aux/announce-gen (usage): Describe it.
41758         (print_checksums): Print a newline here, not in the [*] footnote.
41759         (main): Honor it.
41760
41761 2009-03-01  Bruno Haible  <bruno@clisp.org>
41762
41763         Use socklen_t in the native Windows replacements prototypes.
41764         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
41765         instead of 'int'.
41766         * lib/getsockopt.c (rpl_getsockopt): Likewise.
41767         * lib/setsockopt.c (rpl_setsockopt): Likewise.
41768         * modules/getsockopt (Depends-on): Add socklen.
41769         * modules/setsockopt (Depends-on): Add socklen.
41770
41771 2009-03-01  Bruno Haible  <bruno@clisp.org>
41772
41773         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
41774         least 4.2.
41775
41776 2009-03-01  Eric Blake  <ebb9@byu.net>
41777             Bruno Haible  <bruno@clisp.org>
41778
41779         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
41780         error messages.
41781         * lib/wait-process.c (wait_subprocess): Omit error message about
41782         deadly signal sent to the child of termsigp != NULL.
41783
41784 2009-03-01  Eric Blake  <ebb9@byu.net>
41785
41786         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
41787
41788 2009-03-01  Bruno Haible  <bruno@clisp.org>
41789
41790         Avoid a gcc warning.
41791         * tests/test-sched.c (b): Make global.
41792         Reported by Eric Blake.
41793
41794 2009-01-19  Martin Lambers  <marlam@marlam.de>
41795
41796         Provide POSIX semantics for socket timeout options on W32.
41797         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
41798         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
41799         * modules/setsockopt: Depend on sys_time module for struct timeval.
41800         * modules/getsockopt: Depend on sys_time module for struct timeval.
41801
41802 2009-03-01  Simon Josefsson  <simon@josefsson.org>
41803
41804         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
41805         __USE_GNU, for consistency with netdb.in.h.
41806         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41807
41808 2009-03-01  Bruno Haible  <bruno@clisp.org>
41809
41810         More support for FreeMiNT.
41811         * lib/fseeko.c (rpl_fseeko): Complete last commit.
41812         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41813
41814 2009-03-01  Bruno Haible  <bruno@clisp.org>
41815
41816         More support for FreeMiNT.
41817         * lib/fpurge.c (fpurge): Correct last commit.
41818         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41819
41820 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41821
41822         Fix unportable awk script in vc-list-files.
41823         * build-aux/vc-list-files: In the replacement awk script, use
41824         substr with a second argument of 1, not zero.
41825         Report by Simon Josefsson.
41826
41827 2009-02-28  Bruno Haible  <bruno@clisp.org>
41828
41829         More support for FreeMiNT.
41830         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
41831         to FreeMiNT today.
41832         * lib/fwriting.c (fwriting): Likewise.
41833         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
41834
41835 2009-02-28  Bruno Haible  <bruno@clisp.org>
41836
41837         * tests/test-freadseek.c (main): Disable test beyond end of file on
41838         FreeMiNT.
41839         * tests/test-ftello.c (main): Likewise.
41840         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
41841
41842 2009-02-28  Bruno Haible  <bruno@clisp.org>
41843
41844         Add tentative support for FreeMiNT.
41845         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
41846         * lib/fpurge.c (fpurge): Likewise.
41847         * lib/freadable.c (freadable): Likewise.
41848         * lib/freading.c (freading): Likewise.
41849         * lib/freadptr.c (freadptr): Likewise.
41850         * lib/freadseek.c (freadptrinc): Likewise.
41851         * lib/fseeko.c (rpl_fseeko): Likewise.
41852         * lib/fseterr.c (fseterr): Likewise.
41853         * lib/fwritable.c (fwritable): Likewise.
41854         * lib/fwriting.c (fwriting): Likewise.
41855         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
41856         Hourihane.
41857         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
41858
41859 2009-02-28  Bruno Haible  <bruno@clisp.org>
41860
41861         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
41862         SIGCHLD.
41863         Reported by Jim Meyering.
41864
41865 2009-02-28  Bruno Haible  <bruno@clisp.org>
41866
41867         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
41868         Mention the results of these tests on various platforms.
41869         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
41870         order.
41871         * doc/posix-functions/printf.texi: Likewise.
41872         * doc/posix-functions/snprintf.texi: Likewise.
41873         * doc/posix-functions/sprintf.texi: Likewise.
41874         * doc/posix-functions/vfprintf.texi: Likewise.
41875         * doc/posix-functions/vprintf.texi: Likewise.
41876         * doc/posix-functions/vsnprintf.texi: Likewise.
41877         * doc/posix-functions/vsprintf.texi: Likewise.
41878         * doc/glibc-functions/obstack_printf.texi: Likewise.
41879         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
41880
41881 2009-02-28  Bruno Haible  <bruno@clisp.org>
41882
41883         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
41884         Reported by Loïc Minier <lool@dooz.org>.
41885
41886 2009-02-27  Bruno Haible  <bruno@clisp.org>
41887
41888         * gnulib-tool (func_import): Make the sed expression used to create the
41889         sed script for updating the .gitignore file POSIX compliant.
41890         Reported by Eric Blake.
41891
41892 2009-02-27  Bruno Haible  <bruno@clisp.org>
41893
41894         * gnulib-tool (sed): Don't alias as "sed --posix".
41895         Reported by Eric Blake.
41896
41897 2009-02-27  Bruno Haible  <bruno@clisp.org>
41898
41899         Avoid test link errors.
41900         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
41901         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
41902         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
41903         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
41904         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41905
41906 2009-02-27  Bruno Haible  <bruno@clisp.org>
41907
41908         Avoid spurious "(cached)" in configure output.
41909         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
41910         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
41911         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
41912         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
41913         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
41914         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
41915         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
41916         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
41917         Reported by Eric Blake.
41918
41919 2009-02-27  Eric Blake  <ebb9@byu.net>
41920
41921         printf: fix regression in previous patch
41922         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
41923
41924 2009-02-27  Bruno Haible  <bruno@clisp.org>
41925
41926         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
41927         value.
41928         * lib/stdint.in.h: Likewise.
41929         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
41930
41931 2009-02-27  Eric Blake  <ebb9@byu.net>
41932
41933         doc: mention more functions added in cygwin 1.7.0
41934         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
41935         addition.
41936         * doc/posix-functions/open_wmemstream.texi: Likewise.
41937         * doc/posix-functions/wcsnlen.texi: Likewise.
41938         * doc/posix-functions/wcsnrtombs.texi: Likewise.
41939         * doc/posix-functions/wcstod.texi: Likewise.
41940         * doc/posix-functions/wcstof.texi: Likewise.
41941         * doc/posix-functions/wcstoimax.texi: Likewise.
41942         * doc/posix-functions/wcstok.texi: Likewise.
41943         * doc/posix-functions/wcstoumax.texi: Likewise.
41944
41945         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
41946         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
41947         * doc/posix-functions/fprintf.texi: Update.
41948         * doc/posix-functions/printf.texi: Update.
41949         * doc/posix-functions/snprintf.texi: Update.
41950         * doc/posix-functions/sprintf.texi: Update.
41951         * doc/posix-functions/vfprintf.texi: Update.
41952         * doc/posix-functions/vprintf.texi: Update.
41953         * doc/posix-functions/vsnprintf.texi: Update.
41954         * doc/posix-functions/vsprintf.texi: Update.
41955         * doc/glibc-functions/obstack_printf.texi: Update.
41956         * doc/glibc-functions/obstack_vprintf.texi: Update.
41957
41958 2009-02-26  Eric Blake  <ebb9@byu.net>
41959
41960         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
41961         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
41962         compilation bug by using runtime conversion.
41963         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
41964         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
41965         * modules/ceill-tests (Files): Use nan.h.
41966         * modules/floorl-tests (Files): Likewise.
41967         * modules/frexpl-tests (Files): Likewise.
41968         * modules/isnanl-tests (Files): Likewise.
41969         * modules/ldexpl-tests (Files): Likewise.
41970         * modules/roundl-tests (Files): Likewise.
41971         * modules/truncl-tests (Files): Likewise.
41972         * tests/test-ceill.c (main): Use a working NaN.
41973         * tests/test-floorl.c (main): Likewise.
41974         * tests/test-frexpl.c (main): Likewise.
41975         * tests/test-isnan.c (test_long_double): Likewise.
41976         * tests/test-isnanl.h (main): Likewise.
41977         * tests/test-ldexpl.h (main): Likewise.
41978         * tests/test-roundl.h (main): Likewise.
41979         * tests/test-truncl.h (main): Likewise.
41980         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
41981
41982 2009-02-26  Eric Blake  <ebb9@byu.net>
41983             Bruno Haible  <bruno@clisp.org>
41984
41985         Work around a *printf bug with %ls on Solaris.
41986         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
41987         precision is specified, sprintf stops converting the wide string
41988         argument when the number of bytes that have been produced by this
41989         conversion equals or exceeds the precision.
41990         * doc/posix-functions/fprintf.texi: Update.
41991         * doc/posix-functions/printf.texi: Update.
41992         * doc/posix-functions/snprintf.texi: Update.
41993         * doc/posix-functions/sprintf.texi: Update.
41994         * doc/posix-functions/vfprintf.texi: Update.
41995         * doc/posix-functions/vprintf.texi: Update.
41996         * doc/posix-functions/vsnprintf.texi: Update.
41997         * doc/posix-functions/vsprintf.texi: Update.
41998         * doc/glibc-functions/obstack_printf.texi: Update.
41999         * doc/glibc-functions/obstack_vprintf.texi: Update.
42000
42001 2009-02-26  Eric Blake  <ebb9@byu.net>
42002
42003         stdlib: favor compiler check of random.h
42004         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
42005         to avoid an ObjC random.h installed by Swarm.
42006
42007 2009-02-26  Bruno Haible  <bruno@clisp.org>
42008
42009         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
42010         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
42011         Reported by Gary V. Vaughan <gary@gnu.org>.
42012
42013 2009-02-26  Bruno Haible  <bruno@clisp.org>
42014
42015         Fix *printf behaviour regarding the %ls directive.
42016         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
42017         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
42018         NEED_PRINTF_DIRECTIVE_LS.
42019         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
42020         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42021         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42022         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
42023         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
42024         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
42025         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
42026         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42027         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42028         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42029         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42030         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
42031         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42032         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42033         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42034         * doc/posix-functions/fprintf.texi: Update.
42035         * doc/posix-functions/printf.texi: Update.
42036         * doc/posix-functions/snprintf.texi: Update.
42037         * doc/posix-functions/sprintf.texi: Update.
42038         * doc/posix-functions/vfprintf.texi: Update.
42039         * doc/posix-functions/vprintf.texi: Update.
42040         * doc/posix-functions/vsnprintf.texi: Update.
42041         * doc/posix-functions/vsprintf.texi: Update.
42042         * doc/glibc-functions/obstack_printf.texi: Update.
42043         * doc/glibc-functions/obstack_vprintf.texi: Update.
42044         Reported by Eric Blake.
42045
42046 2009-02-25  Bruno Haible  <bruno@clisp.org>
42047
42048         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
42049         with known value.
42050         Reported by Gary V. Vaughan <gary@gnu.org>.
42051
42052 2009-02-25  Bruno Haible  <bruno@clisp.org>
42053
42054         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
42055         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
42056         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
42057         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
42058         Reported by Gary V. Vaughan <gary@gnu.org>.
42059
42060 2009-02-25  Bruno Haible  <bruno@clisp.org>
42061
42062         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
42063         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
42064         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
42065         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
42066         Reported by Gary V. Vaughan <gary@gnu.org>.
42067
42068 2009-02-25  Eric Blake  <ebb9@byu.net>
42069
42070         tests: skip fseek/ftell tests if ungetc is broken
42071         * m4/ungetc.m4: New file.
42072         * modules/fseek-tests: Split test, so ungetc dependency is
42073         separate from rest of test.
42074         * modules/fseeko-tests: Likewise.
42075         * modules/ftell-tests: Likewise.
42076         * modules/ftello-tests: Likewise.
42077         * tests/test-fseek.c (main): Isolate ungetc dependency.
42078         * tests/test-fseeko.c (main): Likewise.
42079         * tests/test-ftell.c (main): Likewise.
42080         * tests/test-ftello.c (main): Likewise.
42081         * tests/test-fseek2.sh: New file.
42082         * tests/test-fseeko2.sh: Likewise.
42083         * tests/test-ftell2.sh: Likewise.
42084         * tests/test-ftello2.sh: Likewise.
42085
42086 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
42087
42088         test-getaddrinfo: fix usage of skip return code 77
42089         * tests/test-gettaddrinfo.c: Return skip code 77 only
42090         for first occurance of skip (4x77 is not 77)
42091
42092 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
42093
42094         strtod: avoid C99 decl-after-statement
42095         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
42096
42097 2009-02-24  Eric Blake  <ebb9@byu.net>
42098
42099         strtod: detect HP-UX 11.31 bug
42100         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
42101         Reported by Gary V. Vaughan.
42102
42103 2009-02-23  Bruno Haible  <bruno@clisp.org>
42104
42105         Fix invalid read past end of memory block.
42106         * lib/vasnprintf.c (DCHAR_SET): Define.
42107         (local_wcslen): Define only when needed.
42108         (local_strnlen, local_wcsnlen): New functions.
42109         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
42110         directives that involve a conversion ourselves.
42111         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
42112         wcsnlen, mbrtowc, wcrtomb.
42113         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
42114         * tests/test-vasprintf-posix.c (test_function): Likewise.
42115         * tests/test-snprintf-posix.h (test_function): Likewise.
42116         * tests/test-sprintf-posix.h (test_function): Likewise.
42117         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42118
42119 2009-02-22  Bruno Haible  <bruno@clisp.org>
42120
42121         Implement new clarified decomposition of Hangul syllables.
42122         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
42123         of type LTV, return only a pairwise decomposition.
42124         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
42125         Likewise.
42126         * tests/uninorm/test-decomposition.c (main): Updated expected result.
42127         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
42128         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
42129
42130 2009-02-22  Bruno Haible  <bruno@clisp.org>
42131
42132         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
42133         zero-length results and shrink excess allocated memory.
42134         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
42135         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
42136         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
42137         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
42138         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
42139         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
42140         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
42141         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
42142         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
42143         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
42144         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
42145         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
42146
42147 2009-02-21  Bruno Haible  <bruno@clisp.org>
42148
42149         * doc/gnulib.texi: Include safe-alloc.texi earlier.
42150         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
42151         spaces after a period. Put a space between a macro name and its
42152         argument list. Trivial rewordings.
42153         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
42154         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
42155         (main): Return 0 explicitly.
42156
42157 2009-02-21  Bruno Haible  <bruno@clisp.org>
42158
42159         Tests for module 'uninorm/filter'.
42160         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
42161         * modules/uninorm/filter-tests: New file.
42162
42163         New module 'uninorm/filter'.
42164         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
42165         uninorm_filter_flush, uninorm_filter_free): New declarations.
42166         * lib/uninorm/uninorm-filter.c: New file.
42167         * modules/uninorm/filter: New file.
42168
42169 2009-02-21  Bruno Haible  <bruno@clisp.org>
42170
42171         Tests for module 'uninorm/nfkc'.
42172         * tests/uninorm/test-nfkc.c: New file.
42173         * tests/uninorm/test-u8-nfkc.c: New file.
42174         * tests/uninorm/test-u16-nfkc.c: New file.
42175         * tests/uninorm/test-u32-nfkc.c: New file.
42176         * tests/uninorm/test-u32-nfkc-big.sh: New file.
42177         * tests/uninorm/test-u32-nfkc-big.c: New file.
42178         * modules/uninorm/nfkc-tests: New file.
42179
42180         New module 'uninorm/nfkc'.
42181         * lib/uninorm/nfkc.c: New file.
42182         * modules/uninorm/nfkc: New file.
42183
42184         Tests for module 'uninorm/nfkd'.
42185         * tests/uninorm/test-nfkd.c: New file.
42186         * tests/uninorm/test-u8-nfkd.c: New file.
42187         * tests/uninorm/test-u16-nfkd.c: New file.
42188         * tests/uninorm/test-u32-nfkd.c: New file.
42189         * tests/uninorm/test-u32-nfkd-big.sh: New file.
42190         * tests/uninorm/test-u32-nfkd-big.c: New file.
42191         * modules/uninorm/nfkd-tests: New file.
42192
42193         New module 'uninorm/nfkd'.
42194         * lib/uninorm/nfkd.c: New file.
42195         * modules/uninorm/nfkd: New file.
42196
42197         Tests for module 'uninorm/nfc'.
42198         * tests/uninorm/test-nfc.c: New file.
42199         * tests/uninorm/test-u8-nfc.c: New file.
42200         * tests/uninorm/test-u16-nfc.c: New file.
42201         * tests/uninorm/test-u32-nfc.c: New file.
42202         * tests/uninorm/test-u32-nfc-big.sh: New file.
42203         * tests/uninorm/test-u32-nfc-big.c: New file.
42204         * modules/uninorm/nfc-tests: New file.
42205
42206         New module 'uninorm/nfc'.
42207         * lib/uninorm/nfc.c: New file.
42208         * modules/uninorm/nfc: New file.
42209
42210         Tests for module 'uninorm/nfd'.
42211         * tests/uninorm/test-nfd.c: New file.
42212         * tests/uninorm/test-u8-nfd.c: New file.
42213         * tests/uninorm/test-u16-nfd.c: New file.
42214         * tests/uninorm/test-u32-nfd.c: New file.
42215         * tests/uninorm/test-u32-nfd-big.sh: New file.
42216         * tests/uninorm/test-u32-nfd-big.c: New file.
42217         * tests/uninorm/test-u32-normalize-big.h: New file.
42218         * tests/uninorm/test-u32-normalize-big.c: New file.
42219         * tests/uninorm/NormalizationTest.txt: New file, created from
42220         Unicode 5.1.0 NormalizationTest.txt.
42221         * modules/uninorm/nfd-tests: New file.
42222
42223         New module 'uninorm/nfd'.
42224         * lib/uninorm/nfd.c: New file.
42225         * modules/uninorm/nfd: New file.
42226
42227         New module 'uninorm/u32-normalize'.
42228         * lib/uninorm/u32-normalize.c: New file.
42229         * modules/uninorm/u32-normalize: New file.
42230
42231         New module 'uninorm/u16-normalize'.
42232         * lib/uninorm/u16-normalize.c: New file.
42233         * modules/uninorm/u16-normalize: New file.
42234
42235         New module 'uninorm/u8-normalize'.
42236         * lib/uninorm/u8-normalize.c: New file.
42237         * lib/uninorm/normalize-internal.h: New file.
42238         * lib/uninorm/u-normalize-internal.h: New file.
42239         * modules/uninorm/u8-normalize: New file.
42240
42241         New module 'uninorm/decompose-internal'.
42242         * lib/uninorm/decompose-internal.c: New file.
42243         * modules/uninorm/decompose-internal: New file.
42244
42245         Tests for module 'uninorm/composition'.
42246         * tests/uninorm/test-composition.c: New file.
42247         * modules/uninorm/composition-tests: New file.
42248
42249         New module 'uninorm/composition'.
42250         * lib/uninorm/composition.c: New file.
42251         * lib/uninorm/composition-table.gperf: New file, generated by
42252         gen-uni-tables.
42253         * modules/uninorm/composition: New file.
42254
42255         Tests for module 'uninorm/compat-decomposition'.
42256         * tests/uninorm/test-compat-decomposition.c: New file.
42257         * modules/uninorm/compat-decomposition-tests: New file.
42258
42259         New module 'uninorm/compat-decomposition'.
42260         * lib/uninorm/decompose-internal.h: New file.
42261         * lib/uninorm/compat-decomposition.c: New file.
42262         * modules/uninorm/compat-decomposition: New file.
42263
42264         Tests for module 'uninorm/canonical-decomposition'.
42265         * tests/uninorm/test-canonical-decomposition.c: New file.
42266         * modules/uninorm/canonical-decomposition-tests: New file.
42267
42268         New module 'uninorm/canonical-decomposition'.
42269         * lib/uninorm/canonical-decomposition.c: New file.
42270         * modules/uninorm/canonical-decomposition: New file.
42271
42272         Tests for module 'uninorm/decomposition'.
42273         * tests/uninorm/test-decomposition.c: New file.
42274         * modules/uninorm/decomposition-tests: New file.
42275
42276         New module 'uninorm/decomposition'.
42277         * lib/uninorm/decomposition.c: New file.
42278         * modules/uninorm/decomposition: New file.
42279
42280         New module 'uninorm/decomposition-table'.
42281         * lib/uninorm/decomposition-table.h: New file.
42282         * lib/uninorm/decomposition-table.c: New file.
42283         * lib/uninorm/decomposition-table1.h: New file, generated by
42284         gen-uni-tables.
42285         * lib/uninorm/decomposition-table2.h: New file, generated by
42286         gen-uni-tables.
42287         * modules/uninorm/decomposition-table: New file.
42288
42289         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
42290         (UC_DECOMP_*): New enumeration items.
42291         (get_decomposition): New function.
42292         (struct decomp_table): New type.
42293         (output_decomposition, output_decomposition_tables): New functions.
42294         (unicode_composition_exclusions): New variable.
42295         (fill_composition_exclusions, debug_output_composition_tables): New
42296         functions.
42297         (main): Accept one more argument. Invoke fill_composition_exclusions.
42298         Output decomposition and composition tables.
42299
42300         New module 'uninorm/base'.
42301         * lib/uninorm.h: New file.
42302         * lib/unictype.h: Update comment.
42303         * modules/uninorm/base: New file.
42304
42305 2009-02-21  David Lutterkort  <lutter@redhat.com>
42306
42307         Tests for module 'safe-alloc'.
42308         * tests/test-safe-alloc.c: New file.
42309         * modules/safe-alloc-tests: New file.
42310
42311         New module 'safe-alloc'.
42312         * lib/safe-alloc.h: New file.
42313         * lib/safe-alloc.c: New file.
42314         * m4/safe-alloc.m4: New file.
42315         * modules/safe-alloc: New file.
42316         * doc/safe-alloc.texi: New file.
42317         * doc/gnulib.texi: Include it.
42318         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
42319         safe-alloc.
42320
42321 2009-02-18  Bruno Haible  <bruno@clisp.org>
42322
42323         Fix link error on non-glibc systems.
42324         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
42325         variable.
42326         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42327
42328 2009-02-18  Jim Meyering  <meyering@redhat.com>
42329
42330         fts: avoid used-uninitialized error due to recent change
42331         * lib/fts.c (fts_read): Guard uses of the new member,
42332         parent->fts_n_dirs_remaining, since it's not relevant for
42333         the parent of a directory specified on the command-line.
42334
42335 2009-02-17  James Youngman  <jay@gnu.org>
42336             Bruno Haible  <bruno@clisp.org>
42337
42338         * m4/include_next.m4: Reformulate comment.
42339
42340 2009-02-16  Jim Meyering  <meyering@redhat.com>
42341
42342         fts: add #if guards so that the fts_lgpl module still builds
42343         * lib/fts.c: Guard just-added hash-table-using parts with
42344         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
42345         Reported by Simon Josefsson.
42346
42347 2009-02-15  Bruno Haible  <bruno@clisp.org>
42348
42349         * modules/array-mergesort-tests: New file.
42350         * tests/test-array-mergesort.c: New file.
42351
42352         New module 'array-mergesort'.
42353         * modules/array-mergesort: New file.
42354         * lib/array-mergesort.h: New file.
42355
42356 2009-02-15  Bruno Haible  <bruno@clisp.org>
42357
42358         Fix 2009-02-07 commit.
42359         * lib/gen-uni-tables.c (output_predicate, output_category,
42360         output_combclass, output_bidi_category, output_decimal_digit,
42361         output_digit, output_numeric, output_mirror, output_scripts,
42362         output_ident_category, output_simple_mapping): Fix format directives.
42363         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
42364
42365 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
42366
42367         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
42368         fixes are available from IBM.
42369
42370 2009-02-13  Jim Meyering  <meyering@redhat.com>
42371
42372         fts: arrange not to stat non-directories in more cases
42373         This makes GNU find (when it doesn't need to stat each file)
42374         *much* more efficient at traversing reiserfs file systems.
42375         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
42376         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
42377         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
42378         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
42379         (leaf_optimization_applies): New function.
42380         (LCO_hash, LCO_compare): New helper functions.
42381         (link_count_optimize_ok): New function.
42382         (fts_stat): Initialize new member (if dir).
42383         (fts_read): Decrement parent's fts_n_dirs_remaining count if
42384         we've just stat'ed a directory.  Skip the stat call when possible.
42385         ---
42386         Note this AFS-related exchange:
42387         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
42388         and note find's pioctl call in find/fstype.c.
42389         But that is necessary only if you want to enable the
42390         optimization for AFS, and for now, I don't.
42391
42392         fts: move a function definition "up" (no semantic change)
42393         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
42394         "up" to precede upcoming use of a related function.
42395
42396 2009-02-11  Jim Meyering  <meyering@redhat.com>
42397
42398         fts: correct internal computation of nlinks (optimization-related)
42399         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
42400         whether the current entry is a directory, so don't test it.
42401
42402 2009-02-10  Bruno Haible  <bruno@clisp.org>
42403
42404         Tests for module 'uniwbrk/ulc-wordbreaks'.
42405         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
42406         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
42407         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
42408
42409         Tests for module 'uniwbrk/u32-wordbreaks'.
42410         * modules/uniwbrk/u32-wordbreaks-tests: New file.
42411         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
42412
42413         Tests for module 'uniwbrk/u16-wordbreaks'.
42414         * modules/uniwbrk/u16-wordbreaks-tests: New file.
42415         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
42416
42417         Tests for module 'uniwbrk/u8-wordbreaks'.
42418         * modules/uniwbrk/u8-wordbreaks-tests: New file.
42419         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
42420
42421 2009-02-10  Bruno Haible  <bruno@clisp.org>
42422
42423         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
42424         property.
42425         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
42426         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
42427         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
42428
42429 2009-02-10  Simon Josefsson  <simon@josefsson.org>
42430
42431         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
42432         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
42433
42434 2009-02-10  Bruno Haible  <bruno@clisp.org>
42435
42436         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
42437         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
42438         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
42439         * lib/unilbrk/u8-possible-linebreaks.c: Update.
42440         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
42441         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
42442
42443 2009-02-09  Simon Josefsson  <simon@josefsson.org>
42444
42445         * lib/sockets.h (gl_fd_to_handle): New function.
42446
42447         * tests/test-sockets.c: Call gl_fd_to_handle.
42448
42449 2009-02-09  Bruno Haible  <bruno@clisp.org>
42450
42451         * doc/havelib.texi: Document the conventions on bi-arch systems.
42452
42453 2009-02-08  Bruno Haible  <bruno@clisp.org>
42454
42455         Document the AC_LIB_LINKFLAGS macro.
42456         * doc/havelib.texi: New file, mostly written on 2005-05-24.
42457         * doc/gnulib.texi: Include it.
42458
42459 2009-02-08  Bruno Haible  <bruno@clisp.org>
42460
42461         Fix wrong order of sections, compared to TOC.
42462         * doc/gnulib.texi: Include relocatable-maint.texi after the
42463         "Regular expressions" node, not before.
42464
42465 2009-02-08  Bruno Haible  <bruno@clisp.org>
42466
42467         Tests for module 'unicase/totitle'.
42468         * modules/unicase/totitle-tests: New file.
42469
42470         Tests for module 'unicase/tolower'.
42471         * modules/unicase/tolower-tests: New file.
42472
42473         Tests for module 'unicase/toupper'.
42474         * modules/unicase/toupper-tests: New file.
42475         * tests/unicase/test-mapping-part1.h: New file.
42476         * tests/unicase/test-mapping-part2.h: New file.
42477
42478         New module 'unicase/totitle'.
42479         * modules/unicase/totitle: New file.
42480         * lib/unicase/totitle.c: New file.
42481
42482         New module 'unicase/tolower'.
42483         * modules/unicase/tolower: New file.
42484         * lib/unicase/tolower.c: New file.
42485
42486         New module 'unicase/toupper'.
42487         * modules/unicase/toupper: New file.
42488         * lib/unicase/toupper.c: New file.
42489         * lib/unicase/simple-mapping.h: New file.
42490
42491         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
42492         (mapping_table): New structure.
42493         (output_simple_mapping): New function.
42494         (main): Invoke output_simple_mapping_test and output_simple_mapping.
42495         * modules/gen-uni-tables (Description): Update.
42496         * lib/unicase/toupper.h: New file, automatically generated by
42497         gen-uni-tables.
42498         * lib/unicase/tolower.h: New file, automatically generated by
42499         gen-uni-tables.
42500         * lib/unicase/totitle.h: New file, automatically generated by
42501         gen-uni-tables.
42502         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
42503         gen-uni-tables.
42504         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
42505         gen-uni-tables.
42506         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
42507         gen-uni-tables.
42508
42509         New module 'unicase/base'.
42510         * modules/unicase/base: New file.
42511         * lib/unicase.h: New file.
42512
42513 2009-02-08  Bruno Haible  <bruno@clisp.org>
42514
42515         New module 'uniwbrk/ulc-wordbreaks'.
42516         * modules/uniwbrk/ulc-wordbreaks: New file.
42517         * lib/uniwbrk/ulc-wordbreaks.c: New file.
42518
42519         New module 'uniwbrk/u32-wordbreaks'.
42520         * modules/uniwbrk/u32-wordbreaks: New file.
42521         * lib/uniwbrk/u32-wordbreaks.c: New file.
42522
42523         New module 'uniwbrk/u16-wordbreaks'.
42524         * modules/uniwbrk/u16-wordbreaks: New file.
42525         * lib/uniwbrk/u16-wordbreaks.c: New file.
42526
42527         New module 'uniwbrk/u8-wordbreaks'.
42528         * modules/uniwbrk/u8-wordbreaks: New file.
42529         * lib/uniwbrk/u8-wordbreaks.c: New file.
42530         * lib/uniwbrk/u-wordbreaks.h: New file.
42531
42532         New module 'uniwbrk/table'.
42533         * modules/uniwbrk/table: New file.
42534         * lib/uniwbrk/wbrktable.h: New file.
42535         * lib/uniwbrk/wbrktable.c: New file.
42536
42537         New module 'uniwbrk/wordbreak-property'.
42538         * modules/uniwbrk/wordbreak-property: New file.
42539         * lib/uniwbrk/wordbreak-property.c: New file.
42540
42541         * lib/gen-uni-tables.c (WBP_*): New enum items.
42542         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
42543         (unicode_org_wbp): New variable.
42544         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
42545         New functions.
42546         (wbp_table): New structure.
42547         (output_wbp, output_wbrk_tables): New functions.
42548         (main): Accept additional argument. Invoke fill_org_wbp,
42549         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
42550         output_wbrk_tables.
42551         * modules/gen-uni-tables (Description): Update.
42552         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
42553         gen-uni-tables.
42554
42555         New module 'uniwbrk/base'.
42556         * modules/uniwbrk/base: New file.
42557         * lib/uniwbrk.h: New file.
42558
42559 2009-02-08  Bruno Haible  <bruno@clisp.org>
42560
42561         Update to Unicode 5.1.0.
42562         * lib/gen-uni-tables.c (is_property_alphabetic): Include
42563         U+2185..U+2188.
42564         (is_property_default_ignorable_code_point): Don't include characters
42565         of category Cc or Cs and not-a-characters.
42566         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
42567         U+0D79, U+109E, U+109F, U+A60C.
42568         * lib/unictype/bidi_of.h: Regenerated.
42569         * lib/unictype/blocks.h: Regenerated.
42570         * lib/unictype/categ_C.h: Regenerated.
42571         * lib/unictype/categ_Cf.h: Regenerated.
42572         * lib/unictype/categ_Cn.h: Regenerated.
42573         * lib/unictype/categ_L.h: Regenerated.
42574         * lib/unictype/categ_Ll.h: Regenerated.
42575         * lib/unictype/categ_Lm.h: Regenerated.
42576         * lib/unictype/categ_Lo.h: Regenerated.
42577         * lib/unictype/categ_Lu.h: Regenerated.
42578         * lib/unictype/categ_M.h: Regenerated.
42579         * lib/unictype/categ_Mc.h: Regenerated.
42580         * lib/unictype/categ_Me.h: Regenerated.
42581         * lib/unictype/categ_Mn.h: Regenerated.
42582         * lib/unictype/categ_N.h: Regenerated.
42583         * lib/unictype/categ_Nd.h: Regenerated.
42584         * lib/unictype/categ_Nl.h: Regenerated.
42585         * lib/unictype/categ_No.h: Regenerated.
42586         * lib/unictype/categ_P.h: Regenerated.
42587         * lib/unictype/categ_Pd.h: Regenerated.
42588         * lib/unictype/categ_Pe.h: Regenerated.
42589         * lib/unictype/categ_Pf.h: Regenerated.
42590         * lib/unictype/categ_Pi.h: Regenerated.
42591         * lib/unictype/categ_Po.h: Regenerated.
42592         * lib/unictype/categ_Ps.h: Regenerated.
42593         * lib/unictype/categ_S.h: Regenerated.
42594         * lib/unictype/categ_Sk.h: Regenerated.
42595         * lib/unictype/categ_Sm.h: Regenerated.
42596         * lib/unictype/categ_So.h: Regenerated.
42597         * lib/unictype/categ_of.h: Regenerated.
42598         * lib/unictype/combining.h: Regenerated.
42599         * lib/unictype/ctype_alnum.h: Regenerated.
42600         * lib/unictype/ctype_alpha.h: Regenerated.
42601         * lib/unictype/ctype_graph.h: Regenerated.
42602         * lib/unictype/ctype_lower.h: Regenerated.
42603         * lib/unictype/ctype_print.h: Regenerated.
42604         * lib/unictype/ctype_punct.h: Regenerated.
42605         * lib/unictype/ctype_upper.h: Regenerated.
42606         * lib/unictype/decdigit.h: Regenerated.
42607         * lib/unictype/digit.h: Regenerated.
42608         * lib/unictype/mirror.h: Regenerated.
42609         * lib/unictype/numeric.h: Regenerated.
42610         * lib/unictype/pr_alphabetic.h: Regenerated.
42611         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
42612         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
42613         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
42614         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
42615         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
42616         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
42617         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
42618         * lib/unictype/pr_combining.h: Regenerated.
42619         * lib/unictype/pr_dash.h: Regenerated.
42620         * lib/unictype/pr_decimal_digit.h: Regenerated.
42621         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
42622         * lib/unictype/pr_deprecated.h: Regenerated.
42623         * lib/unictype/pr_diacritic.h: Regenerated.
42624         * lib/unictype/pr_extender.h: Regenerated.
42625         * lib/unictype/pr_format_control.h: Regenerated.
42626         * lib/unictype/pr_grapheme_base.h: Regenerated.
42627         * lib/unictype/pr_grapheme_extend.h: Regenerated.
42628         * lib/unictype/pr_grapheme_link.h: Regenerated.
42629         * lib/unictype/pr_id_continue.h: Regenerated.
42630         * lib/unictype/pr_id_start.h: Regenerated.
42631         * lib/unictype/pr_ideographic.h: Regenerated.
42632         * lib/unictype/pr_ignorable_control.h: Regenerated.
42633         * lib/unictype/pr_lowercase.h: Regenerated.
42634         * lib/unictype/pr_math.h: Regenerated.
42635         * lib/unictype/pr_numeric.h: Regenerated.
42636         * lib/unictype/pr_other_alphabetic.h: Regenerated.
42637         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
42638         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
42639         * lib/unictype/pr_other_id_continue.h: Regenerated.
42640         * lib/unictype/pr_other_lowercase.h: Regenerated.
42641         * lib/unictype/pr_other_math.h: Regenerated.
42642         * lib/unictype/pr_punctuation.h: Regenerated.
42643         * lib/unictype/pr_sentence_terminal.h: Regenerated.
42644         * lib/unictype/pr_soft_dotted.h: Regenerated.
42645         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
42646         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
42647         * lib/unictype/pr_unified_ideograph.h: Regenerated.
42648         * lib/unictype/pr_uppercase.h: Regenerated.
42649         * lib/unictype/pr_xid_continue.h: Regenerated.
42650         * lib/unictype/pr_xid_start.h: Regenerated.
42651         * lib/unictype/pr_zero_width.h: Regenerated.
42652         * lib/unictype/scripts.h: Regenerated.
42653         * lib/unictype/scripts_byname.gperf: Regenerated.
42654         * lib/unictype/sy_java_ident.h: Regenerated.
42655         * lib/unilbrk/lbrkprop1.h: Regenerated.
42656         * lib/unilbrk/lbrkprop2.h: Regenerated.
42657         * tests/unictype/test-categ_C.c: Regenerated.
42658         * tests/unictype/test-categ_Cf.c: Regenerated.
42659         * tests/unictype/test-categ_Cn.c: Regenerated.
42660         * tests/unictype/test-categ_L.c: Regenerated.
42661         * tests/unictype/test-categ_Ll.c: Regenerated.
42662         * tests/unictype/test-categ_Lm.c: Regenerated.
42663         * tests/unictype/test-categ_Lo.c: Regenerated.
42664         * tests/unictype/test-categ_Lu.c: Regenerated.
42665         * tests/unictype/test-categ_M.c: Regenerated.
42666         * tests/unictype/test-categ_Mc.c: Regenerated.
42667         * tests/unictype/test-categ_Me.c: Regenerated.
42668         * tests/unictype/test-categ_Mn.c: Regenerated.
42669         * tests/unictype/test-categ_N.c: Regenerated.
42670         * tests/unictype/test-categ_Nd.c: Regenerated.
42671         * tests/unictype/test-categ_Nl.c: Regenerated.
42672         * tests/unictype/test-categ_No.c: Regenerated.
42673         * tests/unictype/test-categ_P.c: Regenerated.
42674         * tests/unictype/test-categ_Pd.c: Regenerated.
42675         * tests/unictype/test-categ_Pe.c: Regenerated.
42676         * tests/unictype/test-categ_Pf.c: Regenerated.
42677         * tests/unictype/test-categ_Pi.c: Regenerated.
42678         * tests/unictype/test-categ_Po.c: Regenerated.
42679         * tests/unictype/test-categ_Ps.c: Regenerated.
42680         * tests/unictype/test-categ_S.c: Regenerated.
42681         * tests/unictype/test-categ_Sk.c: Regenerated.
42682         * tests/unictype/test-categ_Sm.c: Regenerated.
42683         * tests/unictype/test-categ_So.c: Regenerated.
42684         * tests/unictype/test-ctype_alnum.c: Regenerated.
42685         * tests/unictype/test-ctype_alpha.c: Regenerated.
42686         * tests/unictype/test-ctype_graph.c: Regenerated.
42687         * tests/unictype/test-ctype_lower.c: Regenerated.
42688         * tests/unictype/test-ctype_print.c: Regenerated.
42689         * tests/unictype/test-ctype_punct.c: Regenerated.
42690         * tests/unictype/test-ctype_upper.c: Regenerated.
42691         * tests/unictype/test-decdigit.h: Regenerated.
42692         * tests/unictype/test-digit.h: Regenerated.
42693         * tests/unictype/test-numeric.h: Regenerated.
42694         * tests/unictype/test-pr_alphabetic.c: Regenerated.
42695         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
42696         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
42697         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
42698         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
42699         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
42700         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
42701         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
42702         * tests/unictype/test-pr_combining.c: Regenerated.
42703         * tests/unictype/test-pr_dash.c: Regenerated.
42704         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
42705         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
42706         * tests/unictype/test-pr_deprecated.c: Regenerated.
42707         * tests/unictype/test-pr_diacritic.c: Regenerated.
42708         * tests/unictype/test-pr_extender.c: Regenerated.
42709         * tests/unictype/test-pr_format_control.c: Regenerated.
42710         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
42711         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
42712         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
42713         * tests/unictype/test-pr_id_continue.c: Regenerated.
42714         * tests/unictype/test-pr_id_start.c: Regenerated.
42715         * tests/unictype/test-pr_ideographic.c: Regenerated.
42716         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
42717         * tests/unictype/test-pr_lowercase.c: Regenerated.
42718         * tests/unictype/test-pr_math.c: Regenerated.
42719         * tests/unictype/test-pr_numeric.c: Regenerated.
42720         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
42721         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
42722         Regenerated.
42723         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
42724         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
42725         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
42726         * tests/unictype/test-pr_other_math.c: Regenerated.
42727         * tests/unictype/test-pr_punctuation.c: Regenerated.
42728         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
42729         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
42730         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
42731         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
42732         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
42733         * tests/unictype/test-pr_uppercase.c: Regenerated.
42734         * tests/unictype/test-pr_xid_continue.c: Regenerated.
42735         * tests/unictype/test-pr_xid_start.c: Regenerated.
42736         * tests/unictype/test-pr_zero_width.c: Regenerated.
42737
42738         Update to Unicode 5.1.0.
42739         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
42740         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
42741         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
42742         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
42743         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
42744         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
42745         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
42746         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
42747         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
42748         (nonspacing_table_ind): Update.
42749         * tests/uniwidth/test-uc_width2.sh: Update expected result.
42750
42751         Update to Unicode 5.1.0.
42752         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
42753         code transform.
42754         * lib/uniname/uniname.c (unicode_character_name,
42755         unicode_name_character): Add the range 0x1Fxxx to the code transform.
42756         * lib/uniname/uninames.h: Regenerated.
42757         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
42758
42759 2009-02-07  Bruno Haible  <bruno@clisp.org>
42760
42761         Merge gen-ctype and gen-lbrk into a single program.
42762         * lib/gen-uni-tables.c: New file, incorporating
42763         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
42764         Add directory prefixes to the names of the generated files.
42765         * lib/unictype/gen-ctype.c: Remove file.
42766         * lib/unilbrk/gen-lbrk.c: Remove file.
42767         * modules/gen-uni-tables: New file.
42768         * modules/unictype/gen-ctype: Remove file.
42769         * modules/unilbrk/gen-lbrk: Remove file.
42770
42771 2009-02-07  Bruno Haible  <bruno@clisp.org>
42772
42773         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
42774
42775         New module 'unistr/u32-strcoll'.
42776         * modules/unistr/u32-strcoll: New file.
42777         * lib/unistr/u32-strcoll.c: New file.
42778
42779         New module 'unistr/u16-strcoll'.
42780         * modules/unistr/u16-strcoll: New file.
42781         * lib/unistr/u16-strcoll.c: New file.
42782
42783         New module 'unistr/u8-strcoll'.
42784         * modules/unistr/u8-strcoll: New file.
42785         * lib/unistr/u8-strcoll.c: New file.
42786         * lib/unistr/u-strcoll.h: New file.
42787
42788 2009-02-07  Bruno Haible  <bruno@clisp.org>
42789
42790         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
42791         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
42792         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
42793         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
42794         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
42795         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
42796
42797 2009-02-07  Bruno Haible  <bruno@clisp.org>
42798
42799         Make 64-bit clean.
42800         * lib/unictype/gen-ctype.c (output_predicate, output_category,
42801         output_combclass, output_bidi_category, output_decimal_digit,
42802         output_digit, output_numeric, output_mirror, output_scripts,
42803         output_ident_category): Use proper width specifier in format strings.
42804
42805 2009-02-07  Bruno Haible  <bruno@clisp.org>
42806
42807         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
42808         failure behaviour.
42809
42810 2009-02-07  Jim Meyering  <meyering@redhat.com>
42811
42812         regex: avoid compilation failure with upcoming gcc-4.4
42813         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
42814         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
42815         "... error: integer overflow in preprocessor expression".
42816
42817 2009-02-05  Ben Pfaff  <blp@gnu.org>
42818
42819         Fix link errors on Windows when close module is used.
42820         * modules/close: Add $(LIB_CLOSE) to Link section.
42821         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
42822         $(LIB_CLOSE) on Windows.
42823
42824 2009-02-05  Jim Meyering  <meyering@redhat.com>
42825
42826         still avoid unused-parameter warnings, but do it cleanly
42827         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
42828         (get_fs_usage): Cast to void instead.
42829         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
42830         (dev_from_mount_options, read_file_system_list): Cast to void.
42831         Prompted by Bruno Haible.
42832
42833 2009-02-04  Jim Meyering  <meyering@redhat.com>
42834
42835         fsusage.c: correct copyright year
42836         * lib/fsusage.c: Reflect year in which the change is pushed into
42837
42838         avoid misc. warnings
42839         * lib/fsusage.c (UNUSED_PARAM): Define.
42840         (get_fs_usage): Mark parameter "disk" as unused.
42841         * lib/getugroups.c (getgrent): Use "void" in prototype.
42842         * lib/mountlist.c: Mark unused parameters.
42843         (read_file_system_list): Declare a local with "const".
42844         * lib/nanosleep.c (getnow): Declare static.
42845         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
42846
42847         dirfd: set errno upon failure
42848         * lib/dirfd.c: Include <errno.h>.
42849         Set errno to ENOTSUP when returning -1.
42850         * modules/dirfd (Depends-on): Add errno.
42851         Suggested by John Kodis <kodis@comcast.net>.
42852
42853 2009-02-01  Bruno Haible  <bruno@clisp.org>
42854
42855         Don't assume sizeof (long) >= sizeof (void *).
42856         * lib/memcmp.c: Include stdint.h.
42857         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
42858         srcp2 to 'const byte *'.
42859         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
42860         types to uintptr_t.
42861         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
42862         * modules/memcmp (Depends-on): Add stdint.
42863         Reported by Ozkan Sezer <sezeroz@gmail.com>.
42864
42865 2009-01-30  Eric Blake  <ebb9@byu.net>
42866
42867         fix more require-before-expand issues
42868         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
42869         expand, AC_PROG_AWK.
42870         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
42871
42872 2009-01-28  Eric Blake  <ebb9@byu.net>
42873
42874         version-etc: use consistent URL formatting
42875         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
42876         Improve formatting.  Use fputs for string without %.
42877
42878 2009-01-28  Jim Meyering  <meyering@redhat.com>
42879
42880         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
42881         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
42882         "underquoted definition of NAME" from autoconf-2.59.
42883
42884 2009-01-28  Bruno Haible  <bruno@clisp.org>
42885
42886         * doc/gnulib.texi: Add "Obsolete modules" to index.
42887
42888 2009-01-28  Jim Meyering  <meyering@redhat.com>
42889
42890         useless-if-before-free: recognize more variants
42891         * build-aux/useless-if-before-free: Also recognize e.g.,
42892         if (NULL != p) free (p);
42893
42894 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
42895
42896         test-getaddrinfo: skip (don't fail) this test when there's no network
42897         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
42898         on the presumption that it means you lack network access.
42899
42900 2009-01-26  Jim Meyering  <meyering@redhat.com>
42901
42902         fflush: avoid warnings on modern systems
42903         * lib/fflush.c (rpl_fflush): Move declarations of locals,
42904         pos and result, into scopes where they're used.
42905
42906 2009-01-26  Eric Blake  <ebb9@byu.net>
42907
42908         Silence warning reintroduced by recent extensions patch.
42909         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
42910         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
42911         autoconf.
42912
42913         Backport improved autoconf semantics of AC_DEFUN_ONCE.
42914         * m4/00gnulib.m4: New file.
42915         * gnulib-tool (func_get_filelist): Always use it.
42916         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
42917         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
42918
42919 2009-01-25  Bruno Haible  <bruno@clisp.org>
42920
42921         Make test-quotearg work on MacOS X and AIX.
42922         * tests/test-quotearg.sh: New file.
42923         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
42924         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
42925         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
42926         include <libintl.h>.
42927         (fake_locale): Remove variable.
42928         (gettext, dgettext, dcgettext): Remove functions.
42929         (main): Instead of setting a fake locale, set a real locale. Call
42930         textdomain and bindtextdomain.
42931         * modules/quotearg-tests (Files): Add the new files.
42932         (Depends-on): Add gettext, setenv, unsetenv.
42933         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
42934         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
42935         Augment TESTS_ENVIRONMENT.
42936
42937 2009-01-25  Bruno Haible  <bruno@clisp.org>
42938
42939         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
42940         fr_FR.ISO8859-1 locale on MacOS X.
42941         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
42942         ja_JP.eucJP locale on MacOS X.
42943         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
42944         zh_CN.GB18030 locale on MacOS X.
42945
42946 2009-01-25  Bruno Haible  <bruno@clisp.org>
42947
42948         Avoid link errors on MacOS X 10.3.
42949         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
42950         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
42951
42952 2009-01-25  Bruno Haible  <bruno@clisp.org>
42953
42954         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42955         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
42956         * modules/pipe (Files): Remove m4/posix_spawn.m4.
42957         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42958         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
42959         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42960         posix_spawnattr_init, posix_spawnattr_setsigmask,
42961         posix_spawnattr_setflags, posix_spawnattr_destroy.
42962
42963         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
42964         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
42965         * modules/execute (Files): Remove m4/posix_spawn.m4.
42966         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
42967         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
42968         posix_spawnattr_init, posix_spawnattr_setsigmask,
42969         posix_spawnattr_setflags, posix_spawnattr_destroy.
42970
42971 2009-01-25  Bruno Haible  <bruno@clisp.org>
42972
42973         * lib/glthread/threadlib.c: Include <stdlib.h>.
42974
42975 2009-01-25  Bruno Haible  <bruno@clisp.org>
42976
42977         * lib/glthread/threadlib.c (dummy): New declaration.
42978
42979 2009-01-25  Bruno Haible  <bruno@clisp.org>
42980
42981         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
42982         multibyte characters also for the GB18030 encoding. Don't crash when
42983         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
42984
42985 2009-01-25  Bruno Haible  <bruno@clisp.org>
42986
42987         Avoid redefining 'struct random_data' on OSF/1 5.1.
42988         * lib/stdlib.in.h: Include <random.h> if it exists.
42989         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
42990         HAVE_RANDOM_H. Include <random.h> when testing whether
42991         'struct random_data' exists.
42992         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
42993
42994 2009-01-25  Bruno Haible  <bruno@clisp.org>
42995
42996         Don't install charset.alias on MacOS X >= 10.3.
42997         * lib/localcharset.c (DARWIN7): New macro.
42998         (get_charset_aliases): Hardcode the result for Darwin7.
42999         * modules/localcharset (install-exec-local): Don't install
43000         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
43001
43002 2009-01-25  Bruno Haible  <bruno@clisp.org>
43003
43004         Don't install charset.alias on mingw and Cygwin.
43005         * modules/localcharset (install-exec-local): Don't install
43006         charset.alias on mingw and Cygwin, if the file does not yet exist.
43007         The result for these platforms is hardcoded in localcharset.c.
43008
43009 2009-01-25  Bruno Haible  <bruno@clisp.org>
43010
43011         Make it possible again to use AC_GNU_SOURCE together with gnulib.
43012         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
43013         before requiring AC_USE_SYSTEM_EXTENSIONS.
43014
43015 2009-01-25  Jim Meyering  <meyering@redhat.com>
43016
43017         c-strtod: avoid warnings
43018         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
43019         "assignment discards qualifiers from pointer target type" warnings.
43020
43021 2009-01-24  Bruno Haible  <bruno@clisp.org>
43022
43023         Add support for non-UTF-8 locales on MacOS X.
43024         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
43025         canonical encodings. For Darwin 7 and newer, don't map traditional
43026         encodings to UTF-8.
43027         Reported by Vincent Lefevre <vincent@vinc17.org>
43028         at <http://savannah.gnu.org/bugs/?25235>.
43029
43030 2009-01-24  Bruno Haible  <bruno@clisp.org>
43031
43032         * doc/gnulib.texi (Obsolete modules): New section.
43033         Reported by Mike Frysinger <vapier@gentoo.org>.
43034
43035 2009-01-24  Bruno Haible  <bruno@clisp.org>
43036
43037         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
43038         (%.dvi): New rule.
43039
43040 2009-01-24  Bruno Haible  <bruno@clisp.org>
43041
43042         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
43043         Reported by Eric Blake.
43044
43045 2009-01-24  Bruno Haible  <bruno@clisp.org>
43046
43047         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
43048         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
43049         Reported by Gary V. Vaughan <gary@gnu.org>.
43050
43051 2009-01-24  Bruno Haible  <bruno@clisp.org>
43052
43053         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
43054
43055 2009-01-23  Bruno Haible  <bruno@clisp.org>
43056
43057         Make c-strtod, c-strtold usable in libraries.
43058         * lib/c-strtod.c: Include string.h instead of xalloc.h.
43059         (C_STRTOD): Call strdup instead of xstrdup.
43060         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
43061         * modules/c-strtold (Depends-on): Likewise.
43062         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
43063         * NEWS: Mention the change.
43064         Reported by Michael Gold <mgold@ncf.ca>.
43065
43066 2009-01-23  Jim Meyering  <meyering@redhat.com>
43067
43068         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
43069         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
43070         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
43071
43072 2009-01-23  Simon Josefsson  <simon@josefsson.org>
43073
43074         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
43075         GNU CoreUtils.
43076         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
43077         * modules/version-etc (Description): Update.
43078
43079 2009-01-22  Bruno Haible  <bruno@clisp.org>
43080
43081         Cache the C locale object.
43082         * lib/c-strtod.c (c_locale_cache): New variable.
43083         (c_locale): New function.
43084         (C_STRTOD): Use it, and don't call freelocale.
43085         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
43086         Suggested by Paolo Bonzini.
43087
43088 2009-01-21  Bruno Haible  <bruno@clisp.org>
43089
43090         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
43091         conditions other than overflow.
43092
43093 2009-01-21  Bruno Haible  <bruno@clisp.org>
43094
43095         * lib/c-strtod.c: Include errno.h.
43096         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
43097         value from STRTOD_L and STRTOD.
43098
43099 2009-01-21  Bruno Haible  <bruno@clisp.org>
43100         and Jim Meyering  <meyering@redhat.com>
43101
43102         nanosleep: skip configure test (fail it) for apple universal builds
43103         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
43104         universal builds, assume that nanosleep does not work.
43105         * modules/nanosleep (Depends-on): Add multiarch.
43106
43107         mktime: skip configure test (fail it) for apple universal builds
43108         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
43109         universal builds, assume that mktime does not work.
43110         * modules/mktime (Depends-on): Add multiarch.
43111
43112 2009-01-21  Eric Blake  <ebb9@byu.net>
43113
43114         multiarch: avoid expand-before-require warning
43115         * modules/multiarch (configure.ac): Require, rather than expand,
43116         gl_MULTIARCH.
43117         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
43118         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
43119         enforce that all clients require it.  Partial reversion of
43120         2008-12-29 patch.
43121
43122         error: avoid expand-before-require warning
43123         * modules/errno (configure.ac): Require, rather than expand,
43124         gl_HEADER_ERRNO_H.
43125         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
43126         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
43127         enforce that all clients require it.
43128
43129         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
43130         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
43131         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
43132         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
43133
43134 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
43135
43136         Revert:
43137         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
43138
43139         regex: do not depend on obsolete modules.
43140         * modules/regex: Remove memcmp and memmove.
43141
43142 2009-01-20  Bruno Haible  <bruno@clisp.org>
43143
43144         Make the 'link' module link on Windows NT 4.
43145         * lib/link.c (_WIN32_WINNT): Don't define.
43146         (CreateHardLinkFuncType): New type.
43147         (CreateHardLinkFunc, initialized): New variables.
43148         (initialize): New function.
43149         (link): Invoke CreateHardLink indirectly through the function pointer.
43150
43151 2009-01-20  Bruno Haible  <bruno@clisp.org>
43152
43153         Fix compilation failure on mingw.
43154         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
43155
43156 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
43157
43158         * doc/c-strtod.texi: Mention a couple of restrictions.
43159
43160 2009-01-20  Jim Meyering  <meyering@redhat.com>
43161
43162         gettimeofday: move more declarations out of functions
43163         * lib/gettimeofday.c: Move extern declarations of tzset and
43164         gmtime out of containing functions.  Prompted by Bruno Haible.
43165
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-19  Bruno Haible  <bruno@clisp.org>
43172
43173         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
43174         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
43175         gl_BIGENDIAN, not AC_C_BIGENDIAN.
43176         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
43177         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
43178
43179 2009-01-19  Bruno Haible  <bruno@clisp.org>
43180
43181         * tests/test-link.c: Include <errno.h>.
43182         (main): Exit with code 77 when a hard link cannot be created due to
43183         the file system.
43184         * tests/test-link.sh: Skip test when a hard link cannot be created due
43185         to the file system.
43186         Suggested by Eric Blake.
43187
43188 2009-01-19  Martin Lambers  <marlam@marlam.de>
43189
43190         * modules/link-tests: New file.
43191         * tests/test-link.sh: New file.
43192         * tests/test-link.c: New file.
43193
43194 2009-01-19  Eric Blake  <ebb9@byu.net>
43195
43196         doc: mention another function added in cygwin 1.7.0
43197         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
43198         Another new function in cygwin 1.7.
43199
43200 2009-01-19  Bruno Haible  <bruno@clisp.org>
43201
43202         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
43203         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
43204         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
43205         gl_BIGENDIAN, not AC_C_BIGENDIAN.
43206         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
43207         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
43208         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
43209         * m4/md4.m4 (gl_MD4): Likewise.
43210         * m4/md5.m4 (gl_MD5): Likewise.
43211         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
43212         * m4/sha1.m4 (gl_SHA1): Likewise.
43213         * m4/sha256.m4 (gl_SHA256): Likewise.
43214         * m4/sha512.m4 (gl_SHA512): Likewise.
43215
43216 2009-01-19  Bruno Haible  <bruno@clisp.org>
43217
43218         * modules/uniname/uniname-tests (Depends-on): Add progname.
43219         * tests/uniname/test-uninames.c: Include progname.h.
43220         (main): Call set_program_name.
43221
43222         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
43223         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
43224         (main): Call set_program_name.
43225
43226         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
43227         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
43228         (main): Call set_program_name.
43229
43230         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
43231         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
43232         (main): Call set_program_name.
43233
43234         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
43235         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
43236         (main): Call set_program_name.
43237
43238         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
43239         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
43240         (main): Call set_program_name.
43241
43242         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
43243         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
43244         (main): Call set_program_name.
43245
43246         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
43247         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
43248         (main): Call set_program_name.
43249
43250         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
43251         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
43252         (main): Call set_program_name.
43253
43254 2009-01-19  Eric Blake  <ebb9@byu.net>
43255
43256         test-unistd: test previous patch
43257         * tests/test-unistd.c: Test *_FILENO macros.
43258
43259         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
43260         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43261         Guarantee a definition.
43262         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
43263         * modules/unistd-safer (Depends-on): Add dependency on unistd.
43264         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
43265         * lib/dup-safer.c (STDERR_FILENO): Likewise.
43266         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43267         Likewise.
43268         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
43269         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
43270         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
43271         Likewise.
43272         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
43273         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
43274         (STDERR_FILENO): Likewise.
43275         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
43276         (STDERR_FILENO): Likewise.
43277         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
43278         (STDERR_FILENO): Likewise.
43279         Reported by Elbert Pol.
43280
43281 2009-01-19  Eric Blake  <ebb9@byu.net>
43282
43283         doc: mention more functions added in cygwin 1.7.0
43284         * doc/posix-functions/abort.texi (abort): Update wording related
43285         to cygwin.
43286         * doc/posix-functions/daylight.texi (daylight): Likewise.
43287         * doc/posix-functions/optarg.texi (optarg): Likewise.
43288         * doc/posix-functions/optarg.texi (opterr): Likewise.
43289         * doc/posix-functions/optarg.texi (optind): Likewise.
43290         * doc/posix-functions/optarg.texi (optopt): Likewise.
43291         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
43292         worked in 1.5.x, and was withdrawn in 1.7.
43293         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
43294         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
43295         cygwin versions.
43296         * doc/posix-functions/perror.texi (perror): Likewise.
43297         * doc/posix-functions/printf.texi (printf): Likewise.
43298         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
43299         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
43300         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
43301         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
43302         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
43303         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
43304         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
43305         Likewise.
43306         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
43307         Likewise.
43308         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
43309         this function.
43310         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
43311         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
43312         Likewise.
43313         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
43314         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
43315         * doc/posix-functions/confstr.texi (confstr): Likewise.
43316         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
43317         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
43318         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
43319         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
43320         * doc/posix-functions/fputws.texi (fputws): Likewise.
43321         * doc/posix-functions/fwide.texi (fwide): Likewise.
43322         * doc/posix-functions/getwc.texi (getwc): Likewise.
43323         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
43324         * doc/posix-functions/putwc.texi (putwc): Likewise.
43325         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
43326         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
43327         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
43328         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
43329         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
43330         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
43331         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
43332         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
43333         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
43334         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
43335         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
43336
43337 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
43338
43339         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
43340         * lib/ioctl.c: Include <sys/ioctl.h>.
43341
43342 2009-01-19  Simon Josefsson  <simon@josefsson.org>
43343
43344         * modules/getdate-tests (Depends-on): Add progname.
43345         * tests/test-getdate.c: Use progname module, to avoid link errors
43346         on non-glibc systems.
43347
43348 2009-01-18  Simon Josefsson  <simon@josefsson.org>
43349
43350         * modules/filenamecat-tests (Depends-on): Add progname.
43351         * modules/fstrcmp-tests (Depends-on): Likewise.
43352
43353         * tests/test-filenamecat.c: Use progname module, to avoid link
43354         errors on non-glibc systems.
43355         * tests/test-fstrcmp.c: Likewise.
43356
43357 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
43358
43359         gettimeofday: avoid warning: nested extern declaration of 'localtime'
43360         * lib/gettimeofday.c: Move extern declaration out of function.
43361
43362 2009-01-18  Bruno Haible  <bruno@clisp.org>
43363
43364         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
43365         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
43366         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
43367
43368 2009-01-18  Bruno Haible  <bruno@clisp.org>
43369
43370         * lib/strftime.c (MEMPCPY): Remove unused macro.
43371         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
43372
43373 2009-01-18  Martin Lambers  <marlam@marlam.de>
43374
43375         New module 'link'.
43376         * lib/unistd.in.h (link): New declaration.
43377         * lib/link.c: New file.
43378         * m4/link.m4: New file.
43379         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
43380         HAVE_LINK.
43381         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
43382         * modules/link: New file.
43383         * doc/posix-functions/link.texi: Mention the new module.
43384
43385 2009-01-18  Bruno Haible  <bruno@clisp.org>
43386
43387         * tests/test-avltree_list.c (main): Call set_program_name.
43388         * tests/test-avltree_oset.c (main): Likewise.
43389         * tests/test-obstack-printf.c: Include progname.h.
43390         (main): Call set_program_name.
43391         * tests/test-quotearg.c: Include progname.h.
43392         (main): Call set_program_name.
43393         * tests/test-xmemdup0.c: Include progname.h.
43394         (main): Call set_program_name.
43395
43396 2009-01-18  Bruno Haible  <bruno@clisp.org>
43397
43398         New module 'alphasort'.
43399         * lib/dirent.in.h (alphasort): New declaration.
43400         * lib/alphasort.c: New file, from glibc with modifications.
43401         * m4/alphasort.m4: New file.
43402         * modules/alphasort: New file.
43403         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
43404         HAVE_ALPHASORT.
43405         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
43406         HAVE_ALPHASORT.
43407         * doc/posix-functions/alphasort.texi: Mention the new module and the
43408         portability problems.
43409
43410 2009-01-18  Bruno Haible  <bruno@clisp.org>
43411
43412         New module 'scandir'.
43413         * lib/dirent.in.h (scandir): New declaration.
43414         * lib/scandir.c: New file, from glibc with modifications.
43415         * m4/scandir.m4: New file.
43416         * modules/scandir: New file.
43417         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
43418         HAVE_SCANDIR.
43419         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
43420         HAVE_SCANDIR.
43421         * doc/posix-functions/scandir.texi: Mention the new module and the
43422         portability problems.
43423
43424 2009-01-17  Bruno Haible  <bruno@clisp.org>
43425
43426         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
43427         Update documentation.
43428         (func_remove_suffix): Escape all dots in the suffix. Update
43429         documentation.
43430         (func_filter_filelist): Update documentation.
43431         Reported by Ralf Wildenhues.
43432
43433 2009-01-17  Bruno Haible  <bruno@clisp.org>
43434
43435         * modules/dprintf-posix-tests: New file.
43436         * tests/test-dprintf-posix.sh: New file.
43437         * tests/test-dprintf-posix.c: New file.
43438
43439         New modules 'dprintf', 'dprintf-posix'.
43440         * lib/stdio.in.h (dprintf): New declaration.
43441         * lib/dprintf.c: New file.
43442         * m4/dprintf.m4: New file.
43443         * m4/dprintf-posix.m4: New file.
43444         * modules/dprintf: New file.
43445         * modules/dprintf-posix: New file.
43446         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
43447         HAVE_DPRINTF, REPLACE_DPRINTF.
43448         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
43449         HAVE_DPRINTF, REPLACE_DPRINTF.
43450         * doc/posix-functions/dprintf.texi: Mention the new modules.
43451
43452 2009-01-17  Bruno Haible  <bruno@clisp.org>
43453
43454         * modules/vdprintf-posix-tests: New file.
43455         * tests/test-vdprintf-posix.sh: New file.
43456         * tests/test-vdprintf-posix.c: New file.
43457
43458         New modules 'vdprintf', 'vdprintf-posix'.
43459         * lib/stdio.in.h (vdprintf): New declaration.
43460         * lib/vdprintf.c: New file.
43461         * m4/vdprintf.m4: New file.
43462         * m4/vdprintf-posix.m4: New file.
43463         * modules/vdprintf: New file.
43464         * modules/vdprintf-posix: New file.
43465         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
43466         HAVE_VDPRINTF, REPLACE_VDPRINTF.
43467         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
43468         HAVE_VDPRINTF, REPLACE_VDPRINTF.
43469         * doc/posix-functions/vdprintf.texi: Mention the new modules.
43470
43471 2009-01-17  Bruno Haible  <bruno@clisp.org>
43472
43473         Fix replacement of fopen on mingw.
43474         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
43475         mingw.
43476
43477 2009-01-17  Bruno Haible  <bruno@clisp.org>
43478
43479         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
43480         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
43481
43482 2009-01-17  Bruno Haible  <bruno@clisp.org>
43483
43484         Avoid test-fflush2.sh failure on mingw.
43485         * tests/test-fflush2.c: Include binary-io.h.
43486         (main): Put standard input into binary mode.
43487         * modules/fflush-tests (Depends-on): Add binary-io.
43488
43489 2009-01-17  Bruno Haible  <bruno@clisp.org>
43490
43491         * lib/wchar.in.h: In another particular situation, include only the
43492         system's <wchar.h> file.
43493         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
43494         Reported by Albert Chin-A-Young <china@thewrittenword.com>
43495         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
43496
43497 2009-01-17  Bruno Haible  <bruno@clisp.org>
43498
43499         Support for stripping executables in --enable-relocatable.
43500         * build-aux/install-reloc: Expect one more argument, or an environment
43501         variable RELOC_STRIP_PROG. If set, strip the destination program and
43502         its wrapper.
43503         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
43504         RELOC_STRIP_PROG.
43505         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
43506         to set RELOCATABLE_STRIP.
43507         * NEWS: Mention the new Makefile requirement.
43508
43509 2009-01-17  Bruno Haible  <bruno@clisp.org>
43510
43511         * build-aux/install-reloc: Remove debugging information left over by
43512         C compiler on MacOS X.
43513
43514 2009-01-17  Bruno Haible  <bruno@clisp.org>
43515
43516         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
43517         * lib/progreloc.c (find_executable): Fix type of pointer passed to
43518         _NSGetExecutablePath.
43519
43520 2009-01-16  Jim Meyering  <meyering@redhat.com>
43521
43522         strerror: avoid warnings about discarding "const"
43523         * lib/strerror.c (rpl_strerror): Instead of returning a const
43524         string from each and every "case", use a variable, and add a single
43525         cast after the switch.
43526
43527 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
43528
43529         * lib/arpa_inet.in.h: Add extern "C" block for C++.
43530
43531 2009-01-16  Bruno Haible  <bruno@clisp.org>
43532
43533         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
43534         array initializer syntax that also works in C++ mode.
43535         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43536
43537 2009-01-16  Jim Meyering  <meyering@redhat.com>
43538
43539         poll: suppress a warning
43540         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
43541         to ignore "...unsigned expression < 0 is always false" warnings.
43542
43543 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
43544
43545         poll: remove declarations of unused variables
43546         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
43547         sockbuf and optlen.
43548
43549 2009-01-15  Bruno Haible  <bruno@clisp.org>
43550
43551         Make fflush-after-ungetc POSIX compliant on BSD systems.
43552         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
43553         (clear_ungetc_buffer): Implement also for other systems.
43554         (rpl_fflush): On glibc systems, invoke
43555         clear_ungetc_buffer_preserving_position. Otherwise, invoke
43556         clear_ungetc_buffer after fetching the stream's position, not before.
43557
43558 2009-01-15  Bruno Haible  <bruno@clisp.org>
43559
43560         Make fflush-after-ungetc POSIX compliant on glibc systems.
43561         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
43562         after ungetc.
43563         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
43564         (rpl_fflush): On glibc systems, simply call the system's fflush
43565         function after clearing the ungetc buffer.
43566         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
43567         Instead, lseek only to the end of file, then use the system's fseeko
43568         for the rest. On glibc systems, reset the EOF indicator bit.
43569
43570 2009-01-15  Jim Meyering  <meyering@redhat.com>
43571
43572         openmp.m4: revert quote-adding change, for portability to older autoconf
43573         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
43574         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
43575         Simon Josefsson noticed the problem when using autoconf-2.61.
43576
43577 2009-01-15  Bruno Haible  <bruno@clisp.org>
43578
43579         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
43580         * tests/test-fflush2.c (ASSERT): Always fail.
43581         (main): Add two tests for fflush() after ungetc(), taking into account
43582         the Austin Group's clarification.
43583         Suggested by Eric Blake.
43584
43585 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
43586
43587         mktime.m4: remove K&R-style function prototypes
43588         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
43589         for the Sun C++ compiler.
43590
43591 2009-01-14  Bruno Haible  <bruno@clisp.org>
43592
43593         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
43594         while including <wchar.h>.
43595         * lib/wchar.in.h: In two particular situations on HP-UX, include only
43596         the system's <wchar.h> file.
43597         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43598
43599 2009-01-14  Bruno Haible  <bruno@clisp.org>
43600
43601         * m4/csharp.m4: Don't mention gettext on the serial number line.
43602         * m4/csharpexec.m4: Likewise.
43603         * m4/eaccess.m4: Likewise.
43604         * m4/javaexec.m4: Likewise.
43605         * m4/sig_atomic_t.m4: Likewise.
43606         * m4/tmpdir.m4: Likewise.
43607         * m4/intldir.m4: Bump gettext version.
43608         * m4/lib-ld.m4: Likewise.
43609
43610 2009-01-14  Bruno Haible  <bruno@clisp.org>
43611
43612         * lib/progname.c (set_program_name): Add more comments.
43613         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
43614
43615 2009-01-14  Simon Josefsson  <simon@josefsson.org>
43616
43617         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
43618         were sys/stat.h does not define it.
43619
43620 2009-01-14  Jim Meyering  <meyering@redhat.com>
43621
43622         many *.m4 files: improve m4 quoting
43623         99% of this change was performed by running the following commands:
43624         git ls-files | grep '\.m4$' | xargs perl -pi \
43625           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
43626           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
43627           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
43628           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
43629         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
43630         The remainder were to add Copyright dates, increment serial numbers,
43631         undo some changes in comments, exclude m4/intl.m4, and add quotes
43632         around the "1" in ",1" where the unusual spacing prohibited the
43633         above regexps from doing the job.  For more details, see
43634         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
43635         * m4/acl.m4: Modified.
43636         * m4/afs.m4: Likewise.
43637         * m4/alloca.m4: Likewise.
43638         * m4/argp.m4: Likewise.
43639         * m4/argz.m4: Likewise.
43640         * m4/atexit.m4: Likewise.
43641         * m4/bison-i18n.m4: Likewise.
43642         * m4/bison.m4: Likewise.
43643         * m4/byteswap.m4: Likewise.
43644         * m4/c-stack.m4: Likewise.
43645         * m4/c-strtod.m4: Likewise.
43646         * m4/calloc.m4: Likewise.
43647         * m4/canonicalize-lgpl.m4: Likewise.
43648         * m4/chown.m4: Likewise.
43649         * m4/clock_time.m4: Likewise.
43650         * m4/codeset.m4: Likewise.
43651         * m4/copy-file.m4: Likewise.
43652         * m4/csharp.m4: Likewise.
43653         * m4/csharpcomp.m4: Likewise.
43654         * m4/csharpexec.m4: Likewise.
43655         * m4/d-ino.m4: Likewise.
43656         * m4/d-type.m4: Likewise.
43657         * m4/dirfd.m4: Likewise.
43658         * m4/double-slash-root.m4: Likewise.
43659         * m4/eaccess.m4: Likewise.
43660         * m4/eealloc.m4: Likewise.
43661         * m4/environ.m4: Likewise.
43662         * m4/errno_h.m4: Likewise.
43663         * m4/euidaccess.m4: Likewise.
43664         * m4/execute.m4: Likewise.
43665         * m4/fatal-signal.m4: Likewise.
43666         * m4/fchdir.m4: Likewise.
43667         * m4/fcntl_h.m4: Likewise.
43668         * m4/fileblocks.m4: Likewise.
43669         * m4/filenamecat.m4: Likewise.
43670         * m4/findprog.m4: Likewise.
43671         * m4/flexmember.m4: Likewise.
43672         * m4/fnmatch.m4: Likewise.
43673         * m4/fopen.m4: Likewise.
43674         * m4/fpending.m4: Likewise.
43675         * m4/fprintf-posix.m4: Likewise.
43676         * m4/free.m4: Likewise.
43677         * m4/frexp.m4: Likewise.
43678         * m4/frexpl.m4: Likewise.
43679         * m4/fsusage.m4: Likewise.
43680         * m4/ftruncate.m4: Likewise.
43681         * m4/gc-camellia.m4: Likewise.
43682         * m4/gc-random.m4: Likewise.
43683         * m4/gc.m4: Likewise.
43684         * m4/getaddrinfo.m4: Likewise.
43685         * m4/getcwd-abort-bug.m4: Likewise.
43686         * m4/getcwd-path-max.m4: Likewise.
43687         * m4/getdate.m4: Likewise.
43688         * m4/getdomainname.m4: Likewise.
43689         * m4/getgroups.m4: Likewise.
43690         * m4/gethostname.m4: Likewise.
43691         * m4/gethrxtime.m4: Likewise.
43692         * m4/getline.m4: Likewise.
43693         * m4/getloadavg.m4: Likewise.
43694         * m4/getndelim2.m4: Likewise.
43695         * m4/getpass.m4: Likewise.
43696         * m4/gettext.m4: Likewise.
43697         * m4/gettime.m4: Likewise.
43698         * m4/gettimeofday.m4: Likewise.
43699         * m4/gnulib-common.m4: Likewise.
43700         * m4/group-member.m4: Likewise.
43701         * m4/host-os.m4: Likewise.
43702         * m4/iconv.m4: Likewise.
43703         * m4/iconv_open.m4: Likewise.
43704         * m4/inet_ntop.m4: Likewise.
43705         * m4/inet_pton.m4: Likewise.
43706         * m4/inline.m4: Likewise.
43707         * m4/intldir.m4: Likewise.
43708         * m4/intlmacosx.m4: Likewise.
43709         * m4/intmax.m4: Likewise.
43710         * m4/intmax_t.m4: Likewise.
43711         * m4/inttypes.m4: Likewise.
43712         * m4/inttypes_h.m4: Likewise.
43713         * m4/inttypes-pri.m4: Likewise.
43714         * m4/isapipe.m4: Likewise.
43715         * m4/isnand.m4: Likewise.
43716         * m4/isnanf.m4: Likewise.
43717         * m4/isnanl.m4: Likewise.
43718         * m4/javacomp.m4: Likewise.
43719         * m4/javaexec.m4: Likewise.
43720         * m4/jm-winsz1.m4: Likewise.
43721         * m4/jm-winsz2.m4: Likewise.
43722         * m4/lchown.m4: Likewise.
43723         * m4/lcmessage.m4: Likewise.
43724         * m4/ldexpl.m4: Likewise.
43725         * m4/lib-ld.m4: Likewise.
43726         * m4/lib-link.m4: Likewise.
43727         * m4/libsigsegv.m4: Likewise.
43728         * m4/link-follow.m4: Likewise.
43729         * m4/localcharset.m4: Likewise.
43730         * m4/locale-fr.m4: Likewise.
43731         * m4/locale-ja.m4: Likewise.
43732         * m4/locale-tr.m4: Likewise.
43733         * m4/locale-zh.m4: Likewise.
43734         * m4/lock.m4: Likewise.
43735         * m4/longlong.m4: Likewise.
43736         * m4/ls-mntd-fs.m4: Likewise.
43737         * m4/lstat.m4: Likewise.
43738         * m4/malloc.m4: Likewise.
43739         * m4/mathl.m4: Likewise.
43740         * m4/mbrtowc.m4: Likewise.
43741         * m4/mbstate_t.m4: Likewise.
43742         * m4/mbswidth.m4: Likewise.
43743         * m4/memchr.m4: Likewise.
43744         * m4/memcmp.m4: Likewise.
43745         * m4/memcpy.m4: Likewise.
43746         * m4/memmem.m4: Likewise.
43747         * m4/memmove.m4: Likewise.
43748         * m4/mempcpy.m4: Likewise.
43749         * m4/memrchr.m4: Likewise.
43750         * m4/memset.m4: Likewise.
43751         * m4/minmax.m4: Likewise.
43752         * m4/mkdir-slash.m4: Likewise.
43753         * m4/mkdtemp.m4: Likewise.
43754         * m4/mktime.m4: Likewise.
43755         * m4/mmap-anon.m4: Likewise.
43756         * m4/mountlist.m4: Likewise.
43757         * m4/nanosleep.m4: Likewise.
43758         * m4/nls.m4: Likewise.
43759         * m4/nocrash.m4: Likewise.
43760         * m4/open.m4: Likewise.
43761         * m4/openat.m4: Likewise.
43762         * m4/openmp.m4: Likewise.
43763         * m4/pathmax.m4: Likewise.
43764         * m4/perl.m4: Likewise.
43765         * m4/physmem.m4: Likewise.
43766         * m4/pipe.m4: Likewise.
43767         * m4/po.m4: Likewise.
43768         * m4/poll.m4: Likewise.
43769         * m4/posixtm.m4: Likewise.
43770         * m4/posixver.m4: Likewise.
43771         * m4/printf-frexp.m4: Likewise.
43772         * m4/printf-frexpl.m4: Likewise.
43773         * m4/printf-posix.m4: Likewise.
43774         * m4/printf-posix-rpl.m4: Likewise.
43775         * m4/printf.m4: Likewise.
43776         * m4/progtest.m4: Likewise.
43777         * m4/putenv.m4: Likewise.
43778         * m4/readline.m4: Likewise.
43779         * m4/readlink.m4: Likewise.
43780         * m4/readutmp.m4: Likewise.
43781         * m4/realloc.m4: Likewise.
43782         * m4/regex.m4: Likewise.
43783         * m4/relocatable.m4: Likewise.
43784         * m4/relocatable-lib.m4: Likewise.
43785         * m4/rename-dest-slash.m4: Likewise.
43786         * m4/rename.m4: Likewise.
43787         * m4/rmdir-errno.m4: Likewise.
43788         * m4/rmdir.m4: Likewise.
43789         * m4/roundf.m4: Likewise.
43790         * m4/roundl.m4: Likewise.
43791         * m4/rpmatch.m4: Likewise.
43792         * m4/save-cwd.m4: Likewise.
43793         * m4/selinux-selinux-h.m4: Likewise.
43794         * m4/setenv.m4: Likewise.
43795         * m4/settime.m4: Likewise.
43796         * m4/sig2str.m4: Likewise.
43797         * m4/sig_atomic_t.m4: Likewise.
43798         * m4/signalblocking.m4: Likewise.
43799         * m4/signbit.m4: Likewise.
43800         * m4/sigpipe.m4: Likewise.
43801         * m4/sockets.m4: Likewise.
43802         * m4/sockpfaf.m4: Likewise.
43803         * m4/st_dm_mode.m4: Likewise.
43804         * m4/stat-time.m4: Likewise.
43805         * m4/stdbool.m4: Likewise.
43806         * m4/stdint.m4: Likewise.
43807         * m4/stdint_h.m4: Likewise.
43808         * m4/stpcpy.m4: Likewise.
43809         * m4/stpncpy.m4: Likewise.
43810         * m4/strcase.m4: Likewise.
43811         * m4/strchrnul.m4: Likewise.
43812         * m4/strcspn.m4: Likewise.
43813         * m4/strdup.m4: Likewise.
43814         * m4/strftime.m4: Likewise.
43815         * m4/strndup.m4: Likewise.
43816         * m4/strnlen.m4: Likewise.
43817         * m4/strpbrk.m4: Likewise.
43818         * m4/strptime.m4: Likewise.
43819         * m4/strsep.m4: Likewise.
43820         * m4/strtod.m4: Likewise.
43821         * m4/strtoimax.m4: Likewise.
43822         * m4/strtok_r.m4: Likewise.
43823         * m4/strtol.m4: Likewise.
43824         * m4/strtoll.m4: Likewise.
43825         * m4/strtoul.m4: Likewise.
43826         * m4/strtoull.m4: Likewise.
43827         * m4/strtoumax.m4: Likewise.
43828         * m4/strverscmp.m4: Likewise.
43829         * m4/threadlib.m4: Likewise.
43830         * m4/timegm.m4: Likewise.
43831         * m4/tm_gmtoff.m4: Likewise.
43832         * m4/tmpdir.m4: Likewise.
43833         * m4/tmpfile.m4: Likewise.
43834         * m4/tzset.m4: Likewise.
43835         * m4/uintmax_t.m4: Likewise.
43836         * m4/unlinkdir.m4: Likewise.
43837         * m4/unlocked-io.m4: Likewise.
43838         * m4/uptime.m4: Likewise.
43839         * m4/userspec.m4: Likewise.
43840         * m4/utimbuf.m4: Likewise.
43841         * m4/utime.m4: Likewise.
43842         * m4/utimes-null.m4: Likewise.
43843         * m4/utimes.m4: Likewise.
43844         * m4/vararrays.m4: Likewise.
43845         * m4/vasnprintf.m4: Likewise.
43846         * m4/vfprintf-posix.m4: Likewise.
43847         * m4/vprintf-posix.m4: Likewise.
43848         * m4/wait-process.m4: Likewise.
43849         * m4/wchar_t.m4: Likewise.
43850         * m4/wint_t.m4: Likewise.
43851         * m4/write-any-file.m4: Likewise.
43852         * m4/yield.m4: Likewise.
43853
43854 2009-01-13  Bruno Haible  <bruno@clisp.org>
43855
43856         Avoid test-copy-file.sh failures when ACL support insufficient.
43857         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
43858         TESTS_ENVIRONMENT.
43859         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
43860         Reported by Jim Meyering.
43861
43862 2009-01-13  Bruno Haible  <bruno@clisp.org>
43863
43864         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
43865         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
43866         * modules/unistdio/u8-printf-parse (Files): Likewise.
43867         * modules/unistdio/u32-printf-parse (Files): Likewise.
43868         * modules/unistdio/ulc-printf-parse (Files): Likewise.
43869
43870 2009-01-13  Simon Josefsson  <simon@josefsson.org>
43871
43872         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
43873         and m4/inttypes_h.m4 too.
43874
43875 2009-01-12  Eric Blake  <ebb9@byu.net>
43876
43877         tests: IRIX 6.2 cc can't compile -0.0 into .data
43878         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
43879         rather than at compile-time.
43880         * tests/test-floorl.c (minus_zero): Likewise.
43881         * tests/test-frexpl.c (minus_zero): Likewise.
43882         * tests/test-isnan.c (minus_zerol): Likewise.
43883         * tests/test-isnanl.h (minus_zero): Likewise.
43884         * tests/test-ldexpl.c (minus_zero): Likewise.
43885         * tests/test-roundl.c (minus_zero): Likewise.
43886         * tests/test-signbit.c (minus_zerol): Likewise.
43887         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
43888         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
43889         * tests/test-truncl.c (minus_zero): Likewise.
43890         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
43891         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
43892         Reported by Tom G. Christensen and Nelson H. F. Beebe.
43893
43894 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43895
43896         regex: fix glibc bug 9697
43897         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
43898         handling.
43899
43900 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43901
43902         regex: fix glibc bug 697
43903         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
43904         being NULL also if there are no backreferences.
43905
43906 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
43907
43908         regex: merge glibc changes
43909         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
43910         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
43911         re_string_skip_chars, re_string_reconstruct): Likewise.
43912         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
43913
43914 2009-01-07  Jim Meyering  <meyering@redhat.com>
43915
43916         poll: filter through cppi
43917         * lib/poll.c: Indent cpp directives to reflect nesting.
43918
43919 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
43920
43921         poll: don't return uninitialized
43922         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
43923
43924 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
43925
43926         avoid compile failure on AIX 6.1
43927         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
43928         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
43929
43930 2009-01-04  Jim Meyering  <meyering@redhat.com>
43931
43932         remove duplicate inclusion of <stdio.h>
43933         * tests/test-fprintf-posix.c: Likewise.
43934         * tests/test-printf-posix.c: Likewise.
43935         * tests/test-snprintf-posix.c: Likewise.
43936         * tests/test-sprintf-posix.c: Likewise.
43937         * tests/test-vasprintf-posix.c: Likewise.
43938         * tests/test-vfprintf-posix.c: Likewise.
43939         * tests/test-vprintf-posix.c: Likewise.
43940         * tests/test-vsnprintf-posix.c: Likewise.
43941         * tests/test-vsprintf-posix.c: Likewise.
43942
43943 2009-01-03  Jim Meyering  <meyering@redhat.com>
43944
43945         gnulib-tool: fix sed-based filtering
43946         * gnulib-tool (func_filter_filelist): Remove extra backslash
43947         in sed_fff_filter definition.
43948
43949 2009-01-02  Jim Meyering  <meyering@redhat.com>
43950
43951         strftime: avoid compilation failure on Solaris 2.6
43952         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
43953         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
43954         Don't #define mbrlen or mbsinit, since now they're guaranteed to
43955         be available.  Reported by Tom G. Christensen.  Details in
43956         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
43957
43958 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43959             Bruno Haible  <bruno@clisp.org>
43960
43961         Speed up gnulib-tool by doing more string processing through shell
43962         built-ins.
43963         * gnulib-tool (fast_func_append): New variable.
43964         (func_remove_prefix, func_remove_suffix): New functions.
43965         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
43966         (func_filter_filelist): New function.
43967         (func_get_dependencies): Use func_remove_suffix instead of sed.
43968         (func_get_automake_snippet): Use func_filter_filelist instead of a
43969         subshell and sed invocation.
43970
43971 2009-01-01  Bruno Haible  <bruno@clisp.org>
43972
43973         Fix a security bug.
43974         * gnulib-tool (func_import, import, update): Don't allow the characters
43975         '"', '$', '`', '\' in macro arguments that become part of commands that
43976         are evaluated.
43977
43978 2009-01-01  Bruno Haible  <bruno@clisp.org>
43979
43980         * gnulib-tool (func_reset_sigpipe): Add more comments.
43981
43982 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43983
43984         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
43985         func_emit_tests_Makefile_am, func_import): Abort loops early if we
43986         already know the answer.
43987
43988 2009-01-01  Jim Meyering  <meyering@redhat.com>
43989
43990         * lib/version-etc.c (version_etc_va): Update copyright year.
43991
43992 2008-12-30  Bruno Haible  <bruno@clisp.org>
43993
43994         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
43995         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
43996         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
43997
43998 2008-12-29  Eric Blake  <ebb9@byu.net>
43999
44000         multiarch: avoid autoconf AC_REQUIRE bug
44001         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
44002         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
44003         2.63 and older.
44004         Reported by Bruno Haible, and analyzed in
44005         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
44006
44007 2008-12-29  Bruno Haible  <bruno@clisp.org>
44008
44009         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
44010         files in subdirectories correctly.
44011         Reported by Ralf Wildenhues.
44012
44013 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44014
44015         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
44016         rather than 'join FILE -', for Solaris join.
44017
44018 2008-12-29  Bruno Haible  <bruno@clisp.org>
44019
44020         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
44021         quoting.
44022         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
44023         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
44024         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
44025         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
44026         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
44027         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
44028         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
44029         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
44030         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
44031         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
44032         * m4/nls.m4 (AM_NLS): Likewise.
44033         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
44034         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
44035         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
44036         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
44037         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
44038         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
44039         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
44040         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
44041         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
44042         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
44043         * m4/xsize.m4 (gl_XSIZE): Likewise.
44044         Suggested by Jim Meyering.
44045
44046 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44047
44048         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
44049         * lib/parse-duration.c: use a switch instead of cascading if's.
44050
44051 2008-12-29  Eric Blake  <ebb9@byu.net>
44052
44053         wchar.h: supply WEOF on Irix 5.3
44054         * lib/wchar.in.h (wint_t): Also supply WEOF.
44055         * lib/wctype.in.h (wint_t): Likewise.
44056         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
44057         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
44058         Reported by Tom G. Christensen.
44059
44060 2008-12-26  Bruno Haible  <bruno@clisp.org>
44061
44062         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
44063         i486, i586, i686.
44064
44065 2008-12-26  Bruno Haible  <bruno@clisp.org>
44066
44067         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
44068
44069 2008-12-26  Bruno Haible  <bruno@clisp.org>
44070
44071         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
44072         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
44073         not __STDC_CONSTANT_MACROS.
44074         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
44075
44076 2008-12-25  Bruno Haible  <bruno@clisp.org>
44077
44078         Add support for universal builds to vasnprintf.
44079         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
44080         universal builds, guess no.
44081         * modules/vasnprintf-posix (Depends-on): Add multiarch.
44082         * modules/vasprintf-posix (Depends-on): Likewise.
44083         * modules/fprintf-posix (Depends-on): Likewise.
44084         * modules/vfprintf-posix (Depends-on): Likewise.
44085         * modules/snprintf-posix (Depends-on): Likewise.
44086         * modules/vsnprintf-posix (Depends-on): Likewise.
44087         * modules/sprintf-posix (Depends-on): Likewise.
44088         * modules/vsprintf-posix (Depends-on): Likewise.
44089         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44090         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44091         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44092         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44093         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44094         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44095         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44096
44097         Add support for universal builds to <inttypes.h>.
44098         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
44099         _SCNu64_PREFIX): In Apple
44100         universal builds, define directly, using _LP64.
44101         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
44102         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
44103         * modules/inttypes (Depends-on): Add multiarch.
44104         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
44105
44106         Add support for universal builds to <stdint.h>.
44107         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
44108         universal builds, define directly, using _LP64.
44109         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
44110         Apple universal builds, don't test for the size and suffix of ptrdiff_t
44111         and size_t.
44112         * modules/stdint (Depends-on): Add multiarch.
44113         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
44114
44115         New module 'multiarch'.
44116         * modules/multiarch: New file.
44117         * m4/multiarch.m4: New file.
44118
44119 2008-12-25  Bruno Haible  <bruno@clisp.org>
44120
44121         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
44122
44123 2008-12-25  Bruno Haible  <bruno@clisp.org>
44124
44125         * modules/btowc (License): Relicense under LGPLv2+.
44126         * modules/mbsinit (License): Likewise.
44127         * modules/mbrtowc (License): Likewise.
44128         * modules/wcrtomb (License): Likewise.
44129         * modules/streq (License): Likewise.
44130         Reported by David Lutterkort <lutter@redhat.com>.
44131
44132 2008-12-23  Bruno Haible  <bruno@clisp.org>
44133
44134         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
44135
44136 2008-12-23  Bruno Haible  <bruno@clisp.org>
44137
44138         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
44139         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
44140         GETADDRINFO_LIB, not in LIBS.
44141         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
44142         * modules/canon-host (Link): Likewise.
44143         * NEWS: Mention the change.
44144         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
44145         GETADDRINFO_LIB.
44146
44147 2008-12-22  Bruno Haible  <bruno@clisp.org>
44148
44149         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
44150         * doc/posix-functions/iswalpha_l.texi: Likewise.
44151         * doc/posix-functions/iswblank_l.texi: Likewise.
44152         * doc/posix-functions/iswcntrl_l.texi: Likewise.
44153         * doc/posix-functions/iswctype_l.texi: Likewise.
44154         * doc/posix-functions/iswdigit_l.texi: Likewise.
44155         * doc/posix-functions/iswgraph_l.texi: Likewise.
44156         * doc/posix-functions/iswlower_l.texi: Likewise.
44157         * doc/posix-functions/iswprint_l.texi: Likewise.
44158         * doc/posix-functions/iswpunct_l.texi: Likewise.
44159         * doc/posix-functions/iswspace_l.texi: Likewise.
44160         * doc/posix-functions/iswupper_l.texi: Likewise.
44161         * doc/posix-functions/iswxdigit_l.texi: Likewise.
44162         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
44163         * doc/posix-functions/open_wmemstream.texi: Likewise.
44164         * doc/posix-functions/swscanf.texi: Likewise.
44165         * doc/posix-functions/towctrans_l.texi: Likewise.
44166         * doc/posix-functions/towlower.texi: Likewise.
44167         * doc/posix-functions/towlower_l.texi: Likewise.
44168         * doc/posix-functions/towupper.texi: Likewise.
44169         * doc/posix-functions/towupper_l.texi: Likewise.
44170         * doc/posix-functions/vfwprintf.texi: Likewise.
44171         * doc/posix-functions/vfwscanf.texi: Likewise.
44172         * doc/posix-functions/vswscanf.texi: Likewise.
44173         * doc/posix-functions/vwprintf.texi: Likewise.
44174         * doc/posix-functions/vwscanf.texi: Likewise.
44175         * doc/posix-functions/wcpcpy.texi: Likewise.
44176         * doc/posix-functions/wcpncpy.texi: Likewise.
44177         * doc/posix-functions/wcscasecmp.texi: Likewise.
44178         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
44179         * doc/posix-functions/wcscoll_l.texi: Likewise.
44180         * doc/posix-functions/wcsdup.texi: Likewise.
44181         * doc/posix-functions/wcsncasecmp.texi: Likewise.
44182         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
44183         * doc/posix-functions/wcsnlen.texi: Likewise.
44184         * doc/posix-functions/wcsnrtombs.texi: Likewise.
44185         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
44186         * doc/posix-functions/wctrans_l.texi: Likewise.
44187         * doc/posix-functions/wctype_l.texi: Likewise.
44188         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
44189         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
44190         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
44191         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
44192         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
44193         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
44194         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
44195         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
44196         * doc/glibc-functions/wcschrnul.texi: Likewise.
44197         * doc/glibc-functions/wcsftime_l.texi: Likewise.
44198         * doc/glibc-functions/wcstod_l.texi: Likewise.
44199         * doc/glibc-functions/wcstof_l.texi: Likewise.
44200         * doc/glibc-functions/wcstol_l.texi: Likewise.
44201         * doc/glibc-functions/wcstold_l.texi: Likewise.
44202         * doc/glibc-functions/wcstoll_l.texi: Likewise.
44203         * doc/glibc-functions/wcstoq.texi: Likewise.
44204         * doc/glibc-functions/wcstoul_l.texi: Likewise.
44205         * doc/glibc-functions/wcstoull_l.texi: Likewise.
44206         * doc/glibc-functions/wcstouq.texi: Likewise.
44207         * doc/glibc-functions/wmempcpy.texi: Likewise.
44208
44209 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
44210             Eric Blake  <ebb9@byu.net>
44211             Paolo Bonzini  <bonzini@gnu.org>
44212             Bruno Haible  <bruno@clisp.org>
44213
44214         Make c-stack work on Haiku.
44215         * lib/c-stack.c (SA_ONSTACK): Define fallback.
44216         (c_stack_action): Use SA_ONSTACK flag.
44217
44218 2008-12-22  Bruno Haible  <bruno@clisp.org>
44219
44220         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
44221
44222 2008-12-22  Bruno Haible  <bruno@clisp.org>
44223
44224         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
44225         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
44226         being overridden.
44227         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
44228         New macros.
44229         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
44230         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
44231         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
44232         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
44233
44234 2008-12-22  Bruno Haible  <bruno@clisp.org>
44235
44236         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
44237         from test code.
44238
44239 2008-12-22  Eric Blake  <ebb9@byu.net>
44240
44241         Avoid gcc warnings on cygwin.
44242         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
44243         Avoid unused variable.
44244         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
44245         Likewise.
44246
44247 2008-12-22  Bruno Haible  <bruno@clisp.org>
44248
44249         Remove HAVE_MBRTOWC conditionals.
44250         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
44251         (mbscasecmp): Assume mbrtowc function.
44252         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
44253         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
44254         * lib/mbschr.c: Include mbuiter.h unconditionally.
44255         (mbschr): Assume mbrtowc function.
44256         * lib/mbscspn.c: Include mbuiter.h unconditionally.
44257         (mbscspn): Assume mbrtowc function.
44258         * lib/mbslen.c: Include mbuiter.h unconditionally.
44259         (mbslen): Assume mbrtowc function.
44260         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
44261         (mbsncasecmp): Assume mbrtowc function.
44262         * lib/mbsnlen.c: Include mbiter.h unconditionally.
44263         (mbsnlen): Assume mbrtowc function.
44264         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
44265         (mbspbrk): Assume mbrtowc function.
44266         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
44267         (mbspcasecmp): Assume mbrtowc function.
44268         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
44269         (mbsrchr): Assume mbrtowc function.
44270         * lib/mbssep.c: Include mbuiter.h unconditionally.
44271         (mbssep): Assume mbrtowc function.
44272         * lib/mbsspn.c: Include mbuiter.h unconditionally.
44273         (mbsspn): Assume mbrtowc function.
44274         * lib/mbsstr.c: Include mbuiter.h unconditionally.
44275         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
44276         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
44277         (mbstok_r): Assume mbrtowc function.
44278         * lib/propername.c: Include mbuiter.h unconditionally.
44279         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
44280         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
44281         (trim2): Assume mbrtowc function.
44282         * lib/mbswidth.c (mbsinit): Remove fallback definition.
44283         (mbsnwidth): Assume mbrtowc function.
44284         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
44285         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
44286         fallback definitions.
44287         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
44288
44289 2008-12-22  Bruno Haible  <bruno@clisp.org>
44290
44291         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
44292
44293 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
44294
44295         * modules/regex: Request emulations for the mb*/wc* functions we need.
44296         * m4/regex.m4: Don't look for those functions here.
44297         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
44298
44299 2008-12-22  Bruno Haible  <bruno@clisp.org>
44300
44301         * modules/fnmatch (Depends-on): Remove duplicated dependency.
44302
44303 2008-12-21  Bruno Haible  <bruno@clisp.org>
44304
44305         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
44306         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
44307         (Include): Remove conditionalization.
44308         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
44309         (Include): Remove conditionalization.
44310         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
44311         (Include): Remove conditionalization.
44312         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
44313         * m4/mbfile.m4 (gl_MBFILE): Likewise.
44314         * NEWS: Mention the change.
44315         Reported by Alan Hourihane <alanh@fairlite.co.uk>
44316         via Sergey Poznyakoff <gray@gnu.org.ua>.
44317
44318 2008-12-21  Bruno Haible  <bruno@clisp.org>
44319
44320         * MODULES.html.sh (Extended multibyte and wide character utilities
44321         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
44322         wcrtomb, wcsrtombs.
44323         (Support for systems lacking POSIX:2008): Add accept, bind, close,
44324         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
44325         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
44326         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
44327
44328 2008-12-21  Bruno Haible  <bruno@clisp.org>
44329
44330         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
44331
44332 2008-12-21  Bruno Haible  <bruno@clisp.org>
44333
44334         * modules/wcsnrtombs-tests: New file.
44335         * tests/test-wcsnrtombs1.sh: New file.
44336         * tests/test-wcsnrtombs2.sh: New file.
44337         * tests/test-wcsnrtombs3.sh: New file.
44338         * tests/test-wcsnrtombs4.sh: New file.
44339         * tests/test-wcsnrtombs.c: New file.
44340
44341         New module 'wcsnrtombs'.
44342         * lib/wchar.in.h (wcsnrtombs): New declaration.
44343         * lib/wcsnrtombs.c: New file.
44344         * lib/wcsrtombs-state.c: New file.
44345         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
44346         (internal_state): Remove variable.
44347         * m4/wcsnrtombs.m4: New file.
44348         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
44349         compilation units.
44350         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
44351         HAVE_WCSNRTOMBS.
44352         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
44353         HAVE_WCSNRTOMBS.
44354         * modules/wcsnrtombs: New file.
44355         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
44356         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
44357
44358 2008-12-21  Bruno Haible  <bruno@clisp.org>
44359
44360         * modules/wcsrtombs-tests: New file.
44361         * tests/test-wcsrtombs1.sh: New file.
44362         * tests/test-wcsrtombs2.sh: New file.
44363         * tests/test-wcsrtombs3.sh: New file.
44364         * tests/test-wcsrtombs4.sh: New file.
44365         * tests/test-wcsrtombs.c: New file.
44366
44367         New module 'wcsrtombs'.
44368         * lib/wchar.in.h (wcsrtombs): New declaration.
44369         * lib/wcsrtombs.c: New file.
44370         * m4/wcsrtombs.m4: New file.
44371         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
44372         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
44373         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
44374         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
44375         * modules/wcsrtombs: New file.
44376         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
44377         bugs.
44378
44379 2008-12-21  Bruno Haible  <bruno@clisp.org>
44380
44381         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
44382         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
44383         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
44384         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
44385         if not correct.
44386         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
44387         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
44388         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44389         m4/locale-zh.m4, m4/codeset.m4.
44390         * doc/posix-functions/wcrtomb.texi: Document the bug.
44391
44392 2008-12-21  Bruno Haible  <bruno@clisp.org>
44393
44394         Work around a btowc() bug on IRIX 6.5.
44395         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
44396         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
44397         REPLACE_WTOBC if not.
44398         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
44399         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
44400         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
44401
44402 2008-12-21  Bruno Haible  <bruno@clisp.org>
44403
44404         * modules/wcrtomb-tests: New file.
44405         * tests/test-wcrtomb.sh: New file.
44406         * tests/test-wcrtomb.c: New file.
44407
44408         New module 'wcrtomb'.
44409         * lib/wchar.in.h (wcrtomb): New declaration.
44410         * lib/wcrtomb.c: New file.
44411         * m4/wcrtomb.m4: New file.
44412         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
44413         HAVE_WCRTOMB.
44414         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
44415         HAVE_WCRTOMB.
44416         * modules/wcrtomb: New file.
44417         * doc/posix-functions/wcrtomb.texi: Mention the new module.
44418
44419 2008-12-21  Bruno Haible  <bruno@clisp.org>
44420
44421         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
44422         * modules/mbsrtowcs (Files): Likewise.
44423         * modules/wctob (Files): Likewise.
44424         * modules/c-strcase-tests (Files): Likewise.
44425         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
44426         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
44427         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
44428         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
44429         * modules/vasnprintf-posix-tests (Files): Likewise.
44430
44431 2008-12-21  William Pursell  <bill.pursell@gmail.com>
44432
44433         gitlog-to-changelog: pass all command-line arguments to git-log
44434         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
44435         it is sometimes convenient to filter the commits in various ways.
44436         gitlog-to-changelog only allows --since to specify a start date,
44437         but git-log itself supports many other filtering mechanisms.
44438         At the moment, I want to filter by branch name.  Rather than
44439         adding a --branch option to gitlog-to-changelog, it seems more
44440         flexible to simply pass all options directly to git-log and let
44441         git do the work.  Notice that this effectively makes --since a
44442         redundant option for gitlog-to-changelog, but removing it would
44443         require current usage to change since calls would then require
44444         an additional '--'.
44445
44446 2008-12-21  Bruno Haible  <bruno@clisp.org>
44447
44448         * modules/mbsnrtowcs-tests: New file.
44449         * tests/test-mbsnrtowcs1.sh: New file.
44450         * tests/test-mbsnrtowcs2.sh: New file.
44451         * tests/test-mbsnrtowcs3.sh: New file.
44452         * tests/test-mbsnrtowcs4.sh: New file.
44453         * tests/test-mbsnrtowcs.c: New file.
44454
44455         New module 'mbsnrtowcs'.
44456         * lib/wchar.in.h (mbsnrtowcs): New declaration.
44457         * lib/mbsnrtowcs.c: New file.
44458         * lib/mbsrtowcs-state.c: New file.
44459         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
44460         (internal_state): Remove variable.
44461         * m4/mbsnrtowcs.m4: New file.
44462         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
44463         compilation units.
44464         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
44465         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
44466         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
44467         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
44468         * modules/mbsnrtowcs: New file.
44469         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
44470         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
44471         portability problem.
44472
44473 2008-12-21  Bruno Haible  <bruno@clisp.org>
44474
44475         Work around mbsrtowcs bug.
44476         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
44477         (gl_FUNC_MBSRTOWCS): Invoke it.
44478         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44479         m4/locale-zh.m4.
44480         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
44481
44482 2008-12-21  Bruno Haible  <bruno@clisp.org>
44483
44484         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
44485
44486 2008-12-21  Bruno Haible  <bruno@clisp.org>
44487
44488         Update doc for AIX.
44489         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
44490         16-bit wchar_t type.
44491         * doc/posix-functions/btowc.texi: Likewise.
44492         * doc/posix-functions/fgetwc.texi: Likewise.
44493         * doc/posix-functions/fgetws.texi: Likewise.
44494         * doc/posix-functions/fputwc.texi: Likewise.
44495         * doc/posix-functions/fputws.texi: Likewise.
44496         * doc/posix-functions/fwide.texi: Likewise.
44497         * doc/posix-functions/fwprintf.texi: Likewise.
44498         * doc/posix-functions/fwscanf.texi: Likewise.
44499         * doc/posix-functions/getwchar.texi: Likewise.
44500         * doc/posix-functions/getwc.texi: Likewise.
44501         * doc/posix-functions/iswalnum.texi: Likewise.
44502         * doc/posix-functions/iswalpha.texi: Likewise.
44503         * doc/posix-functions/iswblank.texi: Likewise.
44504         * doc/posix-functions/iswcntrl.texi: Likewise.
44505         * doc/posix-functions/iswctype.texi: Likewise.
44506         * doc/posix-functions/iswdigit.texi: Likewise.
44507         * doc/posix-functions/iswgraph.texi: Likewise.
44508         * doc/posix-functions/iswlower.texi: Likewise.
44509         * doc/posix-functions/iswprint.texi: Likewise.
44510         * doc/posix-functions/iswpunct.texi: Likewise.
44511         * doc/posix-functions/iswspace.texi: Likewise.
44512         * doc/posix-functions/iswupper.texi: Likewise.
44513         * doc/posix-functions/iswxdigit.texi: Likewise.
44514         * doc/posix-functions/mbrtowc.texi: Likewise.
44515         * doc/posix-functions/mbsrtowcs.texi: Likewise.
44516         * doc/posix-functions/mbstowcs.texi: Likewise.
44517         * doc/posix-functions/mbtowc.texi: Likewise.
44518         * doc/posix-functions/putwchar.texi: Likewise.
44519         * doc/posix-functions/putwc.texi: Likewise.
44520         * doc/posix-functions/swprintf.texi: Likewise.
44521         * doc/posix-functions/tolower.texi: Likewise.
44522         * doc/posix-functions/toupper.texi: Likewise.
44523         * doc/posix-functions/towctrans.texi: Likewise.
44524         * doc/posix-functions/ungetwc.texi: Likewise.
44525         * doc/posix-functions/vswprintf.texi: Likewise.
44526         * doc/posix-functions/wcrtomb.texi: Likewise.
44527         * doc/posix-functions/wcscat.texi: Likewise.
44528         * doc/posix-functions/wcschr.texi: Likewise.
44529         * doc/posix-functions/wcscmp.texi: Likewise.
44530         * doc/posix-functions/wcscoll.texi: Likewise.
44531         * doc/posix-functions/wcscpy.texi: Likewise.
44532         * doc/posix-functions/wcscspn.texi: Likewise.
44533         * doc/posix-functions/wcsftime.texi: Likewise.
44534         * doc/posix-functions/wcslen.texi: Likewise.
44535         * doc/posix-functions/wcsncat.texi: Likewise.
44536         * doc/posix-functions/wcsncmp.texi: Likewise.
44537         * doc/posix-functions/wcsncpy.texi: Likewise.
44538         * doc/posix-functions/wcspbrk.texi: Likewise.
44539         * doc/posix-functions/wcsrchr.texi: Likewise.
44540         * doc/posix-functions/wcsrtombs.texi: Likewise.
44541         * doc/posix-functions/wcsspn.texi: Likewise.
44542         * doc/posix-functions/wcsstr.texi: Likewise.
44543         * doc/posix-functions/wcstod.texi: Likewise.
44544         * doc/posix-functions/wcstof.texi: Likewise.
44545         * doc/posix-functions/wcstoimax.texi: Likewise.
44546         * doc/posix-functions/wcstok.texi: Likewise.
44547         * doc/posix-functions/wcstold.texi: Likewise.
44548         * doc/posix-functions/wcstoll.texi: Likewise.
44549         * doc/posix-functions/wcstol.texi: Likewise.
44550         * doc/posix-functions/wcstombs.texi: Likewise.
44551         * doc/posix-functions/wcstoull.texi: Likewise.
44552         * doc/posix-functions/wcstoul.texi: Likewise.
44553         * doc/posix-functions/wcstoumax.texi: Likewise.
44554         * doc/posix-functions/wcswidth.texi: Likewise.
44555         * doc/posix-functions/wcsxfrm.texi: Likewise.
44556         * doc/posix-functions/wctob.texi: Likewise.
44557         * doc/posix-functions/wctomb.texi: Likewise.
44558         * doc/posix-functions/wctrans.texi: Likewise.
44559         * doc/posix-functions/wctype.texi: Likewise.
44560         * doc/posix-functions/wcwidth.texi: Likewise.
44561         * doc/posix-functions/wmemchr.texi: Likewise.
44562         * doc/posix-functions/wmemcmp.texi: Likewise.
44563         * doc/posix-functions/wmemcpy.texi: Likewise.
44564         * doc/posix-functions/wmemmove.texi: Likewise.
44565         * doc/posix-functions/wmemset.texi: Likewise.
44566         * doc/posix-functions/wprintf.texi: Likewise.
44567         * doc/posix-functions/wscanf.texi: Likewise.
44568
44569 2008-12-21  Bruno Haible  <bruno@clisp.org>
44570
44571         Update doc for HP-UX 11.11.
44572         * doc/posix-functions/btowc.texi: Clarify that the function is missing
44573         in HP-UX version 11.00, not in all versions of HP-UX 11.
44574         * doc/posix-functions/fwide.texi: Likewise.
44575         * doc/posix-functions/fwprintf.texi: Likewise.
44576         * doc/posix-functions/fwscanf.texi: Likewise.
44577         * doc/posix-functions/inet_ntop.texi: Likewise.
44578         * doc/posix-functions/inet_pton.texi: Likewise.
44579         * doc/posix-functions/mbrlen.texi: Likewise.
44580         * doc/posix-functions/mbrtowc.texi: Likewise.
44581         * doc/posix-functions/mbsinit.texi: Likewise.
44582         * doc/posix-functions/mbsrtowcs.texi: Likewise.
44583         * doc/posix-functions/swprintf.texi: Likewise.
44584         * doc/posix-functions/swscanf.texi: Likewise.
44585         * doc/posix-functions/towctrans.texi: Likewise.
44586         * doc/posix-functions/vfwprintf.texi: Likewise.
44587         * doc/posix-functions/vswprintf.texi: Likewise.
44588         * doc/posix-functions/vwprintf.texi: Likewise.
44589         * doc/posix-functions/wcrtomb.texi: Likewise.
44590         * doc/posix-functions/wcsrtombs.texi: Likewise.
44591         * doc/posix-functions/wcsstr.texi: Likewise.
44592         * doc/posix-functions/wctob.texi: Likewise.
44593         * doc/posix-functions/wctrans.texi: Likewise.
44594         * doc/posix-functions/wmemchr.texi: Likewise.
44595         * doc/posix-functions/wmemcmp.texi: Likewise.
44596         * doc/posix-functions/wmemcpy.texi: Likewise.
44597         * doc/posix-functions/wmemmove.texi: Likewise.
44598         * doc/posix-functions/wmemset.texi: Likewise.
44599         * doc/posix-functions/wprintf.texi: Likewise.
44600         * doc/posix-functions/wscanf.texi: Likewise.
44601
44602 2008-12-21  Bruno Haible  <bruno@clisp.org>
44603
44604         Work around a portability problem.
44605         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
44606         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
44607
44608 2008-12-20  Bruno Haible  <bruno@clisp.org>
44609
44610         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
44611         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
44612         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
44613         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
44614         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
44615
44616         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
44617         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
44618         set.
44619         (GNULIB_defined_mbstate_t): New macro.
44620         (mbsinit): Redefine if REPLACE_MBSINIT is set.
44621         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
44622         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
44623         reuses the system's mbrtowc function but works around the bugs.
44624         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
44625         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
44626         macros.
44627         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
44628         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
44629         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
44630         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
44631         REPLACE_MBSINIT if mbsinit needs to be overridden.
44632         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
44633         REPLACE_MBSINIT, REPLACE_MBRTOWC.
44634         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
44635         REPLACE_MBSINIT, REPLACE_MBRTOWC.
44636         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
44637         m4/locale-zh.m4.
44638         (Depends): Add mbsinit.
44639         * modules/mbsinit (Depends): Add mbrtowc.
44640         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
44641
44642 2008-12-20  Bruno Haible  <bruno@clisp.org>
44643
44644         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
44645         so that there are no conversion errors on AIX.
44646         * tests/test-mbsrtowcs.c (main): LIkewise.
44647
44648 2008-12-20  Bruno Haible  <bruno@clisp.org>
44649
44650         Work around wctob bug on Solaris <= 9.
44651         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
44652         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
44653         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
44654         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
44655         * modules/wctob (Files): Add m4/locale-fr.m4.
44656         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
44657
44658 2008-12-20  Bruno Haible  <bruno@clisp.org>
44659
44660         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
44661         /dev/null.
44662         * tests/test-select-in.sh: Likewise.
44663         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44664
44665 2008-12-20  Bruno Haible  <bruno@clisp.org>
44666
44667         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
44668         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
44669         Cygwin 1.5.x.
44670
44671 2008-12-20  Bruno Haible  <bruno@clisp.org>
44672
44673         Ensure mbstate_t is defined on HP-UX 11.11.
44674         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
44675         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
44676         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
44677         AC_USE_SYSTEM_EXTENSIONS.
44678         * modules/fnmatch (Depends-on): Add extensions.
44679         * modules/mbrlen (Depends-on): Likewise.
44680         * modules/mbrtowc (Depends-on): Likewise.
44681         * modules/mbsinit (Depends-on): Likewise.
44682         * modules/mbsrtowcs (Depends-on): Likewise.
44683         * modules/mbswidth (Depends-on): Likewise.
44684         * modules/quotearg (Depends-on): Likewise.
44685         * modules/strftime (Depends-on): Likewise.
44686
44687 2008-12-20  Bruno Haible  <bruno@clisp.org>
44688
44689         Ensure wctob is declared on IRIX 6.5.
44690         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
44691         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
44692         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
44693         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
44694         of HAVE_WCTOB.
44695         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
44696         HAVE_WCTOB.
44697         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
44698
44699 2008-12-19  Bruno Haible  <bruno@clisp.org>
44700
44701         * modules/mbsrtowcs-tests: New file.
44702         * tests/test-mbsrtowcs1.sh: New file.
44703         * tests/test-mbsrtowcs2.sh: New file.
44704         * tests/test-mbsrtowcs3.sh: New file.
44705         * tests/test-mbsrtowcs4.sh: New file.
44706         * tests/test-mbsrtowcs.c: New file.
44707
44708         New module 'mbsrtowcs'.
44709         * lib/wchar.in.h (mbsrtowcs): New declaration.
44710         * lib/mbsrtowcs.c: New file.
44711         * m4/mbsrtowcs.m4: New file.
44712         * modules/mbsrtowcs: New file.
44713         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
44714         HAVE_MBSRTOWCS.
44715         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
44716         HAVE_MBSRTOWCS.
44717         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
44718
44719 2008-12-19  Bruno Haible  <bruno@clisp.org>
44720
44721         New module 'mbrlen'.
44722         * lib/wchar.in.h (mbrlen): New declaration.
44723         * lib/mbrlen.c: New file.
44724         * m4/mbrlen.m4: New file.
44725         * modules/mbrlen: New file.
44726         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
44727         HAVE_MBRLEN.
44728         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
44729         HAVE_MBRLEN.
44730         * doc/posix-functions/mbrlen.texi: Document the new module.
44731
44732 2008-12-19  Bruno Haible  <bruno@clisp.org>
44733
44734         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
44735         * modules/mbrtowc (Depends-on): Add verify.
44736         Suggested by Paul Eggert.
44737
44738 2008-12-18  Bruno Haible  <bruno@clisp.org>
44739
44740         * modules/mbsinit-tests: New file.
44741         * tests/test-mbsinit.sh: New file.
44742         * tests/test-mbsinit.c: New file.
44743
44744 2008-12-18  Bruno Haible  <bruno@clisp.org>
44745
44746         * modules/mbrtowc-tests: New file.
44747         * tests/test-mbrtowc1.sh: New file.
44748         * tests/test-mbrtowc2.sh: New file.
44749         * tests/test-mbrtowc3.sh: New file.
44750         * tests/test-mbrtowc4.sh: New file.
44751         * tests/test-mbrtowc.c: New file.
44752
44753         New module 'mbrtowc'.
44754         * lib/wchar.in.h (mbstate_t): Override when the system does not have
44755         mbsinit and mbrtowc.
44756         (mbrtowc): New declaration.
44757         * lib/mbrtowc.c: New file.
44758         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
44759         * modules/mbrtowc: New file.
44760         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
44761         HAVE_MBRTOWC.
44762         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
44763         HAVE_MBRTOWC.
44764         * doc/posix-functions/mbrtowc.texi: Document the new module.
44765
44766 2008-12-18  Bruno Haible  <bruno@clisp.org>
44767
44768         New module 'wctob'.
44769         * lib/wchar.in.h (wctob): New declaration.
44770         * lib/wctob.c: New file.
44771         * m4/wctob.m4: New file.
44772         * modules/wctob: New file.
44773         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
44774         HAVE_WCTOB.
44775         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
44776         * doc/posix-functions/wctob.texi: Document the new module.
44777
44778 2008-12-18  Bruno Haible  <bruno@clisp.org>
44779
44780         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
44781         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
44782
44783 2008-12-18  Simon Josefsson  <simon@josefsson.org>
44784
44785         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
44786         G. Christensen" <tgc@jupiterrise.com>.
44787
44788         * lib/flock.c: Need to include errno.h.  Reported by "Tom
44789         G. Christensen" <tgc@jupiterrise.com>.
44790
44791         * lib/flock.c: Need to include string.h.  Reported by "Tom
44792         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
44793         <ebb9@byu.net>.
44794
44795 2008-12-18  Bruno Haible  <bruno@clisp.org>
44796
44797         * m4/locale-ja.m4: New file, from GNU gettext.
44798
44799 2008-12-17  Bruno Haible  <bruno@clisp.org>
44800
44801         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
44802         Suggested by Eric Blake.
44803
44804 2008-12-17  Bruno Haible  <bruno@clisp.org>
44805
44806         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
44807
44808 2008-12-17  Bruno Haible  <bruno@clisp.org>
44809
44810         * lib/mbsinit.c: Include verify.h. Verify an assumption.
44811         * modules/mbsinit (Depends-on): Add verify.
44812         Suggested by Paul Eggert.
44813
44814 2008-12-17  Bruno Haible  <bruno@clisp.org>
44815
44816         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
44817         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
44818         gl_FUNC_MBRTOWC.
44819         * m4/mbiter.m4 (gl_MBITER): LIkewise.
44820         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
44821         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
44822         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
44823         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
44824         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
44825         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
44826         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
44827         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
44828         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
44829         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
44830         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
44831         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
44832         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
44833         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
44834         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
44835         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
44836         * modules/trim (configure.ac): Likewise.
44837
44838 2008-12-17  Bruno Haible  <bruno@clisp.org>
44839
44840         * modules/btowc-tests: New file.
44841         * tests/test-btowc1.sh: New file.
44842         * tests/test-btowc2.sh: New file.
44843         * tests/test-btowc.c: New file.
44844
44845         New module 'btowc'.
44846         * lib/wchar.in.h (btowc): New declaration.
44847         * lib/btowc.c: New file.
44848         * m4/btowc.m4: New file.
44849         * modules/btowc: New file.
44850         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
44851         HAVE_BTOWC.
44852         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
44853         * doc/posix-functions/btowc.texi: Document the new module.
44854
44855 2008-12-17  Bruno Haible  <bruno@clisp.org>
44856
44857         New module 'mbsinit'.
44858         * lib/wchar.in.h (mbsinit): New declaration.
44859         * lib/mbsinit.c: New file.
44860         * m4/mbsinit.m4: New file.
44861         * modules/mbsinit: New file.
44862         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
44863         HAVE_MBSINIT.
44864         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
44865         HAVE_MBSINIT.
44866         * doc/posix-functions/mbsinit.texi: Document the new module.
44867
44868 2008-12-16  Bruno Haible  <bruno@clisp.org>
44869
44870         * lib/unistd.in.h: Add comment.
44871         * tests/test-environ.c: Don't include <stdlib.h>.
44872
44873 2008-12-16  Bruno Haible  <bruno@clisp.org>
44874
44875         * lib/parse-duration.h (parse_duration): Document return value
44876         convention.
44877         * lib/parse-duration.c: Include specification header first. Add
44878         comments.
44879         (_): Remove macro.
44880         (parse_year_month_day, parse_hour_minute_second): Move side effects
44881         outside of strchr call.
44882         (parse_non_iso8601): Move side effects outside of isspace call.
44883         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
44884         call.
44885
44886 2008-12-16  Bruno Haible  <bruno@clisp.org>
44887
44888         * tests/test-parse-duration.sh: Produce no output when the test
44889         succeeds.
44890
44891 2008-12-16  Bruno Haible  <bruno@clisp.org>
44892
44893         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
44894         expressions.
44895
44896 2008-12-15  Bruno Haible  <bruno@clisp.org>
44897
44898         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
44899         * doc/glibc-functions/flistxattr.texi: Likewise.
44900         * doc/glibc-functions/fopencookie.texi: Likewise.
44901         * doc/glibc-functions/fremovexattr.texi: Likewise.
44902         * doc/glibc-functions/fsetxattr.texi: Likewise.
44903         * doc/glibc-functions/getxattr.texi: Likewise.
44904         * doc/glibc-functions/lgetxattr.texi: Likewise.
44905         * doc/glibc-functions/listxattr.texi: Likewise.
44906         * doc/glibc-functions/llistxattr.texi: Likewise.
44907         * doc/glibc-functions/lremovexattr.texi: Likewise.
44908         * doc/glibc-functions/lsetxattr.texi: Likewise.
44909         * doc/glibc-functions/removexattr.texi: Likewise.
44910         * doc/glibc-functions/setxattr.texi: Likewise.
44911         * doc/posix-functions/open_memstream.texi: Likewise.
44912
44913 2008-12-15  Eric Blake  <ebb9@byu.net>
44914
44915         Update doc for cygwin 1.7.
44916         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
44917         functions.
44918         * doc/posix-functions/fchmodat.texi: Likewise.
44919         * doc/posix-functions/fchownat.texi: Likewise.
44920         * doc/posix-functions/fdopendir.texi: Likewise.
44921         * doc/posix-functions/fmemopen.texi: Likewise.
44922         * doc/posix-functions/freeaddrinfo.texi: Likewise.
44923         * doc/posix-functions/fstatat.texi: Likewise.
44924         * doc/posix-functions/futimens.texi: Likewise.
44925         * doc/posix-functions/gai_strerror.texi: Likewise.
44926         * doc/posix-functions/getaddrinfo.texi: Likewise.
44927         * doc/posix-functions/getnameinfo.texi: Likewise.
44928         * doc/posix-functions/if_freenameindex.texi: Likewise.
44929         * doc/posix-functions/if_indextoname.texi: Likewise.
44930         * doc/posix-functions/if_nameindex.texi: Likewise.
44931         * doc/posix-functions/if_nametoindex.texi: Likewise.
44932         * doc/posix-functions/insque.texi: Likewise.
44933         * doc/posix-functions/linkat.texi: Likewise.
44934         * doc/posix-functions/llrint.texi: Likewise.
44935         * doc/posix-functions/llrintf.texi: Likewise.
44936         * doc/posix-functions/llrintl.texi: Likewise.
44937         * doc/posix-functions/lockf.texi: Likewise.
44938         * doc/posix-functions/lrintl.texi: Likewise.
44939         * doc/posix-functions/mkdirat.texi: Likewise.
44940         * doc/posix-functions/mkfifoat.texi: Likewise.
44941         * doc/posix-functions/mknodat.texi: Likewise.
44942         * doc/posix-functions/mq_close.texi: Likewise.
44943         * doc/posix-functions/mq_getattr.texi: Likewise.
44944         * doc/posix-functions/mq_notify.texi: Likewise.
44945         * doc/posix-functions/mq_open.texi: Likewise.
44946         * doc/posix-functions/mq_receive.texi: Likewise.
44947         * doc/posix-functions/mq_send.texi: Likewise.
44948         * doc/posix-functions/mq_setattr.texi: Likewise.
44949         * doc/posix-functions/mq_timedreceive.texi: Likewise.
44950         * doc/posix-functions/mq_timedsend.texi: Likewise.
44951         * doc/posix-functions/mq_unlink.texi: Likewise.
44952         * doc/posix-functions/open_memstream.texi: Likewise.
44953         * doc/posix-functions/openat.texi: Likewise.
44954         * doc/posix-functions/posix_fadvise.texi: Likewise.
44955         * doc/posix-functions/posix_fallocate.texi: Likewise.
44956         * doc/posix-functions/posix_madvise.texi: Likewise.
44957         * doc/posix-functions/posix_memalign.texi: Likewise.
44958         * doc/posix-functions/posix_openpt.texi: Likewise.
44959         * doc/posix-functions/readlinkat.texi: Likewise.
44960         * doc/posix-functions/remque.texi: Likewise.
44961         * doc/posix-functions/renameat.texi: Likewise.
44962         * doc/posix-functions/rintl.texi: Likewise.
44963         * doc/posix-functions/sem_unlink.texi: Likewise.
44964         * doc/posix-functions/shm_open.texi: Likewise.
44965         * doc/posix-functions/shm_unlink.texi: Likewise.
44966         * doc/posix-functions/signgam.texi: Likewise.
44967         * doc/posix-functions/sigset.texi: Likewise.
44968         * doc/posix-functions/stpcpy.texi: Likewise.
44969         * doc/posix-functions/stpncpy.texi: Likewise.
44970         * doc/posix-functions/strerror.texi: Likewise.
44971         * doc/posix-functions/strtod.texi: Likewise.
44972         * doc/posix-functions/symlinkat.texi: Likewise.
44973         * doc/posix-functions/unlinkat.texi: Likewise.
44974         * doc/posix-functions/utimensat.texi: Likewise.
44975         * doc/glibc-functions/bindresvport.texi: Likewise.
44976         * doc/glibc-functions/dn_expand.texi: Likewise.
44977         * doc/glibc-functions/exp10.texi: Likewise.
44978         * doc/glibc-functions/exp10f.texi: Likewise.
44979         * doc/glibc-functions/fgetxattr.texi: Likewise.
44980         * doc/glibc-functions/flistxattr.texi: Likewise.
44981         * doc/glibc-functions/fopencookie.texi: Likewise.
44982         * doc/glibc-functions/freeifaddrs.texi: Likewise.
44983         * doc/glibc-functions/fremovexattr.texi: Likewise.
44984         * doc/glibc-functions/fsetxattr.texi: Likewise.
44985         * doc/glibc-functions/getifaddrs.texi: Likewise.
44986         * doc/glibc-functions/getxattr.texi: Likewise.
44987         * doc/glibc-functions/lgetxattr.texi: Likewise.
44988         * doc/glibc-functions/listxattr.texi: Likewise.
44989         * doc/glibc-functions/llistxattr.texi: Likewise.
44990         * doc/glibc-functions/lremovexattr.texi: Likewise.
44991         * doc/glibc-functions/lsetxattr.texi: Likewise.
44992         * doc/glibc-functions/pow10.texi: Likewise.
44993         * doc/glibc-functions/pow10f.texi: Likewise.
44994         * doc/glibc-functions/rcmd_af.texi: Likewise.
44995         * doc/glibc-functions/removexattr.texi: Likewise.
44996         * doc/glibc-functions/res_init.texi: Likewise.
44997         * doc/glibc-functions/res_mkquery.texi: Likewise.
44998         * doc/glibc-functions/res_query.texi: Likewise.
44999         * doc/glibc-functions/res_querydomain.texi: Likewise.
45000         * doc/glibc-functions/res_send.texi: Likewise.
45001         * doc/glibc-functions/rresvport_af.texi: Likewise.
45002         * doc/glibc-functions/setxattr.texi: Likewise.
45003         * doc/glibc-functions/strcasestr.texi: Likewise.
45004
45005 2008-12-15  Bruno Haible  <bruno@clisp.org>
45006
45007         Fix compilation error on OSF/1 4.0.
45008         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
45009         <sys/time.h>, simply delegate to the system header.
45010         Reported by Daniel Richard G. <oss@teragram.com>.
45011
45012 2008-12-15  Bruno Haible  <bruno@clisp.org>
45013
45014         * doc/posix-functions/openat.texi: Mention the 'openat' module.
45015         * doc/posix-functions/fchmodat.texi: Likewise.
45016         * doc/posix-functions/fchownat.texi: Likewise.
45017         * doc/posix-functions/fdopendir.texi: Likewise.
45018         * doc/posix-functions/fstatat.texi: Likewise.
45019         * doc/posix-functions/mkdirat.texi: Likewise.
45020         * doc/posix-functions/unlinkat.texi: Likewise.
45021
45022 2008-12-14  Bruno Haible  <bruno@clisp.org>
45023
45024         Update doc for POSIX:2008.
45025         * doc/posix-functions/faccessat.texi: New file.
45026         * doc/posix-functions/fchmodat.texi: New file.
45027         * doc/posix-functions/fchownat.texi: New file.
45028         * doc/posix-functions/fdopendir.texi: New file.
45029         * doc/posix-functions/fstatat.texi: New file.
45030         * doc/posix-functions/futimens.texi: New file.
45031         * doc/posix-functions/linkat.texi: New file.
45032         * doc/posix-functions/mkdirat.texi: New file.
45033         * doc/posix-functions/mkfifoat.texi: New file.
45034         * doc/posix-functions/mknodat.texi: New file.
45035         * doc/posix-functions/open_wmemstream.texi: New file.
45036         * doc/posix-functions/openat.texi: New file.
45037         * doc/posix-functions/psiginfo.texi: New file.
45038         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
45039         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
45040         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
45041         * doc/posix-functions/readlinkat.texi: New file.
45042         * doc/posix-functions/renameat.texi: New file.
45043         * doc/posix-functions/strerror_l.texi: New file.
45044         * doc/posix-functions/symlinkat.texi: New file.
45045         * doc/posix-functions/unlinkat.texi: New file.
45046         * doc/posix-functions/utimensat.texi: New file.
45047         * doc/gnulib.texi (Function Substitutes): Add these subsections.
45048
45049 2008-12-14  Bruno Haible  <bruno@clisp.org>
45050
45051         Update doc for POSIX:2008.
45052         * doc/posix-functions/alphasort.texi: Renamed from
45053         doc/glibc-functions/alphasort.texi.
45054         * doc/posix-functions/dirfd.texi: Renamed from
45055         doc/glibc-functions/dirfd.texi.
45056         * doc/posix-functions/dprintf.texi: Renamed from
45057         doc/glibc-functions/dprintf.texi.
45058         * doc/posix-functions/duplocale.texi: Renamed from
45059         doc/glibc-functions/duplocale.texi.
45060         * doc/posix-functions/fexecve.texi: Renamed from
45061         doc/glibc-functions/fexecve.texi.
45062         * doc/posix-functions/fmemopen.texi: Renamed from
45063         doc/glibc-functions/fmemopen.texi.
45064         * doc/posix-functions/freelocale.texi: Renamed from
45065         doc/glibc-functions/freelocale.texi.
45066         * doc/posix-functions/getdate_err.texi: Renamed from
45067         doc/glibc-functions/getdate_err.texi.
45068         * doc/posix-functions/isalnum_l.texi: Renamed from
45069         doc/glibc-functions/isalnum_l.texi.
45070         * doc/posix-functions/isalpha_l.texi: Renamed from
45071         doc/glibc-functions/isalpha_l.texi.
45072         * doc/posix-functions/isblank_l.texi: Renamed from
45073         doc/glibc-functions/isblank_l.texi.
45074         * doc/posix-functions/iscntrl_l.texi: Renamed from
45075         doc/glibc-functions/iscntrl_l.texi.
45076         * doc/posix-functions/isdigit_l.texi: Renamed from
45077         doc/glibc-functions/isdigit_l.texi.
45078         * doc/posix-functions/isgraph_l.texi: Renamed from
45079         doc/glibc-functions/isgraph_l.texi.
45080         * doc/posix-functions/islower_l.texi: Renamed from
45081         doc/glibc-functions/islower_l.texi.
45082         * doc/posix-functions/isprint_l.texi: Renamed from
45083         doc/glibc-functions/isprint_l.texi.
45084         * doc/posix-functions/ispunct_l.texi: Renamed from
45085         doc/glibc-functions/ispunct_l.texi.
45086         * doc/posix-functions/isspace_l.texi: Renamed from
45087         doc/glibc-functions/isspace_l.texi.
45088         * doc/posix-functions/isupper_l.texi: Renamed from
45089         doc/glibc-functions/isupper_l.texi.
45090         * doc/posix-functions/iswalnum_l.texi: Renamed from
45091         doc/glibc-functions/iswalnum_l.texi.
45092         * doc/posix-functions/iswalpha_l.texi: Renamed from
45093         doc/glibc-functions/iswalpha_l.texi.
45094         * doc/posix-functions/iswblank_l.texi: Renamed from
45095         doc/glibc-functions/iswblank_l.texi.
45096         * doc/posix-functions/iswcntrl_l.texi: Renamed from
45097         doc/glibc-functions/iswcntrl_l.texi.
45098         * doc/posix-functions/iswctype_l.texi: Renamed from
45099         doc/glibc-functions/iswctype_l.texi.
45100         * doc/posix-functions/iswdigit_l.texi: Renamed from
45101         doc/glibc-functions/iswdigit_l.texi.
45102         * doc/posix-functions/iswgraph_l.texi: Renamed from
45103         doc/glibc-functions/iswgraph_l.texi.
45104         * doc/posix-functions/iswlower_l.texi: Renamed from
45105         doc/glibc-functions/iswlower_l.texi.
45106         * doc/posix-functions/iswprint_l.texi: Renamed from
45107         doc/glibc-functions/iswprint_l.texi.
45108         * doc/posix-functions/iswpunct_l.texi: Renamed from
45109         doc/glibc-functions/iswpunct_l.texi.
45110         * doc/posix-functions/iswspace_l.texi: Renamed from
45111         doc/glibc-functions/iswspace_l.texi.
45112         * doc/posix-functions/iswupper_l.texi: Renamed from
45113         doc/glibc-functions/iswupper_l.texi.
45114         * doc/posix-functions/iswxdigit_l.texi: Renamed from
45115         doc/glibc-functions/iswxdigit_l.texi.
45116         * doc/posix-functions/isxdigit_l.texi: Renamed from
45117         doc/glibc-functions/isxdigit_l.texi.
45118         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
45119         doc/glibc-functions/mbsnrtowcs.texi.
45120         * doc/posix-functions/mkdtemp.texi: Renamed from
45121         doc/glibc-functions/mkdtemp.texi.
45122         * doc/posix-functions/newlocale.texi: Renamed from
45123         doc/glibc-functions/newlocale.texi.
45124         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
45125         doc/glibc-functions/nl_langinfo_l.texi.
45126         * doc/posix-functions/open_memstream.texi: Renamed from
45127         doc/glibc-functions/open_memstream.texi.
45128         * doc/posix-functions/opterr.texi: Renamed from
45129         doc/glibc-functions/opterr.texi.
45130         * doc/posix-functions/optind.texi: Renamed from
45131         doc/glibc-functions/optind.texi.
45132         * doc/posix-functions/optopt.texi: Renamed from
45133         doc/glibc-functions/optopt.texi.
45134         * doc/posix-functions/psignal.texi: Renamed from
45135         doc/glibc-functions/psignal.texi.
45136         * doc/posix-functions/scandir.texi: Renamed from
45137         doc/glibc-functions/scandir.texi.
45138         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
45139         doc/glibc-functions/sched_get_priority_min.texi.
45140         * doc/posix-functions/signgam.texi: Renamed from
45141         doc/glibc-functions/signgam.texi.
45142         * doc/posix-functions/stpcpy.texi: Renamed from
45143         doc/glibc-functions/stpcpy.texi.
45144         * doc/posix-functions/stpncpy.texi: Renamed from
45145         doc/glibc-functions/stpncpy.texi.
45146         * doc/posix-functions/strcasecmp_l.texi: Renamed from
45147         doc/glibc-functions/strcasecmp_l.texi.
45148         * doc/posix-functions/strcoll_l.texi: Renamed from
45149         doc/glibc-functions/strcoll_l.texi.
45150         * doc/posix-functions/strfmon_l.texi: Renamed from
45151         doc/glibc-functions/strfmon_l.texi.
45152         * doc/posix-functions/strftime_l.texi: Renamed from
45153         doc/glibc-functions/strftime_l.texi.
45154         * doc/posix-functions/strncasecmp_l.texi: Renamed from
45155         doc/glibc-functions/strncasecmp_l.texi.
45156         * doc/posix-functions/strndup.texi: Renamed from
45157         doc/glibc-functions/strndup.texi.
45158         * doc/posix-functions/strnlen.texi: Renamed from
45159         doc/glibc-functions/strnlen.texi.
45160         * doc/posix-functions/strsignal.texi: Renamed from
45161         doc/glibc-functions/strsignal.texi.
45162         * doc/posix-functions/strxfrm_l.texi: Renamed from
45163         doc/glibc-functions/strxfrm_l.texi.
45164         * doc/posix-functions/timer_gettime.texi: Renamed from
45165         doc/glibc-functions/timer_gettime.texi.
45166         * doc/posix-functions/tolower_l.texi: Renamed from
45167         doc/glibc-functions/tolower_l.texi.
45168         * doc/posix-functions/toupper_l.texi: Renamed from
45169         doc/glibc-functions/toupper_l.texi.
45170         * doc/posix-functions/towctrans_l.texi: Renamed from
45171         doc/glibc-functions/towctrans_l.texi.
45172         * doc/posix-functions/towlower_l.texi: Renamed from
45173         doc/glibc-functions/towlower_l.texi.
45174         * doc/posix-functions/towupper_l.texi: Renamed from
45175         doc/glibc-functions/towupper_l.texi.
45176         * doc/posix-functions/uselocale.texi: Renamed from
45177         doc/glibc-functions/uselocale.texi.
45178         * doc/posix-functions/vdprintf.texi: Renamed from
45179         doc/glibc-functions/vdprintf.texi.
45180         * doc/posix-functions/wcpcpy.texi:
45181         Renamed from doc/glibc-functions/wcpcpy.texi.
45182         * doc/posix-functions/wcpncpy.texi: Renamed from
45183         doc/glibc-functions/wcpncpy.texi.
45184         * doc/posix-functions/wcscasecmp.texi: Renamed from
45185         doc/glibc-functions/wcscasecmp.texi.
45186         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
45187         doc/glibc-functions/wcscasecmp_l.texi.
45188         * doc/posix-functions/wcscoll_l.texi: Renamed from
45189         doc/glibc-functions/wcscoll_l.texi.
45190         * doc/posix-functions/wcsdup.texi: Renamed from
45191         doc/glibc-functions/wcsdup.texi.
45192         * doc/posix-functions/wcsncasecmp.texi: Renamed from
45193         doc/glibc-functions/wcsncasecmp.texi.
45194         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
45195         doc/glibc-functions/wcsncasecmp_l.texi.
45196         * doc/posix-functions/wcsnlen.texi: Renamed from
45197         doc/glibc-functions/wcsnlen.texi.
45198         * doc/posix-functions/wcsnrtombs.texi: Renamed from
45199         doc/glibc-functions/wcsnrtombs.texi.
45200         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
45201         doc/glibc-functions/wcsxfrm_l.texi.
45202         * doc/posix-functions/wctrans_l.texi: Renamed from
45203         doc/glibc-functions/wctrans_l.texi.
45204         * doc/posix-functions/wctype_l.texi: Renamed from
45205         doc/glibc-functions/wctype_l.texi.
45206         * doc/gnulib.texi (Function Substitutes): Add these subsections.
45207         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
45208         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
45209         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
45210         these subsections.
45211         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
45212         Remove sections.
45213
45214 2008-12-14  Bruno Haible  <bruno@clisp.org>
45215
45216         Update doc for POSIX:2008.
45217         * doc/posix-functions/*.texi: Update URL of POSIX specification.
45218
45219 2008-12-14  Bruno Haible  <bruno@clisp.org>
45220
45221         Update doc for POSIX:2008.
45222         * doc/pastposix-functions/bcmp.texi: Renamed from
45223         doc/posix-functions/bcmp.texi.
45224         * doc/pastposix-functions/bcopy.texi: Renamed from
45225         doc/posix-functions/bcopy.texi.
45226         * doc/pastposix-functions/bsd_signal.texi: Renamed from
45227         doc/posix-functions/bsd_signal.texi.
45228         * doc/pastposix-functions/bzero.texi: Renamed from
45229         doc/posix-functions/bzero.texi.
45230         * doc/pastposix-functions/ecvt.texi: Renamed from
45231         doc/posix-functions/ecvt.texi.
45232         * doc/pastposix-functions/fcvt.texi: Renamed from
45233         doc/posix-functions/fcvt.texi.
45234         * doc/pastposix-functions/ftime.texi: Renamed from
45235         doc/posix-functions/ftime.texi.
45236         * doc/pastposix-functions/gcvt.texi: Renamed from
45237         doc/posix-functions/gcvt.texi.
45238         * doc/pastposix-functions/getcontext.texi: Renamed from
45239         doc/posix-functions/getcontext.texi.
45240         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
45241         doc/posix-functions/gethostbyaddr.texi.
45242         * doc/pastposix-functions/gethostbyname.texi: Renamed from
45243         doc/posix-functions/gethostbyname.texi.
45244         * doc/pastposix-functions/getwd.texi: Renamed from
45245         doc/posix-functions/getwd.texi.
45246         * doc/pastposix-functions/h_errno.texi: Renamed from
45247         doc/posix-functions/h_errno.texi.
45248         * doc/pastposix-functions/index.texi: Renamed from
45249         doc/posix-functions/index.texi.
45250         * doc/pastposix-functions/makecontext.texi: Renamed from
45251         doc/posix-functions/makecontext.texi.
45252         * doc/pastposix-functions/mktemp.texi: Renamed from
45253         doc/posix-functions/mktemp.texi.
45254         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
45255         doc/posix-functions/pthread_attr_getstackaddr.texi.
45256         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
45257         doc/posix-functions/pthread_attr_setstackaddr.texi.
45258         * doc/pastposix-functions/rindex.texi: Renamed from
45259         doc/posix-functions/rindex.texi.
45260         * doc/pastposix-functions/scalb.texi: Renamed from
45261         doc/posix-functions/scalb.texi.
45262         * doc/pastposix-functions/setcontext.texi: Renamed from
45263         doc/posix-functions/setcontext.texi.
45264         * doc/pastposix-functions/swapcontext.texi: Renamed from
45265         doc/posix-functions/swapcontext.texi.
45266         * doc/pastposix-functions/ualarm.texi: Renamed from
45267         doc/posix-functions/ualarm.texi.
45268         * doc/pastposix-functions/usleep.texi: Renamed from
45269         doc/posix-functions/usleep.texi.
45270         * doc/pastposix-functions/vfork.texi: Renamed from
45271         doc/posix-functions/vfork.texi.
45272         * doc/pastposix-functions/wcswcs.texi: Renamed from
45273         doc/posix-functions/wcswcs.texi.
45274         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
45275         (Function Substitutes): Update.
45276
45277 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45278
45279         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
45280         m4/strerror.m4.
45281
45282 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45283             Bruno Haible  <bruno@clisp.org>
45284
45285         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
45286
45287 2008-12-13  Bruno Haible  <bruno@clisp.org>
45288
45289         * modules/strtoull (Depends-on): Remove unistd.
45290
45291 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45292
45293         * modules/strtoull (Depends-on): Add stdlib.
45294
45295 2008-12-11  Simon Josefsson  <simon@josefsson.org>
45296
45297         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
45298
45299 2008-12-10  Jim Meyering  <meyering@redhat.com>
45300
45301         gl_ASSERT: don't say assertions are disabled when they're not
45302         * m4/assert.m4 (gl_ASSERT): Do not make configure report
45303         "checking whether to enable assertions... no", when they are in
45304         fact enabled.  This is solely a bug in the output of configure.
45305         In spite of saying "no", NDEBUG was not defined in that case.
45306         Also, as noted by Eric Blake, leave assertions enabled upon
45307         --enable-assert=INVALID.
45308
45309 2008-12-10  Bruno Haible  <bruno@clisp.org>
45310
45311         Change MODULES.html to refer to POSIX:2008 where possible.
45312         * MODULES.html.sh (POSIX2008_URL): New variable.
45313         (posix_headers): Remove sys/timeb, ucontext.
45314         (posix2001_headers): New variable.
45315         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
45316         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
45317         index, makecontext, mktemp, pthread_attr_getstackaddr,
45318         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
45319         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
45320         (posix2001_functions): New variable.
45321         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
45322         otherwise.
45323
45324 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45325
45326         add missing include to parse-duration.c
45327         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
45328         * modules/parse-duration (Depends-on): Add xalloc.
45329
45330         fix sed script reading maint.mk
45331         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
45332         (syntax-check-rules): Use it.
45333
45334 2008-12-09  Bruno Haible  <bruno@clisp.org>
45335
45336         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
45337         MacOS X 10.4/PowerPC.
45338         Reported by Simon Josefsson.
45339
45340 2008-12-08  Jim Meyering  <meyering@redhat.com>
45341
45342         work around mingw's lack of some S_IF definitions
45343         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
45344         Reported by Simon Josefsson.
45345
45346 2008-12-08  Bruno Haible  <bruno@clisp.org>
45347
45348         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
45349         applied to variables. Needed on MacOS X 10.4/PowerPC.
45350         Reported by Simon Josefsson.
45351
45352 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
45353         and Eric Blake  <ebb9@byu.net>
45354
45355         assert: honor --enable-assert
45356         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
45357         order to honor --enable-assert, rather than treating it as a
45358         synonym for --disable-assert.
45359
45360 2008-12-08  Jim Meyering  <meyering@redhat.com>
45361
45362         * lib/posixtm.c: Remove now-useless declaration of mktime.
45363
45364         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
45365
45366 2008-12-07  Bruno Haible  <bruno@clisp.org>
45367
45368         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
45369         test_once): Mark functions as static.
45370         * tests/test-tls.c (test_tls): Likewise.
45371
45372 2008-12-07  Bruno Haible  <bruno@clisp.org>
45373
45374         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
45375         iconv_register_autodetect.
45376
45377 2008-12-07  Jim Meyering  <meyering@redhat.com>
45378
45379         posixtm.c: avoid a warning
45380         * lib/posixtm.c (posixtime): Don't initialize tm0.
45381         It's no longer needed to placate gcc4's -Wuninitialized,
45382         and the attempt to placate would elicit a new warning.
45383
45384         unicodeio.c: mark unused parameters
45385         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
45386         (fallback_failure_callback): Likewise.
45387
45388 2008-12-07  Bruno Haible  <bruno@clisp.org>
45389
45390         * gnulib-tool (func_create_testdir): When building the tests
45391         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
45392         Reported by Simon Josefsson.
45393
45394 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45395
45396         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
45397
45398 2008-12-06  Bruno Haible  <bruno@clisp.org>
45399
45400         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
45401         Suggested by Eric Blake.
45402
45403 2008-12-06  Bruno Haible  <bruno@clisp.org>
45404
45405         Fix a c-stack test failure on MacOS X.
45406         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
45407         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
45408         handler for SIGBUS as well.
45409         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
45410         install a signal handler for SIGBUS as well.
45411         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
45412
45413 2008-12-06  Bruno Haible  <bruno@clisp.org>
45414
45415         Advocacy documentation.
45416         * doc/gnulib-intro.texi (Benefits): New section.
45417         * doc/gnulib.texi: Update.
45418
45419 2008-12-06  Bruno Haible  <bruno@clisp.org>
45420
45421         Document the 'manywarnings' module.
45422         * doc/manywarnings.texi: New file.
45423         * doc/gnulib.texi: Include it.
45424
45425 2008-12-05  Eric Blake  <ebb9@byu.net>
45426
45427         tests: silence some gcc warnings
45428         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
45429         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
45430         type mismatches.
45431
45432 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45433             Bruno Haible  <bruno@clisp.org>
45434
45435         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
45436
45437 2008-11-29  Jim Meyering  <meyering@redhat.com>
45438
45439         unicodeio.c: mark unused parameters
45440         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
45441         (fallback_failure_callback): Likewise.
45442
45443         fts: fix a thinko
45444         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
45445         (set_stat_type): Return S_IF*-valued "type" directly.
45446         Prompted by James Youngman's spotting a related bug.
45447         Confirmed by further testing through find.
45448
45449         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
45450         * lib/fts.c (D_TYPE): Define.
45451         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
45452         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
45453         (s_ifmt_shift_bits): New function.
45454         (set_stat_type): New function.
45455         (fts_build): When not calling fts_stat, call set_stat_type
45456         to propagate dirent.d_type info to fts_read caller.
45457         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
45458         fts_statp->st_mode type information may be valid.
45459
45460 2008-11-28  Simon Josefsson  <simon@josefsson.org>
45461
45462         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
45463         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
45464         <sds@gnu.org>.
45465
45466 2008-11-20  Bruno Haible  <bruno@clisp.org>
45467
45468         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
45469         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
45470         INCLUDE_NEXT.
45471         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
45472         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
45473         * modules/math (Makefile.am): Substitute
45474         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
45475         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45476
45477 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
45478             Bruno Haible  <bruno@clisp.org>
45479
45480         * lib/stdint.in.h: Define all type macros so that their expansion is
45481         a single typedef'ed token. Fixes a compilation failure in Boost which
45482         does "using ::int8_t;".
45483
45484 2008-11-18  Simon Josefsson  <simon@josefsson.org>
45485
45486         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
45487         gl_MANYWARN_ALL_GCC.
45488         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
45489         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
45490         * modules/manywarnings: New file.
45491         * MODULES.html.sh: Mention manywarnings module.
45492
45493 2008-11-18  Bruno Haible  <bruno@clisp.org>
45494
45495         * doc/gnulib-tool.texi (Unit tests): New section.
45496
45497 2008-11-18  Simon Josefsson  <simon@josefsson.org>
45498
45499         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
45500         paths like 'lib/po/foo.po'.
45501
45502 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45503
45504         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
45505         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
45506
45507 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45508
45509         * m4/warnings.m4: Use CPPFLAGS to really check whether the
45510         parameter works.
45511
45512 2008-11-17  Simon Josefsson  <simon@josefsson.org>
45513
45514         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
45515
45516 2008-11-17  Bruce Korb  <bkorb@gnu.org>
45517
45518         * modules/parse-duration-tests: New file.
45519         * tests/test-parse-duration.sh: New file.
45520         * tests/test-parse-duration.c: New file.
45521
45522         New module 'parse-duration'.
45523         * lib/parse-duration.h: New file.
45524         * lib/parse-duration.c: New file.
45525         * modules/parse-duration: New file.
45526
45527 2008-11-17  Bruno Haible  <bruno@clisp.org>
45528
45529         * tests/test-select-out.sh: Comment out the first pipe test.
45530         Reported by Simon Josefsson.
45531
45532 2008-11-17  Bruno Haible  <bruno@clisp.org>
45533
45534         * modules/getaddrinfo (Depends-on): Add servent, hostent.
45535         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
45536         gl_HOSTENT.
45537
45538 2008-11-17  Bruno Haible  <bruno@clisp.org>
45539
45540         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
45541         -lnetwork and -lnet. Needed for Haiku and BeOS.
45542
45543 2008-11-16  Bruno Haible  <bruno@clisp.org>
45544
45545         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
45546
45547 2008-11-16  Bruno Haible  <bruno@clisp.org>
45548
45549         Avoid test failure on Haiku.
45550         * tests/test-fsync.c: Include <errno.h>.
45551         (main): Don't require that fsync (0) fails.
45552
45553 2008-11-15  Bruno Haible  <bruno@clisp.org>
45554
45555         New module 'hostent'.
45556         * modules/hostent: New file.
45557         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
45558
45559 2008-11-15  Bruno Haible  <bruno@clisp.org>
45560
45561         New module 'servent'.
45562         * modules/servent: New file.
45563         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
45564
45565 2008-11-15  Bruno Haible  <bruno@clisp.org>
45566
45567         Avoid generating same test program with two different rules.
45568         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
45569         test-frexp to test-frexp-nolibm.
45570         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
45571         test-frexpl to test-frexpl-nolibm.
45572
45573 2008-11-15  Bruno Haible  <bruno@clisp.org>
45574
45575         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
45576         $(FREXPL_LIBM).
45577
45578 2008-11-15  Bruno Haible  <bruno@clisp.org>
45579
45580         * lib/netdb.in.h: Activate the definitions also when the system's
45581         <netdb.h> has 'struct addrinfo'.
45582         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
45583         EAI_OVERFLOW or AI_NUMERICSERV.
45584         * doc/posix-headers/netdb.texi: Document the problem.
45585
45586 2008-11-15  Bruno Haible  <bruno@clisp.org>
45587
45588         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
45589
45590         Make the 'sched' module work on platforms where <sched.h> exists but
45591         is incomplete (such as Haiku).
45592         * lib/sched.in.h; Include the system's <sched.h> if it exists.
45593         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
45594         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
45595         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
45596         HAVE_STRUCT_SCHED_PARAM.
45597         * modules/sched (Depends-on): Add include_next.
45598         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
45599         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
45600         * doc/posix-headers/sched.texi: Document the issue.
45601
45602 2008-11-13  Jim Meyering  <meyering@redhat.com>
45603
45604         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
45605         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
45606         test would fail due to the difference in the Report bugs to ...
45607         line.  The expected address is empty, "<>", while the actual
45608         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
45609
45610 2008-11-12  Bruno Haible  <bruno@clisp.org>
45611
45612         lstat: don't compile lstat.c on systems lacking lstat
45613         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
45614         which don't have lstat; this is handled by lib/sys_stat.in.h already.
45615         Reported by Daniel P. Berrange via Jim Meyering.
45616
45617 2008-11-12  Jim Meyering  <meyering@redhat.com>
45618
45619         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
45620
45621 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45622
45623         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
45624         instead.
45625
45626 2008-11-12  Bruno Haible  <bruno@clisp.org>
45627
45628         * lib/unicodeio.c: Include unistr.h.
45629         (utf8_wctomb): Remove function.
45630         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
45631
45632 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45633
45634         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
45635         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
45636         <bruno@clisp.org>.
45637         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
45638
45639 2008-11-12  Simon Josefsson  <simon@josefsson.org>
45640
45641         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
45642         * doc/gnulib.texi: Add section for warnings.
45643
45644 2008-11-11  Bruno Haible  <bruno@clisp.org>
45645
45646         * lib/sockets.h: Add a comment.
45647
45648 2008-11-11  Karl Berry  <karl@gnu.org>
45649
45650         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
45651
45652 2008-11-11  Eric Blake  <ebb9@byu.net>
45653
45654         fdl.texi: avoid git symlinks
45655         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
45656
45657 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45658
45659         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
45660
45661 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45662
45663         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
45664         (gl_WARN_ADD): Substitute $2 if literal.
45665
45666 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45667
45668         * m4/warning.m4: Remove.
45669
45670 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
45671
45672         * m4/warnings.m4: Almost complete rewrite. :-)
45673
45674 2008-11-10  Simon Josefsson  <simon@josefsson.org>
45675
45676         * modules/warnings: New module.
45677         * m4/warnings.m4: New file.
45678         * MODULES.html.sh: Mention warnings module.
45679         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
45680         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45681
45682 2008-11-10  Eric Blake  <ebb9@byu.net>
45683
45684         fdl.texi: make a symlink to the latest version
45685         * doc/standards.texi: Revert today's earlier change.
45686         * doc/fdl-1.2.texi: Rename from old fdl.texi...
45687         * doc/fdl.texi: ...and replace this with a symlink to the newer
45688         fdl-1.3.texi.
45689
45690 2008-11-10  Bruno Haible  <bruno@clisp.org>
45691
45692         * tests/test-select-fd.c (main): Accept the result file name as fourth
45693         argument.
45694         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
45695         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
45696
45697 2008-11-10  Bruno Haible  <bruno@clisp.org>
45698
45699         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
45700         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
45701         as autoconf-substituted macros.
45702         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
45703         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
45704         gl_NETDB_H_DEFAULTS. Set these variables.
45705         * modules/netdb (Makefile.am): Substitute these variables.
45706
45707 2008-11-10  Eric Blake  <ebb9@byu.net>
45708
45709         standards.texi: include correct file for FDL 1.3
45710         * doc/standards.texi (GNU Free Documentation License): Change
45711         include file to pull in FDL 1.3, not 1.2.
45712
45713         fdl.texi: revert accidental change to license
45714         * doc/fdl.texi: This is FDL 1.2, not 1.3.
45715
45716 2008-11-10  Bruno Haible  <bruno@clisp.org>
45717
45718         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
45719         cross-compiling guesses also when the native compile gives no result.
45720
45721 2008-11-10  Bruno Haible  <bruno@clisp.org>
45722
45723         * lib/spawni.c (__spawni): Force variable into the stack.
45724
45725 2008-11-10  Bruno Haible  <bruno@clisp.org>
45726
45727         Add support for Haiku.
45728         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
45729         glibc and BeOS, but also on Haiku.
45730         * lib/fpurge.c (fpurge): Likewise.
45731         * lib/freadable.c (freadable): Likewise.
45732         * lib/freadahead.c (freadahead): Likewise.
45733         * lib/freading.c (freading): Likewise.
45734         * lib/freadptr.c (freadptr): Likewise.
45735         * lib/freadseek.c (freadptrinc): Likewise.
45736         * lib/fseeko.c (rpl_fseeko): Likewise.
45737         * lib/fseterr.c (fseterr): Likewise.
45738         * lib/fwritable.c (fwritable): Likewise.
45739         * lib/fwriting.c (fwriting): Likewise.
45740         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
45741
45742 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
45743
45744         * lib/config.charset: Treat Haiku like BeOS.
45745
45746 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
45747
45748         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
45749         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
45750
45751 2008-11-08  Bruno Haible  <bruno@clisp.org>
45752
45753         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
45754         AC_CACHE_CHECK.
45755
45756 2008-11-08  Bruno Haible  <bruno@clisp.org>
45757
45758         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
45759
45760 2008-11-08  Bruno Haible  <bruno@clisp.org>
45761
45762         * tests/test-select-fd.c: New file.
45763         * tests/test-select-in.sh: New file.
45764         * tests/test-select-out.sh: New file.
45765         * tests/test-select-stdin.c: New file.
45766         * modules/select-tests (Files): Add the new files.
45767         (Depends-on): Add gettimeofday.
45768         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
45769         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
45770         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
45771
45772 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
45773             Bruno Haible  <bruno@clisp.org>
45774
45775         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
45776
45777 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
45778
45779         * build-aux/pmccabe2html: Added support for C++ source files.
45780
45781 2008-11-05  Ben Pfaff  <blp@gnu.org>
45782
45783         Fix lib/close.c build on Windows.
45784         * modules/close (Files): Add lib/w32sock.h.
45785
45786 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
45787
45788         Accept Bison's NEWS format.
45789         * build-aux/announce-gen (print_news_deltas): Tweak
45790         $re_prefix.
45791
45792 2008-11-04  Bruno Haible  <bruno@clisp.org>
45793
45794         * modules/random_r (Maintainer): Add glibc.
45795
45796 2008-11-04  Simon Josefsson  <simon@josefsson.org>
45797
45798         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
45799         by karl@freefriends.org (Karl Berry).
45800         * doc/alloca.texi: Likewise.
45801         * doc/c-ctype.texi: Likewise.
45802         * doc/c-strcase.texi: Likewise.
45803         * doc/c-strcaseeq.texi: Likewise.
45804         * doc/c-strcasestr.texi: Likewise.
45805         * doc/c-strstr.texi: Likewise.
45806         * doc/c-strtod.texi: Likewise.
45807         * doc/c-strtold.texi: Likewise.
45808         * doc/ctime.texi: Likewise.
45809         * doc/error.texi: Likewise.
45810         * doc/fdl.texi: Likewise.
45811         * doc/gcd.texi: Likewise.
45812         * doc/getdate.texi: Likewise.
45813         * doc/gnulib-intro.texi: Likewise.
45814         * doc/gnulib-tool.texi: Likewise.
45815         * doc/gnulib.texi: Likewise.
45816         * doc/inet_ntoa.texi: Likewise.
45817         * doc/maintain.texi: Likewise.
45818         * doc/make-stds.texi: Likewise.
45819         * doc/quote.texi: Likewise.
45820         * doc/regexprops-generic.texi: Likewise.
45821         * doc/standards.texi: Likewise.
45822         * doc/verify.texi: Likewise.
45823         * doc/visibility.texi: Likewise.
45824         * doc/gnulib.texi (GNU Free Documentation License): Include
45825         fdl-1.3.texi instead of fdl.texi.
45826
45827 2008-11-04  Simon Josefsson  <simon@josefsson.org>
45828
45829         * doc/fdl-1.3.texi: New file, from
45830         <http://www.gnu.org/licenses/fdl-1.3.texi>.
45831         * modules/fdl-1.3: Add.
45832         * MODULES.html.sh: Add fdl-1.3.
45833
45834 2008-11-03  Bruno Haible  <bruno@clisp.org>
45835
45836         Make determination of absolute name of header file work with AIX xlc.
45837         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
45838         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
45839         preprocessing.
45840         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45841         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
45842
45843 2008-11-03  Simon Josefsson  <simon@josefsson.org>
45844
45845         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
45846         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
45847         <ludo@gnu.org>.
45848
45849 2008-11-02  Bruno Haible  <bruno@clisp.org>
45850
45851         Mark 'strpbrk' obsolete.
45852         * modules/strpbrk (Status, Notice): New sections.
45853         * modules/strtok_r (Depends-on): Add strpbrk.
45854
45855 2008-11-02  Bruno Haible  <bruno@clisp.org>
45856
45857         Mark 'strdup' obsolete.
45858         * modules/strdup (Status, Notice): New sections.
45859         * modules/findprog (Depends-on): Add strdup.
45860         * modules/getaddrinfo (Depends-on): Likewise.
45861         * modules/localename (Depends-on): Likewise.
45862         * modules/relocatable-lib (Depends-on): Likewise.
45863         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
45864         * modules/relocatable-prog (Depends-on): Likewise.
45865         * modules/trim (Depends-on): Likewise.
45866         * modules/unictype/gen-ctype (Depends-on): Likewise.
45867         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
45868
45869 2008-11-02  Bruno Haible  <bruno@clisp.org>
45870
45871         Mark 'strcspn' obsolete.
45872         * modules/strcspn (Status, Notice): New sections.
45873
45874 2008-11-02  Bruno Haible  <bruno@clisp.org>
45875
45876         Mark 'rmdir' obsolete.
45877         * modules/rmdir (Status, Notice): New sections.
45878         * modules/clean-temp (Depends-on): Add rmdir.
45879         * modules/openat (Depends-on): Likewise.
45880
45881 2008-11-02  Bruno Haible  <bruno@clisp.org>
45882
45883         Mark 'raise' obsolete.
45884         * modules/raise (Status, Notice): New sections.
45885         (Include): Specify <signal.h>.
45886         * modules/stdio (Depends-on): Add raise.
45887         * modules/write (Depends-on): Likewise.
45888
45889 2008-11-02  Bruno Haible  <bruno@clisp.org>
45890
45891         Mark 'memset' obsolete.
45892         * modules/memset (Status, Notice): New sections.
45893
45894 2008-11-02  Bruno Haible  <bruno@clisp.org>
45895
45896         Mark 'memmove' obsolete.
45897         * modules/memmove (Status, Notice): New sections.
45898         * modules/argp (Depends-on): Add memmove.
45899         * modules/argz (Depends-on): Likewise.
45900         * modules/canonicalize (Depends-on): Likewise.
45901         * modules/canonicalize-lgpl (Depends-on): Likewise.
45902         * modules/fts (Depends-on): Likewise.
45903         * modules/getcwd (Depends-on): Likewise.
45904         * modules/human (Depends-on): Likewise.
45905         * modules/regex (Depends-on): Likewise.
45906         * modules/striconveh (Depends-on): Likewise.
45907         * modules/trim (Depends-on): Likewise.
45908         * modules/unistr/u8-move (Depends-on): Likewise.
45909         * modules/unistr/u16-move (Depends-on): Likewise.
45910         * modules/unistr/u32-move (Depends-on): Likewise.
45911
45912 2008-11-02  Bruno Haible  <bruno@clisp.org>
45913
45914         Mark 'memcpy' obsolete.
45915         * modules/memcpy (Status, Notice): New sections.
45916
45917 2008-11-02  Bruno Haible  <bruno@clisp.org>
45918
45919         Mark 'memcmp' obsolete.
45920         * modules/memcmp (Status, Notice): New sections.
45921         * modules/argmatch (Depends-on): Add memchr.
45922         * modules/backupfile (Depends-on): Likewise.
45923         * modules/c-strcasestr (Depends-on): Likewise.
45924         * modules/crypto/des (Depends-on): Likewise.
45925         * modules/csharpcomp (Depends-on): Likewise.
45926         * modules/fnmatch (Depends-on): Likewise.
45927         * modules/git-merge-changelog (Depends-on): Likewise.
45928         * modules/isnand (Depends-on): Likewise.
45929         * modules/isnand-nolibm (Depends-on): Likewise.
45930         * modules/isnanf (Depends-on): Likewise.
45931         * modules/isnanf-nolibm (Depends-on): Likewise.
45932         * modules/isnanl (Depends-on): Likewise.
45933         * modules/isnanl-nolibm (Depends-on): Likewise.
45934         * modules/mbchar (Depends-on): Likewise.
45935         * modules/memcoll (Depends-on): Likewise.
45936         * modules/quotearg (Depends-on): Likewise.
45937         * modules/regex (Depends-on): Likewise.
45938         * modules/relocatable-prog (Depends-on): Likewise.
45939         * modules/same (Depends-on): Likewise.
45940         * modules/signbit (Depends-on): Likewise.
45941         * modules/strcasestr-simple (Depends-on): Likewise.
45942         * modules/unictype/gen-ctype (Depends-on): Likewise.
45943         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
45944         * modules/uniname/uniname (Depends-on): Likewise.
45945         * modules/unistr/u8-cmp (Depends-on): Likewise.
45946
45947 2008-11-02  Bruno Haible  <bruno@clisp.org>
45948
45949         Mark 'memchr' obsolete.
45950         * modules/memchr (Status, Notice): New sections.
45951         * modules/argp (Depends-on): Add memchr.
45952         * modules/base64 (Depends-on): Likewise.
45953         * modules/c-strcasestr (Depends-on): Likewise.
45954         * modules/chdir-long (Depends-on): Likewise.
45955         * modules/fnmatch (Depends-on): Likewise.
45956         * modules/getsubopt (Depends-on): Likewise.
45957         * modules/git-merge-changelog (Depends-on): Likewise.
45958         * modules/glob (Depends-on): Likewise.
45959         * modules/strcasestr-simple (Depends-on): Likewise.
45960         * modules/strnlen (Depends-on): Likewise.
45961
45962 2008-11-02  Bruno Haible  <bruno@clisp.org>
45963
45964         Mark 'atexit' obsolete.
45965         * modules/atexit (Status, Notice): New sections.
45966         * modules/chdir-long (Depends-on): Add atexit.
45967         * modules/wait-process (Depends-on): Likewise.
45968
45969 2008-11-02  Bruno Haible  <bruno@clisp.org>
45970
45971         * gnulib-tool: New option --with-obsolete.
45972         (func_usage): Document it.
45973         (func_modules_transitive_closure): Drop obsolete dependencies if
45974         incobsolete is not true.
45975         (func_import): Read and save the incobsolete variable to the cache.
45976
45977 2008-11-02  Bruno Haible  <bruno@clisp.org>
45978
45979         * modules/TEMPLATE-EXTENDED: New field 'Status'.
45980         * gnulib-tool: New option --extract-status.
45981         (func_usage): Document it.
45982         (sed_extract_prog): Recognize it.
45983         (func_get_status): New function.
45984
45985 2008-10-30  Simon Josefsson  <simon@josefsson.org>
45986
45987         * modules/sockets (License): Change from LGPL to LGPLv2+.
45988
45989 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45990
45991         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
45992
45993 2008-10-28  Simon Josefsson  <simon@josefsson.org>
45994
45995         * MODULES.html.sh (Support for systems lacking POSIX:2001):
45996         Mention times and sys_times.
45997         * modules/sys_times, modules/sys_times-tests: New modules.
45998         * modules/times, modules/times-tests: Likewise
45999         * m4/sys_times_h.m4: New file.
46000         * lib/sys_times.in.h: Likewise
46001         * lib/times.c: Likewise.
46002         * tests/test-sys_times.c: Likewise.
46003         * tests/test-times.c: Likewise.
46004         * doc/posix-headers/sys_times.texi: Update.
46005         * doc/posix-functions/times.texi: Update.
46006
46007 2008-10-28  Jim Meyering  <meyering@redhat.com>
46008
46009         * modules/tempname (Depends-on): Add lstat.
46010
46011         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
46012
46013 2008-10-28  Simon Josefsson  <simon@josefsson.org>
46014
46015         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
46016         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
46017         using idiom used elsewhere in gnulib.
46018
46019 2008-10-27  Jim Meyering  <meyering@redhat.com>
46020
46021         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
46022
46023 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46024
46025         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
46026         TESTS_ENVIRONMENT, for shell scripts that needs to call built
46027         programs.
46028         * tests/test-argp-2.sh: Use $EXEEXT when needed.
46029
46030 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46031
46032         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
46033
46034 2008-10-27  Bruno Haible  <bruno@clisp.org>
46035
46036         * tests/test-lstat.c: Include <stdio.h>.
46037
46038 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46039
46040         * modules/lstat-tests: New module.
46041         * tests/test-lstat.c: New file.
46042
46043 2008-10-26  Jim Meyering  <meyering@redhat.com>
46044
46045         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
46046
46047 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46048             Bruno Haible  <bruno@clisp.org>
46049
46050         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
46051         * modules/configmake (Include): Add a note that the include must come
46052         after all system headers.
46053         * lib/javaversion.c: Include configmake.h after all other includes.
46054
46055 2008-10-26  Bruno Haible  <bruno@clisp.org>
46056
46057         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
46058         HAVE_STRUCT_RANDOM_DATA to 1.
46059         (gl_STDLIB_H): Simplify.
46060
46061 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46062
46063         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
46064         substitute HAVE_STRUCT_RANDOM_DATA.
46065         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
46066         random_data.
46067         * modules/stdlib (Makefile.am): Substitute
46068         HAVE_STRUCT_RANDOM_DATA.
46069
46070 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46071
46072         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
46073         * doc/gnulib-intro.texi (Copyright): Likewise.
46074
46075 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46076
46077         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
46078         findings.
46079
46080 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
46081             Bruno Haible  <bruno@clisp.org>
46082
46083         * lib/unistd.in.h: Include <winsock2.h>.
46084         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
46085         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
46086         Provide dummy declarations.
46087         (gethostname): Override.
46088         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
46089         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
46090         gl_PREREQ_SYS_H_WINSOCK2.
46091         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
46092         * doc/posix-functions/gethostname.texi: More details.
46093
46094 2008-10-25  Bruno Haible  <bruno@clisp.org>
46095
46096         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
46097         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
46098         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
46099
46100         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
46101         here ...
46102         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
46103         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
46104         gl_UNISTD_H_DEFAULTS.
46105
46106 2008-10-25  Eric Blake  <ebb9@byu.net>
46107
46108         signbit: avoid spurious compiler failure
46109         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
46110         declarations inside function.
46111
46112 2008-10-24  Simon Josefsson  <simon@josefsson.org>
46113             Bruno Haible  <bruno@clisp.org>
46114
46115         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
46116         * modules/random_r (Depends-on): Add stdint.
46117
46118 2008-10-24  Bruno Haible  <bruno@clisp.org>
46119
46120         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
46121         Eggert.
46122         * modules/strerror (License): Likewise.
46123
46124 2008-10-24  Jim Meyering  <meyering@redhat.com>
46125
46126         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
46127         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
46128
46129 2008-10-24  Eric Blake  <ebb9@byu.net>
46130
46131         getgroups: fix compilation when getgroups is available
46132         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
46133         but with <config.h> override of getgroups disabled.
46134
46135 2008-10-24  Simon Josefsson  <simon@josefsson.org>
46136
46137         * doc/gnulib.texi (Header files): Add note about C++ problems.
46138         Explained by Bruno Haible <bruno@clisp.org>.
46139
46140 2008-10-23  Bruno Haible  <bruno@clisp.org>
46141
46142         Define a dummy SA_NODEFER macro on Interix.
46143         * lib/signal.in.h (SA_NODEFER): Define fallback.
46144         Reported by Aleksey Cheusov <cheusov@tut.by> via
46145         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
46146
46147 2008-10-23  Bruno Haible  <bruno@clisp.org>
46148
46149         * modules/freadahead (License): Change to LGPLv2+.
46150         Suggested by Simon Josefsson.
46151
46152 2008-10-23  Jim Meyering  <meyering@redhat.com>
46153
46154         random_r: new module
46155         * modules/random_r: New file.
46156         * m4/random_r.m4: New file.
46157         * lib/random_r.c: New file, from glibc.
46158         * modules/random_r-tests: New file.
46159         * tests/test-random_r.c: New file.
46160         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
46161          Declare.
46162         (RAND_MAX): Define.
46163         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
46164         * modules/stdlib: Substitute them, too.
46165         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
46166         * doc/glibc-functions/initstate_r.texi: Mention the new module.
46167         * doc/glibc-functions/random_r.texi: Likewise.
46168         * doc/glibc-functions/setstate_r.texi: Likewise.
46169         * doc/glibc-functions/srandom_r.texi: Likewise.
46170         * config/srclist.txt: Mention it.
46171
46172 2008-10-23  David Lutterkort  <lutter@redhat.com>
46173
46174         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
46175         link requirement
46176
46177 2008-10-23  Jim Meyering  <meyering@redhat.com>
46178
46179         selinux-h: mark parameters of stub functions as intentionally unused
46180         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
46181         * lib/se-context.in.h: Likewise.
46182
46183 2008-10-22  Simon Josefsson  <simon@josefsson.org>
46184
46185         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
46186
46187 2008-10-22  Simon Josefsson  <simon@josefsson.org>
46188
46189         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
46190
46191 2008-10-22  Eric Blake  <ebb9@byu.net>
46192
46193         glthread/thread: avoid compiler warning
46194         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
46195         Add unreachable abort to silence compiler.
46196
46197 2008-10-22  Eric Blake  <ebb9@byu.net>
46198
46199         netdb: also supply struct addrinfo for cygwin 1.5.x
46200         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
46201         older cygwin.
46202         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
46203         cygwin.
46204         * doc/posix-headers/netdb.texi (netdb.h): Document this.
46205
46206 2008-10-22  Bruno Haible  <bruno@clisp.org>
46207
46208         * users.txt: Update entry about pspp.
46209
46210 2008-10-21  Bruno Haible  <bruno@clisp.org>
46211
46212         Simplification.
46213         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
46214         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
46215
46216         Simplification.
46217         * lib/ioctl.c (ioctl): Don't undefine.
46218         * lib/socket.c (socket): Don't undefine.
46219
46220         Remove unused module indicator macros.
46221         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
46222         GNULIB_$1 as a C macro.
46223
46224         * doc/posix-functions/close.texi: Undo last change.
46225         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
46226         Windows platforms.
46227
46228 2008-10-21  Bruno Haible  <bruno@clisp.org>
46229
46230         Add gethostname() declaration to <unistd.h>.
46231         * lib/unistd.in.h (gethostname): New declaration.
46232         * lib/gethostname.c: Include <unistd.h>.
46233         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
46234         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
46235         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
46236         and HAVE_GETHOSTNAME.
46237         * modules/gethostname (Depends-on): Add unistd.
46238         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46239         (Include): Specify <unistd.h>.
46240         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
46241         HAVE_GETHOSTNAME.
46242         * tests/test-gethostname.c: Include <unistd.h> first.
46243
46244 2008-10-21  Bruno Haible  <bruno@clisp.org>
46245
46246         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
46247         * modules/select-tests (Depends-on): Likewise.
46248         Reported by Simon Josefsson.
46249
46250 2008-10-21  Simon Josefsson  <simon@josefsson.org>
46251
46252         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
46253         * lib/accept.c: New file, based on winsock.c.
46254         * lib/bind.c: New file, based on winsock.c.
46255         * lib/connect.c: New file, based on winsock.c.
46256         * lib/getpeername.c: New file, based on winsock.c.
46257         * lib/getsockname.c: New file, based on winsock.c.
46258         * lib/getsockopt.c: New file, based on winsock.c.
46259         * lib/ioctl.c: New file, based on winsock.c.
46260         * lib/listen.c: New file, based on winsock.c.
46261         * lib/recv.c: New file, based on winsock.c.
46262         * lib/recvfrom.c: New file, based on winsock.c.
46263         * lib/send.c: New file, based on winsock.c.
46264         * lib/sendto.c: New file, based on winsock.c.
46265         * lib/setsockopt.c: New file, based on winsock.c.
46266         * lib/shutdown.c: New file, based on winsock.c.
46267         * lib/socket.c: New file, based on winsock.c.
46268         * lib/w32sock.h: New file, based on winsock.c.
46269         * lib/winsock.c: Remove file.
46270         * modules/accept: Likewise.
46271         * modules/bind: Likewise.
46272         * modules/connect: Likewise.
46273         * modules/getpeername: Likewise.
46274         * modules/getsockname: Likewise.
46275         * modules/getsockopt: Likewise.
46276         * modules/ioctl: Likewise.
46277         * modules/listen: Likewise.
46278         * modules/recv: Likewise.
46279         * modules/recvfrom: Likewise.
46280         * modules/send: Likewise.
46281         * modules/sendto: Likewise.
46282         * modules/setsockopt: Likewise.
46283         * modules/shutdown: Likewise.
46284         * modules/socket: Use socket.c instead of winsock.c.
46285         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
46286         * doc/posix-functions/accept.texi: Doc fix.
46287         * doc/posix-functions/bind.texi: Doc fix.
46288         * doc/posix-functions/close.texi: Doc fix.
46289         * doc/posix-functions/connect.texi: Doc fix.
46290         * doc/posix-functions/getpeername.texi: Doc fix.
46291         * doc/posix-functions/getsockname.texi: Doc fix.
46292         * doc/posix-functions/getsockopt.texi: Doc fix.
46293         * doc/posix-functions/ioctl.texi: Doc fix.
46294         * doc/posix-functions/listen.texi: Doc fix.
46295         * doc/posix-functions/recv.texi: Doc fix.
46296         * doc/posix-functions/recvfrom.texi: Doc fix.
46297         * doc/posix-functions/send.texi: Doc fix.
46298         * doc/posix-functions/sendto.texi: Doc fix.
46299         * doc/posix-functions/setsockopt.texi: Doc fix.
46300         * doc/posix-functions/shutdown.texi: Doc fix.
46301         * doc/posix-functions/socket.texi: Doc fix.
46302
46303 2008-10-20  Bruno Haible  <bruno@clisp.org>
46304
46305         Take into account the role of SIGABRT_COMPAT on Windows 2008.
46306         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
46307         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
46308         as an alias for SIGABRT.
46309         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
46310         (sigaction): Map it to SIGABRT.
46311         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
46312
46313 2008-10-20  Bruno Haible  <bruno@clisp.org>
46314
46315         * lib/fts.c: Don't include lstat.h.
46316         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
46317
46318         Move the lstat() declaration to <sys/stat.h>.
46319         * lib/lstat.h: Remove file.
46320         * lib/sys_stat.in.h: Add special invocation convention.
46321         (lstat): New declaration.
46322         * lib/lstat.c (orig_lstat): New function.
46323         (rpl_lstat): Use orig_lstat instead of lstat.
46324         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
46325         AC_C_INLINE. Set REPLACE_LSTAT.
46326         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
46327         and REPLACE_LSTAT.
46328         * modules/lstat (Files): Remove lib/lstat.h.
46329         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
46330         (Include): Specify <sys/stat.h> instead of lstat.h.
46331         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
46332         REPLACE_LSTAT.
46333         * NEWS: Mention the change.
46334
46335 2008-10-20  Bruno Haible  <bruno@clisp.org>
46336
46337         * modules/posix_spawn-tests: New file.
46338         * tests/test-posix_spawn3.c: New file.
46339
46340 2008-10-20  Bruno Haible  <bruno@clisp.org>
46341
46342         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
46343         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
46344         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
46345         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
46346         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
46347
46348 2008-10-20  Bruno Haible  <bruno@clisp.org>
46349
46350         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
46351         of posix_spawn on AIX 5.3.
46352
46353 2008-10-20  Bruno Haible  <bruno@clisp.org>
46354
46355         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
46356
46357 2008-10-20  Bruno Haible  <bruno@clisp.org>
46358
46359         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
46360         of AC_LANG_PROGRAM.
46361
46362 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46363
46364         * lib/netdb.in.h: Don't define GNU specific constants until they
46365         are supported or needed.  Reported by Bruno Haible
46366         <bruno@clisp.org>.
46367
46368 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46369
46370         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
46371
46372 2008-10-20  Simon Josefsson  <simon@josefsson.org>
46373
46374         * lib/getaddrinfo.h: Remove file.
46375         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
46376         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
46377         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
46378         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
46379         * modules/netdb: Substitute GNULIB_GETADDRINFO.
46380         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
46381         * tests/test-getaddrinfo.c: Likewise.
46382         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
46383         * NEWS: Mention change.
46384
46385 2008-10-19  Bruno Haible  <bruno@clisp.org>
46386
46387         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
46388
46389 2008-10-19  Bruno Haible  <bruno@clisp.org>
46390
46391         * lib/wait-process.c: Include simply <sys/wait.h>.
46392         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
46393         WIFSTOPPED): Remove fallback definitions.
46394         * modules/wait-process (Depends-on): Add sys_wait.
46395
46396         New module 'sys_wait'.
46397         * modules/sys_wait: New file.
46398         * lib/sys_wait.in.h: New file, partially copied from
46399         lib/wait-process.c.
46400         * m4/sys_wait_h.m4: New file.
46401         * doc/posix-headers/sys_wait.texi: Mention the new module.
46402
46403 2008-10-19  Bruno Haible  <bruno@clisp.org>
46404
46405         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
46406
46407 2008-10-19  Bruno Haible  <bruno@clisp.org>
46408
46409         Assume that waitpid() fills an 'int' status, not a 'union wait'.
46410         * lib/wait-process.c (WAIT_T): Remove type.
46411         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
46412         (wait_subprocess): Update.
46413
46414 2008-10-19  Bruno Haible  <bruno@clisp.org>
46415
46416         New module 'atoll'.
46417         * modules/atoll: New file.
46418         * lib/stdlib.in.h (atoll): New declaration.
46419         * lib/atoll.c: New file, from glibc with modifications.
46420         * m4/atoll.m4: New file.
46421         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
46422         HAVE_ATOLL.
46423         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
46424         * doc/posix-functions/atoll.texi: Mention the new module.
46425
46426 2008-10-19  Bruno Haible  <bruno@clisp.org>
46427
46428         Add strtoull() declaration to <stdlib.h>.
46429         * lib/stdlib.in.h (strtoull): New declaration.
46430         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
46431         Set HAVE_STRTOULL.
46432         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
46433         HAVE_STRTOULL.
46434         * modules/strtoull (Depends-on): Add stdlib.
46435         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46436         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
46437         HAVE_STRTOULL.
46438
46439 2008-10-19  Bruno Haible  <bruno@clisp.org>
46440
46441         Add strtoll() declaration to <stdlib.h>.
46442         * lib/stdlib.in.h (strtoll): New declaration.
46443         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
46444         Set HAVE_STRTOLL.
46445         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
46446         HAVE_STRTOLL.
46447         * modules/strtoll (Depends-on): Add stdlib.
46448         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46449         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
46450
46451 2008-10-19  Bruno Haible  <bruno@clisp.org>
46452
46453         * modules/bcopy (Depends-on): Add strings.
46454         (Include): Specify <strings.h>.
46455
46456 2008-10-19  Bruno Haible  <bruno@clisp.org>
46457
46458         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
46459
46460 2008-10-19  Bruno Haible  <bruno@clisp.org>
46461
46462         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
46463         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
46464         mingw.
46465
46466 2008-10-19  Bruno Haible  <bruno@clisp.org>
46467
46468         * lib/atanl.c: Don't include isnanl.h.
46469         * lib/cosl.c: Likewise.
46470         * lib/ldexpl.c: Likewise.
46471         * lib/logl.c: Likewise.
46472         * lib/sinl.c: Likewise.
46473         * lib/sqrtl.c: Likewise.
46474         * lib/tanl.c: Likewise.
46475
46476         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
46477         * lib/isnanf.h: Remove file.
46478         * lib/isnand.h: Remove file.
46479         * lib/isnanl.h: Remove file.
46480         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
46481         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
46482         macros.
46483         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
46484         HAVE_ISNANF, don't define it as a C macro.
46485         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
46486         HAVE_ISNAND, don't define it as a C macro.
46487         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
46488         HAVE_ISNANL, don't define it as a C macro.
46489         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
46490         HAVE_ISNAN[FDL].
46491         * modules/isnanf (Files): Remove lib/isnanf.h.
46492         (Depends-on): Add math.
46493         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46494         (Include): Specify <math.h> instead of isnanf.h.
46495         * modules/isnand (Files): Remove lib/isnand.h.
46496         (Depends-on): Add math.
46497         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46498         (Include): Specify <math.h> instead of isnand.h.
46499         * modules/isnanl (Files): Remove lib/isnanl.h.
46500         (Depends-on): Add math.
46501         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46502         (Include): Specify <math.h> instead of isnanl.h.
46503         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
46504         HAVE_ISNAN[FDL].
46505         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
46506         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
46507         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
46508         * NEWS: Mention the change.
46509
46510 2008-10-18  Bruno Haible  <bruno@clisp.org>
46511
46512         Add getusershell(), setusershell(), endusershell() declarations to
46513         <unistd.h>.
46514         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
46515         declarations.
46516         * lib/getusershell.c: Include unistd.h.
46517         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
46518         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
46519         HAVE_GETUSERSHELL.
46520         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
46521         and HAVE_GETUSERSHELL.
46522         * modules/getusershell (Depends-on): Add unistd, extensions.
46523         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46524         (Include): Specify <unistd.h>.
46525         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
46526         HAVE_GETUSERSHELL.
46527
46528 2008-10-18  Bruno Haible  <bruno@clisp.org>
46529
46530         Add a getloadavg() declaration to <stdlib.h>.
46531         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
46532         getloadavg declaration.
46533         (getloadavg): New declaration.
46534         * lib/getloadavg.c: Include <stdlib.h> first.
46535         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
46536         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
46537         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
46538         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
46539         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
46540         * modules/getloadavg (Depends-on): Add stdlib, extensions.
46541         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46542         (Include): Specify <stdlib.h>.
46543         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
46544         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
46545
46546 2008-10-18  Bruno Haible  <bruno@clisp.org>
46547
46548         * lib/dirchownmod.c: Don't include lchmod.h.
46549
46550         Move the lchmod() declaration to <sys/stat.h>.
46551         * lib/lchmod.h: Remove file.
46552         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
46553         (lchmod): New declaration, moved here from lib/lchown.h.
46554         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
46555         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
46556         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
46557         and HAVE_LCHMOD.
46558         * modules/lchmod (Files): Remove lib/lchmod.h.
46559         (Depends-on): Add sys_stat, extensions.
46560         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
46561         (Include): Specify <sys/stat.h> instead of lchmod.h.
46562         * modules/sys_stat (Depends-on): Add link-warning.
46563         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
46564         definition of GL_LINK_WARNING.
46565         * NEWS: Mention the change.
46566
46567 2008-10-18  Bruno Haible  <bruno@clisp.org>
46568
46569         * lib/fchdir.c: Don't include dirfd.h.
46570         * lib/fts.c: Likewise.
46571         * lib/getcwd.c: Likewise.
46572         * lib/glob.c: Likewise.
46573
46574         Move the dirfd() declaration to <dirent.h>.
46575         * lib/dirfd.h: Remove file.
46576         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
46577         (dirfd): New declaration.
46578         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
46579         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
46580         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
46581         HAVE_DECL_DIRFD.
46582         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
46583         HAVE_DECL_DIRFD.
46584         * modules/dirfd (Files): Remove lib/dirfd.h.
46585         (Depends-on): Add dirent, extensions.
46586         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
46587         (Include): Specify <dirent.h> instead of dirfd.h.
46588         * modules/dirent (Depends-on): Add link-warning.
46589         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
46590         definition of GL_LINK_WARNING.
46591         * NEWS: Mention the change.
46592
46593 2008-10-18  Bruno Haible  <bruno@clisp.org>
46594
46595         Move the euidaccess() declaration to <unistd.h>.
46596         * lib/euidaccess.h: Remove file.
46597         * lib/unistd.in.h (euidaccess): New declaration.
46598         * lib/euidaccess.c: Don't include euidaccess.h.
46599         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
46600         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
46601         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
46602         and HAVE_EUIDACCESS.
46603         * modules/euidaccess (Files): Remove lib/euidaccess.h.
46604         (Depends-on): Add unistd.
46605         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46606         (Include): Specify <unistd.h> instead of euidaccess.h.
46607         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
46608         HAVE_EUIDACCESS.
46609         * NEWS: Mention the change.
46610
46611 2008-10-18  Bruno Haible  <bruno@clisp.org>
46612
46613         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
46614
46615         Move the getdomainname() declaration to <unistd.h>.
46616         * lib/getdomainname.h: Remove file.
46617         * lib/unistd.in.h (getdomainname): New declaration.
46618         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
46619         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
46620         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
46621         HAVE_GETDOMAINNAME.
46622         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46623         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
46624         * modules/getdomainname (Files): Remove lib/getdomainname.h.
46625         (Depends-on): Add unistd, extensions.
46626         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
46627         (Includes): Specify <unistd.h> instead of getdomainname.h.
46628         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
46629         HAVE_GETDOMAINNAME.
46630         * NEWS: Mention the change.
46631
46632 2008-10-18  Bruno Haible  <bruno@clisp.org>
46633
46634         * modules/dirent: New file.
46635         * m4/dirent_h.m4: New file.
46636         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
46637         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
46638         * modules/fchdir (Files): Remove lib/dirent.in.h.
46639         (Depends-on): Add dirent.
46640         (Makefile.am): Move rules to modules/dirent.
46641         * doc/posix-headers/dirent.texi: Mention the new module.
46642
46643 2008-10-18  Bruno Haible  <bruno@clisp.org>
46644
46645         Avoid -Wunused-parameter warnings in public gnulib header files.
46646         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
46647         macro.
46648         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
46649
46650 2008-10-18  Bruno Haible  <bruno@clisp.org>
46651
46652         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
46653         * doc/glibc-functions/error.texi: Mention the module 'error'.
46654         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
46655         * doc/glibc-functions/getdomainname.texi: Mention the module
46656         'getdomainname'.
46657         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
46658         * doc/glibc-functions/getpagesize.texi: Mention the module
46659         'getpagesize'.
46660         * doc/glibc-functions/getusershell.texi: Mention the module
46661         'getusershell'.
46662         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
46663         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
46664         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
46665         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
46666         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
46667         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
46668         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
46669         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
46670         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
46671         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
46672         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
46673         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
46674         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
46675         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
46676
46677 2008-10-17  Bruno Haible  <bruno@clisp.org>
46678
46679         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
46680         HP-UX and IRIX, use -0.0L.
46681         * tests/test-ceill.c (minus_zero): Likewise.
46682         * tests/test-floorl.c (minus_zero): Likewise.
46683         * tests/test-frexpl.c (minus_zero): Likewise.
46684         * tests/test-isnan.c (minus_zerol): Likewise.
46685         * tests/test-isnanl.h (minus_zero): Likewise.
46686         * tests/test-ldexpl.c (minus_zero): Likewise.
46687         * tests/test-roundl.c (minus_zero): Likewise.
46688         * tests/test-signbit.c (minus_zerol): Likewise.
46689         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
46690         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
46691         * tests/test-truncl.c (minus_zero): Likewise.
46692         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
46693         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
46694         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
46695         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
46696
46697 2008-10-17  Bruno Haible  <bruno@clisp.org>
46698
46699         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
46700         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
46701         that it gets activated only for gcc >= 3.0.
46702         * lib/dirent.in.h: Likewise.
46703         * lib/errno.in.h: Likewise.
46704         * lib/fcntl.in.h: Likewise.
46705         * lib/float.in.h: Likewise.
46706         * lib/iconv.in.h: Likewise.
46707         * lib/inttypes.in.h: Likewise.
46708         * lib/locale.in.h: Likewise.
46709         * lib/math.in.h: Likewise.
46710         * lib/netdb.in.h: Likewise.
46711         * lib/netinet_in.in.h: Likewise.
46712         * lib/search.in.h: Likewise.
46713         * lib/signal.in.h: Likewise.
46714         * lib/spawn.in.h: Likewise.
46715         * lib/stdarg.in.h: Likewise.
46716         * lib/stdint.in.h: Likewise.
46717         * lib/stdio.in.h: Likewise.
46718         * lib/stdlib.in.h: Likewise.
46719         * lib/string.in.h: Likewise.
46720         * lib/strings.in.h: Likewise.
46721         * lib/sys_file.in.h: Likewise.
46722         * lib/sys_ioctl.in.h: Likewise.
46723         * lib/sys_select.in.h: Likewise.
46724         * lib/sys_socket.in.h: Likewise.
46725         * lib/sys_stat.in.h: Likewise.
46726         * lib/sys_time.in.h: Likewise.
46727         * lib/sysexits.in.h: Likewise.
46728         * lib/time.in.h: Likewise.
46729         * lib/unistd.in.h: Likewise.
46730         * lib/wchar.in.h: Likewise.
46731         * lib/wctype.in.h: Likewise.
46732         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46733
46734 2008-10-17  Jim Meyering  <meyering@redhat.com>
46735
46736         ignore-value: don't depend on inline module
46737         * modules/ignore-value (Depends-on): Remove 'inline'.
46738         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
46739         Suggestion from Bruno Haible.
46740
46741 2008-10-17  Bruno Haible  <bruno@clisp.org>
46742
46743         New implementation of condition variables for Win32.
46744         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
46745         (gl_linked_waitqueue_t): New type.
46746         (gl_cond_t): Use it.
46747         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
46748         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
46749         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
46750         (glthread_cond_init_func, glthread_cond_wait_func,
46751         glthread_cond_timedwait_func, glthread_cond_signal_func,
46752         glthread_cond_broadcast_func, glthread_cond_destroy_func):
46753         Reimplemented on the basis of gl_linked_waitqueue_t.
46754         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
46755         gl_waitqueue_t.
46756         (gl_rwlock_t): Update.
46757         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
46758
46759 2008-10-17  Simon Josefsson  <simon@josefsson.org>
46760
46761         * modules/recvfrom (Depends-on): Add dependency on getpeername.
46762         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46763
46764 2008-10-17  Jim Meyering  <meyering@redhat.com>
46765
46766         ignore-value: new module
46767         * modules/ignore-value: New file.
46768         * lib/ignore-value.h: New file.
46769         * MODULES.html.sh (Compiler warning management): New section,
46770         just for this module.  More to come.
46771
46772 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
46773
46774         open-safer.c: avoid 'signed and unsigned in conditional...' warning
46775         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
46776         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
46777
46778 2008-10-16  Jim Meyering  <meyering@redhat.com>
46779
46780         openat-die.c: avoid 'no previous prototype' warning
46781         * lib/openat-die.c: Include "openat.h".
46782         Reported by Reuben Thomas <rrt@sc3d.org>.
46783
46784 2008-10-16  Simon Josefsson  <simon@josefsson.org>
46785
46786         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
46787         * lib/netdb.in.h: Fix typo.
46788         Reported by Bruno Haible  <bruno@clisp.org>
46789
46790         * lib/netdb.in.h: Include sys/socket.h for platforms without
46791         netdb.h, to get structures like hostent on MinGW.
46792         * modules/netdb (Depends-on): Add sys_socket.
46793
46794 2008-10-15  Simon Josefsson  <simon@josefsson.org>
46795
46796         * modules/netdb, modules/netdb-tests: New file.
46797         * m4/netdb_h.m4: New file.
46798         * lib/netdb.in.h: Add, currently just an empty file pending
46799         definitions.
46800         * tests/test-netdb.c: New file.
46801         * doc/posix-headers/netdb.texi: Mention that we replace it if
46802         needed.
46803         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46804         netdb.
46805
46806 2008-10-15  Simon Josefsson  <simon@josefsson.org>
46807
46808         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
46809         with code.
46810
46811 2008-10-13  Bruno Haible  <bruno@clisp.org>
46812
46813         * lib/glthread/cond.c (glthread_cond_wait_func,
46814         glthread_cond_timedwait_func): Add a comment.
46815
46816 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46817
46818         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
46819         * tests/test-select.c: Likewise,
46820
46821 2008-10-13  Bruno Haible  <bruno@clisp.org>
46822
46823         * lib/glthread/cond.c (glthread_cond_wait_func,
46824         glthread_cond_timedwait_func): Fix variable name.
46825         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46826
46827 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
46828
46829         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
46830         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
46831         struct sockaddr.sa_len.
46832         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
46833
46834 2008-10-13  Simon Josefsson  <simon@josefsson.org>
46835
46836         * build-aux/pmccabe2html: Add css and css_url parameters.
46837
46838 2008-10-12  Bruno Haible  <bruno@clisp.org>
46839
46840         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
46841         calling aclx_get.
46842         Reported by Rainer Tammer <tammer@tammer.net>.
46843
46844 2008-10-12  Bruno Haible  <bruno@clisp.org>
46845
46846         Use msvcrt aware primitives for creation/termination of Win32 threads.
46847         * lib/glthread/thread.c: Include <process.h>.
46848         (glthread_create_func): Use _beginthreadex instead of CreateThread.
46849         (wrapper_func): Update signature.
46850         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
46851
46852 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46853             Bruno Haible  <bruno@clisp.org>
46854
46855         Provide a Win32 implementation of the 'cond' module.
46856         * lib/glthread/cond.h [USE_WIN32]: New implementation.
46857         * lib/glthread/cond.c (glthread_cond_init_func,
46858         glthread_cond_wait_func, glthread_cond_timedwait_func,
46859         glthread_cond_signal_func, glthread_cond_broadcast_func,
46860         glthread_cond_destroy_func) [USE_WIN32]: New functions.
46861         * modules/cond (Dependencies): Add gettimeofday.
46862
46863 2008-10-11  Bruno Haible  <bruno@clisp.org>
46864
46865         Make sleep work on older versions of mingw.
46866         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
46867         only whether it exists.
46868         * doc/posix-functions/sleep.texi: Mention the problem with older
46869         versions of mingw.
46870
46871 2008-10-11  Bruno Haible  <bruno@clisp.org>
46872
46873         New module 'shutdown'.
46874         * modules/shutdown: New file.
46875         * lib/sys_socket.in.h (shutdown): New declaration.
46876         * lib/winsock.c (shutdown): New function.
46877         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
46878         GNULIB_SHUTDOWN.
46879         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
46880         * doc/posix-functions/shutdown.texi: Document the new module.
46881
46882 2008-10-11  Jim Meyering  <meyering@redhat.com>
46883
46884         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
46885
46886 2008-10-11  Bruno Haible  <bruno@clisp.org>
46887
46888         New module 'fclose'.
46889         * modules/fclose: New file.
46890         * lib/stdio.in.h (fclose): New declaration.
46891         * lib/fclose.c: New file.
46892         * m4/fclose.m4: New file.
46893         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
46894         REPLACE_FCLOSE.
46895         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
46896         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
46897         REPLACE_FCLOSE.
46898         * modules/close (Depends-on): fclose.
46899         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
46900
46901 2008-10-11  Bruno Haible  <bruno@clisp.org>
46902
46903         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
46904         set errno and don't call _close.
46905
46906 2008-10-10  Bruno Haible  <bruno@clisp.org>
46907
46908         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
46909         ACL, not afterwards. Fixes test failure on Cygwin.
46910
46911 2008-10-09  Ben Pfaff  <blp@gnu.org>
46912
46913         * build-aux/announce-gen: Fix gnulib version related part of usage
46914         message.  Die with a useful error message if no tarballs are
46915         found.
46916
46917 2008-10-10  Jim Meyering  <meyering@redhat.com>
46918
46919         bootstrap: use git's --depth=N option only if it's supported
46920         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
46921         recognize the --depth option.  Reported by Pádraig Brady.
46922
46923 2008-10-09  Bruno Haible  <bruno@clisp.org>
46924
46925         New module 'ioctl'.
46926         * modules/ioctl: New file.
46927         * lib/sys_socket.in.h (ioctl): Remove declaration.
46928         * lib/winsock.c: Include <sys/ioctl.h>.
46929         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
46930         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
46931         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
46932         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
46933         * doc/posix-functions/ioctl.texi: Mention the new module.
46934
46935 2008-10-09  Bruno Haible  <bruno@clisp.org>
46936
46937         New module 'sys_ioctl'.
46938         * lib/sys_ioctl.in.h: New file.
46939         * m4/sys_ioctl_h.m4: New file.
46940         * modules/sys_ioctl: New file.
46941         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
46942
46943 2008-10-09  Bruno Haible  <bruno@clisp.org>
46944
46945         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
46946         * lib/winsock.c: Include <stdarg.h>.
46947         (rpl_ioctl): Change to second argument 'int' and then varargs.
46948
46949 2008-10-09  Bruno Haible  <bruno@clisp.org>
46950
46951         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
46952         when the sys_socket module is present and the system has <winsock2.h>.
46953
46954 2008-10-09  Bruno Haible  <bruno@clisp.org>
46955
46956         * doc/posix-functions/close.texi: Mention module 'close' instead of
46957         module 'sys_socket'.
46958
46959 2008-10-09  Bruno Haible  <bruno@clisp.org>
46960
46961         * doc/glibc-headers/sys_ioctl.texi: New file.
46962         * doc/gnulib.texi: Include it.
46963
46964 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46965             Bruno Haible  <bruno@clisp.org>
46966
46967         Combine the two replacements of 'close'.
46968         * lib/sys_socket.in.h (close): Define to a reminder to include
46969         <unistd.h>.
46970         (_gl_close_fd_maybe_socket): New declaration.
46971         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
46972         * lib/winsock.c (close): Remove undefinition.
46973         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
46974         needed for the gnulib module 'close'.
46975         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
46976         define to an error symbol or to a warning, if suitable.
46977         * lib/close.c: Include <sys/socket.h>.
46978         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
46979         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
46980         UNISTD_H_HAVE_WINSOCK2_H.
46981         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
46982         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46983         UNISTD_H_HAVE_WINSOCK2_H.
46984         * modules/sys_socket (Files): Add m4/unistd_h.m4.
46985         (configure.ac): Set a module indicator.
46986         (Makefile.am): Substitute GNULIB_CLOSE.
46987         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
46988         * modules/poll-tests (Depends-on): Add close.
46989         * modules/select-tests (Depends-on): Likewise.
46990
46991 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
46992             Bruno Haible  <bruno@clisp.org>
46993
46994         New module 'close'.
46995         * modules/close: New file.
46996         * lib/unistd.in.h (close): Move declaration out of the
46997         FCHDIR_REPLACEMENT scope.
46998         (_gl_unregister_fd): New declaration.
46999         * lib/close.c: New file.
47000         * lib/fchdir.c (rpl_close): Remove function.
47001         * m4/close.m4: New file.
47002         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
47003         close.
47004         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
47005         REPLACE_CLOSE.
47006         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
47007         REPLACE_CLOSE.
47008         * modules/fchdir (Depends-on): Add close.
47009
47010 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47011             Bruno Haible  <bruno@clisp.org>
47012
47013         * lib/fcntl.in.h (open): Simplify conditionals.
47014         (_gl_register_fd): New declaration.
47015         * lib/fchdir.c (rpl_open): Remove function.
47016         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
47017         also.
47018         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
47019         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
47020         open.
47021
47022 2008-10-09  Jim Meyering  <meyering@redhat.com>
47023
47024         GNUmakefile: use the more name-space-friendly "_version"
47025         * top/GNUmakefile (_dummy): Update.
47026         (_version): Rename from "version".
47027
47028 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47029             Bruno Haible  <bruno@clisp.org>
47030
47031         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
47032         rpl_close.
47033         (_gl_register_fd): New function, extracted from rpl_open.
47034         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
47035         (rpl_open, rpl_opendir): Use _gl_register_fd.
47036
47037 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47038
47039         Fix organization of 'open' replacement.
47040         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
47041         (gl_FUNC_OPEN): Use it.
47042         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
47043
47044 2008-10-08  Bruno Haible  <bruno@clisp.org>
47045
47046         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
47047
47048 2008-10-08  Simon Josefsson  <simon@josefsson.org>
47049
47050         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
47051         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
47052         listen).
47053
47054 2008-10-08  Eric Blake  <ebb9@byu.net>
47055
47056         GNUmakefile: add 'make version' target
47057         * top/GNUmakefile (_curr-ver): Split version update rules...
47058         (version): ...into a target.
47059
47060 2008-10-07  Bruno Haible  <bruno@clisp.org>
47061
47062         Use a more portable replacement expression for -0.0L.
47063         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
47064         instead of -0.0L. Fix m4 quotation.
47065
47066         * tests/test-signbit.c: Include <float.h>.
47067         (minus_zero): New variable.
47068         (test_signbitl): Use minus_zero instead of -zero.
47069         * modules/signbit-tests (Depends-on): Add float.
47070
47071         * tests/test-ceill.c: Include <float.h>.
47072         (zero): Remove variable.
47073         (minus_zero): New variable.
47074         (main): Use minus_zero instead of -zero.
47075         * modules/ceill-tests (Depends-on): Add float.
47076
47077         * tests/test-floorl.c: Include <float.h>.
47078         (zero): Remove variable.
47079         (minus_zero): New variable.
47080         (main): Use minus_zero instead of -zero.
47081         * modules/floorl-tests (Depends-on): Add float.
47082
47083         * tests/test-roundl.c: Include <float.h>.
47084         (zero): Remove variable.
47085         (minus_zero): New variable.
47086         (main): Use minus_zero instead of -zero.
47087         * modules/roundl-tests (Depends-on): Add float.
47088
47089         * tests/test-truncl.c: Include <float.h>.
47090         (zero): Remove variable.
47091         (minus_zero): New variable.
47092         (main): Use minus_zero instead of -zero.
47093         * modules/truncl-tests (Depends-on): Add float.
47094
47095         * tests/test-frexpl.c (zero): Remove variable.
47096         (minus_zero): New variable.
47097         (main): Use minus_zero instead of -zero.
47098         * modules/frexpl-tests (Depends-on): Add float.
47099
47100         * tests/test-isnan.c (zerol): Remove variable.
47101         (minus_zerol): New variable.
47102         (test_long_double): Use minus_zerol instead of -zerol.
47103         * modules/isnan-tests (Depends-on): Add float.
47104
47105         * tests/test-isnanl.h (zero): Remove variable.
47106         (minus_zero): New variable.
47107         (main): Use minus_zero instead of -zero.
47108         * modules/isnanl-nolibm-tests (Depends-on): Add float.
47109         * modules/isnanl-tests (Depends-on): Add float.
47110
47111         * tests/test-ldexpl.c (zero): Remove variable.
47112         (minus_zero): New variable.
47113         (main): Use minus_zero instead of -zero.
47114         * modules/ldexpl-tests (Depends-on): Add float.
47115
47116         * tests/test-snprintf-posix.h (zerol): Remove variable.
47117         (minus_zerol): New variable.
47118         (test_function): Use minus_zerol instead of -zerol.
47119         * modules/snprintf-posix-tests (Depends-on): Add float.
47120         * modules/vsnprintf-posix-tests (Depends-on): Add float.
47121
47122         * tests/test-sprintf-posix.h (zerol): Remove variable.
47123         (minus_zerol): New variable.
47124         (test_function): Use minus_zerol instead of -zerol.
47125         * modules/sprintf-posix-tests (Depends-on): Add float.
47126         * modules/vsprintf-posix-tests (Depends-on): Add float.
47127
47128         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
47129         (minus_zerol): New variable.
47130         (test_function): Use minus_zerol instead of -zerol.
47131         * modules/vasnprintf-posix-tests (Depends-on): Add float.
47132
47133         * tests/test-vasprintf-posix.c (zerol): Remove variable.
47134         (minus_zerol): New variable.
47135         (test_function): Use minus_zerol instead of -zerol.
47136         * modules/vasprintf-posix-tests (Depends-on): Add float.
47137
47138 2008-10-07  Simon Josefsson  <simon@josefsson.org>
47139
47140         * MODULES.html.sh (Support for building documentation): Mention
47141         pmccabe2html.  Sort entries.
47142
47143         Add pmccabe2html module, from gnupdf.
47144         * build-aux/pmccabe.css: New file.
47145         * build-aux/pmccabe2html: New file.
47146         * m4/pmccabe2html.m4: New file.
47147         * modules/pmccabe2html: New file.
47148
47149 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
47150
47151         flock: new module
47152         * MODULES.html.sh: Add to list of modules.
47153         * lib/flock.c: flock implementation for Windows and Unix systems
47154         which have fcntl.
47155         * doc/glibc-functions/flock.texi: Update documentation.
47156         * lib/sys_file.in.h: <sys/file.h> header file.
47157         * m4/flock.m4: M4 macros.
47158         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
47159         * modules/flock: flock module.
47160         * modules/flock-tests: flock tests module.
47161         * modules/sys_file: sys/file.h module.
47162         * tests/test-flock.c: test suite for flock.
47163
47164 2008-10-06  Jim Meyering  <meyering@redhat.com>
47165
47166         bootstrap: check for LT_INIT more portably still ;-)
47167         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
47168         Spotted by Bruno Haible.
47169
47170 2008-10-06  Eric Blake  <ebb9@byu.net>
47171
47172         test-signbit: avoid tripping Irix cc bug on -0.0L
47173         * tests/test-signbit.c (minus_zerol): Delete, and replace with
47174         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
47175         entire testsuite consistent and avoids an Irix 6.2 bug.
47176
47177 2008-10-05  Bruno Haible  <bruno@clisp.org>
47178             Jim Meyering  <jim@meyering.net>
47179
47180         Add an option for ignoring EPIPE during close_stdout.
47181         * lib/closeout.h: Include <stdbool.h>.
47182         (close_stdout_set_ignore_EPIPE): New declaration.
47183         * lib/closeout.c: Include <stdbool.h>.
47184         (ignore_EPIPE): New variable.
47185         (close_stdout_set_ignore_EPIPE): New function.
47186         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
47187         * lib/close-stream.c (close_stream): Mention the possible EPIPE
47188         failure.
47189         * modules/closeout (Depends-on): Add stdbool.
47190
47191 2008-10-05  Bruno Haible  <bruno@clisp.org>
47192
47193         * modules/accept: New file.
47194         * modules/bind: New file.
47195         * modules/connect: New file.
47196         * modules/getpeername: New file.
47197         * modules/getsockname: New file.
47198         * modules/getsockopt: New file.
47199         * modules/listen: New file.
47200         * modules/recv: New file.
47201         * modules/recvfrom: New file.
47202         * modules/send: New file.
47203         * modules/sendto: New file.
47204         * modules/setsockopt: New file.
47205         * modules/socket: New file.
47206         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
47207         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
47208         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
47209         the particular module is requested. Add a link warning when the
47210         particular module is not requested.
47211         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
47212         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
47213         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
47214         the particular module is requested.
47215         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
47216         gl_SYS_SOCKET_H_DEFAULTS): New macros.
47217         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
47218         * modules/sys_socket (Depends-on): Add link-warning.
47219         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
47220         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
47221         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
47222         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
47223         GL_LINK_WARNING.
47224         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
47225         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
47226         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
47227         * doc/posix-functions/getpeername.texi: Mention the new module
47228         'getpeername'.
47229         * doc/posix-functions/getsockname.texi: Mention the new module
47230         'getsockname'.
47231         * doc/posix-functions/getsockopt.texi: Mention the new module
47232         'getsockopt'.
47233         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
47234         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
47235         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
47236         * doc/posix-functions/send.texi: Mention the new module 'send'.
47237         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
47238         * doc/posix-functions/setsockopt.texi: Mention the new module
47239         'setsockopt'.
47240         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
47241         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
47242         listen, connect, accept.
47243         * modules/select-tests (Depends-on): Likewise.
47244
47245 2008-10-05  Bruno Haible  <bruno@clisp.org>
47246
47247         * lib/winsock.c (strerror): Remove unused #undef.
47248         (rpl_close): Remove unused local variable.
47249
47250         * modules/sys_socket (Depends-on); Add errno.
47251
47252 2008-10-05  Bruno Haible  <bruno@clisp.org>
47253
47254         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
47255         (select): Add a link warning when the 'select' module is not used.
47256         * modules/sys_select (Depends-on): Add link-warning.
47257         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
47258         Suggested by Paolo Bonzini.
47259
47260 2008-10-05  Jim Meyering  <meyering@redhat.com>
47261
47262         bootstrap: check for LT_INIT more portably
47263         * build-aux/bootstrap: Avoid using grep -E, since it's not
47264         portable enough.  Suggestion from Bruno Haible.
47265
47266 2008-10-05  Bruno Haible  <bruno@clisp.org>
47267
47268         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
47269         as being fixed by gnulib.
47270
47271 2008-10-05  Bruno Haible  <bruno@clisp.org>
47272
47273         * modules/select-tests: New file, mostly copied from
47274         modules/sys_select-tests.
47275         * tests/test-select.c: New file, mostly copied from
47276         tests/test-sys_select.c.
47277         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
47278         * modules/sys_select-tests (Depends-on): Remove all dependencies.
47279         (Makefile.am): Remove test_sys_select_LDADD.
47280
47281         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
47282         to an undefined symbol, for an error message.
47283         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
47284         (gl_SYS_SELECT_H_DEFAULTS): New macro.
47285         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
47286         winsock-select.c here.
47287         * modules/sys_select (Files): Remove lib/winsock-select.c.
47288         (Depends-on): Remove alloca.
47289         (Makefile.am): Substitute GNULIB_SELECT.
47290         * modules/select: New file.
47291         * doc/posix-functions/select.texi: Update.
47292
47293 2008-10-05  Bruno Haible  <bruno@clisp.org>
47294
47295         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
47296         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
47297         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
47298         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
47299         getdtablesize.
47300         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
47301         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
47302
47303 2008-10-05  Bruno Haible  <bruno@clisp.org>
47304
47305         * modules/getdtablesize-tests: New file.
47306         * tests/test-getdtablesize.c: New file.
47307
47308         New module 'getdtablesize'.
47309         * lib/unistd.in.h (getdtablesize): New declaration.
47310         * lib/getdtablesize.c: New file.
47311         * m4/getdtablesize.m4: New file.
47312         * modules/getdtablesize: New file.
47313         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47314         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
47315         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
47316         HAVE_GETDTABLESIZE.
47317         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
47318
47319 2008-10-05  Bruno Haible  <bruno@clisp.org>
47320
47321         * modules/sched (Makefile.am): Fix typo.
47322         Reported by Simon Josefsson.
47323
47324 2008-10-05  Jim Meyering  <meyering@redhat.com>
47325
47326         bootstrap: check for LT_INIT, too
47327         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
47328         are deprecated.  Suggestion from Ralf Wildenhues.
47329
47330 2008-10-05  Bruno Haible  <bruno@clisp.org>
47331
47332         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
47333         overriding them by ours.
47334         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
47335
47336 2008-10-05  Jim Meyering  <meyering@redhat.com>
47337
47338         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
47339         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
47340         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
47341
47342 2008-10-04  Bruno Haible  <bruno@clisp.org>
47343
47344         * modules/dup2 (License): Change to LGPLv2+.
47345         * modules/sleep (License): Likewise.
47346         * modules/perror (License): Likewise.
47347         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
47348         Blake.
47349         * modules/signal (License): Likewise.
47350         * modules/sigprocmask (License): Likewise.
47351         * modules/raise (License): Change to LGPLv2+, with approval by Jim
47352         Meyering.
47353
47354 2008-10-04  Bruno Haible  <bruno@clisp.org>
47355
47356         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
47357         Reported by Rainer Tammer <tammer@tammer.net>.
47358
47359 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
47360             Bruno Haible  <bruno@clisp.org>
47361
47362         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
47363         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
47364         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
47365
47366 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
47367
47368         filevercmp: new module
47369         * lib/filevercmp.h: New function filevercmp comparing version strings.
47370         * lib/filevercmp.c: Implementation of filevercmp function.
47371         * modules/filevercmp: Module metadata.
47372         * tests/test-filevercmp.c: Unit test for new module.
47373         * modules/filevercmp-tests: Unit test metadata.
47374         * MODULES.html.sh: Add filevercmp module.
47375
47376 2008-10-03  Bruno Haible  <bruno@clisp.org>
47377
47378         * lib/c-ctype.h: Add comment.
47379         Reported by Jim Meyering.
47380
47381 2008-10-02  Bruno Haible  <bruno@clisp.org>
47382
47383         * modules/posix_spawn-internal (Depends-on): Add 'open'.
47384
47385 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47386
47387         * build-aux/bootstrap: Allow renaming bootstrap, and change the
47388         name of bootstrap.conf accordingly.
47389
47390 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47391
47392         * build-aux/bootstrap: Install git-merge-changelog configuration
47393         items into .gitconfig if needed.
47394
47395 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
47396
47397         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
47398         git repository, and initialize/update it accordingly.
47399
47400 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
47401
47402         * modules/fsync-tests: New file.
47403         * tests/test-fsync.c: New file.
47404
47405         New module 'fsync'.
47406         * lib/fsync.c: New file.
47407         * m4/fsync.m4: New file.
47408         * modules/fsync: New file.
47409         * lib/unistd.in.h (fsync): New declaration.
47410         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
47411         GNULIB_FSYNC and HAVE_FSYNC.
47412         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
47413         * MODULES.html.sh (posix_functions): Add fsync.
47414         * doc/posix-functions/fsync.texi: Mention the new module.
47415
47416 2008-10-02  Jim Meyering  <meyering@redhat.com>
47417
47418         fts.c: sync with similar code from coreutils' remove.c
47419         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
47420         Guard also with "#if defined __linux__", since for now at least,
47421         this code is Linux-kernel-specific.
47422
47423 2008-10-02  Jim Meyering  <meyering@redhat.com>
47424
47425         fts: bug fixes
47426         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
47427         Include <sys/vfs.h>, not <sys/statfs.h>.
47428
47429         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
47430         Include <sys/vfs.h>, not <sys/statfs.h>.
47431
47432 2008-10-01  Bruno Haible  <bruno@clisp.org>
47433
47434         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
47435         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
47436         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
47437         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
47438         * doc/posix-functions/posix_spawnp.texi: Likewise.
47439         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
47440         whether posix_spawn actually works.
47441         * m4/pipe.m4 (gl_PIPE): Likewise.
47442         * modules/execute (Files): Add m4/posix_spawn.m4.
47443         * modules/pipe (Files): Add m4/posix_spawn.m4.
47444         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
47445
47446 2008-10-01  Jim Meyering  <meyering@redhat.com>
47447
47448         remove trailing spaces
47449         * NEWS: Likewise.
47450         * lib/poll.c (poll): Likewise.
47451         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
47452         * lib/winsock.c (rpl_close): Likewise.
47453         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
47454         * modules/yield: Likewise.
47455         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
47456         * tests/test-sys_select.c (connect_to_socket): Likewise.
47457
47458         fts.c: adjust a new interface to be more generally useful
47459         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
47460         (fts_build): Adjust caller.
47461
47462 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47463
47464         * modules/cond-tests: New file.
47465         * tests/test-cond.c: New file.
47466
47467 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47468             Bruno Haible  <bruno@clisp.org>
47469
47470         * modules/cond (Dependencies): Add errno, time.
47471         * lib/glthread/cond.h: Include <time.h>.
47472         (gl_cond_define, gl_cond_define_initialized): Use the same definition
47473         across platforms.
47474
47475 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47476             Bruno Haible  <bruno@clisp.org>
47477
47478         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
47479
47480 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47481             Bruno Haible  <bruno@clisp.org>
47482
47483         * modules/tls-tests (Depends-on): Add thread, yield.
47484         (configure.ac): Remove all checks.
47485         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
47486         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
47487         gl_thread_self): Remove definitions. Include glthread/thread.h and
47488         glthread/yield.h instead.
47489         (test_tls): Pass an additional NULL argument to gl_thread_join.
47490
47491 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47492             Bruno Haible  <bruno@clisp.org>
47493
47494         * modules/lock-tests (Depends-on): Add thread, yield.
47495         (configure.ac): Remove all checks.
47496         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
47497         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
47498         gl_thread_self): Remove definitions. Include glthread/thread.h and
47499         glthread/yield.h instead.
47500         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
47501         additional NULL argument to gl_thread_join.
47502
47503 2008-09-30  Bruno Haible  <bruno@clisp.org>
47504
47505         Fix the Win32 implementation of the 'thread' module.
47506         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
47507         pointer type.
47508         (gl_thread_self): Invoke gl_thread_self_func.
47509         (gl_thread_self_func): New declaration.
47510         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
47511         (do_init_self_key, init_self_key): New functions.
47512         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
47513         Remove some fields.
47514         (running_threads, running_lock): Remove variables.
47515         (get_current_thread_handle): New function.
47516         (gl_thread_self_func, wrapper_func, glthread_create_func,
47517         glthread_join_func, gl_thread_exit_func): Largely rewritten and
47518         simplified.
47519
47520 2008-09-30  Bruno Haible  <bruno@clisp.org>
47521
47522         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
47523         files.
47524
47525 2008-09-30  Jim Meyering  <meyering@redhat.com>
47526
47527         fts.m4: correct the test for statfs.f_type
47528         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
47529         when checking for statfs.f_type.
47530
47531 2008-09-15  Simon Josefsson  <simon@josefsson.org>
47532
47533         tests: avoid some compiler warnings
47534         * tests/test-memchr.c (main): Pass NULL indirectly.
47535         * tests/test-getdate.c (main): Remove unused variable 'ret'.
47536
47537 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
47538
47539         getdate.y: disallow countable dayshifts like "4 yesterday ago"
47540         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
47541         exactly specified dayshifts.
47542         (dayshift): New rule.
47543         (rel): Add dayshift.
47544         (relative_time_table) [tomorrow, yesterday, today, now]:
47545         Use tDAY_SHIFT in place of tDAY_UNIT.
47546         * tests/test-getdate.c: Add tests for now-disallowed countable
47547         dayshifts, e.g., "4 yesterday ago".
47548
47549 2008-09-29  Bruno Haible  <bruno@clisp.org>
47550
47551         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
47552         * tests/test-posix_spawn1.in.sh: Renamed from
47553         tests/test-posix_spawn.in.sh.
47554         * tests/test-posix_spawn2.c: New file.
47555         * tests/test-posix_spawn2.in.sh: New file.
47556         * modules/posix_spawnp-tests (Files): Update.
47557         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
47558
47559 2008-09-29  Bruno Haible  <bruno@clisp.org>
47560
47561         Propagate effects of putenv/setenv/unsetenv to child processes.
47562         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
47563         * lib/pipe.c (create_pipe): Likewise.
47564
47565 2008-09-29  Bruno Haible  <bruno@clisp.org>
47566
47567         Enable use of shell scripts as executables in mingw.
47568         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
47569         run the program as a shell script.
47570         * lib/pipe.c (create_pipe): Likewise.
47571         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
47572         resulting array.
47573
47574 2008-09-29  Eric Blake  <ebb9@byu.net>
47575
47576         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
47577
47578 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
47579
47580         * doc/posix-functions/accept.texi: Update mingw problems.
47581         * doc/posix-functions/bind.texi: Update mingw problems.
47582         * doc/posix-functions/close.texi: Update mingw problems.
47583         * doc/posix-functions/connect.texi: Update mingw problems.
47584         * doc/posix-functions/getpeername.texi: Update mingw problems.
47585         * doc/posix-functions/getsockname.texi: Update mingw problems.
47586         * doc/posix-functions/getsockopt.texi: Update mingw problems.
47587         * doc/posix-functions/ioctl.texi: Update mingw problems.
47588         * doc/posix-functions/listen.texi: Update mingw problems.
47589         * doc/posix-functions/recv.texi: Update mingw problems.
47590         * doc/posix-functions/recvfrom.texi: Update mingw problems.
47591         * doc/posix-functions/select.texi: Update mingw problems.
47592         * doc/posix-functions/send.texi: Update mingw problems.
47593         * doc/posix-functions/sendto.texi: Update mingw problems.
47594         * doc/posix-functions/setsockopt.texi: Update mingw problems.
47595         * doc/posix-functions/socket.texi: Update mingw problems.
47596
47597 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
47598             Bruno Haible  <bruno@clisp.org>
47599
47600         * lib/sys_select.in.h: Include sys/time.h.
47601         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
47602         * modules/sys_select: Depend on sys_time.
47603         * tests/test-sys_select.c: Test that sys/select.h defines struct
47604         timeval fully.
47605
47606 2008-09-29  Bruno Haible  <bruno@clisp.org>
47607
47608         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
47609         * lib/sys_select.in.h: Likewise.
47610
47611 2008-09-29  Bruno Haible  <bruno@clisp.org>
47612
47613         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
47614
47615 2008-09-29  Bruno Haible  <bruno@clisp.org>
47616
47617         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
47618         Set LIBSOCKET instead of augmenting LIBS.
47619         * modules/sockets (Link): New section.
47620         * modules/sockets-tests (test_sockets_LDADD): New variable.
47621         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
47622         * modules/poll-tests (test_poll_LDADD): New variable.
47623         * NEWS: Document the change.
47624
47625 2008-09-29  Bruno Haible  <bruno@clisp.org>
47626
47627         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
47628         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
47629         ARPA_INET_H directly.
47630         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
47631
47632 2008-09-28  Bruno Haible  <bruno@clisp.org>
47633
47634         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
47635         from gl_HEADER_SYS_SOCKET.
47636         (gl_HEADER_SYS_SOCKET): Invoke it.
47637         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47638
47639 2008-09-28  Bruno Haible  <bruno@clisp.org>
47640
47641         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
47642         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
47643         Needed on OSF/1 4.0.
47644
47645 2008-09-28  Bruno Haible  <bruno@clisp.org>
47646
47647         Override open more carefully.
47648         * lib/open.c (orig_open): New function.
47649         (rpl_open): Use orig_open instead of open.
47650         * lib/fcntl.in.h: Add special invocation convention.
47651         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
47652         (gl_FUNC_OPEN): Invoke it.
47653
47654         Override freopen more carefully.
47655         * lib/freopen.c (orig_freopen): New function.
47656         (rpl_freopen): Use orig_freopen instead of freopen.
47657         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
47658         (gl_FUNC_FREOPEN): Invoke it.
47659
47660         Override fopen more carefully.
47661         * lib/fopen.c (orig_fopen): New function.
47662         (rpl_fopen): Use orig_fopen instead of fopen.
47663         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
47664         (gl_FUNC_FOPEN): Invoke it.
47665         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
47666
47667 2008-09-28  Bruno Haible  <bruno@clisp.org>
47668
47669         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
47670         SIGPIPE.
47671
47672 2008-09-28  Bruno Haible  <bruno@clisp.org>
47673
47674         * tests/test-sigaction.c (handler, main): Disable the check whether
47675         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
47676         glibc systems with LinuxThreads.
47677
47678 2008-09-28  Bruno Haible  <bruno@clisp.org>
47679
47680         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
47681
47682         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
47683         with AIX xlc.
47684         * lib/fcntl.in.h (open): Likewise.
47685         Reported by Rainer Tammer <tammer@tammer.net>.
47686
47687 2008-09-28  Bruno Haible  <bruno@clisp.org>
47688
47689         * modules/posix_spawnp-tests: New file.
47690         * tests/test-posix_spawn.c: New file.
47691         * tests/test-posix_spawn.in.sh: New file.
47692
47693         New module 'posix_spawnp'.
47694         * modules/posix_spawnp: New file.
47695         * lib/spawnp.c: New file, from GNU libc with modifications.
47696         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
47697
47698         New module 'posix_spawn'.
47699         * modules/posix_spawn: New file.
47700         * lib/spawn.c: New file, from GNU libc with modifications.
47701         * doc/posix-functions/posix_spawn.texi: Mention the new module.
47702
47703         New module 'posix_spawnattr_destroy'.
47704         * modules/posix_spawnattr_destroy: New file.
47705         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
47706         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
47707         module.
47708
47709         New module 'posix_spawnattr_setsigmask'.
47710         * modules/posix_spawnattr_setsigmask: New file.
47711         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
47712         modifications.
47713         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
47714         new module.
47715
47716         New module 'posix_spawnattr_getsigmask'.
47717         * modules/posix_spawnattr_getsigmask: New file.
47718         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
47719         modifications.
47720         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
47721         new module.
47722
47723         New module 'posix_spawnattr_setsigdefault'.
47724         * modules/posix_spawnattr_setsigdefault: New file.
47725         * lib/spawnattr_setdefault.c: New file, from GNU libc with
47726         modifications.
47727         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
47728         new module.
47729
47730         New module 'posix_spawnattr_getsigdefault'.
47731         * modules/posix_spawnattr_getsigdefault: New file.
47732         * lib/spawnattr_getdefault.c: New file, from GNU libc with
47733         modifications.
47734         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
47735         new module.
47736
47737         New module 'posix_spawnattr_setschedpolicy'.
47738         * modules/posix_spawnattr_setschedpolicy: New file.
47739         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
47740         modifications.
47741         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
47742         new module.
47743
47744         New module 'posix_spawnattr_getschedpolicy'.
47745         * modules/posix_spawnattr_getschedpolicy: New file.
47746         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
47747         modifications.
47748         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
47749         new module.
47750
47751         New module 'posix_spawnattr_setschedparam'.
47752         * modules/posix_spawnattr_setschedparam: New file.
47753         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
47754         modifications.
47755         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
47756         new module.
47757
47758         New module 'posix_spawnattr_getschedparam'.
47759         * modules/posix_spawnattr_getschedparam: New file.
47760         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
47761         modifications.
47762         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
47763         new module.
47764
47765         New module 'posix_spawnattr_setpgroup'.
47766         * modules/posix_spawnattr_setpgroup: New file.
47767         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
47768         modifications.
47769         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
47770         module.
47771
47772         New module 'posix_spawnattr_getpgroup'.
47773         * modules/posix_spawnattr_getpgroup: New file.
47774         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
47775         modifications.
47776         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
47777         module.
47778
47779         New module 'posix_spawnattr_setflags'.
47780         * modules/posix_spawnattr_setflags: New file.
47781         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
47782         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
47783         module.
47784
47785         New module 'posix_spawnattr_getflags'.
47786         * modules/posix_spawnattr_getflags: New file.
47787         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
47788         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
47789         module.
47790
47791         New module 'posix_spawnattr_init'.
47792         * modules/posix_spawnattr_init: New file.
47793         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
47794         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
47795         module.
47796
47797         New module 'posix_spawn_file_actions_destroy'.
47798         * modules/posix_spawn_file_actions_destroy: New file.
47799         * lib/spawn_faction_destroy.c: New file, from GNU libc with
47800         modifications.
47801         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
47802         the new module.
47803
47804         New module 'posix_spawn_file_actions_addopen'.
47805         * modules/posix_spawn_file_actions_addopen: New file.
47806         * lib/spawn_faction_addopen.c: New file, from GNU libc with
47807         modifications.
47808         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
47809         the new module.
47810
47811         New module 'posix_spawn_file_actions_adddup2'.
47812         * modules/posix_spawn_file_actions_adddup2: New file.
47813         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
47814         modifications.
47815         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
47816         the new module.
47817
47818         New module 'posix_spawn_file_actions_addclose'.
47819         * modules/posix_spawn_file_actions_addclose: New file.
47820         * lib/spawn_faction_addclose.c: New file, from GNU libc with
47821         modifications.
47822         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
47823         the new module.
47824
47825         New module 'posix_spawn_file_actions_init'.
47826         * modules/posix_spawn_file_actions_init: New file.
47827         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
47828         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
47829         new module.
47830
47831         New module 'posix_spawn-internal'.
47832         * modules/posix_spawn-internal: New file.
47833         * lib/spawn_int.h: New file, from GNU libc with modifications.
47834         * lib/spawni.c: New file, from GNU libc with modifications.
47835         * m4/posix_spawn.m4: New file.
47836
47837         New module 'spawn'.
47838         * modules/spawn: New file.
47839         * lib/spawn.in.h: New file, from GNU libc with modifications.
47840         * m4/spawn_h.m4: New file.
47841         * doc/posix-headers/spawn.texi: Mention the new module.
47842
47843 2008-09-28  Bruno Haible  <bruno@clisp.org>
47844
47845         * modules/sched-tests: New file.
47846         * tests/test-sched.c: New file.
47847
47848         New module 'sched'.
47849         * modules/sched: New file.
47850         * lib/sched.in.h: New file.
47851         * m4/sched_h.m4: New file.
47852         * doc/posix-headers/sched.texi: Mention the new module.
47853
47854 2008-09-27  Eric Blake  <ebb9@byu.net>
47855
47856         Fix previous patch, and tweak references to $0.
47857         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
47858         (func_version, func_gnulib_dir): Don't call this program
47859         gnulib-tool.
47860         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
47861         with using $0 in function.
47862         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
47863         (func_fatal_error): Reuse the name the user invoked us with.
47864
47865 2008-09-27  Bruno Haible  <bruno@clisp.org>
47866
47867         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
47868         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
47869         (gl_ICONV_H): Not here.
47870         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
47871         instead of assigning ICONV_H directly.
47872
47873         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
47874         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
47875         WCHAR_H directly.
47876
47877 2008-09-27  Bruno Haible  <bruno@clisp.org>
47878
47879         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
47880         * modules/arpa_inet (Depends-on): Add link-warning.
47881         (Makefile.am): Insert the definition of GL_LINK-WARNING.
47882         * modules/unistd (Makefile.am): Likewise.
47883
47884 2008-09-26  Bruno Haible  <bruno@clisp.org>
47885
47886         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
47887         variables.
47888         (func_version): Essentially copied from gnulib-tool.
47889         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
47890         func_readlink): Copied from gnulib-tool.
47891
47892 2008-09-26  Bruno Haible  <bruno@clisp.org>
47893
47894         * gnulib-tool (func_version): Change directory to $gnulib_dir before
47895         invoking git-version-gen.
47896
47897 2008-09-26  Bruno Haible  <bruno@clisp.org>
47898
47899         * posix-modules: Update to directory names changed on 2008-01-19.
47900         Remove commas in output before splitting into words. No more need to
47901         avoid 'ftruncate' since 2007-02-19.
47902
47903 2008-09-26  Bruno Haible  <bruno@clisp.org>
47904
47905         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
47906
47907 2008-09-26  Bruno Haible  <bruno@clisp.org>
47908
47909         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
47910         * modules/fwriteerror (Depends-on): Add errno.
47911
47912 2008-09-26  Bruno Haible  <bruno@clisp.org>
47913
47914         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
47915         * tests/test-vc-list-files-cvs.sh: Likewise.
47916
47917 2008-09-26  Bruno Haible  <bruno@clisp.org>
47918
47919         * doc/posix-headers/sys_resource.texi: Reorder items.
47920
47921 2008-09-26  Jim Meyering  <meyering@redhat.com>
47922
47923         fts: tweak inode comparison function
47924         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
47925         inode numbers, as documented.
47926
47927         fts: sort dirent entries on inode number before traversing
47928         This avoids a quadratic, seek-related performance penalty when
47929         operating on a directory containing many entries (measurable at 10k;
47930         3.5 hours at 2 million entries with a cold cache) on certain types
47931         of file systems, including ext3 and ext4, but not tmpfs.
47932         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
47933         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
47934         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
47935         (fs_handles_readdir_ordered_dirents_efficiently): New function.
47936         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
47937         (fts_build): Set the stat.st_ino member from D_INO.
47938         If it is likely to be useful, sort dirent entries on inode number.
47939
47940         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
47941         and the struct statfs.f_type member.
47942         * modules/fts (Depends-on): Add d-ino.
47943
47944 2008-09-26  Bruno Haible  <bruno@clisp.org>
47945
47946         * modules/sigpipe-die (Depends-on): Add sigpipe.
47947
47948         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
47949         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
47950         and GNULIB_STDIO_H_SIGPIPE are set.
47951         * lib/stdio-write.c: New file.
47952         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
47953         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47954         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47955         REPLACE_STDIO_WRITE_FUNCS.
47956         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
47957         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47958         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47959         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
47960         * modules/stdio (Files): Add lib/stdio-write.c.
47961         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
47962         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
47963         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
47964         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
47965         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
47966         REPLACE_FPRINTF_POSIX.
47967         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
47968         REPLACE_PRINTF_POSIX.
47969         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
47970         REPLACE_VFPRINTF_POSIX.
47971         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
47972         REPLACE_VPRINTF_POSIX.
47973         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
47974         SIGPIPE issue.
47975         * doc/posix-functions/fputc.texi: Likewise.
47976         * doc/posix-functions/fputs.texi: Likewise.
47977         * doc/posix-functions/fwrite.texi: Likewise.
47978         * doc/posix-functions/printf.texi: Likewise.
47979         * doc/posix-functions/putc.texi: Likewise.
47980         * doc/posix-functions/putchar.texi: Likewise.
47981         * doc/posix-functions/puts.texi: Likewise.
47982         * doc/posix-functions/vfprintf.texi: Likewise.
47983         * doc/posix-functions/vprintf.texi: Likewise.
47984
47985         * modules/safe-write (Depends-on): Add write.
47986
47987         * modules/sigpipe-tests: New file.
47988         * tests/test-sigpipe.c: New file.
47989         * tests/test-sigpipe.sh: New file.
47990
47991         * modules/write: New file.
47992         * lib/unistd.in.h: Include <sys/types.h>.
47993         (write): New declaration.
47994         * lib/write.c: New file.
47995         * m4/write.m4: New file.
47996         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47997         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
47998         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
47999         GNULIB_WRITE, REPLACE_WRITE.
48000         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
48001         and the SIGPIPE issue.
48002
48003         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
48004         (raise): New declaration.
48005         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
48006         (ext_signal): New function.
48007         (rpl_raise): New function.
48008         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
48009         GNULIB_SIGNAL_H_SIGPIPE.
48010         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
48011         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
48012
48013         * modules/sigpipe: New file.
48014         * m4/sigpipe.m4: New file.
48015
48016 2008-09-25  Derek Price  <derek@ximbiot.com>
48017             Bruno Haible  <bruno@clisp.org>
48018
48019         * gnulib-tool (func_import): Report all license incompatibilities, not
48020         just the first one.
48021
48022 2008-09-25  Bruno Haible  <bruno@clisp.org>
48023
48024         * gnulib-tool (func_import): When computing the edits, consider not
48025         only the Makefile.ams that exist but also those that will be generated.
48026
48027 2008-09-25  Simon Josefsson  <simon@josefsson.org>
48028
48029         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
48030         fixes gnulib-tool --test warning about duplicate dependency.
48031
48032 2008-09-25  Bruno Haible  <bruno@clisp.org>
48033
48034         * gnulib-tool: Don't ask the user to perform edits in the generated
48035         Makefile.ams.
48036         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
48037         apply to the Makefile.am being generated.
48038         (func_emit_tests_Makefile_am): Execute edits that apply to the
48039         Makefile.am being generated.
48040         (func_import): Setup list of Makefile.am edits before emitting the
48041         Makefile.ams, not at the end.
48042         (func_create_testdir): Update.
48043         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48044
48045 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48046
48047         * gnulib-tool (func_import): Store the --tests-base option in the
48048         comment in gnulib-cache.m4.
48049
48050 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
48051
48052         * NEWS: Document increased portability that sys_select now provides.
48053
48054         * lib/sys_select.in.h: Install select wrapper.
48055         * lib/sys_socket.in.h: Use more descriptive name when there is no
48056         select wrapper.
48057         * lib/winsock-select.c: New.
48058         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
48059         Require gl_HEADER_SYS_SOCKET.
48060         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
48061         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
48062         * tests/test-sys_select.c: Add functional tests.
48063
48064 2008-09-24  Eric Blake  <ebb9@byu.net>
48065
48066         open, fopen: close fd leak in last patch
48067         * lib/open.c (rpl_open): Close fd before returning error.
48068         * lib/fopen.c (rpl_fopen): Close fd before returning error.
48069         * doc/posix-functions/open.texi (open): Document that Irix also
48070         has the bug.
48071         * doc/posix-functions/fopen.texi (fopen): Likewise.
48072         Reported by Paolo Bonzini.
48073
48074 2008-09-24  Bruno Haible  <bruno@clisp.org>
48075
48076         Ensure that a filename ending in a slash cannot be used to access a
48077         non-directory.
48078         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
48079         to check whether it's really a directory.
48080         * lib/fopen.c: Include fcntl.h, unistd.h.
48081         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
48082         and fdopen().
48083         * modules/fopen (Depends-on): Add unistd.
48084         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
48085         * tests/test-fopen.c (main): Likewise.
48086         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
48087         * doc/posix-functions/fopen.texi: Likewise.
48088         Reported by Eric Blake.
48089
48090 2008-09-23  Eric Blake  <ebb9@byu.net>
48091
48092         c-stack: avoid compiler optimizations when provoking overflow
48093         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
48094         recursion harder to optimize, to ensure a stack overflow occurs.
48095         * tests/test-c-stack.c (recurse): Likewise.
48096         Borrowed from libsigsegv.
48097
48098         c-stack: work around Irix sigaltstack bug
48099         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
48100         whether sigaltstack uses wrong end of stack_t (copied in part from
48101         libsigsegv).
48102         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
48103         Irix bug, without requiring an over-allocation.
48104         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
48105         bug.
48106
48107         fopen: document mingw bug on directories
48108         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
48109         not allowing a stream visiting a directory, even though reading
48110         from such a stream is not portable.
48111
48112 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48113
48114         * lib/poll.c: Rewrite.
48115         * modules/poll: Depend on alloca.
48116
48117 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48118
48119         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
48120         instead define prototypes for a full set of wrappers.  Ensure
48121         that Cygwin does not use the compatibility code, which is only
48122         for MinGW.
48123         * lib/winsock.c: New.
48124         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
48125         * modules/sys_socket: Add lib/winsock.c.
48126
48127         * modules/poll-tests: Add errno and perror.
48128         * tests/test-poll.c: Use ioctl, not ioctlsocket.
48129
48130 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48131
48132         * tests/test-poll.c: Downgrade minimum needed Winsock version.
48133
48134 2008-09-23  Bruno Haible  <bruno@clisp.org>
48135
48136         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
48137         * doc/glibc-functions/*: Likewise.
48138
48139 2008-09-23  Simon Josefsson  <simon@josefsson.org>
48140
48141         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
48142         success.
48143
48144 2008-09-22  Eric Blake  <ebb9@byu.net>
48145             Bruno Haible  <bruno@clisp.org>
48146
48147         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
48148         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
48149         supply %A but mishandle pseudo-NaN.
48150         Reported by Simon Josefsson.
48151
48152 2008-09-21  Bruno Haible  <bruno@clisp.org>
48153
48154         * tests/test-lock.c (main): Tweak skip message.
48155         * tests/test-tls.c (main): Likewise.
48156
48157 2008-09-21  Bruno Haible  <bruno@clisp.org>
48158
48159         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
48160         whether 'struct sigaction' has sa_sigaction here...
48161         (gl_PREREQ_SIG_HANDLER_H): ... not here.
48162         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
48163
48164 2008-09-21  Bruno Haible  <bruno@clisp.org>
48165
48166         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
48167         section.
48168         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
48169         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
48170         the new section.
48171         (Support for obsolete systems lacking POSIX:2001): New section.
48172         (String handling <string.h>): Move strdup to the new section.
48173         Suggested by Simon Josefsson and Paolo Bonzini.
48174
48175 2008-09-21  Bruno Haible  <bruno@clisp.org>
48176
48177         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
48178         exponents in %e and %g results on 'long double'. Needed for mingw's
48179         improved *printf functions.
48180         * tests/test-vasprintf-posix.c (test_function): Likewise.
48181         * tests/test-snprintf-posix.h (test_function): Likewise.
48182         * tests/test-sprintf-posix.h (test_function): Likewise.
48183         Reported by Eric Blake.
48184
48185 2008-09-21  Bruno Haible  <bruno@clisp.org>
48186
48187         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
48188         * tests/test-sprintf-posix.h (test_function): Likewise.
48189
48190 2008-09-21  Bruno Haible  <bruno@clisp.org>
48191
48192         * modules/getpass (Depends-on): Add strdup-posix.
48193
48194         New module 'strdup-posix'.
48195         * modules/strdup-posix: New file.
48196         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
48197         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
48198         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48199         REPLACE_STRDUP.
48200         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
48201         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
48202         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48203         strdup-posix.
48204
48205         * modules/strdup (Depends-on): Remove malloc-posix.
48206
48207 2008-09-20  Bruno Haible  <bruno@clisp.org>
48208
48209         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
48210         Wildenhues.
48211
48212 2008-09-20  Bruno Haible  <bruno@clisp.org>
48213
48214         Ensure that wint_t gets defined on IRIX 5.3.
48215         * lib/wchar.in.h (wint_t): Define if not defined by the system.
48216         * lib/wctype.in.h (wint_t): Likewise.
48217         (__wctype_wint_t): Remove type.
48218         (isw*): Use wint_t instead of __wctype_wint_t.
48219         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
48220         * modules/wchar (Files): Add m4/wint_t.m4.
48221         (Makefile.am): Substitute HAVE_WINT_T.
48222         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
48223         * tests/test-wctype.c: Check that wint_t is defined.
48224         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
48225         * doc/posix-headers/wctype.texi: Likewise.
48226         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48227
48228 2008-09-18  Bruno Haible  <bruno@clisp.org>
48229
48230         * gnulib-tool (func_exit): Update comment.
48231
48232 2008-09-18  Simon Josefsson  <simon@josefsson.org>
48233
48234         * modules/getaddrinfo (Depends-on): Remove strdup, this module
48235         assumes strdup exists and does not depend on strdup to return
48236         ENOMEM on out of memory conditions.
48237
48238 2008-09-18  Bruno Haible  <bruno@clisp.org>
48239
48240         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
48241         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
48242         digits for the exponent.
48243
48244 2008-09-18  Jim Meyering  <meyering@redhat.com>
48245             Bruno Haible  <bruno@clisp.org>
48246
48247         * lib/vasnprintf.c (decimal_point_char): Define also if
48248         NEED_PRINTF_INFINITE_LONG_DOUBLE.
48249
48250 2008-09-16  Bruno Haible  <bruno@clisp.org>
48251         and Eric Blake  <ebb9@byu.net>
48252
48253         vasnprintf: support Irix 5.3
48254         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
48255         that mishandle long double infinity.
48256         Reported by Tom G. Christensen.
48257
48258 2008-09-16  Bruno Haible  <bruno@clisp.org>
48259
48260         * doc/glibc-functions/scandir.texi: Mention the function is missing on
48261         Solaris 9.
48262         * doc/glibc-functions/alphasort.texi: Likewise.
48263         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
48264
48265 2008-09-16  Jim Meyering  <meyering@redhat.com>
48266
48267         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
48268         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
48269         a umask modification leak out of a subshell.  Otherwise, the
48270         opensolaris /bin/sh would be accepted and thus cause unwarranted
48271         failures in the coreutils test suite.
48272
48273 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
48274
48275         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
48276         to succeed.
48277
48278 2008-09-16  Jim Meyering  <meyering@redhat.com>
48279
48280         avoid spurious test failure when library is built without ACL support
48281         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
48282         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
48283         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
48284         * tests/test-copy-acl.sh: Likewise.
48285
48286 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48287
48288         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
48289         based on character occurrence counts.
48290
48291 2008-09-15  Eric Blake  <ebb9@byu.net>
48292
48293         tests: avoid some compiler warnings
48294         * tests/test-memchr.c (main): Pass NULL indirectly.
48295         * tests/test-closein.c (main): Avoid unused variable.
48296
48297 2008-09-15  Bruno Haible  <bruno@clisp.org>
48298
48299         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
48300         are missing on OpenBSD 4.0 individually.
48301         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48302
48303 2008-09-15  Bruno Haible  <bruno@clisp.org>
48304
48305         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
48306         * doc/posix-functions/strerror.texi: Mention also Cygwin.
48307         * doc/posix-functions/perror.texi: Likewise.
48308         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
48309         is missing.
48310         Reported by Eric Blake.
48311
48312         * lib/errno.in.h: Use replacement values >= 2000.
48313         Reported by Eric Blake.
48314
48315 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48316
48317         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
48318         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
48319         limit.
48320         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
48321         compareseq was aborted.
48322
48323 2008-09-14  Bruno Haible  <bruno@clisp.org>
48324
48325         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
48326         yvec_edit_count.
48327         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
48328         (fstrcmp_bounded): Simplify result computation accordingly.
48329
48330 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48331
48332         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
48333         (fstrcmp): Define in terms of fstrcmp_bounded.
48334         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
48335         lower_bound argument.
48336         Return quickly if the result is certainly < lower_bound.
48337         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
48338
48339 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48340
48341         * lib/diffseq.h (EARLY_ABORT): New macro.
48342         (compareseq): Change return type to bool. Return true when EARLY_ABORT
48343         evaluates to true.
48344
48345 2008-09-14  Bruno Haible  <bruno@clisp.org>
48346
48347         * modules/perror-tests: New file.
48348         * tests/test-perror.sh: New file.
48349         * tests/test-perror.c: New file.
48350
48351         New module 'perror'.
48352         * lib/stdio.in.h (perror): New declaration.
48353         * lib/perror.c: New file.
48354         * m4/perror.m4: New file.
48355         * modules/perror: New file.
48356         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
48357         * doc/posix-functions/perror.texi: Mention the perror module.
48358         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
48359         REPLACE_PERROR.
48360         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
48361         REPLACE_PERROR.
48362
48363 2008-09-14  Bruno Haible  <bruno@clisp.org>
48364
48365         * modules/stdio (Makefile.am): Reorder to match the order in
48366         lib/stdio.in.h.
48367         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
48368
48369 2008-09-13  Bruno Haible  <bruno@clisp.org>
48370
48371         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
48372
48373 2008-09-13  Bruno Haible  <bruno@clisp.org>
48374
48375         Extend strerror to cover the added errno values.
48376         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
48377         (rpl_strerror): Provide error messages for the added errno values and
48378         for the WSA* values.
48379         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
48380         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
48381         strerror.
48382         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
48383         * modules/strerror (Depends-on): Add errno.
48384         * doc/posix-functions/strerror.texi: Document the change.
48385         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
48386         and EOVERFLOW.
48387
48388 2008-09-13  Bruno Haible  <bruno@clisp.org>
48389
48390         * modules/EOVERFLOW: Remove file.
48391         * m4/eoverflow.m4: Remove file.
48392         * modules/EOVERFLOW-tests: Remove file.
48393         * tests/test-EOVERFLOW.c: Remove file.
48394         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
48395         * modules/ftell (Depends-on): Likewise.
48396         * modules/getdelim (Depends-on): Likewise.
48397         * modules/getugroups (Depends-on): Likewise.
48398         * modules/poll (Depends-on): Likewise.
48399         * modules/snprintf (Depends-on): Likewise.
48400         * modules/sprintf-posix (Depends-on): Likewise.
48401         * modules/vasnprintf (Depends-on): Likewise.
48402         * modules/vasprintf (Depends-on): Likewise.
48403         * modules/vfprintf-posix (Depends-on): Likewise.
48404         * modules/vsnprintf (Depends-on): Likewise.
48405         * modules/vsprintf-posix (Depends-on): Likewise.
48406         * modules/xvasprintf (Depends-on): Likewise.
48407         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48408         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
48409         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
48410         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
48411         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48412         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
48413         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
48414         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
48415         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48416         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
48417         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
48418         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
48419         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48420         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
48421         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
48422         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
48423         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48424         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
48425         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
48426         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
48427         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48428         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
48429         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
48430         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
48431         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
48432         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48433         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
48434         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
48435         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
48436         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
48437         * MODULES.html.sh: Remove EOVERFLOW.
48438         * NEWS: Mention the change.
48439
48440 2008-09-13  Bruno Haible  <bruno@clisp.org>
48441
48442         * modules/errno-tests: New file.
48443         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
48444
48445         * lib/errno.in.h: New file.
48446         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
48447         * modules/errno: New file.
48448         * doc/posix-headers/errno.texi: Update documentation.
48449         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
48450
48451 2008-09-13  Bruno Haible  <bruno@clisp.org>
48452
48453         * tests/test-poll.c: Use #if for native Windows, rather than testing
48454         __MSVCRT__.
48455
48456 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48457             Bruno Haible  <bruno@clisp.org>
48458
48459         * lib/glob.c: Don't include <pwd.h> on native Windows.
48460         (WINDOWS32): New macro.
48461         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
48462
48463 2008-09-13  Bruno Haible  <bruno@clisp.org>
48464
48465         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
48466         (ETIMEDOUT): Remove macro.
48467         (glthread_cond_timedwait_multithreaded): New declaration.
48468         (glthread_cond_timedwait): Use it.
48469         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
48470         (glthread_cond_timedwait_multithreaded): New function.
48471
48472 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48473
48474         * modules/poll-tests: Do not check for io.h.
48475         * tests/test-poll.c: Check for __MSVCRT__ instead.
48476
48477 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48478
48479         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
48480         * modules/poll-tests: Add inet_pton, stdbool, sockets.
48481         * tests/test-poll.c: Use them.  Use _pipe on Windows.
48482
48483 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
48484
48485         * modules/poll-tests: New.
48486         * tests/test-poll.c: New.
48487
48488 2008-09-12  Eric Blake  <ebb9@byu.net>
48489
48490         frexp: test for NetBSD failure on -0.0
48491         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
48492         not all, bugs from NetBSD 3.0 have been fixed.
48493         * doc/posix-functions/frexp.texi (frexp): Document bug.
48494         Reported by Thomas Klausner.
48495
48496         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
48497         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
48498         literal -0.0.
48499         Reported by Jonathan C. Patschke <jp@centtech.com>.
48500
48501 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48502
48503         * lib/glthread/cond.h: Use dummy implementation also if
48504         USE_WIN32_THREADS.
48505
48506 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48507
48508         * modules/fnmatch-posix (License): Change to LGPLv2+.
48509         * modules/fnmatch-gnu (License): Likewise.
48510
48511 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48512
48513         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
48514
48515 2008-09-11  Jim Meyering  <meyering@redhat.com>
48516
48517         * users.txt: Add gtk-vnc.
48518
48519 2008-09-08  Simon Josefsson  <simon@josefsson.org>
48520
48521         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
48522         rotate amounts.
48523
48524         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
48525         required for 16-bit and 8-bit rotates.
48526         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
48527         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
48528         UINT8_MAX instead of hard-coded constants.
48529         Suggested by Paul Eggert.
48530
48531 2008-09-07  Bruno Haible  <bruno@clisp.org>
48532
48533         * tests/test-striconveh.c (main): Check behaviour when converting from
48534         UTF-7.
48535
48536         Make striconveh work better with stateful encodings.
48537         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
48538         that iconv does not increment the inptr when returning -1/EINVAL.
48539
48540 2008-09-07  Bruno Haible  <bruno@clisp.org>
48541
48542         * build-aux/config.rpath: Update according to libtool-2.2.6.
48543         * build-aux/config.libpath: Likewise.
48544
48545 2008-09-06  Bruno Haible  <bruno@clisp.org>
48546
48547         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
48548         * lib/freadptr.c (freadptr): Likewise.
48549         * lib/freadseek.c (freadptrinc): Likewise.
48550         Reported by Simon Josefsson.
48551
48552 2008-09-06  Bruno Haible  <bruno@clisp.org>
48553
48554         * modules/freadptr (License): Change to LGPLv2+.
48555         * modules/freadseek (License): Likewise.
48556         Suggested by Eric Blake.
48557
48558         * modules/memchr2 (License): Change to LGPLv2+.
48559         Approved by Eric Blake.
48560
48561 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48562             Bruno Haible  <bruno@clisp.org>
48563
48564         Make gnulib-tool work with native 'sed' on AIX.
48565         * gnulib-tool (sed_noop): New variable.
48566         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
48567         func_add_or_update, func_create_testdir): Use it to initialize sed
48568         script variables.
48569         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48570
48571 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
48572             Bruno Haible  <bruno@clisp.org>
48573
48574         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
48575         also works after #include directives.
48576
48577 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
48578
48579         getdate.y: reject an out-of-range timezone value
48580         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
48581         the range [-24...+24].  When specified with only one or two digits,
48582         * tests/test-getdate.c: Tests for the fix.
48583         * doc/getdate.texi: Document this change.
48584
48585 2008-09-03  Bruno Haible  <bruno@clisp.org>
48586
48587         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
48588
48589 2008-09-02  Simon Josefsson  <simon@josefsson.org>
48590
48591         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
48592         <bruce.korb@gmail.com> with ideas from Ben Pfaff
48593         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
48594         Blake <ebb9@byu.net>.
48595
48596         * tests/test-bitrotate.c: Add more test vectors.
48597
48598 2008-09-02  Eric Blake  <ebb9@byu.net>
48599
48600         vasnprintf-posix: handle large precision via %.*d
48601         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
48602         when handling it ourselves.
48603         * tests/test-vasnprintf-posix.c (test_function): Add test.
48604         * tests/test-snprintf-posix.h (test_function): Likewise.
48605         * tests/test-sprintf-posix.h (test_function): Likewise.
48606         * tests/test-vasprintf-posix.c (test_function): Likewise.
48607         Reported by Alain Guibert.
48608
48609 2008-09-01  Eric Blake  <ebb9@byu.net>
48610
48611         c-stack: make configure-time check more robust
48612         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
48613         successful sigaction call.
48614         Reported by Tom G. Christensen.
48615
48616 2008-09-01  Bruno Haible  <bruno@clisp.org>
48617
48618         New module 'findprog-lgpl'.
48619         * modules/findprog-lgpl: New file.
48620         * lib/findprog-lgpl.c: New file.
48621         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
48622         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
48623         to decide whether to use strdup or xstrdup, concatenated_filename or
48624         xconcatenated_filename.
48625
48626 2008-09-01  Bruno Haible  <bruno@clisp.org>
48627
48628         Split module 'concat-filename' into 'concat-filename' (LGPL) and
48629         'xconcat-filename' (GPL).
48630         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
48631         (License): Change to LGPLv2+.
48632         * modules/xconcat-filename: New file.
48633         * lib/concat-filename.h (concatenated_filename): Change specification.
48634         (xconcatenated_filename): New declaration.
48635         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
48636         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
48637         memory situations.
48638         * lib/xconcat-filename.c: New file.
48639         * NEWS: Mention the change.
48640         * lib/findprog.c: Include concat-filename.h, not filename.h.
48641         (find_in_path): Use xconcatenated_filename instead of
48642         concatenated_filename.
48643         * lib/javacomp.c: Include concat-filename.h, not filename.h.
48644         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
48645         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
48646         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
48647         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
48648         instead of concatenated_filename.
48649         * lib/javaexec.c: Include concat-filename.h, not filename.h.
48650         (execute_java_class): Use xconcatenated_filename instead of
48651         concatenated_filename.
48652         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
48653         * modules/javacomp (Depends-on): Likewise.
48654         * modules/javaexec (Depends-on): Likewise.
48655
48656 2008-09-01  Bruno Haible  <bruno@clisp.org>
48657
48658         Split module 'filename' into 'filename' and 'concat-filename'.
48659         * modules/filename: Keep only lib/filename.h.
48660         (License): Change to LGPLv2+.
48661         * modules/concat-filename: New file, extracted from modules/filename.
48662         * lib/filename.h (concatenated_filename): Remove declaration.
48663         * lib/concat-filename.h: New file, extracted from lib/filename.h.
48664         * lib/concat-filename.c: Include concat-filename.h.
48665         * NEWS: Mention the change.
48666
48667 2008-09-01  Simon Josefsson  <simon@josefsson.org>
48668
48669         * lib/bitrotate.h (rotl8, rotr8): Add.
48670
48671         * modules/bitrotate (configure.ac): Need
48672         AC_REQUIRE([AC_C_INLINE]).
48673         (Description): Mention stdint.h.  Reported by Bruno Haible
48674         <bruno@clisp.org>.
48675
48676         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
48677         Paolo Bonzini <bonzini@gnu.org>.
48678
48679 2008-08-31  Bruno Haible  <bruno@clisp.org>
48680
48681         Assume Solaris specific bi-arch conventions on Solaris systems.
48682         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
48683         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
48684         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
48685         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
48686         like acl_libdirstem.
48687         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
48688         acl_libdirstem.
48689         * NEWS: Mention the change.
48690         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
48691
48692 2008-08-31  Jim Meyering  <meyering@redhat.com>
48693
48694         * lib/strftime.h: Add comments describing the two added arguments.
48695
48696         remove duplicate #include directives
48697         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
48698         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
48699
48700 2008-08-31  Bruno Haible  <bruno@clisp.org>
48701
48702         New module 'sigpipe-die'.
48703         * modules/sigpipe-die: New file.
48704         * lib/sigpipe-die.h: New file.
48705         * lib/sigpipe-die.c: New file.
48706         * MODULES.html.sh (Signal handling): Add sigpipe-die.
48707
48708 2008-08-31  Bruno Haible  <bruno@clisp.org>
48709
48710         Don't override previously installed signal handlers.
48711         * lib/fatal-signal.c (saved_sigactions): New variable.
48712         (uninstall_handlers): Reset the signal to the saved handler, not
48713         to SIG_DFL (except when ignored).
48714         (install_handlers): Save the previous handlers.
48715
48716 2008-08-30  Bruno Haible  <bruno@clisp.org>
48717
48718         * gnulib-tool (func_reset_sigpipe): New function.
48719         (func_get_automake_snippet, func_modules_transitive_closure,
48720         func_import): Invoke it before a join command that reads from stdin,
48721         to avoid "echo: write error: Broken pipe" error messages on stderr.
48722         Reported by Sam Steingold <sds@gnu.org>.
48723
48724 2008-08-30  Bruno Haible  <bruno@clisp.org>
48725
48726         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
48727         Code copied from m4/open.m4.
48728         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
48729         access and the filename ends in a slash. Code copied from lib/open.c.
48730         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
48731         * tests/test-fopen.c (main): Check against bug with trailing slash.
48732
48733 2008-08-29  Bruno Haible  <bruno@clisp.org>
48734
48735         Avoid some "gcc -pedantic" warnings.
48736         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
48737         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
48738         * lib/dirent.in.h: Likewise.
48739         * lib/fcntl.in.h: Likewise.
48740         * lib/float.in.h: Likewise.
48741         * lib/iconv.in.h: Likewise.
48742         * lib/inttypes.in.h: Likewise.
48743         * lib/locale.in.h: Likewise.
48744         * lib/math.in.h: Likewise.
48745         * lib/netinet_in.in.h: Likewise.
48746         * lib/search.in.h: Likewise.
48747         * lib/signal.in.h: Likewise.
48748         * lib/stdarg.in.h: Likewise.
48749         * lib/stdint.in.h: Likewise.
48750         * lib/stdio.in.h: Likewise.
48751         * lib/stdlib.in.h: Likewise.
48752         * lib/string.in.h: Likewise.
48753         * lib/strings.in.h: Likewise.
48754         * lib/sys_select.in.h: Likewise.
48755         * lib/sys_socket.in.h: Likewise.
48756         * lib/sys_stat.in.h: Likewise.
48757         * lib/sys_time.in.h: Likewise.
48758         * lib/sysexits.in.h: Likewise.
48759         * lib/time.in.h: Likewise.
48760         * lib/unistd.in.h: Likewise.
48761         * lib/wchar.in.h: Likewise.
48762         * lib/wctype.in.h: Likewise.
48763         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
48764         * modules/fchdir (Makefile.am): Likewise.
48765         * modules/fcntl (Makefile.am): Likewise.
48766         * modules/float (Makefile.am): Likewise.
48767         * modules/iconv_open (Makefile.am): Likewise.
48768         * modules/inttypes (Makefile.am): Likewise.
48769         * modules/locale (Makefile.am): Likewise.
48770         * modules/math (Makefile.am): Likewise.
48771         * modules/netinet_in (Makefile.am): Likewise.
48772         * modules/search (Makefile.am): Likewise.
48773         * modules/signal (Makefile.am): Likewise.
48774         * modules/stdarg (Makefile.am): Likewise.
48775         * modules/stdint (Makefile.am): Likewise.
48776         * modules/stdio (Makefile.am): Likewise.
48777         * modules/stdlib (Makefile.am): Likewise.
48778         * modules/string (Makefile.am): Likewise.
48779         * modules/strings (Makefile.am): Likewise.
48780         * modules/sys_select (Makefile.am): Likewise.
48781         * modules/sys_socket (Makefile.am): Likewise.
48782         * modules/sys_stat (Makefile.am): Likewise.
48783         * modules/sys_time (Makefile.am): Likewise.
48784         * modules/sysexits (Makefile.am): Likewise.
48785         * modules/time (Makefile.am): Likewise.
48786         * modules/unistd (Makefile.am): Likewise.
48787         * modules/wchar (Makefile.am): Likewise.
48788         * modules/wctype (Makefile.am): Likewise.
48789         Reported by Reuben Thomas <rrt@sc3d.org>.
48790
48791 2008-08-29  Bruno Haible  <bruno@clisp.org>
48792
48793         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
48794         any more.
48795
48796 2008-08-29  Simon Josefsson  <simon@josefsson.org>
48797
48798         * MODULES.html.sh (Misc): Add bitrotate.
48799
48800         * modules/bitrotate: New file.
48801
48802         * lib/bitrotate.h: New file.
48803
48804         * modules/bitrotate-tests: New file.
48805
48806         * tests/test-bitrotate.c: New file.
48807
48808         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
48809         on the bitrotate module.
48810
48811         * lib/arctwo.c: Use new bitrotate module.
48812
48813 2008-08-29  Jim Meyering  <meyering@redhat.com>
48814
48815         bootstrap: merge changes from coreutils
48816         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
48817         of copied files.  Remove a kludge, now that this is fixed.
48818         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
48819         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
48820         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
48821
48822 2008-08-29  Bruno Haible  <bruno@clisp.org>
48823
48824         * MODULES.html.sh: Remove --cvs-urls option.
48825
48826 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
48827
48828         maint.mk: adjust to file name change
48829         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
48830
48831 2008-08-28  Jim Meyering  <meyering@redhat.com>
48832
48833         * modules/getndelim2 (License): Relicense to LGPLv2+.
48834         Approved by Richard Stallman for the version of 1995, and by
48835         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
48836
48837 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
48838
48839         * lib/getdelim.c (flockfile, funlockfile): Make all of them
48840         dummy if one is not available.  Do not touch them if
48841         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
48842         (getc_maybe_unlocked): New.
48843         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
48844
48845 2008-08-26  Eric Blake  <ebb9@byu.net>
48846
48847         doc/INSTALL: resync from autoconf
48848         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
48849         (INSTALL_PRELUDE): Delete; this is done more efficiently by
48850         moving...
48851         * install.texi [!autoconf]: ...here.  Resync from autoconf.
48852         * INSTALL: Regenerate.
48853         * INSTALL.ISO: New file.
48854         * INSTALL.UTF-8: Likewise.
48855
48856 2008-08-26  Jim Meyering  <meyering@redhat.com>
48857
48858         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
48859         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
48860         these definitions conditional, so that they may be overridden, too.
48861
48862 2008-08-26  Bruno Haible  <bruno@clisp.org>
48863
48864         Generate INSTALL file variants with prettier quotes.
48865         * doc/Makefile (INSTALL_PRELUDE): New macro.
48866         (INSTALL): Use it.
48867         (INSTALL.ISO, INSTALL.UTF-8): New rules.
48868
48869 2008-08-26  Bruno Haible  <bruno@clisp.org>
48870
48871         Run makeinfo in an English locale.
48872         * doc/Makefile (MAKEINFO): New variable.
48873
48874 2008-08-26  Bruno Haible  <bruno@clisp.org>
48875
48876         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
48877         Suggested by Eric Blake.
48878
48879 2008-08-25  Bruno Haible  <bruno@clisp.org>
48880
48881         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
48882
48883 2008-08-25  Eric Blake  <ebb9@byu.net>
48884
48885         c-stack: test that stack overflow can be caught
48886         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
48887         that platform allows handling stack overflow; at least OS/2 EMX
48888         has sigaltstack, but crashes before transferring control to
48889         handler on stack overflow.
48890         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
48891         check for HAVE_STACK_OVERFLOW_HANDLING.
48892         Reported by Elbert Pol.
48893
48894 2008-08-25  Bruno Haible  <bruno@clisp.org>
48895
48896         * doc/posix-functions/strftime.texi: Fix description of strftime
48897         module.
48898
48899 2008-08-24  Bruno Haible  <bruno@clisp.org>
48900
48901         * tests/uniwidth/test-uc_width2.c: New file.
48902         * tests/uniwidth/test-uc_width2.sh: New file.
48903         * modules/uniwidth/width-tests (Files): Add the new files.
48904         (TESTS): Add uniwidth/test-uc_width2.sh.
48905         (TESTS_ENVIRONMENT): New variable.
48906         (check_PROGRAMS): Add test-uc_width2.
48907         (test_uc_width2_SOURCES): New variable.
48908
48909         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
48910         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
48911         not 0x00AB.
48912         Reported by Alexander V. Lukyanov <lav@netis.ru>.
48913
48914 2008-08-22  Eric Blake  <ebb9@byu.net>
48915
48916         test-lock, test-tls: mention why a test is skipped
48917         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
48918         skipped.
48919         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
48920
48921         count-one-bits: relax license
48922         * modules/count-one-bits (License): Relicense to LGPLv2+.
48923         Suggested by Ludovic Courtès, approved by Ben Pfaff.
48924
48925 2008-08-22  Andreas Schwab  <schwab@suse.de>
48926
48927         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
48928         Remove spurious space in assignment.
48929
48930 2008-08-21  Simon Josefsson  <simon@josefsson.org>
48931
48932         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
48933         Paul Eggert <eggert@CS.UCLA.EDU>.
48934
48935 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
48936
48937         * modules/gettext: Add m4/threadlib.m4.
48938
48939 2008-08-19  Eric Blake  <ebb9@byu.net>
48940
48941         test-c-stack: fix compilation failure on FreeBSD 5.0
48942         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
48943         headers before <sys/resource.h>.
48944         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
48945         the bug.
48946         Reported by Nelson H. F. Beebe.
48947
48948         strverscmp: migrate from "strverscmp.h" to <string.h>
48949         * modules/string (Makefile.am): Add new hooks.
48950         * modules/strverscmp (Files): Remove strverscmp.h.
48951         (Depends-on): Add string.
48952         (configure.ac): Add indicator.
48953         (Include): Mention new header.
48954         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
48955         defaults.
48956         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
48957         results.
48958         * lib/strverscmp.h: Delete.
48959         * lib/string.in.h (strverscmp): Provide declaration, when needed.
48960         * tests/test-strverscmp.c (includes): Adjust client.
48961         * lib/check-version.c (includes): Likewise.
48962         * NEWS: Document the change.
48963
48964         strverscmp: add unit test
48965         * modules/strverscmp-tests: New file.
48966         * tests/test-strverscmp.c: Likewise.
48967
48968 2008-08-19  Simon Josefsson  <simon@josefsson.org>
48969
48970         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
48971         regarding Windows crypto stuff, from Mono.
48972
48973 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
48974
48975         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
48976         if present, for intel RND.  Return error on failures.
48977
48978 2008-08-18  Ben Pfaff  <blp@gnu.org>
48979
48980         gitlog-to-changelog: give better diagnostic for failed pipe-open
48981         * build-aux/gitlog-to-changelog: Improve error message: suggest
48982         that the version of Git may be too old.
48983
48984 2008-08-18  Simon Josefsson  <simon@josefsson.org>
48985
48986         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
48987         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
48988
48989 2008-08-18  Bruno Haible  <bruno@clisp.org>
48990
48991         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
48992         pthread_in_use().
48993
48994 2008-08-18  Bruno Haible  <bruno@clisp.org>
48995
48996         * lib/glthread/threadlib.c: Include <pthread.h>.
48997
48998 2008-08-18  Bruno Haible  <bruno@clisp.org>
48999
49000         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
49001         glthread_recursive_lock_* macros.
49002         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
49003         Fix syntax error.
49004
49005 2008-08-18  Bruno Haible  <bruno@clisp.org>
49006
49007         * lib/glthread/thread.c: Avoid forcing a context switch right after
49008         thread creation.
49009
49010 2008-08-17  Bruno Haible  <bruno@clisp.org>
49011
49012         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
49013         * lib/glthread/thread.h: Provide Win32 specific implementation.
49014         * modules/thread (Files): Add lib/glthread/thread.c.
49015         (Depends-on): Add lock.
49016         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
49017
49018 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49019
49020         New module 'yield'.
49021         * modules/yield: New file.
49022         * lib/glthread/yield.h: New file.
49023         * m4/yield.m4: New file.
49024         * MODULES.html.sh (Multithreading): Add yield.
49025
49026 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49027
49028         New module 'thread'.
49029         * modules/thread: New file.
49030         * lib/glthread/thread.h: New file.
49031         * m4/thread.m4: New file.
49032         * MODULES.html.sh (Multithreading): Add thread.
49033
49034 2008-08-17  Bruno Haible  <bruno@clisp.org>
49035
49036         * lib/glthread/lock.h: Include <stdlib.h> always.
49037         * lib/glthread/tls.h: Likewise.
49038         * lib/glthread/cond.h: Likewise.
49039
49040 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49041
49042         New module 'cond'.
49043         * modules/cond: New file.
49044         * lib/glthread/cond.h: New file.
49045         * lib/glthread/cond.c: New file.
49046         * m4/cond.m4: New file.
49047         * MODULES.html.sh (Multithreading): Add cond.
49048
49049 2008-08-16  Eric Blake  <ebb9@byu.net>
49050
49051         c-stack: fix regression on Irix 5.3 from 2008-06-21
49052         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
49053         sa_sigaction...
49054         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
49055         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
49056         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
49057         * modules/signal (Makefile.am): Use the value.
49058         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
49059         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
49060         * doc/posix-headers/signal.texi (signal.h): Document this
49061         portability issue.
49062         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
49063         Reported by Tom G. Christensen.
49064
49065 2008-08-17  Bruno Haible  <bruno@clisp.org>
49066
49067         New module 'threadlib'.
49068         * modules/threadlib: New file.
49069         * lib/glthread/threadlib.c: New file, extracted from
49070         lib/glthread/lock.c.
49071         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
49072         functions.
49073         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
49074         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
49075         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
49076         macros.
49077         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
49078         (gl_DISABLE_THREADS): Remove macro.
49079         * modules/lock (Files): Remove build-aux/config.rpath.
49080         (Depends-on): Remove havelib. Add threadlib.
49081         (configure.ac-early): Remove section.
49082         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
49083         * modules/tls (Depends-on): Remove lock. Add threadlib.
49084         (Link): New section, copied from threadlib.
49085         * MODULES.html.sh (Multithreading): Add threadlib.
49086
49087 2008-08-14  Bruno Haible  <bruno@clisp.org>
49088
49089         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
49090         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
49091         glthread_rwlock_unlock, glthread_rwlock_destroy,
49092         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
49093         glthread_recursive_lock_destroy): Define as macros always.
49094         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
49095         glthread_lock_lock.
49096         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
49097         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
49098         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
49099         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
49100         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
49101         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
49102         (glthread_recursive_lock_lock_func): Renamed from
49103         glthread_recursive_lock_lock.
49104         (glthread_recursive_lock_unlock_func): Renamed from
49105         glthread_recursive_lock_unlock.
49106         (glthread_recursive_lock_destroy_func): Renamed from
49107         glthread_recursive_lock_destroy.
49108
49109 2008-08-14  Bruno Haible  <bruno@clisp.org>
49110
49111         * lib/glthread/lock.h: Renamed from lib/lock.h.
49112         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
49113         * lib/glthread/tls.h: Renamed from lib/tls.h.
49114         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
49115         * lib/fstrcmp.c: Update includes.
49116         * lib/strsignal.c: Update includes.
49117         * modules/lock (Files, Makefile.am): Update.
49118         (Include): Change to "glthread/lock.h".
49119         * modules/tls (Files, Makefile.am): Update.
49120         (Include): Change to "glthread/tls.h".
49121         * tests/test-lock.c: Update includes.
49122         * tests/test-tls.c: Update includes.
49123         * NEWS: Mention the renamed header files.
49124
49125 2008-08-11  Jim Meyering  <meyering@redhat.com>
49126
49127         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
49128
49129 2008-08-11  Eric Blake  <ebb9@byu.net>
49130
49131         test-c-stack: avoid C99-ism
49132         * tests/test-c-stack.c (main): Fix whitespace, move declaration
49133         before statement.
49134         Reported by Alain Guibert.
49135
49136 2008-08-10  Jim Meyering  <meyering@redhat.com>
49137
49138         ensure that return value of uinttostr et al are not ignored
49139         * lib/inttostr.h (__GNUC_PREREQ): Define.
49140         (__attribute_warn_unused_result__): Define.
49141         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
49142
49143 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
49144
49145         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
49146         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
49147
49148 2008-08-07  Jim Meyering  <meyering@redhat.com>
49149
49150         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
49151
49152         * modules/mkstemp (License): Relicense under LGPLv2+.
49153         * modules/tempname (License): Likewise.
49154
49155 2008-08-06  Bruno Haible  <bruno@clisp.org>
49156
49157         * lib/poll.c (poll): Further micro-optimization.
49158
49159 2008-08-06  Jim Meyering  <meyering@redhat.com>
49160
49161         inet_pton.c: use locale-independent tolower
49162         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
49163         (inet_pton6): Use c_tolower rather than tolower.
49164         * modules/inet_pton (Depends-on): Add c-ctype.
49165
49166 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
49167
49168         * lib/poll.c (poll): Avoid division when timeout is 0, cache
49169         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
49170
49171 2008-08-06  Jim Meyering  <meyering@redhat.com>
49172
49173         * modules/inet_pton (License): Relicense under LGPLv2+.
49174
49175 2008-08-03  Bruno Haible  <bruno@clisp.org>
49176
49177         Additional non-aborting API for lock and tls.
49178         * lib/lock.h: Include <errno.h>.
49179         (glthread_lock_init): New macro/function.
49180         (gl_lock_init): Define as wrapper around glthread_lock_init.
49181         (glthread_lock_lock): New macro/function.
49182         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
49183         (glthread_lock_unlock): New macro/function.
49184         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
49185         (glthread_lock_destroy): New macro/function.
49186         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
49187         (glthread_rwlock_init): New macro/function.
49188         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
49189         (glthread_rwlock_rdlock): New macro/function.
49190         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
49191         (glthread_rwlock_wrlock): New macro/function.
49192         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
49193         (glthread_rwlock_unlock): New macro/function.
49194         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
49195         (glthread_rwlock_destroy): New macro/function.
49196         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
49197         (glthread_recursive_lock_init): New macro/function.
49198         (gl_recursive_lock_init): Define as wrapper around
49199         glthread_recursive_lock_init.
49200         (glthread_recursive_lock_lock): New macro/function.
49201         (gl_recursive_lock_lock): Define as wrapper around
49202         glthread_recursive_lock_lock.
49203         (glthread_recursive_lock_unlock): New macro/function.
49204         (gl_recursive_lock_unlock): Define as wrapper around
49205         glthread_recursive_lock_unlock.
49206         (glthread_recursive_lock_destroy): New macro/function.
49207         (gl_recursive_lock_destroy): Define as wrapper around
49208         glthread_recursive_lock_destroy.
49209         (glthread_once): New macro/function.
49210         (gl_once): Define as wrapper around glthread_once.
49211         Update function declarations.
49212         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
49213         glthread_rwlock_init. Return error code.
49214         (glthread_rwlock_rdlock_multithreaded): Renamed from
49215         glthread_rwlock_rdlock. Return error code.
49216         (glthread_rwlock_wrlock_multithreaded): Renamed from
49217         glthread_rwlock_wrlock. Return error code.
49218         (glthread_rwlock_unlock_multithreaded): Renamed from
49219         glthread_rwlock_unlock. Return error code.
49220         (glthread_rwlock_destroy_multithreaded): Renamed from
49221         glthread_rwlock_destroy. Return error code.
49222         (glthread_recursive_lock_init_multithreaded): Renamed from
49223         glthread_recursive_lock_init. Return error code.
49224         (glthread_recursive_lock_lock_multithreaded): Renamed from
49225         glthread_recursive_lock_lock. Return error code.
49226         (glthread_recursive_lock_unlock_multithreaded): Renamed from
49227         glthread_recursive_lock_unlock. Return error code.
49228         (glthread_recursive_lock_destroy_multithreaded): Renamed from
49229         glthread_recursive_lock_destroy. Return error code.
49230         (glthread_once_call): Make static.
49231         (glthread_once_multithreaded): Renamed from glthread_once.
49232         * lib/tls.h: Include <errno.h>.
49233         (glthread_tls_key_init): New macro/function.
49234         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
49235         (glthread_tls_set): New macro/function.
49236         (gl_tls_set): Define as wrapper around glthread_tls_set.
49237         (glthread_tls_key_destroy): New macro/function.
49238         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
49239         Update function declarations.
49240         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
49241         glthread_tls_get.
49242         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
49243
49244 2008-08-04  Eric Blake  <ebb9@byu.net>
49245
49246         gnumakefile: use space, not TAB, outside of targets
49247         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
49248
49249 2008-08-02  Jim Meyering  <meyering@redhat.com>
49250
49251         getdate.y: avoid locale-dependent date parsing failure
49252         In Turkish locales, getdate would fail to recognize keywords
49253         containing a lowercase "i".  The solution is not to rely on
49254         locale-sensitive case-conversion.
49255         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
49256         (lookup_word): Use c_toupper in place of toupper.
49257         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
49258         Reported by Vefa Bicakci <bicave@superonline.com> in
49259         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
49260         * modules/getdate (Depends-on): Add c-ctype.
49261
49262 2008-08-02  Bruno Haible  <bruno@clisp.org>
49263
49264         * gnulib-tool (func_import): When updating or creating a .gitignore
49265         file, prepend each added line with a slash, and ignore leading slashes
49266         from the existing lines.
49267         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
49268
49269 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49270
49271         Portability fix for GNU make 3.79.1.
49272         * top/GNUmakefile: Avoid 'else COND', which older GNU make
49273         versions do not understand.
49274
49275 2008-08-01  Bruno Haible  <bruno@clisp.org>
49276
49277         Work around bug of HP-UX 10.20 cc with -0.0 literal.
49278         * tests/test-isnanf.h (zero): New variable.
49279         (main): Avoid literal -0.0f.
49280         * tests/test-isnand.h (zero): New variable.
49281         (main): Avoid literal -0.0.
49282         * tests/test-isnanl.h (zero): New variable.
49283         (main): Avoid literal -0.0L.
49284         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
49285         (test_float, test_double, test_long_double): Avoid literals -0.0f,
49286         -0.0, -0.0L.
49287         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
49288         (test_signbitd): Avoid literal -0.0.
49289         (test_signbitl): Avoid literal -0.0L.
49290         * tests/test-ceilf1.c (zero): New variable.
49291         (main): Avoid literal -0.0f.
49292         * tests/test-ceill.c (zero): New variable.
49293         (main): Avoid literal -0.0L.
49294         * tests/test-floorf1.c (zero): New variable.
49295         (main): Avoid literal -0.0f.
49296         * tests/test-floorl.c (zero): New variable.
49297         (main): Avoid literal -0.0L.
49298         * tests/test-roundf1.c (zero): New variable.
49299         (main): Avoid literal -0.0f.
49300         * tests/test-round1.c (zero): New variable.
49301         (main): Avoid literal -0.0.
49302         * tests/test-roundl.c (zero): New variable.
49303         (main): Avoid literal -0.0L.
49304         * tests/test-truncf1.c (zero): New variable.
49305         (main): Avoid literal -0.0f.
49306         * tests/test-trunc1.c (zero): New variable.
49307         (main): Avoid literal -0.0.
49308         * tests/test-truncl.c (zero): New variable.
49309         (main): Avoid literal -0.0L.
49310         * tests/test-frexp.c (zero): New variable.
49311         (main): Avoid literal -0.0.
49312         * tests/test-frexpl.c (zero): New variable.
49313         (main): Avoid literal -0.0L.
49314         * tests/test-ldexpl.c (zero): New variable.
49315         (main): Avoid literal -0.0L.
49316         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
49317         (zerod, zerol): New variables.
49318         (test_function): Avoid literals -0.0, -0.0L.
49319         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
49320         (zerod, zerol): New variables.
49321         (test_function): Avoid literals -0.0, -0.0L.
49322         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
49323         (zerod, zerol): New variables.
49324         (test_function): Avoid literals -0.0, -0.0L.
49325         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
49326         (zerod, zerol): New variables.
49327         (test_function): Avoid literals -0.0, -0.0L.
49328         * tests/test-strtod.c (zero): New variable.
49329         (main): Avoid literal -0.0.
49330         Reported by Jonathan C. Patschke <jp@centtech.com>.
49331
49332 2008-07-31  Jim Meyering  <meyering@redhat.com>
49333
49334         sha256.h: correct definition of SHA224_DIGEST_SIZE
49335         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
49336         Reported by Paulie Pena IV <paulie4@gmail.com>.
49337         Define as 224 / 8, rather than as a literal.
49338         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
49339         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
49340         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
49341
49342 2008-07-31  Bruno Haible  <bruno@clisp.org>
49343
49344         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
49345         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
49346         Reported by Jonathan Patschke <jp@centtech.com>.
49347
49348 2008-07-31  Bruno Haible  <bruno@clisp.org>
49349
49350         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
49351         Reported by Paolo Bonzini <bonzini@gnu.org>.
49352
49353 2008-07-30  Eric Blake  <ebb9@byu.net>
49354
49355         test-strtod: allow compilation without -lm
49356         * tests/test-strtod.c (main): Avoid link dependence on fabs.
49357         Reported by Dennis Clarke <blastwave@gmail.com>.
49358
49359 2008-07-28  Jim Meyering  <meyering@redhat.com>
49360
49361         bootstrap: work also when there are no .po files in po/
49362         * build-aux/bootstrap (update_po_files): Complete the change
49363         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
49364
49365 2008-07-27  Jim Meyering  <meyering@redhat.com>
49366
49367         * users.txt: Add zile.
49368
49369 2008-07-26  Ben Pfaff  <blp@gnu.org>
49370
49371         Add missing dependencies on new m4/exponent[fdl].m4 files.
49372         * modules/isnanf-nolibm: Add m4/exponentf.m4.
49373         * modules/isnand-nolibm: Add m4/exponentd.m4.
49374         * modules/isnanl-nolibm: Add m4/exponentl.m4.
49375         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
49376         m4/isnan[fdl].m4, because the macros actually used moved.
49377         Reported by Jim Meyering.
49378
49379 2008-07-14  Ben Pfaff  <blp@gnu.org>
49380
49381         Add isinf module.
49382         * lib/isinf.c: New file.
49383         * lib/math.in.h: Define isinf macro if we have decided to replace
49384         it.
49385         * m4/isinf.m4: New file.
49386         * m4/math_h.m4: Initialize and substitute variables for isinf
49387         module.
49388         * modules/isinf: New file.
49389         * modules/isinf-tests: New file.
49390         * modules/math: Add substitutions for new module.
49391         * tests/test-isinf.c: New file.
49392         * doc/posix-functions/isinf.texi: Mention new module.
49393         * MODULES.html.sh: Mention new module.
49394
49395 2008-07-14  Ben Pfaff  <blp@gnu.org>
49396
49397         Factor out some macros for use by additional modules.
49398         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
49399         exponentf.m4.
49400         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
49401         exponentd.m4.
49402         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
49403         file exponentl.m4.
49404         * m4/exponentf.m4: New file.
49405         * m4/exponentd.m4: New file.
49406         * m4/exponentl.m4: New file.
49407         * modules/isnanf: Use new file m4/exponentf.m4.
49408         * modules/isnand: Use new file m4/exponentd.m4.
49409         * modules/isnanl: Use new file m4/exponentl.m4.
49410
49411 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
49412
49413         mktime.c: normalize tp->tm_isdst value to -1/0/1.
49414         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
49415         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
49416         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
49417
49418         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
49419         readlink on platforms without PATH_MAX.
49420
49421 2008-07-21  Eric Blake  <ebb9@byu.net>
49422
49423         Warn, not fail, on stale version.
49424         * top/GNUmakefile (_curr-ver): Tone down previous patch.
49425
49426         Don't allow installation with stale devel version number.
49427         * top/GNUmakefile (_is-install-target): New macro.
49428         (_curr-ver): Forbid installation with stale version number.
49429
49430 2008-07-20  Bruno Haible  <bruno@clisp.org>
49431
49432         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
49433         TESTS_ENVIRONMENT.
49434         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
49435
49436 2008-07-20  Bruno Haible  <bruno@clisp.org>
49437
49438         * lib/c-stack.h (c_stack_action): Add documentation.
49439         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
49440
49441 2008-07-20  Bruno Haible  <bruno@clisp.org>
49442
49443         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
49444         * modules/readlink (License): Likewise.
49445
49446 2008-07-17  Eric Blake  <ebb9@byu.net>
49447
49448         * modules/c-stack (Link): Fix typo.
49449
49450         Make c-stack use libsigsegv, when available.
49451         * modules/c-stack (Depends-on): Add libsigsegv.
49452         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
49453         needed.
49454         * lib/c-stack.c (SIGSTKSZ): Define fallback.
49455         (segv_handler, overflow_handler, c_stack_action)
49456         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
49457         implementation when libsigsegv is available, but only when using
49458         the library is necessary.
49459         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
49460         comment, explaining why XSI check fails on Linux.
49461         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
49462         * tests/test-c-stack2.sh: Tweak skip message.
49463         * NEWS: Document new link-time requirements.
49464
49465 2008-07-16  Eric Blake  <ebb9@byu.net>
49466
49467         c-stack: Expose false positives when not using libsigsegv.
49468         * modules/c-stack-tests (Files): Expand test.
49469         * tests/test-c-stack.c (main): Add means to conditionally trigger
49470         non-overflow SIGSEGV.
49471         * tests/test-c-stack2.sh: New file.
49472
49473 2008-07-14  Bruno Haible  <bruno@clisp.org>
49474
49475         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
49476         Reported by Eric Blake.
49477
49478 2008-07-14  Sam Steingold  <sds@gnu.org>
49479             Bruno Haible  <bruno@clisp.org>
49480
49481         New module libsigsegv.
49482         * modules/libsigsegv: New file.
49483         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
49484         modifications.
49485         * MODULES.html.sh (Signal handling): New section.
49486
49487 2008-07-14  Bruno Haible  <bruno@clisp.org>
49488
49489         * modules/unictype/ctype-* (Description): Add the word "function".
49490         Improves the resulting doc in MODULES.html.
49491
49492 2008-07-12  Ben Pfaff  <blp@gnu.org>
49493
49494         Add longlong module.
49495         * modules/longlong: New file.
49496
49497 2008-07-12  Bruno Haible  <bruno@clisp.org>
49498
49499         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
49500         to empty.
49501
49502 2008-07-10  Ben Pfaff  <blp@gnu.org>
49503
49504         Add isnan module.
49505         * doc/posix-functions/isnan.texi: Mention new module.
49506         * lib/math.in.h: Define isnan macro if we have decided to replace
49507         it.
49508         * m4/isnan.m4: New file.
49509         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
49510         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
49511         also.
49512         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
49513         redundancy.
49514         * m4/math_h.m4: Initialize and substitute variables for isnan
49515         module.
49516         * modules/isnan: New file.
49517         * modules/isnan-tests: New file.
49518         * modules/math: Add substitutions for new module.
49519         * tests/test-isnan.c: New file.
49520         * MODULES.html.sh: Mention new module.
49521
49522 2008-07-10  Ben Pfaff  <blp@gnu.org>
49523
49524         Add isnanf module.
49525         * lib/isnanf.m4: New file.
49526         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
49527         (gl_HAVE_ISNANF_IN_LIBM): New macro.
49528         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
49529         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
49530         * modules/isnanf: New file.
49531         * modules/isnanf-tests: New file.
49532         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
49533         files.
49534         * tests/test-isnanf-nolibm.c: factored most of its contents into
49535         new file tests/test-isnanf.h.
49536         * tests/test-isnanf.h: New file.
49537         * tests/test-isnanf.c: New file.
49538         * MODULES.html.sh: Mention new module.
49539         * doc/glibc-functions/isnanf.texi: Mention new module.
49540
49541 2008-07-10  Ben Pfaff  <blp@gnu.org>
49542
49543         Add isnand module.
49544         * lib/isnand.h: New file.
49545         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
49546         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
49547         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
49548         functionality also.
49549         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
49550         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
49551         (gl_HAVE_ISNAND_IN_LIBM): New macro.
49552         * modules/isnand: New file.
49553         * modules/isnand-tests: New file.
49554         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
49555         files.
49556         * tests/test-isnand-nolibm.c: factored most of its contents into
49557         new file tests/test-isnand.h.
49558         * tests/test-isnand.h: New file.
49559         * tests/test-isnand.c: New file.
49560         * MODULES.html.sh: Mention new module.
49561
49562 2008-07-10  Ben Pfaff  <blp@gnu.org>
49563
49564         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
49565         * lib/isnand.h: Rename lib/isnand-nolibm.h.
49566         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
49567         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
49568         * modules/isnanf-nolibm: Update references to renamed files.
49569         * modules/isnand-nolibm: Likewise.
49570         * modules/isnanf-nolibm-tests: Likewise.
49571         * modules/isnand-nolibm-tests: Likewise.
49572         * lib/frexp.c: Likewise.
49573         * lib/isfinite.c: Likewise.
49574         * lib/signbitd.c: Likewise.
49575         * lib/signbitf.c: Likewise.
49576         * lib/vasnprintf.c: Likewise.
49577         * tests/test-ceilf1.c: Likewise.
49578         * tests/test-ceilf2.c: Likewise.
49579         * tests/test-floorf1.c: Likewise.
49580         * tests/test-floorf2.c: Likewise.
49581         * tests/test-frexp.c: Likewise.
49582         * tests/test-round1.c: Likewise.
49583         * tests/test-round2.c: Likewise.
49584         * tests/test-roundf1.c: Likewise.
49585         * tests/test-strtod.c: Likewise.
49586         * tests/test-trunc1.c: Likewise.
49587         * tests/test-trunc2.c: Likewise.
49588         * tests/test-truncf1.c: Likewise.
49589         * tests/test-truncf2.c: Likewise.
49590         * NEWS: Mention the renamed header files.
49591
49592 2008-07-11  Jim Meyering  <meyering@redhat.com>
49593
49594         vc-list-files: make the last-resort awk code more portable
49595         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
49596         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
49597         does not support it.
49598
49599 2008-07-10  Eric Blake  <ebb9@byu.net>
49600
49601         Work with tar's bootstrap.
49602         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
49603         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
49604         an m4 comment.
49605
49606 2008-07-09  Jim Meyering  <meyering@redhat.com>
49607
49608         posix-shell.m4: fix typo that made this test malfunction
49609         * m4/posix-shell.m4: Remove capitalization in variable name.
49610
49611 2008-07-08  Bruno Haible  <bruno@clisp.org>
49612
49613         * m4/onceonly.m4: Update comments.
49614         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49615
49616 2008-07-04  Jim Meyering  <meyering@redhat.com>
49617
49618         * users.txt: Add vc-dwim.
49619         (bison, coreutils): Use the gitweb URL.
49620
49621 2008-07-03  Jim Meyering  <meyering@redhat.com>
49622
49623         * users.txt: Add libffcall.  From Sam Steingold.
49624
49625 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
49626
49627         getdate.y: do not ignore TZ with relative day, month or year offset
49628         * lib/getdate.y (get_date): Move the tz-handling block to follow the
49629         relative-date-handling, since otherwise, the latter would clobber the
49630         sole output (an updated Start value) of the tz-handling block.
49631         * tests/test-getdate.c: Tests for the fix
49632
49633 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49634
49635         Recognize 'foo_LIBRARIES += libgnu.a'.
49636         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
49637         makefile snippet has already specified an installation location,
49638         also using '+='.
49639
49640 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
49641
49642         getdate.y: factor out common actions
49643         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
49644         Use them in place of open-coded actions.
49645
49646 2008-07-01  Simon Josefsson  <simon@josefsson.org>
49647
49648         Add self-test for getdate module.
49649         * modules/getdate-tests: New file.
49650         * tests/test-getdate.c: New file.
49651
49652 2008-06-29  Bruno Haible  <bruno@clisp.org>
49653
49654         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
49655         .gitignore.
49656         Reported by Sylvain Beucler <beuc@beuc.net>.
49657
49658 2008-06-29  Bruno Haible  <bruno@clisp.org>
49659
49660         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
49661         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
49662
49663 2008-06-29  Bruno Haible  <bruno@clisp.org>
49664
49665         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
49666         EXTRA_DIST.
49667         Reported by Sylvain Beucler <beuc@beuc.net>.
49668
49669 2008-06-26  Jim Meyering  <meyering@redhat.com>
49670
49671         make several modules depend on the "open" module
49672         This provides slightly increased consistency when opening-for-write
49673         the name of a non-directory spelled with a trailing slash.
49674         * modules/chdir-safer: Likewise.
49675         * modules/chown: Likewise.
49676         * modules/clean-temp: Likewise.
49677         * modules/copy-file: Likewise.
49678         * modules/fchdir: Likewise.
49679         * modules/fcntl-safer: Likewise.
49680         * modules/pipe: Likewise.
49681         * modules/utime: Likewise.
49682         Prompted by Eric Blake and Bruno Haible.
49683
49684 2008-06-24  Andreas Schwab  <schwab@suse.de>
49685
49686         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
49687         literals can be used as initializers for global variables.
49688
49689 2008-06-23  Eric Blake  <ebb9@byu.net>
49690
49691         Make gnulib-cache.m4 easier to diff.
49692         * gnulib-tool (func_import): Allow newlines when reading cached
49693         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
49694
49695 2008-06-23  Bruno Haible  <bruno@clisp.org>
49696
49697         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
49698         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
49699         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
49700         m4/signalblocking.m4.
49701         (gl_PREREQ_SIGACTION): Don't invoke it.
49702         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
49703         gl_PREREQ_SIG_HANDLER_H.
49704         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
49705         Don't check for sigaction here.
49706
49707 2008-06-23  Bruno Haible  <bruno@clisp.org>
49708
49709         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
49710         (install_handlers): Don't set the SA_RESETHAND flag.
49711
49712 2008-06-23  Bruno Haible  <bruno@clisp.org>
49713
49714         * m4/sigaction.m4: Comment fixes.
49715         * lib/signal.in.h: Likewise.
49716
49717 2008-06-23  Eric Blake  <ebb9@byu.net>
49718
49719         Fix typo.
49720         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
49721
49722         Avoid SA_ namespace.
49723         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
49724         Reported by Ralf Wildenhues.
49725
49726         Avoid test failure due to SA_RESTORER.
49727         * tests/test-sigaction.c (SA_MASK): New macro.
49728         (main): Avoid failing due to extension flags being set.
49729         Reported by Jim Meyering.
49730
49731         Revert use of sig-handler.h in sigprocmask.c.
49732         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
49733         it requires the existence of struct sigaction.
49734         * lib/sigprocmask.c (handler_t): Restore typedef.
49735         (rpl_signal, old_handlers): Use local type.
49736
49737 2008-06-22  Bruno Haible  <bruno@clisp.org>
49738
49739         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
49740         conditionally.
49741         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49742
49743 2008-06-22  Bruno Haible  <bruno@clisp.org>
49744
49745         * doc/posix-functions/siginterrupt.texi: Move note.
49746
49747         * lib/signal.in.h (SA_RESTART): New macro.
49748         * lib/sigaction.c: Update comment.
49749
49750         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
49751
49752         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
49753         (gl_PREREQ_SIGPROCMASK): Invoke it.
49754         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
49755
49756         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
49757
49758         * lib/sigprocmask.c: Update a comment.
49759
49760 2008-06-21  Eric Blake  <ebb9@byu.net>
49761
49762         Use sigaction module rather than signal().
49763         * modules/c-stack (Depends-on): Add sigaction.
49764         * modules/fatal-signal (Depends-on): Likewise.
49765         * modules/nanosleep (Depends-on): Likewise.
49766         * modules/sigprocmask (Files): Add sig-handler.h.
49767         * modules/sigaction (Files): Likewise.
49768         * lib/sig-handler.h (get_handler): New file, suggested by Paul
49769         Eggert.
49770         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
49771         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
49772         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
49773         (init_fatal_signals): Likewise.
49774         * lib/nanosleep.c (rpl_nanosleep): Likewise.
49775         (siginterrupt): Delete fallback.
49776         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
49777         instead.
49778         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
49779         siginterrupt.
49780
49781         New module sigaction, for mingw.
49782         * modules/sigaction: New module...
49783         * modules/sigaction-tests: ...and its test.
49784         * m4/sigaction.m4: New file.
49785         * lib/sigaction.c: Likewise.
49786         * tests/test-sigaction.c: Likewise.
49787         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
49788         * modules/signal (Makefile.am): Likewise.
49789         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
49790         needed.
49791         * doc/posix-headers/signal.texi (signal.h): Mention provided
49792         types.
49793         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
49794         that sigaction is preferable.
49795         * doc/posix-functions/sigaction.texi (sigaction): Mention new
49796         module.
49797         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49798         sigaction.
49799
49800         Improve robustness of sigprocmask by overriding signal.
49801         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
49802         is in use.
49803         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
49804         (SIGKILL, SIGSTOP): Provide fallbacks.
49805         (rpl_signal): Implement.
49806         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
49807         signal can be called inside handlers.
49808
49809         Fix nanosleep module on mingw.
49810         * modules/nanosleep (Depends-on): Add sys_select.
49811         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
49812
49813         Fix licensing of sigprocmask.
49814         * modules/raise (License): Relicense as LGPL.
49815
49816 2008-06-21  Bruno Haible  <bruno@clisp.org>
49817
49818         * lib/propername.c (proper_name_utf8): Don't use the transliterated
49819         result if it contains question marks.
49820         Reported by Michael Geng <linux@michaelgeng.de>.
49821
49822 2008-06-19  Bruno Haible  <bruno@clisp.org>
49823
49824         Fix CVS-ism.
49825         * doc/gnulib.texi: Include updated-stamp.texi.
49826         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
49827         (updated-stamp.texi): New rule.
49828         (gnulib.info): Depend on it.
49829         * doc/.gitignore: Add updated-stamp.texi.
49830         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
49831
49832 2008-06-19  Bruno Haible  <bruno@clisp.org>
49833
49834         * doc/Makefile (gnulib.info): Update and simplify dependencies.
49835         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
49836
49837 2008-06-19  Eric Blake  <ebb9@byu.net>
49838
49839         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
49840         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
49841         Reported by Stepan Kasal.
49842
49843 2008-06-18  Bruno Haible  <bruno@clisp.org>
49844
49845         * lib/fatal-signal.c (init_fatal_signals): Add comment.
49846         Reported by Eric Blake.
49847
49848 2008-06-18  Eric Blake  <ebb9@byu.net>
49849
49850         Work around cygwin 1.5.25 strsignal bug.
49851         * tests/test-strsignal.c: Allow for const char *.
49852         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
49853
49854 2008-06-18  Simon Josefsson  <simon@josefsson.org>
49855
49856         * users.txt: Update URL to article and add author/date
49857         information.
49858
49859 2008-06-17  Bruno Haible  <bruno@clisp.org>
49860
49861         New macro gl_DISABLE_THREADS.
49862         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
49863         if the user did not pass --enable-threads or --disable-threads option.
49864         (gl_DISABLE_THREADS): New macro.
49865         Reported by Eric Blake <ebb9@byu.net>.
49866
49867 2008-06-17  Bruno Haible  <bruno@clisp.org>
49868
49869         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
49870         when the macro ignores it.
49871         Based on a patch by Eric Blake <ebb9@byu.net>.
49872
49873 2008-06-17  Bruno Haible  <bruno@clisp.org>
49874
49875         * modules/tls (License): Change to LGPLv2+.
49876         Reported by Eric Blake.
49877
49878 2008-06-17  Eric Blake  <ebb9@byu.net>
49879
49880         Simplify c-stack prerequisites.
49881         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
49882         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
49883         no longer requires <ucontext.h> to exist.  Optimize setrlimit
49884         check.
49885         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
49886         <sys/resource.h>.
49887
49888         Move c-stack test into testsuite.
49889         * modules/c-stack-tests: New file.
49890         * lib/c-stack.c [DEBUG]: Move test program...
49891         * tests/test-c-stack.c: ...into this new file.  Skip rather than
49892         fail test if sigaltstack is lacking.
49893         * tests/test-c-stack.sh: New driver file.
49894
49895 2008-06-16  Eric Blake  <ebb9@byu.net>
49896
49897         Use raise module consistently.
49898         * modules/fatal-signal (Depends-on): Add raise.
49899         * modules/sigprocmask (Depends-on): Likewise.
49900         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
49901         * lib/sigprocmask.c (sigprocmask): Likewise.
49902         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
49903         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
49904
49905         Fix compliance bug in sigpending.
49906         * lib/sigprocmask.c (sigpending): Return pending array via
49907         parameter, not return value.
49908
49909 2008-06-14  Eric Blake  <ebb9@byu.net>
49910
49911         Improve obstack-printf test code.
49912         * tests/test-obstack-printf.c (test_function): Fix comment, and
49913         simplify usage of obstack_* in macros.  Add a test for coverage.
49914         Reported by Bruno Haible.
49915
49916 2008-06-14  Bruno Haible  <bruno@clisp.org>
49917
49918         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
49919         array size as a constant, not as a const variable.
49920         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
49921         AC_USE_SYSTEM_EXTENSIONS.
49922         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
49923         Test whether the obstack_printf function actually exists.
49924         * modules/obstack-printf (Depends-on): Add extensions.
49925         (Include): Remove obstack.h.
49926         * modules/obstack-printf-posix (Depends-on): Add extensions.
49927         (Include): Remove obstack.h.
49928
49929 2008-06-13  Eric Blake  <ebb9@byu.net>
49930
49931         Add obstack-printf and obstack-printf-posix modules.
49932         * modules/obstack-printf: New file.
49933         * modules/obstack-printf-posix: Likewise.
49934         * MODULES.html.sh (Misc): Mention them.
49935         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
49936         Likewise.
49937         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
49938         Likewise.
49939         * modules/stdio (Makefile.am): Accomodate new modules.
49940         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49941         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
49942         Declare.
49943         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
49944         functions.
49945         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
49946         (gl_REPLACE_OBSTACK_PRINTF): New macros
49947         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
49948         * tests/test-obstack-printf.c: New file.
49949         * modules/obstack-printf-tests: Likewise.
49950         * modules/obstack-printf-posix-tests: Likewise.
49951
49952 2008-06-11  Bruno Haible  <bruno@clisp.org>
49953
49954         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
49955         * lib/open.c: Include errno.h.
49956         (open): Fail when attempting to write to a file that has a trailing
49957         slash.
49958         * tests/test-open.c (main): Test against trailing slash bug.
49959         * doc/posix-functions/open.texi: Mention the trailing slash bug.
49960
49961 2008-06-10  Bruno Haible  <bruno@clisp.org>
49962
49963         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
49964         for $? to work inside the trap command, with various /bin/sh-s.
49965         * tests/test-vc-list-files-cvs.sh: Likewise.
49966
49967 2008-06-10  Bruno Haible  <bruno@clisp.org>
49968
49969         * lib/acl-internal.h: Don't include gettext.h here.
49970         * lib/set-mode-acl.c: Include gettext.h here.
49971         * lib/copy-acl.c: Likewise.
49972
49973 2008-06-10  Bruno Haible  <bruno@clisp.org>
49974
49975         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
49976         * lib/wait-process.c (wait_subprocess): Likewise.
49977         * lib/execute.h (execute): Add termsigp argument.
49978         * lib/execute.c (execute): Likewise.
49979         * lib/csharpcomp.c (compile_csharp_using_pnet,
49980         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
49981         * lib/csharpexec.c (execute_csharp_using_pnet,
49982         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
49983         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
49984         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
49985         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
49986         is_jikes_present): Update.
49987         * lib/javaexec.c (execute_java_class): Update.
49988         * lib/javaversion.c (execute_and_read_line): Update.
49989         * NEWS: Document the changes.
49990         Reported by Eric Blake.
49991
49992 2008-06-10  Eric Blake  <ebb9@byu.net>
49993
49994         Add missing include.
49995         * tests/test-strstr.c (includes): Add <signal.h>.
49996         * tests/test-strcasestr.c (includes): Likewise.
49997         * tests/test-memmem.c (includes): Likewise.
49998
49999 2008-06-10  Bruno Haible  <bruno@clisp.org>
50000
50001         * lib/wait-process.c (wait_subprocess): Add an assertion.
50002
50003 2008-06-10  Bruno Haible  <bruno@clisp.org>
50004
50005         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
50006
50007 2008-06-10  Bruno Haible  <bruno@clisp.org>
50008
50009         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
50010         using alarm().
50011         * tests/test-strcasestr.c (main): Likewise.
50012         * tests/test-strstr.c (main): Likewise.
50013
50014 2008-06-09  Bruno Haible  <bruno@clisp.org>
50015
50016         Work around the Solaris 10 ACE ACLs ABI change.
50017         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
50018         declare if ACL_NO_TRIVIAL is present.
50019         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
50020         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
50021         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
50022         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
50023         define if ACL_NO_TRIVIAL is present.
50024         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
50025         and use the current ABI.
50026         (file_has_acl): Use same #if condition as elsewhere.
50027         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
50028         in use, and use the current ABI.
50029         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
50030         Reported by Jim Meyering.
50031
50032 2008-06-09  Eric Blake  <ebb9@byu.net>
50033
50034         Work around environments that (stupidly) ignore SIGALRM.
50035         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
50036         before using alarm().
50037         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50038         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50039         Reported by Ian Beckwith <ianb@erislabs.net>.
50040
50041         Produce autobuild blurb earlier in log.
50042         * modules/autobuild (configure.ac-early): Move AB_INIT here.
50043
50044 2008-06-09  Jim Meyering  <meyering@redhat.com>
50045         and OndÅ™ej Vašík  <ovasik@redhat.com>
50046
50047         utimens.c: correct kernel bug work-around
50048         OndÅ™ej Vašík found that the invalid return value of 280 indicates
50049         failure, not success, and the kernel bug we're trying to work
50050         around affects not just the utimensat call, but also the fallback
50051         futimens call.
50052         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
50053         not success.
50054         [HAVE_FUTIMENS]: Use the same work-around, here.
50055
50056 2008-06-09  Jim Meyering  <meyering@redhat.com>
50057
50058         add more guards around definition of ACE_-related code
50059         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
50060         ALLOW and ACE_OWNER are also defined.
50061
50062 2008-06-08  Bruno Haible  <bruno@clisp.org>
50063
50064         * lib/acl-internal.h: Add me as co-author.
50065         * lib/file-has-acl.c: Likewise.
50066         * lib/set-mode-acl.c: Likewise.
50067         * lib/copy-acl.c: Likewise.
50068
50069 2008-06-08  Bruno Haible  <bruno@clisp.org>
50070
50071         Add support for AIX ACLs.
50072         * lib/acl-internal.h (acl_nontrivial): New declaration.
50073         * lib/file-has-acl.c (acl_nontrivial): New function.
50074         (file_has_acl): Add implementation using AIX 4 ACL API.
50075         * lib/set-mode-acl.c (qset_acl): Likewise.
50076         * lib/copy-acl.c (qcopy_acl): Likewise.
50077
50078 2008-06-08  Bruno Haible  <bruno@clisp.org>
50079
50080         Add support for HP-UX ACLs.
50081         * lib/acl-internal.h (acl_nontrivial): New declaration.
50082         * lib/file-has-acl.c (acl_nontrivial): New function.
50083         (file_has_acl): Add implementation using HP-UX 11 ACL API.
50084         * lib/set-mode-acl.c (qset_acl): Likewise.
50085         * lib/copy-acl.c (qcopy_acl): Likewise.
50086
50087 2008-06-08  Bruno Haible  <bruno@clisp.org>
50088
50089         Add support for Cygwin ACLs.
50090         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
50091         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
50092         the chmod_or_fchmod call.
50093         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
50094
50095 2008-06-08  Bruno Haible  <bruno@clisp.org>
50096
50097         Fix bug with setuid modes in Solaris 10+ code.
50098         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
50099         succeeded, when the mode contains some special bits.
50100
50101 2008-06-08  Bruno Haible  <bruno@clisp.org>
50102
50103         Add support for Solaris 7..10 ACLs.
50104         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
50105         declarations.
50106         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
50107         functions.
50108         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
50109         * lib/set-mode-acl.c (qset_acl): Likewise.
50110         * lib/copy-acl.c (qcopy_acl): Likewise.
50111
50112 2008-06-08  Bruno Haible  <bruno@clisp.org>
50113
50114         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
50115         declaration.
50116         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
50117         (acl_access_nontrivial): Remove MacOS X case.
50118         (file_has_acl): Use acl_extended_nontrivial.
50119         * lib/copy-acl.c (qcopy_acl): Likewise.
50120
50121 2008-06-08  Bruno Haible  <bruno@clisp.org>
50122
50123         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
50124
50125 2008-06-08  Jim Meyering  <meyering@redhat.com>
50126
50127         * modules/acl (Maintainer): Add Bruno Haible.
50128
50129 2008-06-07  Bruno Haible  <bruno@clisp.org>
50130
50131         Improve support for Tru64 ACLs.
50132         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
50133         ACL on OSF/1.
50134
50135 2008-06-07  Bruno Haible  <bruno@clisp.org>
50136
50137         Add support for MacOS X ACLs.
50138         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
50139         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
50140         * lib/set-mode-acl.c (qset_acl): Likewise.
50141         * lib/copy-acl.c (qcopy_acl): Likewise.
50142
50143 2008-06-07  Bruno Haible  <bruno@clisp.org>
50144
50145         Fix memory leak introduced on 2008-05-22.
50146         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
50147         use.
50148
50149 2008-06-07  Bruno Haible  <bruno@clisp.org>
50150
50151         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
50152         to construct an empty ACL.
50153
50154 2008-06-07  Bruno Haible  <bruno@clisp.org>
50155
50156         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
50157         precisely.
50158         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
50159
50160 2008-06-07  Bruno Haible  <bruno@clisp.org>
50161
50162         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
50163         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
50164
50165 2008-06-07  Bruno Haible  <bruno@clisp.org>
50166
50167         * doc/posix-functions/_setjmp.texi: Explain the use of this function
50168         regardless of POSIX.
50169         * doc/posix-functions/_longjmp.texi: Likewise.
50170         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
50171         SystemV platform in this case.
50172
50173 2008-06-06  Eric Blake  <ebb9@byu.net>
50174
50175         Document abort() bugs.
50176         * doc/posix-functions/abort.texi (abort): Mention anomalies.
50177
50178         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
50179         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
50180         sigsetjmp.
50181         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
50182         siglongjmp, but only as a macro.
50183         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
50184         is obsolete.
50185         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
50186
50187         Tweak documentation to cover cygwin argz bugs.
50188         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
50189         argz bug fix; no code change needed since no cygwin releases
50190         occurred between the last fix and the bug being tested.
50191         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
50192         module and recently fixed cygwin bugs.
50193         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
50194         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
50195         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
50196         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
50197         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
50198         Likewise.
50199         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
50200         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
50201         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
50202         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
50203         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
50204         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
50205         Likewise.
50206
50207         Avoid gcc warning on cygwin.
50208         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
50209         !ACL_NO_TRIVIAL]: Avoid unused variable.
50210
50211 2008-06-05  Eric Blake  <ebb9@byu.net>
50212
50213         Be tolerant of UNKNOWN version in gnulib-tool test dir.
50214         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
50215         git-version-gen fails to come up with a version.
50216         Reported by Simon Josefsson.
50217
50218 2008-06-05  Jim Meyering  <meyering@redhat.com>
50219             Paul Eggert  <eggert@cs.ucla.edu>
50220
50221         utimens.c: work around a probable Linux kernel bug
50222         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
50223         appears to be a kernel bug that causes utimensat to return 280
50224         instead of 0, indicating success.
50225
50226 2008-06-04  Bruno Haible  <bruno@clisp.org>
50227
50228         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
50229         2008-06-01 commit.
50230
50231 2008-06-04  Bruno Haible  <bruno@clisp.org>
50232
50233         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
50234         * lib/file-has-acl.c (acl_access_nontrivial): New function.
50235         (file_has_acl): Use it. Save errno afterwards.
50236         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
50237
50238 2008-06-03  Bruno Haible  <bruno@clisp.org>
50239
50240         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
50241         draft code. Simplify #ifs.
50242         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
50243         Put Solaris code after POSIX-draft code. Fix comments regarding
50244         Solaris 10, HP-UX. Mention Cygwin.
50245         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
50246
50247 2008-06-03  Eric Blake  <ebb9@byu.net>
50248
50249         Provide fallback for older kernels.
50250         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
50251         Provide runtime fallback if kernel lacks support.
50252         Reported by Mike Frysinger.
50253
50254 2008-06-02  Bruno Haible  <bruno@clisp.org>
50255
50256         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
50257         it exists.
50258
50259 2008-06-02  Bruno Haible  <bruno@clisp.org>
50260
50261         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
50262         * lib/copy-acl.c (qcopy_acl): Update comment.
50263
50264 2008-06-02  Bruno Haible  <bruno@clisp.org>
50265
50266         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
50267         like ACL APIs.
50268
50269 2008-06-02  Bruno Haible  <bruno@clisp.org>
50270
50271         * tests/test-file-has-acl.sh: Use different code for Cygwin.
50272         * tests/test-set-mode-acl.sh: Likewise.
50273         * tests/test-copy-acl.sh: Likewise.
50274         * tests/test-copy-file.sh: Likewise.
50275
50276 2008-06-02  Bruno Haible  <bruno@clisp.org>
50277
50278         * tests/test-file-has-acl.sh: Remove unused code.
50279
50280 2008-06-01  Bruno Haible  <bruno@clisp.org>
50281
50282         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
50283         (copy_acl): Just a wrapper around qcopy_acl that emits the error
50284         messages.
50285         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
50286
50287 2008-06-01  Bruno Haible  <bruno@clisp.org>
50288
50289         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
50290         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
50291         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
50292         APIs.
50293         * modules/acl-tests (configure.ac): Remove tests now contained in
50294         m4/acl.m4.
50295
50296 2008-06-02  Jim Meyering  <meyering@redhat.com>
50297
50298         announce-gen: use a better key-server host name
50299         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
50300         it may be more consistently reliable.  Suggested by Werner Koch
50301         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
50302
50303 2008-06-01  Bruno Haible  <bruno@clisp.org>
50304
50305         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
50306         Reported by Voroskoi Andras <voroskoi@gmail.com>.
50307
50308 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
50309
50310         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
50311
50312 2008-06-01  Bruno Haible  <bruno@clisp.org>
50313
50314         New ACL tests.
50315         * tests/test-file-has-acl.sh: New file.
50316         * tests/test-file-has-acl.c: New file.
50317         * tests/test-set-mode-acl.sh: New file.
50318         * tests/test-set-mode-acl.c: New file.
50319         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
50320         * tests/test-copy-acl.c: New file.
50321         * modules/acl-tests: New file, based on modules/copy-file-tests.
50322         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
50323         (Depends-on): Add acl-tests.
50324         (configure.ac): Remove checks.
50325         (Makefile.am): Don't create test-sameacls program here any more.
50326
50327 2008-06-01  Bruno Haible  <bruno@clisp.org>
50328
50329         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
50330         * tests/test-sameacls.c: Include progname.h.
50331         (main): Invoke set_program_name. Portability fixes for MacOS X,
50332         Solaris, HP-UX.
50333
50334 2008-06-01  Bruno Haible  <bruno@clisp.org>
50335
50336         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
50337         function.
50338         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
50339
50340 2008-06-01  Bruno Haible  <bruno@clisp.org>
50341
50342         * modules/rpmatch (Depends-on): Add strdup.
50343
50344 2008-06-01  Bruno Haible  <bruno@clisp.org>
50345
50346         * lib/pipe.c: Include unistd-safer.h.
50347         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
50348         * modules/pipe (Depends-on): Add unistd-safer.
50349
50350 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50351
50352         * modules/autobuild (configure.ac): Call AB_INIT.
50353
50354 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50355
50356         * tests/test-getaddrinfo.c: Don't print debug messages by default.
50357         Suggested by Bruno Haible <bruno@clisp.org>.
50358
50359 2008-05-30  Simon Josefsson  <simon@josefsson.org>
50360
50361         * tests/test-base64.c: Cast size_t to unsigned long when invoking
50362         printf.  Use %lu instead of %d.  Reported by Bruno Haible
50363         <bruno@clisp.org>.
50364
50365 2008-05-29  Eric Blake  <ebb9@byu.net>
50366
50367         Prefer new POSIX 200x interfaces over futimesat.
50368         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
50369         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
50370         when available.
50371         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
50372
50373 2008-05-28  Bruno Haible  <bruno@clisp.org>
50374
50375         * modules/stpcpy (License): Change to LGPLv2+.
50376         Requested by David Lutterkort <dlutter@redhat.com>.
50377
50378 2008-05-27  Bruno Haible  <bruno@clisp.org>
50379
50380         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
50381         current mingw.
50382         Reported by Jose E. Marchesi <jemarch@gnu.org>.
50383
50384 2008-05-27  Bruno Haible  <bruno@clisp.org>
50385
50386         * modules/iconv_open (Link): New section, from module 'iconv'.
50387         * modules/striconv (Link): Likewise.
50388         * modules/striconveh (Link): Likewise.
50389         * modules/xstriconv (Link): Likewise.
50390         * modules/unicodeio (Link): Likewise.
50391         * modules/propername (Link): Likewise.
50392         Reported by Jim Meyering.
50393
50394 2008-05-26  Jim Meyering  <meyering@redhat.com>
50395
50396         sha256: do not artificially restrict buffer length to be < 2^32
50397         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
50398         uint32_t to size_t.
50399         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
50400         to match.
50401
50402         avoid unaligned access errors, e.g., on sparc
50403         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
50404         direct access through a possibly-unaligned uint64* pointer.
50405         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
50406         direct access through a possibly-unaligned uint32* pointer.
50407         Prompted by this patch from Tom "spot" Callaway:
50408         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
50409
50410         sha512.c: fix typo in comment
50411         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
50412
50413 2008-05-25  Bruno Haible  <bruno@clisp.org>
50414
50415         * lib/set-mode-acl.c: Renamed from lib/acl.c.
50416         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
50417         (Makefile.am): Update lib_SOURCES.
50418
50419 2008-05-25  Bruno Haible  <bruno@clisp.org>
50420
50421         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
50422
50423 2008-05-25  Jim Meyering  <meyering@redhat.com>
50424
50425         useless-if-before-free: freed expr may have white-space differences
50426         * build-aux/useless-if-before-free: Recognize cases in which the
50427         freed expression differs from the tested one in embedded white
50428         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
50429         $1 was used, so we can't make any regexp shy.  Improved tests now
50430         detect this.
50431
50432         useless-if-before-free: accept white space in the expression.
50433         * build-aux/useless-if-before-free: For now, any white space
50434         in the expression must be identical in the free argument.
50435
50436         useless-if-before-free: efficiency tweak
50437         * build-aux/useless-if-before-free: Make the expression-matching
50438         regexp "shy".
50439         Make the *outer* regexp shy, not the expr-matching one.
50440
50441         update code-in-comment to accept cast of free arg
50442         * build-aux/useless-if-before-free: Update regexp.
50443
50444 2008-05-25  Bruno Haible  <bruno@clisp.org>
50445
50446         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
50447         * modules/copy-file-tests (Files, Makefile.am): Update.
50448         * tests/test-copy-file.c (func_test_copy): Update.
50449
50450 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
50451
50452         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
50453
50454 2008-05-23  Bruno Haible  <bruno@clisp.org>
50455
50456         Improve support for ACLs on OSF/1.
50457         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
50458         Remove fallback for unknown flavors of ACLs.
50459
50460 2008-05-22  Bruno Haible  <bruno@clisp.org>
50461
50462         Add support for ACLs on OSF/1.
50463         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
50464         replacements.
50465         (acl_free_text): New macro fallback.
50466         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
50467         acl_free.
50468         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
50469         acl_free_text function. Require AC_C_INLINE.
50470
50471 2008-05-22  Bruno Haible  <bruno@clisp.org>
50472
50473         Make copy_acl work on MacOS X 10.5.
50474         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
50475         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
50476         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
50477         If MODE_INSIDE_ACL, don't assume that every system has the same text
50478         representation for ACLs as FreeBSD.
50479         * lib/copy-acl.c (copy_acl): Add support for platforms with
50480         !MODE_INSIDE_ACL.
50481         * lib/file-has-acl.c (file_has_acl): Likewise.
50482         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
50483         FreeBSD, MacOS X, or IRIX, respectively.
50484
50485 2008-05-22  Bruno Haible  <bruno@clisp.org>
50486
50487         * lib/acl.h: Don't include <sys/acl.h>.
50488         (GETACLCNT): Move fallback to lib/acl-internal.h.
50489         * lib/acl-internal.h: Include <sys/acl.h> here.
50490         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
50491
50492 2008-05-22  Bruno Haible  <bruno@clisp.org>
50493
50494         Split off copy_acl function to separate file.
50495         * lib/copy-acl.c: New file, extracted from lib/acl.c.
50496         * lib/acl.c (copy_acl): Moved function to separate file.
50497         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
50498         * modules/acl (Files): Add lib/copy-acl.c.
50499         (Makefiles.am): Augment lib_SOURCES.
50500
50501 2008-05-22  Bruno Haible  <bruno@clisp.org>
50502
50503         * modules/copy-file-tests: New file.
50504         * tests/test-copy-file.sh: New file.
50505         * tests/test-copy-file.c: New file.
50506         * tests/test-copy-file-sameacls.c: New file.
50507
50508 2008-05-22  Eric Blake  <ebb9@byu.net>
50509
50510         Avoid gcc warning.
50511         * tests/test-memcmp.c (main): Pass NULL indirectly.
50512
50513 2008-05-21  Bruno Haible  <bruno@clisp.org>
50514
50515         Add reference doc about ACLs.
50516         * doc/acl-resources.txt: New file.
50517         * doc/acl-cygwin.txt: New file.
50518
50519 2008-05-21  Bruno Haible  <bruno@clisp.org>
50520
50521         Avoid one more warning from gcc.
50522         * lib/vasnprintf.c (IF_LINT): Update comments.
50523         (VASNPRINTF): Use it also for the 'prefix' array initializer.
50524
50525 2008-05-21  Jim Meyering  <meyering@redhat.com>
50526
50527         avoid a warning from gcc
50528         * lib/vasnprintf.c (IF_LINT): Define.
50529         (scale10_round_decimal_long_double):
50530         Use it to avoid a "may be used uninitialized" warning.
50531         (scale10_round_decimal_double): Likewise.
50532
50533 2008-05-21  Simon Josefsson  <simon@josefsson.org>
50534
50535         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
50536         declared.
50537
50538 2008-05-20  Bruno Haible  <bruno@clisp.org>
50539
50540         * tests/test-memcmp.c (main): Test also the sign of the result. Test
50541         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
50542
50543 2008-05-20  Simon Josefsson  <simon@josefsson.org>
50544
50545         * modules/memcmp-tests: New file.
50546         * tests/test-memcmp.c: New file.
50547
50548 2008-05-19  Bruno Haible  <bruno@clisp.org>
50549
50550         * modules/propername (Notice, configure.ac): Put quoted "..." into
50551         --keyword option.
50552         * lib/propername.h: Update comments accordingly.
50553         Reported by Eric Blake.
50554
50555 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
50556
50557         * modules/getpass-gnu (Depends-on): Add fseeko.
50558
50559 2008-05-19  Simon Josefsson  <simon@josefsson.org>
50560
50561         * modules/base64-tests: New file.
50562
50563 2008-05-19  Bo Borgerson <gigabo@gmail.com>
50564
50565         * lib/base64.c (base64_decode_ctx): If a decode context structure
50566         was passed in use it to ignore newlines.  If a context structure
50567         was _not_ passed in, continue to treat newlines as garbage (this
50568         is the historical behavior).  Formerly base64_decode.
50569         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
50570         takes a decode context structure.
50571         * lib/base64.h (base64_decode): Macro for four-argument calls.
50572         (base64_decode_alloc): Likewise.
50573         * lib/base64.c (base64_decode_ctx): If a decode context structure
50574         was passed in use it to ignore newlines.  If a context structure
50575         was _not_ passed in, continue to treat newlines as garbage (this
50576         is the historical behavior).  Formerly base64_decode.
50577         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
50578         takes a decode context structure.
50579         * lib/base64.h (base64_decode): Macro for four-argument calls.
50580         (base64_decode_alloc): Likewise.
50581
50582 2008-05-19  Jim Meyering  <meyering@redhat.com>
50583
50584         avoid a warning from gcc
50585         * lib/trim.c (IF_LINT): Define.
50586         (trim2): Use it to avoid a "may be used uninitialized" warning.
50587
50588         Fix doc typo.
50589         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
50590
50591 2008-05-19  Bruno Haible  <bruno@clisp.org>
50592
50593         * doc/glibc-functions/getpass.texi: Document limits of other
50594         implementations.
50595
50596 2008-05-19  Simon Josefsson  <simon@josefsson.org>
50597             Bruno Haible <bruno@clisp.org>
50598
50599         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
50600
50601 2008-05-18  Bruno Haible  <bruno@clisp.org>
50602
50603         * modules/propername: New file, from GNU gettext.
50604         * lib/propername.h: New file, from GNU gettext.
50605         * lib/propername.c: New file, from GNU gettext.
50606         * MODULES.html.sh (Internationalization functions): Add propername.
50607
50608 2008-05-16  Jim Meyering  <meyering@redhat.com>
50609             Bruno Haible  <bruno@clisp.org>
50610
50611         Avoid some warnings from "gcc -Wshadow".
50612         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
50613
50614 2008-05-15  Eric Blake  <ebb9@byu.net>
50615
50616         Extend previous patch to cygwin 1.7.0.
50617         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
50618         fast implementation in cygwin >= 1.7.0.
50619         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50620         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50621
50622 2008-05-15  Bruno Haible  <bruno@clisp.org>
50623
50624         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
50625         implementation in glibc >= 2.9.
50626         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
50627         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50628
50629 2008-05-15  Bruno Haible  <bruno@clisp.org>
50630
50631         * MODULES.html.sh (Internationalization functions): Remove linebreak.
50632         (Unicode string functions): Add unilbrk/*.
50633         Reported by Karl Berry.
50634
50635 2008-05-15  Eric Blake  <ebb9@byu.net>
50636
50637         Fix violation of <stdbool.h> replacement in regex.
50638         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
50639         * lib/regexec.c (re_search_internal): Likewise.
50640         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
50641
50642 2008-05-15  Jim Meyering  <meyering@redhat.com>
50643
50644         avoid distracting test output when git or cvs is not found
50645         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
50646         * tests/test-vc-list-files-git.sh: Likewise.
50647
50648 2008-05-15  Eric Blake  <ebb9@byu.net>
50649
50650         Glibc finally accepted the memmem speedup code, bugzilla #5514.
50651         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
50652         glibc version.
50653         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
50654         * doc/posix-functions/strstr.texi (strstr): Likewise.
50655         * lib/str-two-way.h (MAX): Sychronize with glibc.
50656
50657 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
50658
50659         * lib/regcomp.c (optimize_utf8): Add a note on why we test
50660         opr.ctx_type.
50661         (calc_first): Initialize constraint field.
50662         (duplicate_node_closure): Use it instead of special casing ANCHORS.
50663         Fix grammar.
50664         (duplicate_node): Merge constraint field for all node types.
50665         (calc_eclosure_iter): Look at constraint field for all node types.
50666         * lib/regex_internal.c (create_cd_newstate): Don't look at
50667         opr.ctx_type.
50668
50669 2008-05-14  Bruno Haible  <bruno@clisp.org>
50670
50671         Help GCC to do better code generation.
50672         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
50673         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
50674         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
50675         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
50676         Declare with attribute 'malloc' if supported.
50677
50678 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
50679
50680         use "echo STR|wc -c" rather than unportable "expr length STR"
50681         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
50682         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
50683
50684 2008-05-14  Jim Meyering  <meyering@redhat.com>
50685
50686         use dd ibs=$n count=1 ... rather than less-portable head -c$n
50687         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
50688         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
50689         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
50690         via Collin Lasse.
50691
50692 2008-05-14  Eric Blake  <ebb9@byu.net>
50693
50694         Avoid quadratic growth in gl_LIBSOURCES.
50695         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
50696         Suggested by Bruno Haible.
50697
50698         Test xmemdup0.
50699         * modules/xmemdup0-tests: New file.
50700         * tests/test-xmemdup0.c: Likewise.
50701
50702 2008-05-13  Eric Blake  <ebb9@byu.net>
50703
50704         Split xmemdup0 into its own module.
50705         * modules/xmemdup0: New file.
50706         * lib/xmemdup0.h: Likewise.
50707         * lib/xmemdup0.c: Likewise.
50708         * MODULES.html.sh (Memory management functions): Add xmemdup0.
50709         * lib/xalloc.h (xmemdup0): Remove.
50710         * lib/xmalloc.c (xmemdup0): Likewise.
50711
50712 2008-05-13  Eric Blake  <ebb9@byu.net>
50713             Bruno Haible  <bruno@clisp.org>
50714
50715         Reduce number of forks required during autoconf.
50716         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
50717         and gl_LIBSOURCES_DIR.
50718         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
50719         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
50720         m4_syscmd per file.
50721         <m4_foreach_w>: Move...
50722         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
50723
50724 2008-05-13  Eric Blake  <ebb9@byu.net>
50725
50726         * gnulib-tool: Fix various comment typos.
50727
50728 2008-05-12  Bruno Haible  <bruno@clisp.org>
50729
50730         Tailor the linebreaking algorithm.
50731         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
50732
50733 2008-05-12  Bruno Haible  <bruno@clisp.org>
50734
50735         Update to Unicode 5.0.0.
50736         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
50737         LBP_JV, LBP_JT. Redistribute values.
50738         (unilbrk_table): Change size.
50739         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
50740         Unicode TR#14 rev. 22.
50741         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
50742         LBP_JV, LBP_JT. Redistribute values.
50743         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
50744         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
50745         Update.
50746         * lib/unilbrk/lbrkprop1.h: Regenerated.
50747         * lib/unilbrk/lbrkprop2.h: Regenerated.
50748         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
50749         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
50750         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
50751         Likewise.
50752         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
50753         Likewise.
50754         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
50755         result.
50756         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
50757         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
50758         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
50759         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
50760         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
50761         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
50762
50763 2008-05-11  Bruno Haible  <bruno@clisp.org>
50764
50765         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
50766
50767 2008-05-11  Bruno Haible  <bruno@clisp.org>
50768
50769         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
50770         * modules/unilbrk/gen-lbrk: New file.
50771
50772 2008-05-11  Bruno Haible  <bruno@clisp.org>
50773
50774         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
50775         * m4/sha512.m4 (gl_SHA512): Likewise.
50776
50777 2008-05-11  Jim Meyering  <meyering@redhat.com>
50778
50779         New modules: crypto/sha256, crypto/sha512 (from coreutils)
50780         * modules/crypto/sha256: New file.
50781         * modules/crypto/sha512: Likewise.
50782         * lib/sha256.c: Likewise.
50783         * lib/sha256.h: Likewise.
50784         * lib/sha512.c: Likewise.
50785         * lib/sha512.h: Likewise.
50786         * lib/u64.h: Likewise.
50787         * m4/sha256.m4: Likewise.
50788         * m4/sha512.m4: Likewise.
50789         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
50790
50791 2008-05-10  Bruno Haible  <bruno@clisp.org>
50792
50793         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
50794         (Input/Output <stdio.h>): Add xprintf.
50795         (Signal handling <signal.h>): Add strsignal.
50796         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
50797         (Core language properties): Add func.
50798         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
50799         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
50800         strings.
50801         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
50802         (Input/output): New section.
50803         (File system functions): Add openat-die, stat-macros.
50804         (Networking functions): Add sockets.
50805         (Unicode string functions): Add unictype/*.
50806         (Support for building libraries and executables): Add gperf.
50807         (Support for building documentation): Add agpl-3.0.
50808         (Misc): Add nocrash.
50809
50810 2008-05-10  Bruno Haible  <bruno@clisp.org>
50811
50812         * modules/unictype/gen-ctype: New file.
50813
50814 2008-05-10  Jim Meyering  <meyering@redhat.com>
50815
50816         Make chdir-safer.c more efficient on a system with no symlinks.
50817         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
50818         also if ELOOP is zero.  Suggested by Bruno Haible.
50819
50820         Make chdir-safer.c slightly safer.
50821         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
50822         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
50823
50824         Avoid compile failure on systems without ELOOP (like mingw).
50825         * lib/chdir-safer.c (ELOOP): Define if not already defined.
50826         Reported by Bruno Haible.
50827
50828 2008-05-10  Bruno Haible  <bruno@clisp.org>
50829
50830         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
50831         (is_utf8_encoding): Use a case-insensitive comparison.
50832         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
50833         streq.
50834
50835 2008-05-10  Bruno Haible  <bruno@clisp.org>
50836
50837         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
50838         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
50839         * lib/unilbrk/ulc-common.h (iconv_string_length,
50840         iconv_string_keeping_offsets): Remove declarations.
50841         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
50842         Don't include <iconv.h>, streq.h, xsize.h.
50843         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
50844         conversion.
50845         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
50846         <iconv.h>, streq.h, xsize.h.
50847         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
50848         conversion.
50849         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
50850         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
50851         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
50852         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
50853
50854 2008-05-10  Bruno Haible  <bruno@clisp.org>
50855
50856         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
50857         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
50858
50859         * modules/unilbrk/u32-width-linebreaks-tests: New file.
50860         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
50861
50862         * modules/unilbrk/u16-width-linebreaks-tests: New file.
50863         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
50864
50865         * modules/unilbrk/u8-width-linebreaks-tests: New file.
50866         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
50867
50868         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
50869         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
50870
50871         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
50872         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
50873
50874         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
50875         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
50876
50877         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
50878         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
50879
50880 2008-05-10  Bruno Haible  <bruno@clisp.org>
50881
50882         Split up 'linebreak' module.
50883         * lib/unilbrk.h: New file, based on lib/linebreak.h.
50884         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
50885         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
50886         modifications.
50887         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
50888         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
50889         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
50890         lib/linebreak.c.
50891         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
50892         lib/linebreak.c.
50893         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
50894         lib/linebreak.c.
50895         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
50896         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
50897         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
50898         lib/linebreak.c.
50899         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
50900         lib/linebreak.c.
50901         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
50902         lib/linebreak.c.
50903         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
50904         lib/linebreak.c.
50905         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
50906         lib/linebreak.c.
50907         * modules/unilbrk/base: New file.
50908         * modules/unilbrk/tables: New file.
50909         * modules/unilbrk/u8-possible-linebreaks: New file.
50910         * modules/unilbrk/u16-possible-linebreaks: New file.
50911         * modules/unilbrk/u32-possible-linebreaks: New file.
50912         * modules/unilbrk/ulc-common: New file.
50913         * modules/unilbrk/ulc-possible-linebreaks: New file.
50914         * modules/unilbrk/u8-width-linebreaks: New file.
50915         * modules/unilbrk/u16-width-linebreaks: New file.
50916         * modules/unilbrk/u32-width-linebreaks: New file.
50917         * modules/unilbrk/ulc-width-linebreaks: New file.
50918         * lib/linebreak.h: Remove file.
50919         * lib/linebreak.c: Remove file.
50920         * m4/linebreak.m4: Remove file.
50921         * modules/linebreak: Remove file.
50922         * NEWS: Mention the changes.
50923
50924 2008-05-09  Eric Blake  <ebb9@byu.net>
50925
50926         Add xmemdup0.
50927         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
50928         implementation.
50929         * lib/xmalloc.c (xmemdup0): New C implementation.
50930
50931 2008-05-08  Bruno Haible  <bruno@clisp.org>
50932
50933         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
50934
50935 2008-05-07  Eric Blake  <ebb9@byu.net>
50936
50937         Support cross-compilation of <wctype.h>.
50938         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
50939         AC_CACHE_CHECK.
50940
50941 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
50942
50943         * build-aux/vc-list-files: Add support for bzr.
50944
50945 2008-05-03  Jim Meyering  <meyering@redhat.com>
50946
50947         avoid failed assertion with tight malloc
50948         * tests/test-getndelim2.c: Correct an off-by-one assertion.
50949
50950 2008-05-03  Simon Josefsson  <simon@josefsson.org>
50951
50952         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
50953         are needed from arpa/inet.h.
50954         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
50955         Reported by Bruno Haible.
50956
50957 2008-05-02  Jim Meyering  <meyering@redhat.com>
50958
50959         avoid compilation error on FreeBSD 6
50960         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
50961
50962 2008-05-01  Jim Meyering  <meyering@redhat.com>
50963
50964         useless-if-before-free: correct --help's exit status description
50965         * build-aux/useless-if-before-free (usage): Like grep, exit 0
50966         for one or more matches, etc.  Reported by Bruno Haible.
50967
50968         vc-list-files: make the stand-alone gnulib test work
50969         * modules/vc-list-files-tests (configure.ac):
50970         Define and AC_SUBST abs_aux_dir.
50971         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
50972         $(abs_top_srcdir) to each script and having each of them
50973         duplicate the work of setting PATH, set PATH here, using
50974         the new variable, abs_aux_dir instead.
50975         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
50976         * tests/test-vc-list-files-git.sh: Likewise.
50977         Reported by Bruno Haible.
50978
50979 2008-05-01  Bruno Haible  <bruno@clisp.org>
50980
50981         * lib/getndelim2.c (getndelim2): Fix newsize computation during
50982         reallocation. Rename 'done' to 'found_delimiter'.
50983
50984 2008-05-01  Jim Meyering  <meyering@redhat.com>
50985
50986         vc-list-files: accommodate /bin/sh like the one from Solaris 10
50987         * build-aux/vc-list-files: Use `...`, not $(...).
50988
50989 2008-04-30  Jim Meyering  <meyering@redhat.com>
50990
50991         add tests for vc-list-files
50992         * modules/vc-list-files-tests: New module.
50993         * tests/test-vc-list-files-cvs.sh: New file.
50994         * tests/test-vc-list-files-git.sh: New file.
50995
50996         avoid a warning from gcc
50997         * lib/getndelim2.c (IF_LINT): Define.
50998         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
50999
51000         vc-list-files: work properly with build-aux/cvsu, too
51001         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
51002         to all cvs-based clauses.
51003
51004         vc-list-files: work properly in the CVS+awk case, too
51005         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
51006
51007         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
51008         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
51009         take more than one file argument, so .  Add quotes, just in case $dir
51010         ever contains a shell meta-character.  Prompted by Soren Hansen in
51011         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
51012
51013 2008-04-29  Eric Blake  <ebb9@byu.net>
51014
51015         Optimize getndelim2 to use block operations when possible.
51016         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
51017         freadseek, and memchr2.
51018         * lib/getndelim2.c (getndelim2): Use them for block reads.
51019
51020 2008-04-29  Bruno Haible  <bruno@clisp.org>
51021
51022         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
51023         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51024         * modules/inet_ntop (Depends-on): Add extensions.
51025         * modules/inet_pton (Depends-on): Likewise.
51026         Reported by Simon Josefsson.
51027
51028 2008-04-29  Jim Meyering  <meyering@redhat.com>
51029
51030         When the is more than one match in a block, match all of them.
51031         * build-aux/useless-if-before-free: Iterate through each block
51032         until there are no more matches.
51033
51034         Fix broken useless-if-before-free script.
51035         * build-aux/useless-if-before-free: Fix typo: missing "?" after
51036         the expression to match cast of argument to free-like function.
51037
51038 2008-04-29  Eric Blake  <ebb9@byu.net>
51039
51040         Use new header.
51041         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
51042
51043 2008-04-29  Jim Meyering  <meyering@redhat.com>
51044
51045         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
51046         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
51047         by gnulib to exist and to declare e.g., inet_ntop.
51048         Don't include "inet_ntop.h", now removed.
51049
51050         * m4/arpa_inet_h.m4: Remove trailing blanks.
51051
51052 2008-04-29  Eric Blake  <ebb9@byu.net>
51053
51054         Silence valgrind on safe reads beyond potential array bounds.
51055         * lib/rawmemchr.valgrind: New file.
51056         * lib/strchrnul.valgrind: Likewise.
51057         * modules/rawmemchr (Files): Distribute new file.
51058         * modules/strchrnul (Files): Likewise.
51059         Suggested by Bruno Haible.
51060
51061 2008-04-29  Bruno Haible  <bruno@clisp.org>
51062
51063         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
51064         (inet_ntop, inet_pton): Change portability warning's wording.
51065         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
51066         Invoke gl_CHECK_NEXT_HEADERS.
51067         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
51068         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
51069         set ARPA_INET_H.
51070         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51071         * modules/arpa_inet (Description): No longer only for systems that
51072         lack it.
51073         (Depends-on): Add include_next.
51074         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
51075         HAVE_ARPA_INET_H.
51076
51077 2008-04-29  Jim Meyering  <meyering@redhat.com>
51078
51079         * modules/mkdir (License): Re-license as LGPLv2+.
51080
51081 2008-04-29  Bruno Haible  <bruno@clisp.org>
51082
51083         * modules/rawmemchr (Maintainer): Set to Eric.
51084         * modules/strchrnul (Maintainer): Likewise.
51085
51086 2008-04-29  Simon Josefsson  <simon@josefsson.org>
51087
51088         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
51089         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
51090
51091         * modules/arpa_inet (arpa/inet.h): Use them.
51092
51093 2008-04-28  Eric Blake  <ebb9@byu.net>
51094
51095         Test getndelim2.
51096         * modules/getndelim2-tests: New file.
51097         * tests/test-getndelim2.c: Likewise.
51098         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
51099         stream.
51100         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
51101
51102         * MODULES.html.sh: Document new module.
51103
51104 2008-04-20  Bruno Haible  <bruno@clisp.org>
51105
51106         * lib/c-stack.c (die): Use raise.
51107         * modules/c-stack (Depends-on): Add raise.
51108
51109 2008-04-28  Bruno Haible  <bruno@clisp.org>
51110
51111         Expect rpmatch to be declared.
51112         * lib/yesno.c (rpmatch): Remove declaration.
51113
51114         Declare rpmatch.
51115         * lib/stdlib.in.h (rpmatch): New declaration.
51116         * lib/rpmatch.c: Include <stdlib.h> first.
51117         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
51118         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
51119         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
51120         HAVE_RPMATCH.
51121         * modules/rpmatch (Depends-on): Add stdlib, extensions.
51122         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51123         (Include): Set to <stdlib.h>.
51124         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
51125         HAVE_RPMATCH.
51126         * NEWS: Document the change.
51127
51128 2008-04-28  Bruno Haible  <bruno@clisp.org>
51129
51130         Change rpmatch to use nl_langinfo when appropriate.
51131         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
51132         (N_): New macro.
51133         (localized_pattern): New function/macro.
51134         (try): Remove match, nomatch arguments. Copy the pattern into safe
51135         memory before caching it.
51136         (rpmatch): Use localized_pattern. Add translator comments.
51137         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
51138         Suggested by Eric Blake.
51139         * modules/rpmatch (Depends-on): Add stdbool.
51140
51141 2008-04-28  Eric Blake  <ebb9@byu.net>
51142
51143         Add rawmemchr module, matching glibc.
51144         * modules/string (Makefile.am): New indicator.
51145         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
51146         * lib/string.in.h (rawmemchr): Declare when appropriate.
51147         * modules/rawmemchr: New file.
51148         * m4/rawmemchr.m4: Likewise.
51149         * lib/rawmemchr.c: Likewise.
51150         * modules/rawmemchr-tests: Likewise.
51151         * tests/test-rawmemchr.c: Likewise.
51152         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
51153         module.
51154         * modules/strchrnul (Depends-on): Add rawmemchr.
51155         * lib/strchrnul.c (strchrnul): Optimize a corner case.
51156
51157         Whitespace cleanup.
51158         * tests/test-strchrnul.c: Reindent.
51159         * lib/strchrnul.c: Likewise.
51160
51161         Optimize and test strchrnul.
51162         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
51163         * modules/strchrnul-tests: New file.
51164         * tests/test-strchrnul.c: Likewise.
51165
51166         Remove intprops dependency.
51167         * modules/memchr (Depends-on): Remove intprops.
51168         * modules/memrchr (Depends-on): Likewise.
51169         * modules/memchr2 (Depends-on): Likewise.
51170         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
51171         * lib/memrchr.c (__memrchr): Likewise.
51172         * lib/memrchr2.c (memchr2): Likewise.
51173         Reported by Simon Josefsson.
51174
51175 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51176
51177         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
51178         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51179
51180 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51181
51182         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
51183
51184         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
51185
51186         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
51187
51188         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
51189         declarations.
51190         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
51191
51192         * m4/inet_pton.m4: Don't check for header files.
51193
51194         * m4/inet_ntop.m4: Don't check for header files.
51195
51196 2008-04-28  Simon Josefsson  <simon@josefsson.org>
51197
51198         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
51199         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
51200         trigger for cygwin).
51201         Reported by Bruno Haible  <bruno@clisp.org>.
51202
51203 2008-04-28  Bruno Haible  <bruno@clisp.org>
51204
51205         * doc/posix-functions/strdup.texi: Mention mingw problem.
51206
51207 2008-04-27  Bruno Haible  <bruno@clisp.org>
51208
51209         * modules/stat-time-tests (Depends-on): Add sleep.
51210         * tests/test-stat-time.c (force_unlink): New function.
51211         (cleanup): Use it.
51212         (test_mtime): Remove the ctime related tests.
51213         (test_ctime): New function, containing the ctime related tests.
51214         (main): Call test_ctime, except on native Windows platforms.
51215
51216 2008-04-27  Bruno Haible  <bruno@clisp.org>
51217
51218         * lib/rpmatch.c (rpmatch): Add some comments.
51219         Reported by James Youngman <jay@gnu.org>.
51220
51221 2008-04-27  Bruno Haible  <bruno@clisp.org>
51222
51223         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
51224         quiet NaNs.
51225
51226 2008-04-27  Bruno Haible  <bruno@clisp.org>
51227
51228         Make test-yesno.sh work on mingw.
51229         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
51230         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
51231         (main): Set stdin to binary mode.
51232         * modules/yesno-tests (Depends-on): Add binary-io.
51233
51234 2008-04-27  Bruno Haible  <bruno@clisp.org>
51235
51236         Fix 'isfinite' on x86, x86_64, ia64 platforms.
51237         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
51238         argument that lie outside the IEEE 854 domain.
51239         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
51240         (gl_ISFINITE): Use it.
51241         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
51242
51243 2008-04-27  Bruno Haible  <bruno@clisp.org>
51244
51245         Allow local renaming in config.h.
51246         * lib/memrchr.c (memrchr): Don't undefine outside libc.
51247
51248 2008-04-27  Bruno Haible  <bruno@clisp.org>
51249
51250         * lib/memchr.c (__memchr): Change type of 'i'.
51251         * lib/memchr2.c (memchr2): Likewise.
51252
51253 2008-04-26  Eric Blake  <ebb9@byu.net>
51254         and Bruno Haible  <bruno@clisp.org>
51255
51256         Optimize and test memrchr.
51257         * modules/memrchr (Depends-on): Add intprops.
51258         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
51259         * modules/memrchr-tests: New file.
51260         * tests/test-memrchr.c: New file.
51261
51262 2008-04-26  Bruno Haible  <bruno@clisp.org>
51263
51264         Add tentative support for DragonFly BSD.
51265         * lib/stdio-impl.h: Add macros for DragonFly BSD.
51266         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
51267         fp.
51268         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
51269         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
51270         * lib/fpurge.c (fpurge): Likewise.
51271         * lib/freadable.c (freaadable): Likewise.
51272         * lib/freadahead.c (freadahead): Likewise.
51273         * lib/freading.c (freading): Likewise.
51274         * lib/freadptr.c (freadptr): Likewise.
51275         * lib/freadseek.c (freadptrinc): Likewise.
51276         * lib/fseeko.c (fseeko): Likewise.
51277         * lib/fseterr.c (fseterr): Likewise.
51278         * lib/fwritable.c (fwritable): Likewise.
51279         * lib/fwriting.c (fwriting): Likewise.
51280
51281 2008-04-26  Bruno Haible  <bruno@clisp.org>
51282
51283         * lib/stdio-impl.h: New file.
51284         * lib/fbufmode.c: Include stdio-impl.h.
51285         (fbufmode): Use fp_, remove redundant #defines.
51286         * lib/fflush.c: Include stdio-impl.h.
51287         (clear_ungetc_buffer): Remove redundant #defines.
51288         * lib/fpurge.c: Include stdio-impl.h.
51289         (fpurge): Remove redundant #defines.
51290         * lib/freadable.c: Include stdio-impl.h.
51291         (freadable): Remove redundant #defines.
51292         * lib/freadahead.c: Include stdio-impl.h.
51293         (freadahead): Remove redundant #defines.
51294         * lib/freading.c: Include stdio-impl.h.
51295         (freading): Remove redundant #defines.
51296         * lib/freadptr.c: Include stdio-impl.h.
51297         (freadptr): Remove redundant #defines.
51298         * lib/freadseek.c: Include stdio-impl.h.
51299         (freadptrinc): Remove redundant #defines.
51300         * lib/fseeko.c: Include stdio-impl.h.
51301         (rpl_fseeko): Remove redundant #defines.
51302         * lib/fseterr.c: Include stdio-impl.h.
51303         (fseterr): Remove redundant #defines.
51304         * lib/fwritable.c: Include stdio-impl.h.
51305         (fwritable: Remove redundant #defines.
51306         * lib/fwriting.c: Include stdio-impl.h.
51307         (fwriting): Remove redundant #defines.
51308         * modules/fbufmode (Files): Add lib/stdio-impl.h.
51309         * modules/fflush (Files): Likewise.
51310         * modules/fpurge (Files): Likewise.
51311         * modules/freadable (Files): Likewise.
51312         * modules/freadahead (Files): Likewise.
51313         * modules/freading (Files): Likewise.
51314         * modules/freadptr (Files): Likewise.
51315         * modules/freadseek (Files): Likewise.
51316         * modules/fseeko (Files): Likewise.
51317         * modules/fseterr (Files): Likewise.
51318         * modules/fwritable (Files): Likewise.
51319         * modules/fwriting (Files): Likewise.
51320
51321 2008-04-26  Bruno Haible  <bruno@clisp.org>
51322
51323         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
51324         restore_seek_optimization, update_fpos_cache): New functions, extracted
51325         from rpl_fflush.
51326         (rpl_fflush): Use them.
51327         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
51328         (gl_REPLACE_FFLUSH): Use it.
51329
51330 2008-04-26  Bruno Haible  <bruno@clisp.org>
51331
51332         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
51333         on Solaris.
51334         * tests/test-xstrtoimax.sh: Likewise.
51335         * tests/test-xstrtoumax.sh: Likewise.
51336         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51337
51338 2008-04-26  Bruno Haible  <bruno@clisp.org>
51339
51340         * modules/memchr-tests: New file.
51341         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
51342
51343 2008-04-26  Eric Blake  <ebb9@byu.net>
51344             Bruno Haible  <bruno@clisp.org>
51345
51346         * lib/memchr.c: Include intprops.h.
51347         (__memchr): Optimize parallel detection of matching bytes. Rename local
51348         variables. Add explanatory comments.
51349
51350 2008-04-26  Bruno Haible  <bruno@clisp.org>
51351
51352         Fix module 'memchr', broken since 2000-10-28.
51353         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
51354
51355 2008-04-26  Bruno Haible  <bruno@clisp.org>
51356
51357         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
51358         comments.
51359
51360 2008-04-25  Eric Blake  <ebb9@byu.net>
51361
51362         Use native fstatat on cygwin 1.7.0.
51363         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
51364         first.
51365
51366 2008-04-23  Eric Blake  <ebb9@byu.net>
51367
51368         Improve memchr2 performance.
51369         * lib/memchr2.c (memchr2): Further optimize parallel detection of
51370         NUL bytes.
51371         * modules/memchr2 (Depends-on): Use intprops.h.
51372
51373 2008-04-23  Simon Josefsson  <simon@josefsson.org>
51374
51375         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
51376         an inline function instead of a CPP macro.  Patch by Ben Pfaff
51377         <blp@cs.stanford.edu>.
51378
51379 2008-04-23  Simon Josefsson  <simon@josefsson.org>
51380
51381         * lib/arpa_inet.in.h: New file.
51382
51383         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
51384         (Makefile.am): Sed in substitute header file.
51385
51386         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
51387         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
51388
51389         * modules/inet_ntop (configure.ac): Use
51390         gl_ARPA_INET_MODULE_INDICATOR.
51391
51392         * modules/inet_pton (configure.ac): Use
51393         gl_ARPA_INET_MODULE_INDICATOR.
51394
51395 2008-04-22  Jim Meyering  <meyering@redhat.com>
51396
51397         * modules/verify (License): Re-license as LGPLv2+.
51398
51399 2008-04-22  Simon Josefsson  <simon@josefsson.org>
51400
51401         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
51402         parameter to void* as per POSIX standard (MinGW uses char*).
51403
51404 2008-04-21  Bruno Haible  <bruno@clisp.org>
51405
51406         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
51407         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
51408         Define to replacements if REPLACE_ISWCNTRL is 1.
51409         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
51410         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
51411         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
51412         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
51413         what it fixes.
51414         * doc/posix-functions/iswalpha.texi: Likewise.
51415         * doc/posix-functions/iswblank.texi: Likewise.
51416         * doc/posix-functions/iswcntrl.texi: Likewise.
51417         * doc/posix-functions/iswdigit.texi: Likewise.
51418         * doc/posix-functions/iswgraph.texi: Likewise.
51419         * doc/posix-functions/iswlower.texi: Likewise.
51420         * doc/posix-functions/iswprint.texi: Likewise.
51421         * doc/posix-functions/iswpunct.texi: Likewise.
51422         * doc/posix-functions/iswspace.texi: Likewise.
51423         * doc/posix-functions/iswupper.texi: Likewise.
51424         * doc/posix-functions/iswxdigit.texi: Likewise.
51425         Reported by Alain Guibert.
51426
51427 2008-04-21  Bruno Haible  <bruno@clisp.org>
51428
51429         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
51430         Patch by Alain Guibert.
51431
51432 2008-04-21  Bruno Haible  <bruno@clisp.org>
51433
51434         Fix test failures on mingw.
51435         * tests/test-xstrtol.c (print_no_progname): New function.
51436         (main): Install it in error_print_progname hook.
51437         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
51438         * tests/test-xstrtoimax.sh: Likewise.
51439         * tests/test-xstrtoumax.sh: Likewise.
51440
51441 2008-04-21  Bruno Haible  <bruno@clisp.org>
51442
51443         Fix test failure on mingw.
51444         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
51445
51446 2008-04-21  Bruno Haible  <bruno@clisp.org>
51447
51448         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
51449         Actually assign a value.
51450
51451 2008-04-20  Bruno Haible  <bruno@clisp.org>
51452
51453         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
51454         take 2.
51455         * lib/canonicalize.c (canonicalize_file_name): Elide if the
51456         'canonicalize-lgpl' module is also used.
51457         * lib/canonicalize-lgpl.c: Undo last change.
51458         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
51459
51460 2008-04-20  Bruno Haible  <bruno@clisp.org>
51461
51462         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
51463         config.h. Provide _mkdir based fallback for mingw.
51464         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
51465         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
51466         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
51467         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
51468         rather than defining mkdir in config.h.
51469         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
51470         (gl_SYS_STAT_H_DEFAULTS): New macro.
51471         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
51472         HAVE_IO_H any more.
51473         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
51474         HAVE_DECL_MKDIR and HAVE_IO_H.
51475
51476 2008-04-20  Bruno Haible  <bruno@clisp.org>
51477
51478         * lib/isapipe.c: Port to native Windows platforms.
51479
51480 2008-04-20  Bruno Haible  <bruno@clisp.org>
51481
51482         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
51483
51484 2008-04-21  Eric Blake  <ebb9@byu.net>
51485
51486         Work around preprocessors that don't handle UINTMAX_MAX.
51487         * lib/memchr2.c (memchr2): Avoid embedded #if.
51488         Reported by Alain Guibert, fix suggested by Bruno Haible.
51489
51490 2008-04-21  Simon Josefsson  <simon@josefsson.org>
51491
51492         * doc/posix-functions/strftime.texi (strftime): Explain better
51493         Windows incompatibility.  Suggested by Micah Cowan
51494         <micah@cowan.name>.
51495
51496 2008-04-20  Bruno Haible  <bruno@clisp.org>
51497
51498         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
51499         unistr/u8-mblen.
51500
51501 2008-04-20  Bruno Haible  <bruno@clisp.org>
51502
51503         Fix test failure on platforms with non-GNU iconv.
51504         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
51505         (U_TO_U8): Use it, rather than u16_to_u8.
51506         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
51507         units at the end of the input string.
51508         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
51509
51510 2008-04-20  Bruno Haible  <bruno@clisp.org>
51511
51512         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
51513         when the resulting length is 0.
51514         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
51515
51516 2008-04-20  Bruno Haible  <bruno@clisp.org>
51517
51518         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
51519         works.
51520         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
51521
51522 2008-04-20  Bruno Haible  <bruno@clisp.org>
51523
51524         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
51525         * modules/tsearch-tests (configure.ac): Test for initstate function.
51526
51527 2008-04-20  Bruno Haible  <bruno@clisp.org>
51528
51529         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
51530         for nlink_t if missing.
51531         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
51532
51533 2008-04-19  Bruno Haible  <bruno@clisp.org>
51534
51535         Work around snprintf bug on Linux libc5.
51536         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
51537         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
51538         gl_SNPRINTF_SIZE1.
51539         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51540         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
51541         that test failed.
51542         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
51543         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
51544         * modules/snprintf (Files): Add m4/printf.m4.
51545         * modules/vsnprintf (Files): Likewise.
51546         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
51547         * doc/posix-functions/vsnprintf.texi: Likewise.
51548
51549 2008-04-19  Bruno Haible  <bruno@clisp.org>
51550
51551         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
51552         from 0.0058 to less than 10^-7.
51553
51554 2008-04-19  Bruno Haible  <bruno@clisp.org>
51555
51556         Fix rounding when a precision is given.
51557         * lib/vasnprintf.c (is_borderline): New function.
51558         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
51559         9...9x.
51560         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
51561         %e, %g.
51562         * tests/test-vasprintf-posix.c (test_function): Likewise.
51563         * tests/test-snprintf-posix.h (test_function): Likewise.
51564         * tests/test-sprintf-posix.h (test_function): Likewise.
51565         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
51566         * tests/test-printf-posix.h (test_function): Likewise.
51567         * tests/test-printf-posix.output: Update.
51568         Reported by John Darrington <john@darrington.wattle.id.au> via
51569         Ben Pfaff <blp@cs.stanford.edu>.
51570
51571 2008-04-18  Simon Josefsson  <simon@josefsson.org>
51572
51573         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
51574         Suggested by Bruno Haible <bruno@clisp.org>.
51575
51576 2008-04-17  Bruno Haible  <bruno@clisp.org>
51577
51578         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
51579         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
51580         implementation.
51581         Patch by Bruce Merry <bmerry@gmail.com>.
51582
51583 2008-04-17  Simon Josefsson  <simon@josefsson.org>
51584
51585         * doc/posix-functions/strftime.texi (strftime): Mention that %e
51586         doesn't work under Windows.
51587
51588 2008-04-16  Bruno Haible  <bruno@clisp.org>
51589
51590         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
51591         New macros.
51592         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
51593         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
51594         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
51595         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
51596         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
51597         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
51598         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
51599         macros.
51600         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
51601         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
51602         Northern Sotho, Uighur.
51603
51604 2008-04-16  Bruno Haible  <bruno@clisp.org>
51605
51606         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
51607         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
51608         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
51609         Reported by Daniel Bergström <daniel@octocode.com>.
51610
51611 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
51612             Bruno Haible  <bruno@clisp.org>
51613
51614         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
51615         function.
51616         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
51617         New functions, mostly extracted from gl_locale_name_default.
51618         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
51619
51620 2008-04-16  Eric Blake  <ebb9@byu.net>
51621
51622         Adjust strtod detection to catch glibc 2.7 bug.
51623         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
51624         Reported by John Gatewood Ham.
51625
51626 2008-04-16  Bruno Haible  <bruno@clisp.org>
51627
51628         Add tentative support for Linux libc5.
51629         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
51630         * lib/fpurge.c (fpurge): Likewise.
51631         * lib/freadable.c (freadable): Likewise.
51632         * lib/freadahead.c (freadahead): Likewise.
51633         * lib/freading.c (freading): Likewise.
51634         * lib/freadptr.c (freadptr): Likewise.
51635         * lib/freadseek.c (freadptrinc): Likewise.
51636         * lib/fseeko.c (rpl_fseeko): Likewise.
51637         * lib/fseterr.c (fseterr): Likewise.
51638         * lib/fwritable.c (fwritable): Likewise.
51639         * lib/fwriting.c (fwriting): Likewise.
51640         Reported by Alain Guibert <alguibert+bts@free.fr>.
51641
51642 2008-04-15  Bruno Haible  <bruno@clisp.org>
51643
51644         * modules/mathl (configure.ac): Define module indicator.
51645
51646 2008-04-15  Bruno Haible  <bruno@clisp.org>
51647
51648         * lib/logl.c (logl): Remove unused variables.
51649
51650 2008-04-15  Bruno Haible  <bruno@clisp.org>
51651
51652         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
51653         fails.
51654
51655 2008-04-15  Bruno Haible  <bruno@clisp.org>
51656
51657         * lib/trim.c (trim2): Fix argument of isspace() macro.
51658
51659 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
51660
51661         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
51662         to 0.
51663         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
51664
51665 2008-04-14  Bruno Haible  <bruno@clisp.org>
51666
51667         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
51668         AC_LANG_PROGRAM argument.
51669         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
51670         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
51671         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
51672         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
51673         * m4/math_h.m4 (gl_MATH_H): Likewise.
51674         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
51675         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
51676         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
51677         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
51678         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
51679         * m4/regex.m4 (gl_REGEX): Likewise.
51680         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
51681         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
51682         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51683         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
51684         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
51685         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51686         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51687         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
51688
51689 2008-04-14  Jim Meyering  <meyering@redhat.com>
51690
51691         test-strtod: fix typos: s/abs/fabs/
51692         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
51693
51694 2008-04-13  Bruno Haible  <bruno@clisp.org>
51695
51696         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
51697         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
51698         module is also used and while not building the reloc-wrapper.
51699
51700 2008-04-13  Bruno Haible  <bruno@clisp.org>
51701
51702         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
51703
51704 2008-04-13  Bruno Haible  <bruno@clisp.org>
51705
51706         Fix AIX compilation failure introduced on 2008-04-02.
51707         * tests/test-frexp.c (exp): Undefine before redefining.
51708         * tests/test-frexpl.c (exp): Likewise.
51709
51710 2008-04-13  Bruno Haible  <bruno@clisp.org>
51711
51712         Work around a HP-UX stdio bug.
51713         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
51714         * tests/test-ftello.c (main): Likewise.
51715         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
51716         * doc/posix-functions/ftello.texi: Likewise.
51717
51718 2008-04-13  Bruno Haible  <bruno@clisp.org>
51719
51720         Make test-signbit pass on HP-UX/hppa.
51721         * tests/test-signbit.c (minus_zerol): New variable.
51722         (test_signbitl): Use it.
51723
51724 2008-04-13  Bruno Haible  <bruno@clisp.org>
51725
51726         Make truncl work on OSF/1 4.0.
51727         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
51728         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
51729         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
51730         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
51731         HAVE_DECL_TRUNCL.
51732         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
51733         HAVE_DECL_TRUNCL.
51734         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
51735
51736 2008-04-13  Bruno Haible  <bruno@clisp.org>
51737
51738         * lib/unictype.h: Remove trailing comma from enumeration definitions.
51739
51740 2008-04-13  Bruno Haible  <bruno@clisp.org>
51741
51742         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
51743         expression, so as to avoid HP-UX 11 cc compiler bug.
51744
51745 2008-04-13  Bruno Haible  <bruno@clisp.org>
51746
51747         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
51748
51749 2008-04-13  Bruno Haible  <bruno@clisp.org>
51750
51751         * lib/git-merge-changelog.c: Remove empty declaration outside of
51752         functions.
51753
51754 2008-04-13  Bruno Haible  <bruno@clisp.org>
51755
51756         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
51757
51758 2008-04-13  Bruno Haible  <bruno@clisp.org>
51759
51760         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
51761         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
51762         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
51763         also if it exists but lacks definitions of the SHUT_* macros.
51764         * modules/sys_socket (Description): Update.
51765         Reported by Elbert Pol <e.pol@chello.nl>.
51766
51767 2008-04-13  Bruno Haible  <bruno@clisp.org>
51768
51769         * lib/localcharset.c (OS2): Don't redefine if already defined.
51770         Reported by Elbert Pol <e.pol@chello.nl>.
51771
51772 2008-04-13  Bruno Haible  <bruno@clisp.org>
51773
51774         * lib/binary-io.h [__EMX__]: Include <io.h>.
51775         Reported by Elbert Pol <e.pol@chello.nl>.
51776
51777 2008-04-12  Bruno Haible  <bruno@clisp.org>
51778
51779         * lib/fpucw.h: Enable the definitions also for x86_64.
51780         Needed for NetBSD/x86_64.
51781         Reported by Thomas Klausner <tk@giga.or.at>.
51782
51783 2008-04-12  Bruno Haible  <bruno@clisp.org>
51784
51785         * tests/test-strtod.c: Include isnand.h.
51786         (main): Use isnand instead of isnan.
51787         Reported by Jim Meyering.
51788
51789 2008-04-12  Bruno Haible  <bruno@clisp.org>
51790
51791         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
51792         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
51793
51794 2008-04-12  Jim Meyering  <meyering@redhat.com>
51795
51796         * m4/math_h.m4 (gl_MATH_H): Fix typos.
51797
51798 2008-04-12  Bruno Haible  <bruno@clisp.org>
51799
51800         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
51801         Reported by Elbert Pol <e.pol@chello.nl>.
51802
51803 2008-04-12  Eric Blake  <ebb9@byu.net>
51804
51805         Work around Solaris 10 math.h bug.
51806         * m4/math_h.m4 (gl_MATH_H): Check for bug.
51807         (gl_MATH_H_DEFAULTS): Set up default.
51808         * modules/math (Makefile.am): Replace new indicators.
51809         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
51810         * tests/test-math.c (main): Test this.
51811         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
51812         * doc/posix-headers/math.texi (math.h): Mention bug.
51813         Reported by Nelson H. F. Beebe and Jim Meyering.
51814
51815 2008-04-11  Bruno Haible  <bruno@clisp.org>
51816
51817         Adapt to future versions of Apple GCC.
51818         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
51819         Reported by Peter O'Gorman <peter@pogma.com>.
51820
51821 2008-04-11  Bruno Haible  <bruno@clisp.org>
51822
51823         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
51824
51825 2008-04-11  Bruno Haible  <bruno@clisp.org>
51826
51827         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
51828
51829         * modules/getaddrinfo-tests (Makefile.am): Define
51830         test_getaddrinfo_LDADD.
51831
51832 2008-04-11  Bruno Haible  <bruno@clisp.org>
51833
51834         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
51835         (init): Fix syntax error.
51836         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
51837         is declared.
51838
51839 2008-04-11  Bruno Haible  <bruno@clisp.org>
51840
51841         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
51842         * modules/glob (Depends-on): Add stdbool.
51843
51844 2008-04-11  Bruno Haible  <bruno@clisp.org>
51845
51846         * lib/trim.c: Include <string.h>.
51847
51848 2008-04-11  Eric Blake  <ebb9@byu.net>
51849
51850         Avoid compile failure on OS/2.
51851         * lib/regex_internal.h (internal_function): Disable optimization
51852         on OS/2 (__EMX__), where it caused compiler error.
51853         Reported by Elbert Pol.
51854
51855 2008-04-11  Bruno Haible  <bruno@clisp.org>
51856
51857         Flush the standard error stream before aborting. Needed on mingw.
51858         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
51859         * tests/test-array_list.c (ASSERT): Likewise.
51860         * tests/test-array_oset.c (ASSERT): Likewise.
51861         * tests/test-avltree_list.c (ASSERT): Likewise.
51862         * tests/test-avltree_oset.c (ASSERT): Likewise.
51863         * tests/test-avltreehash_list.c (ASSERT): Likewise.
51864         * tests/test-binary-io.c (ASSERT): Likewise.
51865         * tests/test-byteswap.c (ASSERT): Likewise.
51866         * tests/test-c-ctype.c (ASSERT): Likewise.
51867         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
51868         * tests/test-c-strcasestr.c (ASSERT): Likewise.
51869         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
51870         * tests/test-c-strstr.c (ASSERT): Likewise.
51871         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
51872         * tests/test-canonicalize.c (ASSERT): Likewise.
51873         * tests/test-carray_list.c (ASSERT): Likewise.
51874         * tests/test-ceilf1.c (ASSERT): Likewise.
51875         * tests/test-ceilf2.c (ASSERT): Likewise.
51876         * tests/test-ceill.c (ASSERT): Likewise.
51877         * tests/test-count-one-bits.c (ASSERT): Likewise.
51878         * tests/test-fbufmode.c (ASSERT): Likewise.
51879         * tests/test-fflush2.c (ASSERT): Likewise.
51880         * tests/test-floorf1.c (ASSERT): Likewise.
51881         * tests/test-floorf2.c (ASSERT): Likewise.
51882         * tests/test-floorl.c (ASSERT): Likewise.
51883         * tests/test-fopen.c (ASSERT): Likewise.
51884         * tests/test-fpending.c (ASSERT): Likewise.
51885         * tests/test-fprintf-posix.c (ASSERT): Likewise.
51886         * tests/test-fpurge.c (ASSERT): Likewise.
51887         * tests/test-freadable.c (ASSERT): Likewise.
51888         * tests/test-freadahead.c (ASSERT): Likewise.
51889         * tests/test-freading.c (ASSERT): Likewise.
51890         * tests/test-freadptr.c (ASSERT): Likewise.
51891         * tests/test-freadptr2.c (ASSERT): Likewise.
51892         * tests/test-freadseek.c (ASSERT): Likewise.
51893         * tests/test-freopen.c (ASSERT): Likewise.
51894         * tests/test-frexp.c (ASSERT): Likewise.
51895         * tests/test-frexpl.c (ASSERT): Likewise.
51896         * tests/test-fseek.c (ASSERT): Likewise.
51897         * tests/test-fseeko.c (ASSERT): Likewise.
51898         * tests/test-fstrcmp.c (ASSERT): Likewise.
51899         * tests/test-ftell.c (ASSERT): Likewise.
51900         * tests/test-ftello.c (ASSERT): Likewise.
51901         * tests/test-func.c (ASSERT): Likewise.
51902         * tests/test-fwritable.c (ASSERT): Likewise.
51903         * tests/test-fwriting.c (ASSERT): Likewise.
51904         * tests/test-getdelim.c (ASSERT): Likewise.
51905         * tests/test-getline.c (ASSERT): Likewise.
51906         * tests/test-i-ring.c (ASSERT): Likewise.
51907         * tests/test-iconv-utf.c (ASSERT): Likewise.
51908         * tests/test-iconv.c (ASSERT): Likewise.
51909         * tests/test-isfinite.c (ASSERT): Likewise.
51910         * tests/test-isnand.c (ASSERT): Likewise.
51911         * tests/test-isnanf.c (ASSERT): Likewise.
51912         * tests/test-isnanl.h (ASSERT): Likewise.
51913         * tests/test-ldexpl.c (ASSERT): Likewise.
51914         * tests/test-linked_list.c (ASSERT): Likewise.
51915         * tests/test-linkedhash_list.c (ASSERT): Likewise.
51916         * tests/test-localename.c (ASSERT): Likewise.
51917         * tests/test-lseek.c (ASSERT): Likewise.
51918         * tests/test-mbscasecmp.c (ASSERT): Likewise.
51919         * tests/test-mbscasestr1.c (ASSERT): Likewise.
51920         * tests/test-mbscasestr2.c (ASSERT): Likewise.
51921         * tests/test-mbscasestr3.c (ASSERT): Likewise.
51922         * tests/test-mbscasestr4.c (ASSERT): Likewise.
51923         * tests/test-mbschr.c (ASSERT): Likewise.
51924         * tests/test-mbscspn.c (ASSERT): Likewise.
51925         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
51926         * tests/test-mbspbrk.c (ASSERT): Likewise.
51927         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
51928         * tests/test-mbsrchr.c (ASSERT): Likewise.
51929         * tests/test-mbsspn.c (ASSERT): Likewise.
51930         * tests/test-mbsstr1.c (ASSERT): Likewise.
51931         * tests/test-mbsstr2.c (ASSERT): Likewise.
51932         * tests/test-mbsstr3.c (ASSERT): Likewise.
51933         * tests/test-memchr2.c (ASSERT): Likewise.
51934         * tests/test-memmem.c (ASSERT): Likewise.
51935         * tests/test-open.c (ASSERT): Likewise.
51936         * tests/test-printf-frexp.c (ASSERT): Likewise.
51937         * tests/test-printf-frexpl.c (ASSERT): Likewise.
51938         * tests/test-printf-posix.c (ASSERT): Likewise.
51939         * tests/test-quotearg.c (ASSERT): Likewise.
51940         * tests/test-rbtree_list.c (ASSERT): Likewise.
51941         * tests/test-rbtree_oset.c (ASSERT): Likewise.
51942         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
51943         * tests/test-round1.c (ASSERT): Likewise.
51944         * tests/test-roundf1.c (ASSERT): Likewise.
51945         * tests/test-roundl.c (ASSERT): Likewise.
51946         * tests/test-signbit.c (ASSERT): Likewise.
51947         * tests/test-sleep.c (ASSERT): Likewise.
51948         * tests/test-snprintf-posix.c (ASSERT): Likewise.
51949         * tests/test-snprintf.c (ASSERT): Likewise.
51950         * tests/test-sprintf-posix.c (ASSERT): Likewise.
51951         * tests/test-stat-time.c (ASSERT): Likewise.
51952         * tests/test-strcasestr.c (ASSERT): Likewise.
51953         * tests/test-strerror.c (ASSERT): Likewise.
51954         * tests/test-striconv.c (ASSERT): Likewise.
51955         * tests/test-striconveh.c (ASSERT): Likewise.
51956         * tests/test-striconveha.c (ASSERT): Likewise.
51957         * tests/test-strsignal.c (ASSERT): Likewise.
51958         * tests/test-strstr.c (ASSERT): Likewise.
51959         * tests/test-strtod.c (ASSERT): Likewise.
51960         * tests/test-trunc1.c (ASSERT): Likewise.
51961         * tests/test-trunc2.c (ASSERT): Likewise.
51962         * tests/test-truncf1.c (ASSERT): Likewise.
51963         * tests/test-truncf2.c (ASSERT): Likewise.
51964         * tests/test-truncl.c (ASSERT): Likewise.
51965         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
51966         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
51967         * tests/test-vasnprintf.c (ASSERT): Likewise.
51968         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
51969         * tests/test-vasprintf.c (ASSERT): Likewise.
51970         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
51971         * tests/test-vprintf-posix.c (ASSERT): Likewise.
51972         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
51973         * tests/test-vsnprintf.c (ASSERT): Likewise.
51974         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
51975         * tests/test-wcwidth.c (ASSERT): Likewise.
51976         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
51977         * tests/test-xprintf-posix.c (ASSERT): Likewise.
51978         * tests/test-xvasprintf.c (ASSERT): Likewise.
51979         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
51980         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
51981         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
51982         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
51983         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
51984         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
51985         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
51986         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
51987         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
51988         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
51989         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
51990         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
51991         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
51992         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
51993         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
51994         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
51995         * tests/unictype/test-block_list.c (ASSERT): Likewise.
51996         * tests/unictype/test-block_of.c (ASSERT): Likewise.
51997         * tests/unictype/test-block_test.c (ASSERT): Likewise.
51998         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
51999         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
52000         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
52001         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
52002         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
52003         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
52004         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
52005         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
52006         * tests/unictype/test-combining.c (ASSERT): Likewise.
52007         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
52008         * tests/unictype/test-digit.c (ASSERT): Likewise.
52009         * tests/unictype/test-mirror.c (ASSERT): Likewise.
52010         * tests/unictype/test-numeric.c (ASSERT): Likewise.
52011         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
52012         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
52013         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
52014         * tests/unictype/test-scripts.c (ASSERT): Likewise.
52015         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
52016         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
52017         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
52018         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
52019         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
52020         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
52021         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
52022         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
52023         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
52024         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
52025         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
52026         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
52027         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
52028         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
52029         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
52030         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
52031         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
52032         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
52033         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
52034         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
52035         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
52036         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
52037         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
52038         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
52039         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
52040         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
52041         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
52042         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
52043         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
52044         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
52045         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
52046         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
52047         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
52048         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
52049         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
52050         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
52051         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
52052         Reported by Eric Blake.
52053
52054 2008-04-11  Bruno Haible  <bruno@clisp.org>
52055
52056         * lib/wchar.in.h: Tweak comment.
52057
52058 2008-04-11  Bruno Haible  <bruno@clisp.org>
52059
52060         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
52061         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
52062         gl_COMMON.
52063         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
52064
52065 2008-04-11  Bruno Haible  <bruno@clisp.org>
52066
52067         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
52068
52069 2008-04-11  Simon Josefsson  <simon@josefsson.org>
52070
52071         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
52072         of attempting to use non-existing /dev/*random.  Based on patch
52073         from Adam Strzelecki <ono@java.pl> in
52074         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
52075
52076 2008-04-08  Bruno Haible  <bruno@clisp.org>
52077
52078         Add tentative support for emx+gcc.
52079         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
52080         * lib/fpurge.c (fpurge): Likewise.
52081         * lib/freadable.c (freadable): Likewise.
52082         * lib/freadahead.c (freadahead): Likewise.
52083         * lib/freading.c (freading): Likewise.
52084         * lib/freadptr.c (freadptr): Likewise.
52085         * lib/freadseek.c (freadptrinc): Likewise.
52086         * lib/fseeko.c (rpl_fseeko): Likewise.
52087         * lib/fseterr.c (fseterr): Likewise.
52088         * lib/fwritable.c (fwritable): Likewise.
52089         * lib/fwriting.c (fwriting): Likewise.
52090         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
52091
52092 2008-04-09  Eric Blake  <ebb9@byu.net>
52093
52094         Avoid some autoconf warnings.
52095         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
52096         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
52097         * m4/afs.m4 (gl_AFS): Likewise.
52098         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
52099         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
52100         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52101         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
52102         (gl_INTEGER_TYPE_SUFFIX): Likewise.
52103         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
52104         (AC_CHECK_DECLS_ONCE): Likewise.
52105         Rename file...
52106         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
52107         gnulib-tool requires autoconf 2.59 or better.
52108         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
52109
52110 2008-04-08  Eric Blake  <ebb9@byu.net>
52111
52112         Use 'git describe --match' if present (added in git 1.5.5).
52113         * build-aux/git-version-gen: Limit result to tags that match 'v*'
52114         if possible.
52115
52116 2008-04-08  Bruno Haible  <bruno@clisp.org>
52117
52118         Add tentative support for OpenServer.
52119         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
52120         _ptr, _cnt.
52121         * lib/fpurge.c (fpurge): Likewise.
52122         * lib/freadable.c (freadable): Likewise.
52123         * lib/freadahead.c (freadahead): Likewise.
52124         * lib/freading.c (freading): Likewise.
52125         * lib/freadptr.c (freadptr): Likewise.
52126         * lib/freadseek.c (freadptrinc): Likewise.
52127         * lib/fseeko.c (rpl_fseeko): Likewise.
52128         * lib/fseterr.c (fseterr): Likewise.
52129         * lib/fwritable.c (fwritable): Likewise.
52130         * lib/fwriting.c (fwriting): Likewise.
52131         Reported by Roger Cornelius <rac@tenzing.org> and
52132         Brian K. White <brian@aljex.com>.
52133
52134 2008-04-06  Jim Meyering  <meyering@redhat.com>
52135
52136         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
52137
52138 2008-04-06  Bruno Haible  <bruno@clisp.org>
52139
52140         Avoid possible error with non-ASCII bytes in UTF-8 locales.
52141         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
52142         * tests/test-printf-posix.sh: Likewise.
52143         * tests/test-vfprintf-posix.sh: Likewise.
52144         * tests/test-vprintf-posix.sh: Likewise.
52145         * tests/test-xprintf-posix.sh: Likewise.
52146
52147 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52148
52149         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
52150         hide error from 'ls', needed on OS/2.
52151         Report by Elbert Pol <elbert.pol@gmail.com>.
52152
52153 2008-04-04  Eric Blake  <ebb9@byu.net>
52154
52155         Make test-fseeko.c failures meaningful.
52156         * tests/test-fseeko.c: Print line number on failure.
52157         * tests/test-fseek.c: Likewise.
52158         Reported by Nelson H. F. Beebe.
52159
52160         Improve strtod bug detection check.
52161         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
52162         required for Solaris 10.
52163         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
52164
52165 2008-04-04  Bruno Haible  <bruno@clisp.org>
52166
52167         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
52168         by m4/setenv.m4.
52169
52170 2008-04-03  Eric Blake  <ebb9@byu.net>
52171
52172         Ensure sane .version contents.
52173         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
52174         version string.
52175         * build-aux/git-version-gen: Improve documentation.
52176
52177         Make GNU make output nicer.
52178         * top/GNUmakefile [!_have-Makefile]: Add dependency on
52179         MAKECMDGOALS to enforce message for all command line targets.  Set
52180         srcdir for use in maint.mk.
52181
52182         Another maintainer tweak.
52183         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
52184         a target that regenerates version.
52185
52186 2008-04-03  Jim Meyering  <meyering@redhat.com>
52187
52188         vc-list-files: don't cause coreutils "make po-check" failure
52189         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
52190
52191 2008-04-03  Eric Blake  <ebb9@byu.net>
52192
52193         Allow VPATH usage of vc-list-files.
52194         * build-aux/vc-list-files (scriptversion): Add timestamp.
52195         (options): Add --help, --version, -C.
52196         (CVS): Support installed cvsu.
52197
52198 2008-04-02  Bruno Haible  <bruno@clisp.org>
52199
52200         Avoid some "statement with no effect" warnings from gcc.
52201         * tests/test-wctype.c (main): Explicitly ignore unused values.
52202         Reported by Jim Meyering.
52203
52204 2008-04-02  Jim Meyering  <meyering@redhat.com>
52205
52206         Avoid some warnings from "gcc -Wshadow".
52207         * tests/test-frexp.c (exp): Define to a different identifier.
52208         * tests/test-frexpl.c (exp): Likewise.
52209
52210 2008-04-03  Jim Meyering  <meyering@redhat.com>
52211
52212         bootstrap: remove dangling *.[ch] symlinks from lib
52213         * build-aux/bootstrap [dangling symlink removal]: Move find's
52214         -depth option to precede all others, to avoid a warning.
52215         Remove *.[ch] files too, and from "$source_base" (usually lib/).
52216
52217 2008-04-02  Bruno Haible  <bruno@clisp.org>
52218
52219         Avoid some warnings from "gcc -Wshadow".
52220         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
52221         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
52222         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
52223         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
52224         Reported by Jim Meyering.
52225
52226 2008-04-01  Bruno Haible  <bruno@clisp.org>
52227
52228         Fix test to work on IRIX 6.5 with cc.
52229         * tests/test-math.c (numeric_equal): New function.
52230         (main): Use it.
52231
52232 2008-04-01  Bruno Haible  <bruno@clisp.org>
52233
52234         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
52235
52236 2008-04-01  Bruno Haible  <bruno@clisp.org>
52237
52238         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
52239         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52240         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
52241         (Depends-on): Remove math.
52242
52243         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
52244         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52245         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
52246         (Depends-on): Remove math.
52247
52248         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
52249         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52250         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
52251         (Depends-on): Remove math.
52252         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
52253         (Depends-on): Remove math.
52254
52255         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
52256         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
52257         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
52258         (Depends-on): Remove math.
52259         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
52260         (Depends-on): Remove math.
52261
52262         * tests/test-round1.c: Include nan.h.
52263         (main): Use NaNd instead of NAN.
52264         * modules/round-tests (Files): Add tests/nan.h.
52265
52266         * tests/test-trunc1.c: Include nan.h.
52267         (main): Use NaNd instead of NAN.
52268         * modules/trunc-tests (Files): Add tests/nan.h.
52269
52270         * tests/test-roundf1.c: Include nan.h.
52271         (main): Use NaNf instead of NAN.
52272         * modules/roundf-tests (Files): Add tests/nan.h.
52273
52274         * tests/test-truncf1.c: Include nan.h.
52275         (main): Use NaNf instead of NAN.
52276         * modules/truncf-tests (Files): Add tests/nan.h.
52277
52278         * tests/test-ceilf1.c: Include nan.h.
52279         (main): Use NaNf instead of NAN.
52280         * modules/ceilf-tests (Files): Add tests/nan.h.
52281
52282         * tests/test-floorf1.c: Include nan.h.
52283         (main): Use NaNf instead of NAN.
52284         * modules/floorf-tests (Files): Add tests/nan.h.
52285
52286         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
52287         (main): Use NaNf instead of NAN.
52288         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
52289
52290         * tests/test-isnand.c: Include nan.h instead of <math.h>.
52291         (main): Use NaNd instead of NAN.
52292         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
52293
52294         * tests/test-frexp.c: Include nan.h.
52295         (main): Use NaNd instead of NAN.
52296         * modules/frexp-tests (Files): Add tests/nan.h.
52297
52298         * lib/isnan.c: Don't include <math.h>.
52299         (FUNC): Don't use NAN macro.
52300         * modules/isnand-nolibm (Depends-on): Remove math.
52301         * modules/isnanf-nolibm (Depends-on): Remove math.
52302         * modules/isnanl (Depends-on): Remove math.
52303         * modules/isnanl-nolibm (Depends-on): Remove math.
52304
52305         * tests/nan.h: New file.
52306
52307 2008-04-01  Eric Blake  <ebb9@byu.net>
52308
52309         Fix typos.
52310         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
52311         values to be the right type.
52312
52313         For now, cater to gnulib strtod inaccuracies.
52314         * tests/test-strtod.c (main): Allow 1-ulp error on expected
52315         fractional results.  While not as nice from a QoI perspective, it
52316         is a quicker patch than correctly implementing decimal to binary
52317         rounding.
52318
52319 2008-03-31  Eric Blake  <ebb9@byu.net>
52320
52321         Guarantee a definition of NAN.
52322         * lib/math.in.h (NAN): Define if missing.
52323         * tests/test-math.c (main): Test it.
52324         * doc/posix-headers/math.texi (math.h): Document this.
52325         * lib/isnan.c (rpl_isnand): Use it.
52326         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
52327         * tests/test-floorf1.c (NaN): Likewise.
52328         * tests/test-frexp.c (NaN): Likewise.
52329         * tests/test-isnand.c (NaN): Likewise.
52330         * tests/test-isnanf.c (NaN): Likewise.
52331         * tests/test-round1.c (NaN): Likewise.
52332         * tests/test-roundf1.c (NaN): Likewise.
52333         * tests/test-snprintf-posix.h (NaN): Likewise.
52334         * tests/test-sprintf-posix.h (NaN): Likewise.
52335         * tests/test-trunc1.c (NaN): Likewise.
52336         * tests/test-truncf1.c (NaN): Likewise.
52337         * tests/test-vasnprintf-posix.c (NaN): Likewise.
52338         * tests/test-vasprintf-posix.c (NaN): Likewise.
52339         * modules/isnand-nolibm (Depends-on): Add math.
52340         * modules/isnanf-nolibm (Depends-on): Likewise.
52341         * modules/isnanl (Depends-on): Likewise.
52342         * modules/isnanl-nolibm (Depends-on): Likewise.
52343         * modules/snprintf-posix-tests (Depends-on): Likewise.
52344         * modules/sprintf-posix-tests (Depends-on): Likewise.
52345         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
52346         * modules/vsprintf-posix-tests (Depends-on): Likewise.
52347         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
52348         * modules/vasprintf-posix-tests (Depends-on): Likewise.
52349
52350 2008-03-31  Bruno Haible  <bruno@clisp.org>
52351
52352         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
52353         * doc/posix-functions/strtod.texi: Likewise.
52354
52355 2008-03-31  Bruno Haible  <bruno@clisp.org>
52356
52357         * tests/test-strtod.c (main): Don't use C99 syntax.
52358
52359 2008-03-31  Bruno Haible  <bruno@clisp.org>
52360
52361         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
52362         Reported by Eric Blake.
52363
52364 2008-03-31  Jim Meyering  <meyering@redhat.com>
52365
52366         Don't compare actual signbit return values.
52367         * tests/test-strtod.c (main): Rather, compare only their
52368         zero/non-zero nature.
52369
52370 2008-03-31  Eric Blake  <ebb9@byu.net>
52371
52372         More strtod documentation.
52373         * doc/posix-functions/strtod.texi (strtod): Interpret more test
52374         failures as distinct bugs.
52375
52376 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
52377
52378         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
52379         Problem reported by Erik Benada in
52380         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
52381
52382 2008-03-30  Bruno Haible  <bruno@clisp.org>
52383
52384         * tests/test-strtod.c: Add comments about which assertion fails on which
52385         platform.
52386         * doc/posix-functions/strtod.texi: Add info about many more platforms.
52387
52388 2008-03-30  Eric Blake  <ebb9@byu.net>
52389
52390         Test signbit behavior on zeros.
52391         * tests/test-signbit.c (test_signbitf): Add tests for zero.
52392         (test_signbitd, test_signbitl): Likewise.
52393
52394         More strtod touchups.
52395         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
52396         sign of negative underflow, for now.  Use .5, not .1.
52397         * doc/posix-functions/strtod.texi (strtod): Mention these
52398         limitations.
52399         Reported by Jim Meyering.
52400
52401 2008-03-30  Bruno Haible  <bruno@clisp.org>
52402
52403         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
52404         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
52405
52406 2008-03-30  Bruno Haible  <bruno@clisp.org>
52407
52408         Avoid failure when attempting to return empty iconv results on some
52409         platforms.
52410         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
52411         allocation, don't report ENOMEM when the resulting string is empty.
52412
52413 2008-03-30  Bruno Haible  <bruno@clisp.org>
52414
52415         Fix buffer overrun.
52416         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
52417         Don't consider the width for tmp_length. Check count against tmp_length
52418         before doing the padding. Ensure enough allocation during padding.
52419
52420 2008-03-30  Eric Blake  <ebb9@byu.net>
52421
52422         strtod touchups.
52423         * lib/strtod.c (strtod): Avoid compiler warnings.
52424         Reported by Jim Meyering.
52425
52426 2008-03-30  Bruno Haible  <bruno@clisp.org>
52427
52428         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
52429         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
52430         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
52431         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
52432         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
52433         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
52434         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
52435         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
52436
52437         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
52438         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
52439         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
52440         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
52441         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
52442         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
52443         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
52444         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
52445
52446         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
52447         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
52448         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
52449         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
52450         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
52451         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
52452         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
52453         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
52454
52455         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
52456         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
52457
52458         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
52459         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
52460
52461         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
52462         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
52463
52464         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
52465         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
52466         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
52467
52468         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
52469         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
52470         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
52471
52472         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
52473         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
52474         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
52475
52476         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
52477         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
52478         * modules/vasprintf (Depends-on): Add EOVERFLOW.
52479
52480         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
52481         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
52482         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
52483         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
52484         (Depends-on): Add EOVERFLOW.
52485         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
52486         (Depends-on): Add EOVERFLOW.
52487         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
52488         (Depends-on): Add EOVERFLOW.
52489         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
52490         (Depends-on): Add EOVERFLOW.
52491         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
52492         (Depends-on): Add EOVERFLOW.
52493         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
52494         (Depends-on): Add EOVERFLOW.
52495         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
52496         (Depends-on): Add EOVERFLOW.
52497         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
52498         (Depends-on): Add EOVERFLOW.
52499
52500         * lib/sprintf.c (EOVERFLOW): Remove fallback.
52501         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
52502         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
52503
52504         * lib/snprintf.c (EOVERFLOW): Remove fallback.
52505         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
52506         * modules/snprintf (Depends-on): Add EOVERFLOW.
52507
52508         * lib/poll.c (EOVERFLOW): Remove fallback.
52509         * modules/poll (Depends-on): Add EOVERFLOW.
52510
52511         * lib/getugroups.c (EOVERFLOW): Remove fallback.
52512         * modules/getugroups (Depends-on): Add EOVERFLOW.
52513
52514         * lib/getdelim.c (EOVERFLOW): Remove fallback.
52515         * modules/getdelim (Depends-on): Add EOVERFLOW.
52516
52517         * lib/ftell.c (EOVERFLOW): Remove fallback.
52518         * modules/ftell (Depends-on): Add EOVERFLOW.
52519
52520         * lib/fprintf.c (EOVERFLOW): Remove fallback.
52521         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
52522         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
52523
52524         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
52525
52526         * modules/EOVERFLOW-tests: New file.
52527         * tests/test-EOVERFLOW.c: New file.
52528
52529         * modules/EOVERFLOW: New file.
52530         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
52531
52532 2008-03-30  Bruno Haible  <bruno@clisp.org>
52533
52534         Fix bug introduced on 2007-06-10.
52535         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
52536         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
52537
52538 2008-03-30  Bruno Haible  <bruno@clisp.org>
52539
52540         Improve freadseek's efficiency after ungetc.
52541         * lib/freadseek.c: Include freadahead.h.
52542         (freadptrinc): New function, extracted from freadseek.
52543         (freadseek): Use it in a loop. Use freadahead to determine the number
52544         of loop iterations.
52545         * modules/freadseek (Depends-on): Add freadahead.
52546         (configure.ac): Require AC_C_INLINE.
52547
52548 2008-03-30  Bruno Haible  <bruno@clisp.org>
52549
52550         * lib/freadseek.c (freadseek): Don't ignore the return value of
52551         freadptr.
52552
52553 2008-03-29  Eric Blake  <ebb9@byu.net>
52554
52555         Add hex float support.
52556         * modules/strtod (Depends-on): Add c-ctype.
52557         (Link): Mention POW_LIB.
52558         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
52559         whitespace between 'e' and exponent.
52560         * tests/test-strtod.c (main): Enable hex float tests.
52561         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
52562         now provides.
52563
52564         Document various strtod bugs, with some fixes.
52565         * doc/posix-functions/strtod.texi (strtod): Document bugs with
52566         "-0x", "inf", "nan", and hex constants.
52567         * doc/posix-functions/atof.texi (atof): Likewise.
52568         * modules/stdlib (Makefile.am): Support strtod.
52569         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
52570         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
52571         detect additional strtod bugs.
52572         * lib/stdlib.in.h (rpl_strtod): Add declarations.
52573         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
52574         bool where appropriate.  Parse 'inf' and 'nan'.
52575         * tests/test-strtod.c: New file.
52576         * modules/strtod (Depends-on): Add stdbool, stdlib.
52577         (configure.ac): Turn on module indicator.
52578         * modules/strtod-tests: New module.
52579
52580 2008-03-29  Eric Blake  <ebb9@byu.net>
52581
52582         Fix ftell on mingw.
52583         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
52584         * modules/ftell-tests (Depends-on): Add binary-io.
52585         * modules/ftello-tests (Depends-on): Likewise.
52586         * tests/test-ftell.c (main): Enhance test to cover behavior after
52587         ungetc.  Enforce binary mode.
52588         * tests/test-ftello.c (main): Likewise.
52589
52590         Pass test-freadseek on cygwin.
52591         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
52592         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
52593         ungetc buffer.
52594
52595         * tests/test-fflush2.c (main): Fix typo.
52596
52597 2008-03-29  Bruno Haible  <bruno@clisp.org>
52598
52599         * tests/test-fflush2.c (main): Temporarily disable the contents of
52600         this test.
52601         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
52602         Reported by Eric Blake.
52603
52604 2008-03-28  Simon Josefsson  <simon@josefsson.org>
52605
52606         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
52607         (GC_SHA224_DIGEST_SIZE): Add.
52608
52609         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
52610         (gc_hash_digest_length): Likewise.
52611         (gc_hash_buffer): Likewise.
52612
52613 2008-03-25  Bruno Haible  <bruno@clisp.org>
52614
52615         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
52616         detail which gettext release to use.
52617         Reported by Simon Josefsson.
52618
52619 2008-03-26  Jim Meyering  <meyering@redhat.com>
52620
52621         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
52622         * modules/gnumakefile (clean-GNUmakefile): Also, use
52623         test ... && ... || : syntax rather than if-then ... fi.
52624
52625         gnumakefile: Don't double-quote-expand $(VPATH) value.
52626         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
52627
52628 2008-03-24  Eric Blake  <ebb9@byu.net>
52629
52630         Alter GNUmakefile to install into top directory.
52631         * modules/maintainer-makefile: Split, and add dependency...
52632         * modules/gnumakefile: to this new module.
52633         * build-aux/GNUmakefile: Move...
52634         * top/GNUmakefile: ...here.
52635         * build-aux/maint.mk: Move...
52636         * top/maint.mk: ...here.
52637         * MODULES.html.sh (Support for maintaining...): Document new
52638         module.
52639
52640 2008-03-23  Bruno Haible  <bruno@clisp.org>
52641
52642         * gnulib-tool: New options --vc-files, --no-vc-files.
52643         (func_usage): Document them.
52644         (vc_files): New variable.
52645         (func_import): Consider vc_files.
52646         (func_create_testdir): Set vc_files to empty.
52647         Suggested by Jim Meyering and Karl Berry.
52648
52649 2008-03-23  Bruno Haible  <bruno@clisp.org>
52650
52651         Fix regex compilation error on HP-UX 11.
52652         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
52653         * modules/regex (Files): Add m4/mbstate_t.m4.
52654         Reported by Ton Voon <ton.voon@altinity.com>.
52655
52656 2008-03-23  Bruno Haible  <bruno@clisp.org>
52657
52658         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
52659
52660 2008-03-23  Eric Blake  <ebb9@byu.net>
52661             Bruno Haible  <bruno@clisp.org>
52662
52663         Install files from top/ in the destination directory.
52664         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
52665         augmentation also for the files from top/.
52666         (func_import, func_create_testdir): Rewrite file names:
52667         top/filename -> filename.
52668
52669 2008-03-23  Bruno Haible  <bruno@clisp.org>
52670
52671         Tweak "gnulib --version" output.
52672         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
52673
52674 2008-03-23  Bruno Haible  <bruno@clisp.org>
52675
52676         Tweak "gnulib --version" output.
52677         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
52678         rather than contents of ChangeLog, when possible.
52679
52680 2008-03-21  Eric Blake  <ebb9@byu.net>
52681
52682         More --version tweaks.
52683         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
52684         date of last ChangeLog entry.
52685
52686 2008-03-21  Jim Meyering  <meyering@redhat.com>
52687
52688         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
52689
52690 2008-03-20  Eric Blake  <ebb9@byu.net>
52691
52692         VPATH fix.
52693         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
52694
52695 2008-03-20  Simon Josefsson  <simon@josefsson.org>
52696
52697         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
52698         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
52699
52700 2008-03-20  Eric Blake  <ebb9@byu.net>
52701
52702         Sync GNUmakefile with coreutils.
52703         * build-aux/GNUmakefile (have-Makefile): Rename...
52704         (_have-Makefile): ...to this, for namespace consideration.
52705         (GNUmakefile.cfg): Include, if present.
52706         (_autoreconf): Define a default.
52707         (_is-dist-target): New rule for rebuilds to pick up intra-release
52708         version.
52709         (maint-cfg.mk): Rename...
52710         (cfg.mk): ...to this.
52711
52712 2008-03-18  Jim Meyering  <meyering@redhat.com>
52713
52714         New script and module: mktempd
52715         * MODULES.html.sh (maint+release support): Add mktempd.
52716         * build-aux/mktempd: New file.
52717         * modules/mktempd: New file.
52718
52719 2008-03-15  Jim Meyering  <meyering@redhat.com>
52720
52721         Undo last change.
52722         * lib/sha1.c, lib/md5.c: 63 != ~63.
52723         Reported by Andreas Schwab.
52724
52725         sha1.c, md5.c: Hoist a redundant expression.
52726         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
52727         "ctx->buflen" only once, before calling *_process_block.
52728         * lib/md5.c (md5_process_bytes): Likewise.
52729
52730 2008-03-14  Eric Blake  <ebb9@byu.net>
52731
52732         Bump copyright year in files generated by gnulib-tool.
52733         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
52734         gnulib-tool, rather than hard-coding it.
52735
52736         Fix 'gnulib-tool --version' output to work with git.
52737         * gnulib-tool (func_gnulib_dir): New function, extracted from...
52738         (startup): ...here.
52739         (func_version): Use it to invoke git-version-gen, rather than
52740         relying on CVS keyword expansion.  Modernize wording.
52741         (cvsdatestamp, last_checkin_date, version): Kill unused
52742         variables.
52743
52744 2008-03-12  Jim Meyering  <meyering@redhat.com>
52745
52746         Recognize optional cast of the argument to free.
52747         * build-aux/useless-if-before-free: Update regexps.
52748
52749         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
52750
52751 2008-03-11  Bruno Haible  <bruno@clisp.org>
52752
52753         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
52754         by a single package.
52755         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
52756         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
52757         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
52758         Reported by Sam Steingold <sds@gnu.org>.
52759
52760 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
52761
52762         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
52763         repositories.
52764
52765 2008-03-11  Bruno Haible  <bruno@clisp.org>
52766
52767         Avoid conflicts between local macro definitions.
52768         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
52769         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
52770
52771 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
52772             Bruno Haible  <bruno@clisp.org>
52773
52774         Make va_copy work with some version of xlc on AIX 5.1.
52775         * lib/stdarg.in.h: New file.
52776         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
52777         On AIX, use a <stdarg.h> file substitute.
52778         * modules/stdarg (Files): Add lib/stdarg.in.h.
52779         (Depends-on): Add include_next.
52780         (Makefile.am): Build a stdarg.h substitute if requested.
52781         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
52782
52783 2008-03-10  Bruno Haible  <bruno@clisp.org>
52784
52785         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
52786         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52787         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
52788
52789 2008-03-10  Bruno Haible  <bruno@clisp.org>
52790
52791         * modules/stdlib (Depends-on): Add include_next, remove
52792         absolute-header.
52793
52794 2008-03-09  Bruno Haible  <bruno@clisp.org>
52795
52796         * lib/freadahead.h (freadahead): Document more precisely.
52797         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
52798         the sum of both buffer sizes.
52799         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
52800         * NEWS: Document the change.
52801
52802 2008-03-09  Bruno Haible  <bruno@clisp.org>
52803
52804         Extend freadptr to return also the buffer size.
52805         * lib/freadptr.h (freadptr): Add sizep argument.
52806         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
52807         (freadptr): Add sizep argument. Determine buffer size like freadahead
52808         does.
52809         * tests/test-freadptr.c: Don't include freadahead.h.
52810         (main): Adapt for new calling convention of freadptr.
52811         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
52812         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
52813         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
52814         tests/test-freadptr2.sh.
52815         (Depends): Remove freadahead.
52816         (TESTS): Add test-freadptr2.sh.
52817         (check_PROGRAMS): Add test-freadptr2.
52818
52819 2008-03-09  Bruno Haible  <bruno@clisp.org>
52820
52821         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
52822         Report and solution by Simon Josefsson.
52823
52824 2008-03-06  Bruno Haible  <bruno@clisp.org>
52825
52826         Make fflush after ungetc work on BSD platforms.
52827         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
52828         * tests/test-fflush2.c: New file.
52829         * tests/test-fflush2.sh: New file.
52830         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
52831         tests/test-fflush2.c.
52832         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
52833         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
52834
52835 2008-03-06  Eric Blake  <ebb9@byu.net>
52836
52837         Likewise for ftello.
52838         * modules/ftello (Dependencies): Add extensions.
52839         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
52840
52841 2008-03-06  Bruno Haible  <bruno@clisp.org>
52842
52843         * modules/fseeko (Dependencies): Add extensions.
52844         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
52845         Needed on glibc systems.
52846
52847 2008-03-06  Bruno Haible  <bruno@clisp.org>
52848
52849         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
52850         email address.
52851         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52852
52853 2008-03-06  Bruno Haible  <bruno@clisp.org>
52854
52855         * users.txt: Add libgnupdf.
52856
52857 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
52858
52859         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
52860         (Header File Substitutes, Function Substitutes,
52861         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
52862         (Build robot for gnulib): Fix typo.
52863
52864 2008-03-06  Bruno Haible  <bruno@clisp.org>
52865
52866         * doc/gnulib-tool.texi (VCS Issues): Small updates.
52867         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52868
52869 2008-03-06  Bruno Haible  <bruno@clisp.org>
52870
52871         * doc/func.texi: New file, extracted from doc/gnulib.texi.
52872         * doc/gnulib.texi: Include it.
52873
52874 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52875
52876         * modules/func (License): Change license to unlimited; there was
52877         no LGPL parts in the module anyway.
52878
52879 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52880
52881         * modules/__func__: Renamed to modules/func.
52882         * modules/__func__-tests: Renamed to modules/func-tests.
52883         * tests/test-__func__.c: Renamed to tests/test-func.c.
52884         * m4/__func__.m4: Renamed to m4/func.m4.
52885         * doc/gnulib.texi (__func__): Section renamed to func.
52886         Suggested by Eric Blake <ebb9@byu.net>.
52887
52888 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52889
52890         * doc/gnulib.texi (__func__): Use C99 terminology when talking
52891         about __func__.  Make example self-contained.  Suggested by Eric
52892         Blake <ebb9@byu.net>.
52893
52894         * tests/test-__func__.c (main): Avoid extraneous () around __func.
52895         Suggested by Eric Blake <ebb9@byu.net>.
52896
52897 2008-03-06  Simon Josefsson  <simon@josefsson.org>
52898
52899         * modules/__func__: New file.
52900         * modules/__func__-tests: New file.
52901         * tests/test-__func__.c: New file.
52902         * m4/__func__.m4: New file.
52903         * doc/gnulib.texi (__func__): Document __func__ module.
52904
52905 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52906
52907         * modules/byteswap (License): Re-license as LGPLv2+.
52908
52909 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52910
52911         * doc/Makefile: Add pdf target.
52912
52913 2008-03-05  Simon Josefsson  <simon@josefsson.org>
52914
52915         * modules/inline (License): Use 'unlimited', since there are only
52916         *.m4 files in this module.
52917
52918 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
52919             Bruno Haible  <bruno@clisp.org>
52920
52921         Add support for HP C 7.1 on OpenVMS 8.3.
52922         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
52923
52924 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
52925
52926         Update VMS specifics.
52927         * lib/getopt.c [VMS]: Remove include of unixlib.h.
52928
52929 2008-03-02  Jim Meyering  <meyering@redhat.com>
52930
52931         Remove the last dependency on the "free" module.
52932         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
52933         Reported by Bob Proulx.
52934
52935         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
52936
52937         Remove useless "if" tests before free.  Deprecate "free" module.
52938         * doc/posix-functions/free.texi: Mention that this
52939         module is no longer useful.
52940         * modules/free (Notice): Say this module is obsolete.
52941         * modules/readutmp (Depends-on): Remove free.
52942         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
52943         * lib/putenv.c (putenv): Likewise.
52944         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
52945         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
52946         * tests/test-c-strcasestr.c (main): Likewise.
52947         * tests/test-c-strstr.c (main): Likewise.
52948         * tests/test-mbscasestr1.c (main): Likewise.
52949         * tests/test-mbscasestr2.c (main): Likewise.
52950         * tests/test-mbsstr1.c (main): Likewise.
52951         * tests/test-mbsstr2.c (main): Likewise.
52952         * tests/test-memmem.c (main): Likewise.
52953         * tests/test-strcasestr.c (main): Likewise.
52954         * tests/test-striconv.c (main): Likewise.
52955         * tests/test-striconveh.c (main): Likewise.
52956         * tests/test-striconveha.c (main): Likewise.
52957         * tests/test-strstr.c (main): Likewise.
52958
52959         * build-aux/git-version-gen: Adjust a comment and the Usage string.
52960
52961         bootstrap: sync from coreutils again
52962         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
52963
52964 2008-03-01  Jim Meyering  <meyering@redhat.com>
52965
52966         bootstrap: sync from coreutils
52967         * build-aux/bootstrap (update_po_files): Copy a .po file into place
52968         also when the target doesn't exist.
52969
52970 2008-03-01  Eric Blake  <ebb9@byu.net>
52971
52972         Fix bugs in last patch.
52973         * lib/memchr2.c (memchr2): Fix typo.
52974         * tests/test-memchr2.c: Test previous bug, and don't use GNU
52975         extension.
52976         Reported by Bruce Korb.
52977
52978         New module 'memchr2'.
52979         * modules/memchr2: New file.
52980         * modules/memchr2-tests: Likewise.
52981         * lib/memchr2.h: Likewise.
52982         * lib/memchr2.c: Likewise, based on memchr.c.
52983         * tests/test-memchr2.c: New test.
52984         * MODULES.html.sh (String handling): Add memchr2.
52985
52986 2008-02-29  Bruno Haible  <bruno@clisp.org>
52987
52988         * modules/freadseek-tests: New file.
52989         * tests/test-freadseek.sh: New file.
52990         * tests/test-freadseek.c: New file.
52991
52992         New module 'freadseek'.
52993         * modules/freadseek: New file.
52994         * lib/freadseek.h: New file.
52995         * lib/freadseek.c: New file.
52996         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
52997
52998 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
52999
53000         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
53001         wydawca.
53002
53003         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
53004         program_invocation_name and program_invocation_short_name are
53005         present.
53006
53007 2008-02-28  Bruno Haible  <bruno@clisp.org>
53008
53009         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
53010         * tests/test-freadptr.sh: Also test non-seekable stdin.
53011
53012 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
53013
53014         * build-aux/bootstrap (source_base, m4_base)
53015         (doc_base, tests_base): New variables.
53016         (gnulib_tool_options): Do not hardcode base directories, use
53017         the above variables instead.
53018
53019 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
53020
53021         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
53022
53023 2008-02-28  Bruno Haible  <bruno@clisp.org>
53024
53025         * modules/freadptr-tests: New file.
53026         * tests/test-freadptr.sh: New file.
53027         * tests/test-freadptr.c: New file.
53028
53029         New module 'freadptr'.
53030         * modules/freadptr: New file.
53031         * lib/freadptr.h: New file.
53032         * lib/freadptr.c: New file.
53033         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
53034
53035 2008-02-26  Karl Berry  <karl@freefriends.org>
53036
53037         Sync from Libtool:
53038         * libltdl/argz.c (argz_add, argz_count): New functions.
53039         * libltdl/argz.in.h: Declare them.
53040         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
53041
53042 2008-02-22  Bruno Haible  <bruno@clisp.org>
53043
53044         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
53045         is a pointer type.  Needed for HP-UX 10.
53046         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
53047         * doc/posix-functions/gmtime_r.texi: Likewise.
53048         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
53049
53050 2008-02-24  Bruno Haible  <bruno@clisp.org>
53051
53052         * modules/environ-tests: New file.
53053         * tests/test-environ.c: New file.
53054
53055         New module 'environ'.
53056         * modules/environ: New file.
53057         * lib/unistd.in.h (environ): New declaration.
53058         * m4/environ.m4: New file.
53059         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
53060         after use.
53061         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
53062         HAVE_DECL_ENVIRON.
53063         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
53064         HAVE_DECL_ENVIRON.
53065         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
53066         wrong claim that 'environ' is missing on some systems.
53067         * modules/execute (Depends-on): Add environ.
53068         * lib/execute.c (environ): Remove fallback declaration.
53069         * modules/pipe (Depends-on): Add environ.
53070         * lib/pipe.c (environ): Remove fallback declaration.
53071         * modules/setenv (Depends-on): Add environ.
53072         * lib/setenv.c (environ): Remove fallback declaration.
53073         * modules/unsetenv (Depends-on): Add environ.
53074         * lib/unsetenv.c (environ): Remove fallback declaration.
53075         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
53076         m4/environ.m4.
53077         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
53078         (gl_PREREQ_UNSETENV): Likewise.
53079
53080 2008-02-24  Bruno Haible  <bruno@clisp.org>
53081
53082         * doc/posix-functions/environ.texi: Document the MacOS X problem.
53083
53084 2008-02-20  Bob Proulx  <bob@proulx.com>
53085
53086         Enable use of older two part flavor 'git describe'.
53087         * build-aux/git-version-gen: If using the older two part flavor of
53088         git version then recreate the third part now present in the
53089         newer three part flavor of git describe.
53090
53091 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
53092
53093         * lib/fts.c (fts_build): Typo correction to comment.
53094
53095 2008-02-17  Bruno Haible  <bruno@clisp.org>
53096
53097         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
53098         generating no-op conflicts.
53099
53100 2008-02-17  Bruno Haible  <bruno@clisp.org>
53101
53102         Speed up by 10%.
53103         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
53104         result_entries, rather than an index-based loop.
53105
53106 2008-02-17  Bruno Haible  <bruno@clisp.org>
53107
53108         Speed up by 25%.
53109         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
53110         'hashcode_cached'.
53111         (entry_create): New function.
53112         (entry_hashcode): Use the cached hashcode if possible.
53113         (read_changelog_file, try_split_merged_entry): Use entry_create.
53114
53115 2008-02-17  Bruno Haible  <bruno@clisp.org>
53116
53117         Speed up from O(n^2) to O(n) for long ChangeLog files.
53118         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
53119         (read_changelog_file): Change implementation of entries_reversed list
53120         to rbtreehash.
53121         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
53122
53123 2008-02-17  Bruno Haible  <bruno@clisp.org>
53124
53125         New option --split-merged-entry.
53126         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
53127         (find_paragraph_end, try_split_merged_entry): New functions.
53128         (long_options): Add option --split-merged-entry.
53129         (usage): Document option --split-merged-entry.
53130         (main): Implement option --split-merged-entry.
53131         Reported by Eric Blake.
53132
53133 2008-02-17  Bruno Haible  <bruno@clisp.org>
53134
53135         * lib/git-merge-changelog.c: Include c-strstr.h.
53136         (main): Support the "git pull --rebase" situation.
53137         * modules/git-merge-changelog (Depends-on): Add c-strstr.
53138         Reported by Eric Blake.
53139
53140 2008-02-16  Eric Blake  <ebb9@byu.net>
53141
53142         Avoid doubling \ in common case of "c-maybe" quoting style.
53143         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
53144         eliding outer quotes.
53145         * lib/quotearg.h: Document this.
53146         * tests/test-quotearg.c (result_strings, inputs, results_g)
53147         (flag_results, locale_results): Test it by adding a new string to
53148         each test group.
53149         (compare_strings): Test new string.
53150
53151 2008-02-13  Eric Blake  <ebb9@byu.net>
53152
53153         Avoid trigraph quoting in default output.
53154         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
53155         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
53156         unless explicitly requested.
53157         * tests/test-quotearg.c (flag_results, main): Add additional tests.
53158
53159 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
53160
53161         Don't rely on signed integer overflowing to negative value.
53162         * lib/getugroups.c (getugroups): Include <limits.h>.
53163         Instead, compare against INT_MAX, and increment only if the test passes.
53164
53165 2008-02-13  Jim Meyering  <meyering@redhat.com>
53166         and Eric Blake  <ebb9@byu.net>
53167
53168         Avoid shadowing warning and compile errors on Linux.
53169         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
53170         forwarding macros on Linux.
53171         (dcgettext): Define a stub, for Linux.
53172         (results_g, main): Avoid warnings.
53173
53174 2008-02-12  Eric Blake  <ebb9@byu.net>
53175
53176         Silence warning in last patch.
53177         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
53178
53179         Quotearg part 4: add tests, fix c-maybe colon quoting.
53180         * lib/quotearg.h: Improve documentation.
53181         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
53182         escapes when adding outer quotes.  When quoting trigraphs, use
53183         valid C notation.  When quoting NUL, omit extra characters if next
53184         character is not digit.  Alter prototype.
53185         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
53186         callers.
53187         * modules/quotearg-tests: New module.
53188         * tests/test-quotearg.c: New test.
53189
53190 2008-02-07  Eric Blake  <ebb9@byu.net>
53191
53192         Quotearg part 3: add flag to control outer quote elision.
53193         * lib/quotearg.h (c_maybe_quoting_style): New style.
53194         (enum quoting_flags): Better documentation of flags.
53195         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
53196         c-maybe style.
53197         (quotearg_buffer_restyled): Handle new flag to elide outer
53198         quotes.
53199
53200         Quotearg part 2: add flag that can control NUL elision.
53201         * lib/quotearg.h (set_quoting_flags): New prototype.
53202         * lib/quotearg.c (struct quoting_options): Add flag field.
53203         (set_quoting_flags): New function.
53204         (quotearg_buffer_restyled): Add flags parameter.
53205         (quotearg_alloc_mem): Set the flag if length cannot be returned.
53206         (quotearg_n_options): Set the flag, since length cannot be
53207         returned.
53208         (quoting_options_from_style): Default flags correctly.
53209
53210         Quotearg part 1: more wrappers, restore quotearg_char state.
53211         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
53212         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
53213         (quotearg_colon_mem): New wrappers.
53214         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
53215         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
53216         functions.
53217         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
53218         (quotearg_colon_mem): New functions.
53219
53220 2008-02-11  Bruno Haible  <bruno@clisp.org>
53221
53222         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
53223         library in the current directory: it does not work with parallel make.
53224         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53225
53226 2008-02-11  Bruno Haible  <bruno@clisp.org>
53227
53228         * .gitattributes: New file.
53229
53230 2008-02-11  Jim Meyering  <meyering@redhat.com>
53231
53232         useless-if-before-free: Fix reversed exit values.
53233         * build-aux/useless-if-before-free: Use correct values
53234         for EXIT_MATCH and EXIT_NO_MATCH.
53235
53236         * build-aux/useless-if-before-free: Close stdout carefully.
53237
53238 2008-02-10  Bruno Haible  <bruno@clisp.org>
53239
53240         New module 'git-merge-changelog'.
53241         * modules/git-merge-changelog: New file.
53242         * lib/git-merge-changelog.c: New file.
53243
53244 2008-02-10  Jim Meyering  <meyering@redhat.com>
53245
53246         useless-if-before-free: New option: --list (-l).
53247
53248         useless-if-before-free: Don't exit immediately upon open failure.
53249         * build-aux/useless-if-before-free: Exit 2 for errors.
53250         Upon failure to open a file, don't exit immediately.
53251         Rather, just warn and continue with any remaining files.
53252
53253 2008-02-10  Bruno Haible  <bruno@clisp.org>
53254
53255         New abstract list operation 'node_set_value'.
53256         * lib/gl_list.h (gl_list_node_set_value): New function.
53257         (struct gl_list_implementation): New field node_set_value.
53258         * lib/gl_list.c (gl_list_node_set_value): New function.
53259         * lib/gl_array_list.c (gl_array_node_set_value): New function.
53260         (gl_array_list_implementation): Update.
53261         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
53262         (gl_carray_list_implementation): Update.
53263         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
53264         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
53265         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
53266         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
53267         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
53268         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
53269         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
53270         Update.
53271         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
53272         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
53273         (gl_sublist_list_implementation): Update.
53274
53275 2008-02-10  Bruno Haible  <bruno@clisp.org>
53276
53277         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
53278         Needed when ELEMENT is #defined to 'some_type *'.
53279
53280 2008-02-10  Jim Meyering  <meyering@redhat.com>
53281
53282         New script and module: useless-if-before-free
53283         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
53284         * build-aux/useless-if-before-free: New file.
53285         * modules/useless-if-before-free: New file.
53286
53287         * build-aux/gitlog-to-changelog: Use committer date, not author date.
53288
53289         xstrtol_error: Fix typo.
53290         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
53291         s/exit_failure/exit_status/.
53292
53293 2008-02-09  Jim Meyering  <meyering@redhat.com>
53294
53295         New script and module: gitlog-to-changelog
53296         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
53297         * modules/gitlog-to-changelog: New file.
53298         * build-aux/gitlog-to-changelog: New file.
53299
53300 2008-02-08  Jim Meyering  <meyering@redhat.com>
53301
53302         Avoid two "parameter unused" warnings.
53303         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
53304         Mark "st" as used.
53305
53306         Use "git COMMAND", not "git-COMMAND".
53307         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
53308         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
53309         * build-aux/git-version-gen: Use "git status", not "git-status".
53310
53311 2008-02-07  Bruno Haible  <bruno@clisp.org>
53312
53313         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
53314         Avoids a crash on Windows Vista.
53315         Reported by Adam Strzelecki <ono@java.pl> via
53316         Simon Josefsson <simon@josefsson.org>.
53317
53318 2008-02-06  Bruno Haible  <bruno@clisp.org>
53319
53320         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
53321         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
53322         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
53323         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
53324         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
53325         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
53326         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
53327         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
53328         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
53329         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
53330         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
53331         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
53332         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
53333         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
53334         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
53335         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
53336         left-adjust flag.
53337         * tests/test-snprintf-posix.h (test_function): Likewise.
53338         * tests/test-sprintf-posix.h (test_function): Likewise.
53339         * tests/test-vasprintf-posix.c (test_function): Likewise.
53340         * doc/posix-functions/fprintf.texi: Update.
53341         * doc/posix-functions/printf.texi: Update.
53342         * doc/posix-functions/snprintf.texi: Update.
53343         * doc/posix-functions/sprintf.texi: Update.
53344         * doc/posix-functions/vfprintf.texi: Update.
53345         * doc/posix-functions/vprintf.texi: Update.
53346         * doc/posix-functions/vsnprintf.texi: Update.
53347         * doc/posix-functions/vsprintf.texi: Update.
53348         Reported by Peter Fales <psfales@alcatel-lucent.com>.
53349
53350 2008-02-06  Bruno Haible  <bruno@clisp.org>
53351
53352         Fix bug introduced on 2008-01-26.
53353         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
53354
53355 2008-02-06  Bruno Haible  <bruno@clisp.org>
53356
53357         Fix bug introduced on 2007-06-10.
53358         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
53359         !NEED_PRINTF_FLAG_ZERO.
53360
53361 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
53362
53363         getloadavg: use libperfstat on AIX5
53364         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
53365
53366 2008-02-03  Bruno Haible  <bruno@clisp.org>
53367
53368         * lib/diffseq.h: Add comments about required #includes.
53369         Reported by Michael Biggs <gnulib@doubleplum.net>.
53370
53371 2008-02-01  Bruno Haible  <bruno@clisp.org>
53372
53373         * users.txt: Add gnuit.
53374
53375 2008-01-31  Bruno Haible  <bruno@clisp.org>
53376
53377         * lib/md4.c (set_uint32): Mark as inline.
53378         * lib/md5.c (set_uint32): Likewise.
53379         * lib/sha1.c (set_uint32): Likewise.
53380         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
53381         * m4/md5.m4 (gl_MD5): Likewise.
53382         * m4/sha1.m4 (gl_SHA1): Likewise.
53383
53384 2008-01-31  Jim Meyering  <meyering@redhat.com>
53385
53386         Use "sizeof VAR", rather than a literal "4".
53387         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
53388         * lib/md4.c (md4_read_ctx): Likewise.
53389         * lib/sha1.c (sha1_read_ctx): Likewise.
53390
53391 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53392
53393         * tests/test-sha1.c: New file, based on test-md5.c.
53394
53395         * modules/crypto/sha1-tests: New file.
53396
53397 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53398
53399         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
53400
53401 2008-01-31  Jim Meyering  <meyering@redhat.com>
53402
53403         Prefer "sizeof v" over the equivalent "4".
53404         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
53405         * lib/md5.c (set_uint32): Likewise.
53406         * lib/sha1.c (set_uint32): Likewise.
53407
53408 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53409
53410         * lib/sha1.c (set_uint32): Mark function as static.
53411
53412 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53413
53414         md2: clarify comments to say that alignment is not required.
53415         * lib/md2.h: Remove warning about alignment in comment.
53416         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
53417         never been required.
53418
53419 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53420
53421         md4: adapt alignment constraint fix from sha1.
53422         * lib/md4.c (set_uint32): New function, from sha1.c
53423         (md4_read_ctx): Use it.
53424         (md4_finish_ctx): Doc fix.
53425         * lib/md4.h: Doc fix.
53426
53427 2008-01-31  Simon Josefsson  <simon@josefsson.org>
53428
53429         md5: adapt alignment constraint fix from sha1.
53430         * lib/md5.c (set_uint32): New function, from sha1.c
53431         (md5_read_ctx): Use it.
53432         (md5_finish_ctx): Doc fix.
53433         * lib/md5.h: Doc fix.
53434
53435 2008-01-30  Peter Palfrader  <weasel@debian.org>
53436
53437         sha1: remove the result buffer alignment constraint
53438         * lib/sha1.c (set_uint32): New function.
53439         (sha1_read_ctx): Rewrite to remove the result buffer alignment
53440         constraint.
53441         (sha1_finish_ctx): Remove comment warning about alignment constraint.
53442         * lib/sha1.h: Likewise.
53443
53444 2008-01-30  Andreas Schwab  <schwab@suse.de>
53445             Bruno Haible  <bruno@clisp.org>
53446
53447         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
53448         correct definition of LDBL_MIN_EXP.
53449
53450 2008-01-30  Karl Berry  <karl@gnu.org>
53451
53452         * config/srclist-update: try to preserve x bit on updates.
53453         * config/srclistvars.sh: update for karl.
53454
53455 2008-01-29  Jim Meyering  <meyering@redhat.com>
53456
53457         vasnprintf.c: Avoid warning about unused label
53458         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
53459         "overflow" label definition and associated code with the
53460         same cpp condition that guards the sole use of that label.
53461
53462 2008-01-26  Bruno Haible  <bruno@clisp.org>
53463
53464         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
53465         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
53466         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
53467         * lib/isnanl-nolibm.h (isnanl): Likewise.
53468         Reported by Paul Eggert <eggert@cs.ucla.edu>.
53469
53470 2008-01-26  Bruno Haible  <bruno@clisp.org>
53471
53472         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
53473         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
53474
53475 2008-01-26  Bruno Haible  <bruno@clisp.org>
53476
53477         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
53478         GCC >= 4.0 built-in.
53479         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
53480
53481 2008-01-26  Bruno Haible  <bruno@clisp.org>
53482
53483         Rename isnan, applicable to 'double' only, to isnand.
53484         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
53485         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
53486         (configure.ac): Update.
53487         (Include): Replace "isnan.h" with "isnand.h".
53488         * m4/isnand.m4: Renamed from m4/isnan.m4.
53489         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
53490         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
53491         instead of isnan.c.
53492         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
53493         instead of HAVE_ISNAN_IN_LIBC.
53494         (isnand): Renamed from isnan.
53495         * lib/isnand.c: New file.
53496         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
53497         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
53498         (Makefile.am): Update.
53499         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
53500         Include isnand.h instead of isnan.h.
53501         (main): Test isnand instead of isnan.
53502         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
53503         isnan-nolibm.
53504         * modules/frexp (Depends-on): Likewise.
53505         * modules/frexp-tests (Depends-on): Likewise.
53506         * modules/frexp-nolibm (Depends-on): Likewise.
53507         * modules/frexp-nolibm-tests (Depends-on): Likewise.
53508         * modules/isfinite (Depends-on): Likewise.
53509         * modules/round-tests (Depends-on): Likewise.
53510         * modules/signbit (Depends-on): Likewise.
53511         * modules/signbit-tests (Depends-on): Likewise.
53512         * modules/snprintf-posix (Depends-on): Likewise.
53513         * modules/sprintf-posix (Depends-on): Likewise.
53514         * modules/trunc-tests (Depends-on): Likewise.
53515         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
53516         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
53517         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
53518         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
53519         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
53520         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
53521         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
53522         * modules/vasnprintf-posix (Depends-on): Likewise.
53523         * modules/vasprintf-posix (Depends-on): Likewise.
53524         * modules/vfprintf-posix (Depends-on): Likewise.
53525         * modules/vsnprintf-posix (Depends-on): Likewise.
53526         * modules/vsprintf-posix (Depends-on): Likewise.
53527         * lib/frexp.c: Include isnand.h instead of isnan.h.
53528         (ISNAN): Set to isnand instead of isnan.
53529         * lib/isfinite.c: Include isnand.h instead of isnan.h.
53530         (gl_isfinited): Use isnand instead of isnan.
53531         * lib/signbitd.c: Include isnand.h instead of isnan.h.
53532         (gl_signbitd): Use isnand instead of isnan.
53533         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
53534         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
53535         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
53536         (main): Use isnand instead of isnan.
53537         * tests/test-round1.c: Include isnand.h.
53538         (main): Use isnand instead of isnan.
53539         * tests/test-round2.c: Include isnand.h instead of isnan.h.
53540         (ISNAN): Set to isnand instead of isnan.
53541         * tests/test-trunc1.c: Include isnand.h.
53542         (main): Use isnand instead of isnan.
53543         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
53544         (equal): Use isnand instead of isnan.
53545         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
53546         isnand-nolibm.
53547         * NEWS: Mention the change.
53548
53549 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
53550             Bruno Haible  <bruno@clisp.org>
53551
53552         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
53553         the GCC builtins for signbits are present and set
53554         REPLACE_SIGNBIT_USING_GCC if so.
53555         * lib/math.in.h (signbit): Define using GCC builtins if
53556         REPLACE_SIGNBIT_USING_GCC is set.
53557         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
53558         REPLACE_SIGNBIT_USING_GCC.
53559         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
53560
53561 2008-01-25  Jim Meyering  <meyering@redhat.com>
53562
53563         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
53564         * lib/poll.c: Include <config.h>, not "config.h".
53565         * tests/test-getaddrinfo.c: Likewise.
53566
53567 2008-01-25  Simon Josefsson  <simon@josefsson.org>
53568
53569         * modules/sockets-tests: New file.
53570
53571 2008-01-24  Simon Josefsson  <simon@josefsson.org>
53572
53573         * modules/sockets: New module, can be used to call WSA_Startup and
53574         WSA_Cleanup when needed.
53575
53576         * lib/sockets.h, lib/sockets.c: New files.
53577
53578         * m4/sockets.m4: New file.
53579
53580         * tests/test-sockets.c: New file.
53581
53582 2008-01-19  Bruno Haible  <bruno@clisp.org>
53583
53584         * doc/posix-headers: Renamed from doc/headers.
53585         * doc/posix-functions: Renamed from doc/functions.
53586         * doc/gnulib.texi: Update.
53587
53588 2008-01-19  Bruno Haible  <bruno@clisp.org>
53589
53590         * doc/glibc-functions/strcasestr.texi: Include contents of
53591         doc/functions/strcasestr.texi, fixing the list of platforms.
53592         * doc/functions/strcasestr.texi: Remove file.
53593
53594 2008-01-19  Bruno Haible  <bruno@clisp.org>
53595
53596         * doc/glibc-functions/memmem.texi: Include contents of
53597         doc/functions/memmem.texi.
53598         * doc/functions/memmem.texi: Remove file.
53599
53600 2008-01-18  Bruno Haible  <bruno@clisp.org>
53601
53602         * doc/glibc-functions/*.texi: New files.
53603         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
53604         to use the new files.
53605
53606 2008-01-17  Bruno Haible  <bruno@clisp.org>
53607
53608         * tests/test-gethostname.c (main): Fix printf statement.
53609
53610 2008-01-17  Simon Josefsson  <simon@josefsson.org>
53611
53612         * modules/gethostname-tests: New file.
53613
53614         * tests/test-gethostname.c: New file.
53615
53616 2008-01-17  Simon Josefsson  <simon@josefsson.org>
53617
53618         * lib/gethostname.c: Include string.h unconditionally, strncpy is
53619         used by the UNAME case.  Reported by Bruno Haible
53620         <bruno@clisp.org>.
53621
53622 2008-01-17  Eric Blake  <ebb9@byu.net>
53623
53624         Convert c-strcasestr to be more efficient.
53625         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
53626         (Depends-on): Add c-strcase, remove malloca, strnlen.
53627         * tests/test-c-strcasestr.c (main): Enhance test.
53628         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
53629
53630 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
53631
53632         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
53633         Use it in creating po/Makevars.
53634
53635 2008-01-15  Simon Josefsson  <simon@josefsson.org>
53636
53637         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
53638         Applications that requires it should initialize libgcrypt
53639         manually.
53640
53641 2008-01-16  Simon Josefsson  <simon@josefsson.org>
53642
53643         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
53644
53645 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
53646
53647         Fix problem with getdate on mingw32 reported by Simon Josefsson
53648         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
53649         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
53650         tzname", when deciding whether to declare tzname.
53651         * lib/strftime.c (tzname): Likewise.
53652
53653 2008-01-15  Bruno Haible  <bruno@clisp.org>
53654
53655         Work around a MacOS X 10.5 bug in frexpl().
53656         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
53657         * doc/functions/frexpl.texi: Document the bug.
53658         Reported by Elias Pipping <pipping@gentoo.org>.
53659
53660 2008-01-14  Eric Blake  <ebb9@byu.net>
53661
53662         Touch up previous patch.
53663         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
53664         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
53665
53666         Convert strcasestr module to use Two-Way algorithm.
53667         * modules/strcasestr-simple: New module, based on the old
53668         strcasestr, but with Two-Way rather than KMP.
53669         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
53670         * lib/string.in.h (rpl_strcasestr): Declare.
53671         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
53672         performance.
53673         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
53674         * modules/string (Makefile.am): Support strcasestr.
53675         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
53676         * modules/strcasestr-tests (Depends-on): Check for alarm.
53677         * tests/test-strcasestr.c: Augment test.
53678         * lib/str-two-way.h: Clean up stray macro.
53679         * NEWS: Document new module.
53680         * MODULES.html.sh (string handling): Likewise.
53681         * doc/functions/strcasestr.texi: New file.
53682         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
53683         here, since it is not a POSIX function.
53684
53685 2008-01-14  Colin Watson  <cjwatson@debian.org>
53686             Bruno Haible  <bruno@clisp.org>
53687
53688         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
53689         works fine; if not, set REPLACE_STRSIGNAL.
53690         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
53691         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53692         REPLACE_STRSIGNAL.
53693         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
53694         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
53695         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
53696
53697 2008-01-14  Bruno Haible  <bruno@clisp.org>
53698
53699         * modules/strsignal (Include): Change to <string.h>.
53700
53701 2008-01-14  Colin Watson  <cjwatson@debian.org>
53702
53703         * modules/argp (Notice): Add a notice recommending to change
53704         XGETTEXT_OPTIONS.
53705         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
53706
53707 2008-01-13  Colin Watson  <cjwatson@debian.org>
53708
53709         * modules/strsignal-tests: New file.
53710         * tests/test-strsignal.c: New file.
53711
53712         * lib/strsignal.c: New file, from glibc with modifications.
53713         * lib/siglist.h: New file, from glibc with modifications.
53714         * lib/string.in.h (strsignal): New declaration.
53715         * m4/strsignal.m4: New file.
53716         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53717         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
53718         * modules/strsignal: New file.
53719         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
53720         HAVE_DECL_STRSIGNAL.
53721
53722 2008-01-13  Bruno Haible  <bruno@clisp.org>
53723
53724         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
53725         locale encoding is not ASCII. Needed for OpenBSD 4.0.
53726         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
53727         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53728
53729 2008-01-13  Bruno Haible  <bruno@clisp.org>
53730
53731         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
53732         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
53733         * lib/argp.h (__attribute__): Likewise.
53734         * lib/c-stack.c (__attribute__): Likewise.
53735         * lib/error.h (__attribute__): Likewise.
53736         * lib/fts.c (__attribute__): Likewise.
53737         * lib/openat.h (__attribute__): Likewise.
53738         * lib/stdio.in.h (__attribute__): Likewise.
53739         * lib/string.in.h (__attribute__): Likewise.
53740         * lib/utimens.c (__attribute__): Likewise.
53741         * lib/vasnprintf.h (__attribute__): Likewise.
53742         * lib/xalloc.h (__attribute__): Likewise.
53743         * lib/xprintf.h (__attribute__): Likewise.
53744         * lib/xstrtol.h (__attribute__): Likewise.
53745         * lib/xvasprintf.h (__attribute__): Likewise.
53746
53747 2008-01-12  Bruno Haible  <bruno@clisp.org>
53748
53749         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
53750         * doc/glibc-headers/a.out.texi: New file.
53751         * doc/glibc-headers/aliases.texi: New file.
53752         * doc/glibc-headers/alloca.texi: New file.
53753         * doc/glibc-headers/ar.texi: New file.
53754         * doc/glibc-headers/argp.texi: New file.
53755         * doc/glibc-headers/argz.texi: New file.
53756         * doc/glibc-headers/byteswap.texi: New file.
53757         * doc/glibc-headers/crypt.texi: New file.
53758         * doc/glibc-headers/endian.texi: New file.
53759         * doc/glibc-headers/envz.texi: New file.
53760         * doc/glibc-headers/err.texi: New file.
53761         * doc/glibc-headers/error.texi: New file.
53762         * doc/glibc-headers/execinfo.texi: New file.
53763         * doc/glibc-headers/fpu_control.texi: New file.
53764         * doc/glibc-headers/fstab.texi: New file.
53765         * doc/glibc-headers/fts.texi: New file.
53766         * doc/glibc-headers/getopt.texi: New file.
53767         * doc/glibc-headers/ieee754.texi: New file.
53768         * doc/glibc-headers/ifaddrs.texi: New file.
53769         * doc/glibc-headers/libintl.texi: New file.
53770         * doc/glibc-headers/mcheck.texi: New file.
53771         * doc/glibc-headers/mntent.texi: New file.
53772         * doc/glibc-headers/obstack.texi: New file.
53773         * doc/glibc-headers/paths.texi: New file.
53774         * doc/glibc-headers/printf.texi: New file.
53775         * doc/glibc-headers/pty.texi: New file.
53776         * doc/glibc-headers/resolv.texi: New file.
53777         * doc/glibc-headers/shadow.texi: New file.
53778         * doc/glibc-headers/sysexits.texi: New file.
53779         * doc/glibc-headers/ttyent.texi: New file.
53780
53781 2008-01-12  Jim Meyering  <meyering@redhat.com>
53782
53783         announce-gen: emit Gnulib's git-based version string.
53784         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
53785         New option --gnulib-version=V, where V is expected to be
53786         the output of running git describe in the gnulib directory.
53787         (get_tool_versions): Request feedback on xdelta.  I suspect it's
53788         not useful, and plan to stop publishing an xdelta file with each
53789         coreutils release.
53790
53791         * build-aux/announce-gen: Also check for lzma-compressed files.
53792
53793 2008-01-11  Bruno Haible  <bruno@clisp.org>
53794
53795         * tests/test-memmem.c (main): Increase maximum allowed time.
53796         * tests/test-strstr.c (main): Likewise.
53797
53798 2008-01-11  Bruno Haible  <bruno@clisp.org>
53799
53800         * doc/functions/memmem.texi: Add more precisions about platforms.
53801         * doc/functions/strstr.texi: Likewise.
53802
53803 2008-01-10  Eric Blake  <ebb9@byu.net>
53804
53805         * m4/strstr.m4: Delete cruft from copy-n-paste.
53806         Reported by Bruno Haible.
53807
53808 2008-01-10  Bruno Haible  <bruno@clisp.org>
53809
53810         Make c-strstr rely on strstr.
53811         * lib/c-strstr.c: Don't include str-kmp.h.
53812         (c_strstr): Define in terms of strstr.
53813         * modules/c-strstr (Files): Remove lib/str-kmp.h.
53814         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
53815
53816 2008-01-10  Bruno Haible  <bruno@clisp.org>
53817
53818         * doc/gnulib.texi (String Functions in C Locale): New section.
53819         * doc/c-ctype.texi: New file.
53820         * doc/c-strcase.texi: New file.
53821         * doc/c-strcaseeq.texi: New file.
53822         * doc/c-strcasestr.texi: New file.
53823         * doc/c-strstr.texi: New file.
53824         * doc/c-strtod.texi: New file.
53825         * doc/c-strtold.texi: New file.
53826
53827 2008-01-10  Eric Blake  <ebb9@byu.net>
53828
53829         * lib/relocatable.h: Fix a comment.
53830
53831 2008-01-10  Eric Blake  <ebb9@byu.net>
53832
53833         Share two-way algorithm.
53834         * lib/str-two-way.h: New file, merged from...
53835         * lib/memmem.c: ...here...
53836         * lib/strstr.c: ...and here.
53837         * modules/memmem (Files): Use it.
53838         * modules/strstr (Files): Likewise.
53839
53840         Avoid quadratic strstr implementations.
53841         * lib/strstr.c: New file.
53842         * m4/strstr.m4: Likewise.
53843         * modules/strstr: Likewise.
53844         * modules/strstr-tests: Likewise.
53845         * tests/test-strstr.c: Likewise.
53846         * lib/string.in.h (rpl_strstr): Declare.
53847         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
53848         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
53849         * modules/string (Makefile.am): Likewise.
53850         * MODULES.html.sh (string handling): Mention new module.
53851         * doc/functions/strstr.texi (strstr): Document the bug.
53852
53853 2008-01-10  Bruno Haible  <bruno@clisp.org>
53854
53855         * lib/relocatable.h (relocate): State whether result is freshly
53856         allocated or not.
53857         * lib/relocatable.c (relocate): Return a freshly allocated string
53858         instead of a pointer to a privately held string.
53859         Reported by Sylvain Beucler <beuc@gnu.org>.
53860
53861 2008-01-10  Colin Watson  <cjwatson@debian.org>
53862
53863         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
53864         s/S_ISNLK/S_ISLNK/.
53865
53866 2008-01-09  Bruno Haible  <bruno@clisp.org>
53867
53868         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
53869         and other files.
53870         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
53871         if it's only a guess.
53872         * modules/memmem: Simplify by depending on memmem-simple.
53873
53874 2008-01-09  Bruno Haible  <bruno@clisp.org>
53875
53876         Work around OpenBSD 4.0 tdelete() bug.
53877         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
53878         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
53879         macros and don't redefine the enum values.
53880         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
53881         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
53882         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
53883
53884 2008-01-09  Bruno Haible  <bruno@clisp.org>
53885
53886         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
53887         (main): Don't perform the tests if setlocale did not install a UTF-8
53888         locale. Needed on OpenBSD 4.0.
53889         * modules/wcwidth-tests (Depends-on): Add localcharset.
53890
53891 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53892
53893         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
53894         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
53895         * NEWS: announce this.
53896         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
53897
53898 2008-01-09  Simon Josefsson  <simon@josefsson.org>
53899         and Eric Blake  <ebb9@byu.net>
53900
53901         Add memmem-simple module.
53902         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
53903         (gl_FUNC_MEMMEM): Separate performance from presence checks.
53904         * modules/memmem-simple: New file.
53905         * modules/memmem (Description): Tweak.
53906         * MODULES.html.sh (string handling): Mention new module.
53907         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
53908         addressed by memmem-simple.
53909         * NEWS: Document the difference.
53910
53911 2008-01-09  Eric Blake  <ebb9@byu.net>
53912
53913         Give gcc some memmem optimization hints.
53914         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
53915         (strcasestr): Declare as pure.
53916         * modules/memmem (Maintainer): Claim my implementation.
53917
53918 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53919
53920         Support AIX 6.1 and higher.
53921         * build-aux/config.libpath: Likewise.
53922         * build-aux/config.rpath: Likewise.
53923
53924 2008-01-08  Jim Meyering  <meyering@redhat.com>
53925             Bruno Haible  <bruno@clisp.org>
53926
53927         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
53928         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
53929         Reported by Peter Fales in
53930         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
53931
53932 2008-01-08  Bruno Haible  <bruno@clisp.org>
53933
53934         * modules/unictype/category-of (Depends-on): Add
53935         unictype/category-none.
53936         * modules/unictype/category-and-tests (Depends-on): Add
53937         unictype/category-{L,N,Lu,Nd}.
53938         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
53939         * modules/unictype/category-or-tests (Depends-on): Add
53940         unictype/category-{L,N}.
53941         * modules/unictype/category-name-tests (Depends-on): Add
53942         unictype/category-{Z,Nl}.
53943         Reported by Simon Josefsson.
53944
53945 2008-01-08  Bruno Haible  <bruno@clisp.org>
53946
53947         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
53948         convention better.
53949         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
53950         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
53951         Reported by Peter Miller <millerp@canb.auug.org.au>.
53952
53953 2008-01-08  Eric Blake  <ebb9@byu.net>
53954
53955         Rewrite memmem to guarantee linear complexity without malloc.
53956         * lib/memmem.c (memmem): Use Two-Way rather than
53957         Knuth-Morris-Pratt, to allow O(1) space usage.
53958         (critical_factorization, two_way_short_needle)
53959         (two_way_long_needle): New functions.
53960         (knuth_morris_pratt): Delete.
53961         * modules/memmem (Depends-on): No longer need malloca or stdbool.
53962         Add stdint.
53963         * tests/test-memmem.c (main): Add tests for periodic needle and
53964         sublinear performance.
53965         * doc/functions/memmem.texi (memmem): Document other deficiencies
53966         in cygwin and older glibc.
53967
53968 2008-01-08  Bruno Haible  <bruno@clisp.org>
53969
53970         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
53971         augmentation.
53972
53973 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
53974
53975         Add a configure time option: --disable-acl.
53976         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
53977         AC_ARG_ENABLE(acl).
53978
53979 2008-01-06  Simon Josefsson  <simon@josefsson.org>
53980
53981         * tests/test-localename.c: Don't include obsolete "setenv.h".
53982
53983         * modules/localename-tests (Depends-on): Need unsetenv.
53984
53985 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53986
53987         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
53988
53989 2008-01-06  Colin Watson  <cjwatson@debian.org>
53990
53991         * users.txt: Add man-db.
53992
53993 2008-01-07  Bruno Haible  <bruno@clisp.org>
53994
53995         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
53996         previous section name.
53997
53998 2008-01-07  Bruno Haible  <bruno@clisp.org>
53999
54000         * lib/progname.c (set_program_name): Don't strip off a leading
54001         "lt-" prefix outside a .libs directory.
54002         Suggested by Paul Eggert.
54003
54004 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
54005             Bruno Haible  <bruno@clisp.org>
54006
54007         Improve memory cleanup in 'relocatable' module.
54008         * lib/relocatable.h (compute_curr_prefix): Change return type to
54009         'char *'.
54010         * lib/relocatable.c (compute_curr_prefix): Change return type to
54011         'char *'. Free curr_installdir after use.
54012         (relocate): Free curr_prefix_better after use.
54013         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
54014
54015 2008-01-01  Bruno Haible  <bruno@clisp.org>
54016
54017         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
54018         failure on older glibc systems.
54019         Reported by Peter Fales <psfales@alcatel-lucent.com>.
54020
54021 2008-01-05  Eric Blake  <ebb9@byu.net>
54022
54023         Avoid quadratic system memmem.
54024         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
54025         Reported by Ralf Wildenhues.
54026
54027         Fix memmem test for mingw.
54028         * modules/memmem-tests (configure.ac): Check for alarm.
54029         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
54030         it.
54031         * doc/functions/memmem.texi: New file.
54032         * doc/gnulib.texi (Function Substitutes): Add memmem.
54033         Reported by Bruno Haible.
54034
54035 2008-01-04  Bruno Haible  <bruno@clisp.org>
54036
54037         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
54038         Require gl_HEADER_STRINGS_H_DEFAULTS, not
54039         gl_HEADER_STRING_H_DEFAULTS.
54040
54041 2008-01-04  Eric Blake  <ebb9@byu.net>
54042
54043         Shorten duration of memmem test.
54044         * tests/test-memmem.c (main): Use alarm to declare failure if test
54045         is taking too long.
54046         Reported by Ralf Wildenhues.
54047
54048 2007-12-21  Simon Josefsson  <simon@josefsson.org>
54049
54050         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
54051         string, needed by strerror.
54052
54053 2008-01-03  Colin Watson  <cjwatson@debian.org>
54054             Bruno Haible  <bruno@clisp.org>
54055
54056         * doc/gnulib-tool.texi (Localization): New section.
54057
54058 2008-01-02  Bruno Haible  <bruno@clisp.org>
54059
54060         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
54061         variables to 'unsigned char *' type.
54062         Reported by Paul Eggert.
54063
54064 2008-01-02  Jim Meyering  <jim@meyering.net>
54065
54066         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
54067
54068 2007-12-31  Jim Meyering  <jim@meyering.net>
54069
54070         Avoid use of private FTS type name.
54071         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
54072
54073 2007-12-30  Karl Berry  <karl@gnu.org>
54074
54075         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
54076         work around defect in Texinfo and/or the standalone Info browser.
54077
54078 2007-12-30  Bruno Haible  <bruno@clisp.org>
54079
54080         Unify 5 copies of the KMP code.
54081         * lib/str-kmp.h: New file.
54082         * lib/c-strcasestr.c: Include str-kmp.h.
54083         (knuth_morris_pratt): Remove function.
54084         (c_strcasestr): Update.
54085         * lib/c-strstr.c: Include str-kmp.h.
54086         (knuth_morris_pratt): Remove function.
54087         (c_strcasestr): Update.
54088         * lib/mbscasestr.c: Include str-kmp.h.
54089         (knuth_morris_pratt_unibyte): Remove function.
54090         * lib/mbsstr.c: Include str-kmp.h.
54091         (knuth_morris_pratt_unibyte): Remove function.
54092         * lib/strcasestr.c: Include str-kmp.h.
54093         (knuth_morris_pratt): Remove function.
54094         (strcasestr): Update.
54095         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
54096         * modules/c-strstr (Files): Likewise.
54097         * modules/mbscasestr (Files): Likewise.
54098         * modules/mbsstr (Files): Likewise.
54099         * modules/strcasestr (Files): Likewise.
54100         Suggested by Paul Eggert.
54101
54102 2007-12-30  Bruno Haible  <bruno@clisp.org>
54103
54104         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
54105         defined.
54106
54107 2007-12-30  Bruno Haible  <bruno@clisp.org>
54108
54109         * lib/xmalloca.h: Include xalloc.h.
54110         (xnmalloca): New macro.
54111
54112 2007-12-30  Bruno Haible  <bruno@clisp.org>
54113
54114         * lib/malloca.h (nmalloca): New macro.
54115         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
54116         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
54117         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
54118         knuth_morris_pratt_multibyte): Likewise.
54119         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
54120         knuth_morris_pratt_multibyte): Likewise.
54121         * lib/memmem.c (knuth_morris_pratt): Likewise.
54122         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
54123
54124 2007-12-25  Bruno Haible  <bruno@clisp.org>
54125
54126         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
54127         * lib/glob.c: Don't include openat.h.
54128         (link_exists2_p): Add back the code that deals with the
54129         !GLOB_ALTDIRFUNC case.
54130         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
54131         let it do the filename concatenation.
54132         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
54133         * modules/glob (Depends-on): Remove openat.
54134
54135 2007-12-31  Bruno Haible  <bruno@clisp.org>
54136
54137         * modules/dirfd (License): Change to LGPLv2+.
54138         Approved by Jim Meyering.
54139
54140 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
54141
54142         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
54143         when multiplying M by sizeof (size_t).
54144
54145 2007-12-10  Martin Lambers  <marlam@marlam.de>
54146
54147         Override getpagesize on mingw.
54148         * lib/getpagesize.c: New file.
54149         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
54150         * modules/getpagesize (Files): Add lib/getpagesize.c.
54151         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
54152         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54153         REPLACE_GETPAGESIZE.
54154         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
54155
54156 2007-12-25  Bruno Haible  <bruno@clisp.org>
54157
54158         * modules/localcharset (Notice): New field.
54159         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
54160         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
54161
54162 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
54163             Bruno Haible  <bruno@clisp.org>
54164
54165         Avoid using the syntax symbol() in formatted documentation.
54166         * MODULES.html.sh (func_module): When replacing symbol() with a
54167         hyperlink, remove the parentheses. Show an error if some remain.
54168         Recognize and render the '...' syntax.
54169         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
54170         Rework. Add paragraph about GCC's inlining.
54171         * doc/alloca.texi: Likewise.
54172         * doc/error.texi: Remove parentheses from symbol reference.
54173         * doc/gnulib-intro.texi: Likewise.
54174         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
54175         * modules/fnmatch (Description): Reword to say "the ... function".
54176         * modules/full-read (Description): Likewise.
54177         * modules/full-write (Description): Likewise.
54178         * modules/safe-read (Description): Likewise.
54179         * modules/safe-write (Description): Likewise.
54180         * modules/strchrnul (Description): Likewise.
54181         * modules/trim (Description): Likewise.
54182         * modules/error (Description): Remove parentheses from symbol
54183         references.
54184         * modules/verror (Description): Likewise.
54185         Reported by Karl Berry.
54186
54187 2007-12-25  Bruno Haible  <bruno@clisp.org>
54188
54189         Fixup after 2007-10-16 commit.
54190         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
54191
54192 2007-12-24  Bruno Haible  <bruno@clisp.org>
54193
54194         Make --enable-relocatable work with DESTDIR.
54195         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
54196         to compute installdir from destprog.
54197         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
54198         also set the RELOC_DESTDIR variable.
54199         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
54200
54201 2007-12-24  Bruno Haible  <bruno@clisp.org>
54202
54203         Fix link error due to xalloc_die().
54204         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
54205         of xreadlink.
54206         * lib/relocwrapper.c: Update comments.
54207         * build-aux/install-reloc: Remove xreadlink.c from file list.
54208         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
54209         xreadlink.c.
54210         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
54211
54212 2007-12-24  Bruno Haible  <bruno@clisp.org>
54213
54214         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
54215         * lib/setenv.h: Remove file.
54216         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
54217         lib/setenv.h.
54218         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
54219         (Depends-on): Add stdlib.
54220         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
54221         gl_FUNC_UNSETENV.
54222         (Include): Replace setenv.h with <stdlib.h>.
54223         * modules/unsetenv: New file.
54224         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
54225         * lib/unsetenv.c: Include <stdlib.h> first.
54226         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
54227         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
54228         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
54229         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
54230         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
54231         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
54232         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
54233         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
54234         * doc/functions/unsetenv.texi: Update.
54235         * modules/xsetenv (Depends-on): Add unsetenv.
54236         * modules/getdate (Depends-on): Likewise.
54237         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
54238         * lib/xsetenv.c: Don't include setenv.h.
54239         * lib/getdate.y: Likewise.
54240         * lib/relocwrapper.c: Likewise.
54241         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
54242         (Depends-on): Add stdlib.
54243         * NEWS: Mention the changes.
54244         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
54245
54246 2007-12-23  Bruno Haible  <bruno@clisp.org>
54247
54248         * lib/memmem.c (memmem): Use lowercase variable names. Tab
54249         indentation.
54250
54251 2007-12-23  Bruno Haible  <bruno@clisp.org>
54252
54253         * lib/c-strcasestr.c: Add more comments.
54254         * lib/c-strstr.c: Likewise.
54255         * lib/mbscasestr.c: Likewise.
54256         * lib/mbsstr.c: Likewise.
54257         * lib/strcasestr.c: Likewise.
54258         * lib/memmem.c: Likewise.
54259
54260 2007-12-23  Bruno Haible  <bruno@clisp.org>
54261
54262         * tests/test-memmem.c: Include <string.h> first.
54263
54264 2007-12-22  Bruno Haible  <bruno@clisp.org>
54265
54266         * gnulib-tool (func_create_testdir): Change $auxdir while generating
54267         the contents of $testsbase.
54268         Reported by Ralf Wildenhues.
54269
54270 2007-12-22  Bruno Haible  <bruno@clisp.org>
54271
54272         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
54273         two variables local_ldadd_before, local_ldadd_last.
54274
54275 2007-12-20  Eric Blake  <ebb9@byu.net>
54276
54277         Work around circular library issue when cross-compiling.
54278         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
54279         that progname.o does not need to pull in rpl_memcmp.
54280
54281 2007-12-19  Eric Blake  <ebb9@byu.net>
54282
54283         Fix memmem to avoid O(n^2) worst-case complexity.
54284         * lib/memmem.c (knuth_morris_pratt): New function.
54285         (memmem): Use it if first few naive iterations fail.
54286         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
54287         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
54288         * modules/memchr (License): Likewise.
54289         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
54290         malloca.
54291         * tests/test-memmem.c: Rewrite, borrowing ideas from
54292         test-mbsstr1.c; the old version wouldn't even compile!
54293         * modules/memmem-tests: New file.
54294         * lib/string.in.h (rpl_memmem): Add declaration.
54295         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
54296         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
54297         REPLACE_MEMMEM.
54298
54299 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
54300
54301         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
54302         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
54303         before any system include files, and undef after them all.  This
54304         should fix a problem on VMS reported by John E. Malmberg in
54305         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
54306
54307 2007-12-17  Eric Blake  <ebb9@byu.net>
54308
54309         Revert addition of verify, for BSD/OS.
54310         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
54311         can't handle large files, for the sake of obsolete platforms.
54312         * modules/fseeko (Depends-on): Remove verify.
54313         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
54314         * doc/functions/ftello.texi (ftello): Likewise.
54315         * doc/functions/fgetpos.texi (fgetpos): Likewise.
54316         Reported by Larry Jones.
54317
54318 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
54319
54320         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
54321         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
54322
54323 2007-12-17  Jim Meyering  <meyering@redhat.com>
54324
54325         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
54326         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
54327         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
54328         * modules/getcwd (Depends-on): Add openat.
54329         Reported by Petr Salinger.
54330
54331 2007-12-17  Bruno Haible  <bruno@clisp.org>
54332
54333         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
54334         avoid a segmentation fault of the configure test on x86_64 systems.
54335
54336 2007-12-15  Jim Meyering  <meyering@redhat.com>
54337
54338         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
54339
54340 2007-12-13  Eric Blake  <ebb9@byu.net>
54341
54342         Another fseek test.
54343         * tests/test-fseek.c (main): Also test ungetc handling.
54344         * tests/test-fseeko.c (main): Likewise.
54345         * modules/fseeko (Depends-on): Add verify.
54346         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
54347         large.
54348         Reported by Larry Jones.
54349
54350         Fix fseeko on mingw.
54351         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
54352         seek.
54353
54354         Beef up fseek tests.
54355         * tests/test-fseek.c (main): Also test eof handling.
54356         * tests/test-fseeko.c (main): Likewise.
54357         Reported by Larry Jones.
54358
54359 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
54360
54361         Fix fseeko on BSD-based platforms.
54362         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
54363         successful seek.
54364
54365 2007-12-12  Eric Blake  <ebb9@byu.net>
54366
54367         Allow circular dependency of separate libtests.a
54368         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
54369         when use_libtests.
54370
54371 2007-12-11  Eric Blake  <ebb9@byu.net>
54372
54373         Fix bug with -0.0L in previous patch.
54374         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
54375         * tests/test-isnan.c (main): Also test on zeroes.
54376         * tests/test-isnanf.c (main): Likewise.
54377         * tests/test-isnanl.h (main): Likewise.
54378
54379         Detect pseudo-denormals on x86 even when cross-compiling.
54380         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
54381         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
54382         invalid bit patterns that happen to satisfy ==.
54383
54384         Avoid link failures with separate libtests.a.
54385         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
54386         last, to satisfy circular dependencies.
54387
54388 2007-12-11  Eric Blake  <ebb9@byu.net>
54389         and Bruno Haible  <bruno@clisp.org>
54390
54391         Fix OpenBSD 4.0 <float.h> handling of long double.
54392         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
54393         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
54394         * doc/headers/float.texi (float.h): Document OpenBSD bug.
54395
54396 2007-12-11  Jim Meyering  <meyering@redhat.com>
54397
54398         * users.txt: Add libvirt.
54399
54400         Support versions of autoconf prior to 2.59c.
54401         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
54402         if it is not already defined.
54403
54404 2007-12-09  Bruno Haible  <bruno@clisp.org>
54405
54406         Let 'gnulib-tool --import' collect sources needed for the tests in
54407         tests/ rather than in lib/.
54408         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
54409         argument. If true, add rules to generate libtests.a, and put libtests.a
54410         into $(LDADD). Consider source files in subdirectories and set
54411         uses_subdirs.
54412         (func_emit_initmacro_start, func_emit_initmacro_end,
54413         func_emit_initmacro_done): Pass all arguments explicitly.
54414         (func_import): Determine two module lists main_modules,
54415         testsrelated_modules. Determine use_libtests. Determine two variables
54416         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
54417         instead of just sed_transform_lib_file. Determine two variables
54418         main_files and testsrelated_files. Compute 'files' as the union of
54419         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
54420         func_add_or_update. In the generated gnulib-comp.m4, collect the
54421         object files for tests/ in different variables than those for lib/.
54422         Substitute LIBTESTS_LIBDEPS.
54423         (func_create_testdir): Combine the uses_subdirs results from
54424         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
54425
54426 2007-12-09  Bruno Haible  <bruno@clisp.org>
54427
54428         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
54429         the build-aux directory.
54430
54431 2007-12-09  Bruno Haible  <bruno@clisp.org>
54432
54433         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
54434         introduced on 2006-09-09.
54435
54436 2007-12-07  Jim Meyering  <meyering@redhat.com>
54437
54438         Let these macros work also with autoconf-2.59.
54439         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
54440         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
54441         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
54442
54443 2007-12-06  Jim Meyering  <meyering@redhat.com>
54444
54445         Avoid a configure-time syntax error in gl_FUNC_ACL.
54446         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
54447         function in each branch, before testing the cache variable.
54448
54449 2007-12-04  Eric Blake  <ebb9@byu.net>
54450
54451         Make scripts executable.
54452         * build-aux/config.guess: Add execute permissions.
54453         * build-aux/config.sub: Likewise.
54454         * build-aux/gendocs.sh: Likewise.
54455
54456         Fix frexp on mingw.
54457         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
54458         cross-compiling.
54459         * doc/functions/frexp.texi (frexp): Document the bug.
54460
54461         Make cygwin fseeko check more reliable.
54462         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
54463         version numbers, rather than unrelated feature check.
54464         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
54465         * doc/functions/ftello.texi (ftello): Likewise.
54466         Reported by Bruno Haible.
54467
54468         * m4/strerror.m4: Bump version number.
54469
54470 2007-12-03  Bruno Haible  <bruno@clisp.org>
54471
54472         * doc/functions/mprotect.texi: Mention the mingw problem.
54473
54474 2007-12-03  Eric Blake  <ebb9@byu.net>
54475
54476         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
54477         REPLACE_STRERROR is initialized before this macro.
54478
54479 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
54480
54481         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
54482         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
54483         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
54484         put -lsec in even for programs other than 'ls'.  This fixes a problem
54485         for gettext reported by Bruno Haible in
54486         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
54487         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
54488         Add support for Solaris 10.  This isn't efficient, but should get the
54489         job done for now.
54490
54491 2007-12-03  James Youngman  <jay@gnu.org>
54492
54493         * doc/regexprops-generic.texi: change "an close-group" to "a
54494         close-group" and "illegal" to "not allowed".
54495
54496 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54497
54498         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
54499         pr_byname.h. Needed for the rare case when the maintainer has done
54500         "make maintainer-clean" in the source directory and then attempts a
54501         build outside the source directory.
54502         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
54503         scripts_byname.h.
54504
54505 2007-12-02  Martin Lambers <marlam@marlam.de>
54506             Bruno Haible  <bruno@clisp.org>
54507
54508         * lib/getpagesize.h: Remove file.
54509         * lib/unistd.in.h: Include declaration of getpagesize here.
54510         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
54511         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
54512         HAVE_SYS_PARAM_H.
54513         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
54514         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
54515         * modules/getpagesize (Files): Remove lib/getpagesize.h.
54516         (Depends-on): Add unistd.
54517         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54518         (Include): Use <unistd.h> instead of getpagesize.h.
54519         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
54520         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
54521         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
54522         gl_GETPAGESIZE invocation, already handled by module dependency.
54523         * lib/pagealign_alloc.c: Don't include getpagesize.h.
54524
54525 2007-12-02  Bruno Haible  <bruno@clisp.org>
54526
54527         * modules/strings-tests: New file.
54528         * tests/test-strings.c: New file.
54529
54530         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
54531         * lib/strings.in.h: New file.
54532         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
54533         * m4/strings_h.m4: New file.
54534         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
54535         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
54536         * modules/strings: New file.
54537         * modules/string (Makefile.am): Update.
54538         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
54539         Reported by Karl Berry.
54540
54541 2007-12-01  Eric Blake  <ebb9@byu.net>
54542
54543         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
54544         accomodate fix in cygwin 1.5.25.
54545
54546 2007-12-01  Jim Meyering  <meyering@redhat.com>
54547
54548         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
54549         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
54550         that would inhibit utf8-optimization of a regexp containing line-
54551         or buffer-anchors, e.g., `^', `$'.
54552
54553 2007-11-30  Bruno Haible  <bruno@clisp.org>
54554
54555         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
54556         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
54557         glthread_recursive_lock_init.
54558         * lib/lock.c (glthread_recursive_lock_init)
54559         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
54560         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54561
54562 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
54563
54564         New function qset_acl, like set_acl but with syscall semantics.
54565         * lib/acl.h (qset_acl): New decl.
54566         * lib/acl.c (qset_acl): New function.
54567         (set_acl): Use new function.  Use more-consistent diagnostics.
54568
54569 2007-11-28  Jim Meyering  <meyering@redhat.com>
54570
54571         * modules/physmem (License): Change from GPL to LGPLv2+.
54572
54573 2007-11-26  Bruno Haible  <bruno@clisp.org>
54574
54575         * lib/vasnprintf.c (decode_long_double): Don't abort if the
54576         'long double' type has excess precision.
54577         Reported by Jim Meyering in
54578         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
54579
54580 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54581
54582         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
54583         Sync from <http://gnu.org/licenses>.
54584         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
54585         with license text from same location.
54586         * doc/maintain.texi, doc/standards.texi:  Sync from
54587         <http://savannah.gnu.org/projects/gnustandards>.
54588
54589 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
54590         and Jim Meyering  <meyering@redhat.com>
54591
54592         Adjust getdate' grammar to accept a slightly more regular language.
54593         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
54594         Before, the former was rejected.
54595         * lib/getdate.y (digits_to_date_time): New function, factored
54596         out of ...
54597         (number): ...here.  Just call digits_to_date_time.
54598         (hybrid): New non-terminal to handle an <unsigned number,
54599         signed relative offset> sequence consistently.
54600
54601 2007-11-18  Jim Meyering  <meyering@redhat.com>
54602
54603         Pull my changes from coreutils:
54604         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
54605         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
54606         use of $gnulib_tool_option_extras, so that it's separated from the
54607         preceding argument.
54608
54609         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
54610         * build-aux/bootstrap (cp_mark_as_generated): Create any required
54611         parent destination directories before copying a file into place.
54612
54613 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
54614
54615         bootstrap: work also with 4-argument variant of AC_INIT
54616         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
54617
54618 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
54619
54620         Port test-getaddrinfo to Solaris.
54621         Problem reported by Bruno Haible in
54622         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
54623         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
54624         explanation of setting 'hints'.
54625         Don't reject an implementation merely because it returns EAI_SERVICE.
54626         (EAI_SERVICE): Define to 0 if not defined.
54627
54628 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
54629
54630         The license of gnu-make and posix-shell is now "GPLed build tool".
54631         * modules/gnu-make (License): Likewise.
54632         * modules/posix-shell (License): Likewise.
54633
54634         New module posix-shell, for determining a POSIX shell
54635         or perhaps something that is close enough to a POSIX shell.
54636         * m4/posix-shell.m4: New file.
54637         * modules/posix-shell: New file.
54638
54639         * MODULES.html.sh: Mention new module.
54640
54641         New module gnu-make, for determining whether we're using GNU Make.
54642         * m4/gnu-make.m4: New file.
54643         * modules/gnu-make: New file.
54644         * MODULES.html.sh: Mention new module.
54645
54646 2007-11-14  Jim Meyering  <meyering@redhat.com>
54647
54648         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
54649         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
54650         use this macro to create a function _definition_.
54651         Remove useless "#undef ARGMATCH_DIE".
54652
54653 2007-11-14  Bruno Haible  <bruno@clisp.org>
54654
54655         * lib/config.charset: Update for OpenBSD 4.1.
54656         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
54657
54658 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
54659
54660         Document 64-bit #if problems in stdint.texi.
54661         * doc/headers/stdint.texi (stdint.h): Mention problems with
54662         64-bit-#if, and how to work around them.
54663
54664         Don't insist on 'long long int' support in the preprocessor.  It
54665         breaks too many things.  For example, PRIdMAX still uses a 'long
54666         long int' format with the latest Sun compiler, even though
54667         HAVE_LONG_LONG_INT isn't defined due to that compiler's
54668         preprocessor problem.  This causes the latest coreutils to dump
54669         core on Solaris 10 sparc with the Sun C compiler.
54670         Instead, fix the 2007-10-16 problem in a different way, by evaluating
54671         the troublesome expressions at configure-time, not at #if-time.
54672         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
54673         preprocessor.
54674         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
54675         compile-time C checks, done at 'configure'-time.
54676         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
54677         * modules/inttypes (Makefile): Substitute the new symbols that
54678         gl_INTTYPES_H now generates.
54679         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
54680
54681 2007-11-12  Bruno Haible  <bruno@clisp.org>
54682
54683         Tests for Unicode character classification functions.
54684
54685         * modules/unictype/bidicategory-byname-tests: New file.
54686         * modules/unictype/bidicategory-name-tests: New file.
54687         * modules/unictype/bidicategory-of-tests: New file.
54688         * modules/unictype/bidicategory-test-tests: New file.
54689         * modules/unictype/block-list-tests: New file.
54690         * modules/unictype/block-of-tests: New file.
54691         * modules/unictype/block-test-tests: New file.
54692         * modules/unictype/category-C-tests: New file.
54693         * modules/unictype/category-Cc-tests: New file.
54694         * modules/unictype/category-Cf-tests: New file.
54695         * modules/unictype/category-Cn-tests: New file.
54696         * modules/unictype/category-Co-tests: New file.
54697         * modules/unictype/category-Cs-tests: New file.
54698         * modules/unictype/category-L-tests: New file.
54699         * modules/unictype/category-Ll-tests: New file.
54700         * modules/unictype/category-Lm-tests: New file.
54701         * modules/unictype/category-Lo-tests: New file.
54702         * modules/unictype/category-Lt-tests: New file.
54703         * modules/unictype/category-Lu-tests: New file.
54704         * modules/unictype/category-M-tests: New file.
54705         * modules/unictype/category-Mc-tests: New file.
54706         * modules/unictype/category-Me-tests: New file.
54707         * modules/unictype/category-Mn-tests: New file.
54708         * modules/unictype/category-N-tests: New file.
54709         * modules/unictype/category-Nd-tests: New file.
54710         * modules/unictype/category-Nl-tests: New file.
54711         * modules/unictype/category-No-tests: New file.
54712         * modules/unictype/category-P-tests: New file.
54713         * modules/unictype/category-Pc-tests: New file.
54714         * modules/unictype/category-Pd-tests: New file.
54715         * modules/unictype/category-Pe-tests: New file.
54716         * modules/unictype/category-Pf-tests: New file.
54717         * modules/unictype/category-Pi-tests: New file.
54718         * modules/unictype/category-Po-tests: New file.
54719         * modules/unictype/category-Ps-tests: New file.
54720         * modules/unictype/category-S-tests: New file.
54721         * modules/unictype/category-Sc-tests: New file.
54722         * modules/unictype/category-Sk-tests: New file.
54723         * modules/unictype/category-Sm-tests: New file.
54724         * modules/unictype/category-So-tests: New file.
54725         * modules/unictype/category-Z-tests: New file.
54726         * modules/unictype/category-Zl-tests: New file.
54727         * modules/unictype/category-Zp-tests: New file.
54728         * modules/unictype/category-Zs-tests: New file.
54729         * modules/unictype/category-and-not-tests: New file.
54730         * modules/unictype/category-and-tests: New file.
54731         * modules/unictype/category-byname-tests: New file.
54732         * modules/unictype/category-name-tests: New file.
54733         * modules/unictype/category-none-tests: New file.
54734         * modules/unictype/category-of-tests: New file.
54735         * modules/unictype/category-or-tests: New file.
54736         * modules/unictype/category-test-withtable-tests: New file.
54737         * modules/unictype/combining-class-tests: New file.
54738         * modules/unictype/ctype-alnum-tests: New file.
54739         * modules/unictype/ctype-alpha-tests: New file.
54740         * modules/unictype/ctype-blank-tests: New file.
54741         * modules/unictype/ctype-cntrl-tests: New file.
54742         * modules/unictype/ctype-digit-tests: New file.
54743         * modules/unictype/ctype-graph-tests: New file.
54744         * modules/unictype/ctype-lower-tests: New file.
54745         * modules/unictype/ctype-print-tests: New file.
54746         * modules/unictype/ctype-punct-tests: New file.
54747         * modules/unictype/ctype-space-tests: New file.
54748         * modules/unictype/ctype-upper-tests: New file.
54749         * modules/unictype/ctype-xdigit-tests: New file.
54750         * modules/unictype/decimal-digit-tests: New file.
54751         * modules/unictype/digit-tests: New file.
54752         * modules/unictype/mirror-tests: New file.
54753         * modules/unictype/numeric-tests: New file.
54754         * modules/unictype/property-alphabetic-tests: New file.
54755         * modules/unictype/property-ascii-hex-digit-tests: New file.
54756         * modules/unictype/property-bidi-arabic-digit-tests: New file.
54757         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
54758         * modules/unictype/property-bidi-block-separator-tests: New file.
54759         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
54760         * modules/unictype/property-bidi-common-separator-tests: New file.
54761         * modules/unictype/property-bidi-control-tests: New file.
54762         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
54763         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
54764         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
54765         * modules/unictype/property-bidi-european-digit-tests: New file.
54766         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
54767         * modules/unictype/property-bidi-left-to-right-tests: New file.
54768         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
54769         * modules/unictype/property-bidi-other-neutral-tests: New file.
54770         * modules/unictype/property-bidi-pdf-tests: New file.
54771         * modules/unictype/property-bidi-segment-separator-tests: New file.
54772         * modules/unictype/property-bidi-whitespace-tests: New file.
54773         * modules/unictype/property-byname-tests: New file.
54774         * modules/unictype/property-combining-tests: New file.
54775         * modules/unictype/property-composite-tests: New file.
54776         * modules/unictype/property-currency-symbol-tests: New file.
54777         * modules/unictype/property-dash-tests: New file.
54778         * modules/unictype/property-decimal-digit-tests: New file.
54779         * modules/unictype/property-default-ignorable-code-point-tests: New file.
54780         * modules/unictype/property-deprecated-tests: New file.
54781         * modules/unictype/property-diacritic-tests: New file.
54782         * modules/unictype/property-extender-tests: New file.
54783         * modules/unictype/property-format-control-tests: New file.
54784         * modules/unictype/property-grapheme-base-tests: New file.
54785         * modules/unictype/property-grapheme-extend-tests: New file.
54786         * modules/unictype/property-grapheme-link-tests: New file.
54787         * modules/unictype/property-hex-digit-tests: New file.
54788         * modules/unictype/property-hyphen-tests: New file.
54789         * modules/unictype/property-id-continue-tests: New file.
54790         * modules/unictype/property-id-start-tests: New file.
54791         * modules/unictype/property-ideographic-tests: New file.
54792         * modules/unictype/property-ids-binary-operator-tests: New file.
54793         * modules/unictype/property-ids-trinary-operator-tests: New file.
54794         * modules/unictype/property-ignorable-control-tests: New file.
54795         * modules/unictype/property-iso-control-tests: New file.
54796         * modules/unictype/property-join-control-tests: New file.
54797         * modules/unictype/property-left-of-pair-tests: New file.
54798         * modules/unictype/property-line-separator-tests: New file.
54799         * modules/unictype/property-logical-order-exception-tests: New file.
54800         * modules/unictype/property-lowercase-tests: New file.
54801         * modules/unictype/property-math-tests: New file.
54802         * modules/unictype/property-non-break-tests: New file.
54803         * modules/unictype/property-not-a-character-tests: New file.
54804         * modules/unictype/property-numeric-tests: New file.
54805         * modules/unictype/property-other-alphabetic-tests: New file.
54806         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
54807         * modules/unictype/property-other-grapheme-extend-tests: New file.
54808         * modules/unictype/property-other-id-continue-tests: New file.
54809         * modules/unictype/property-other-id-start-tests: New file.
54810         * modules/unictype/property-other-lowercase-tests: New file.
54811         * modules/unictype/property-other-math-tests: New file.
54812         * modules/unictype/property-other-uppercase-tests: New file.
54813         * modules/unictype/property-paired-punctuation-tests: New file.
54814         * modules/unictype/property-paragraph-separator-tests: New file.
54815         * modules/unictype/property-pattern-syntax-tests: New file.
54816         * modules/unictype/property-pattern-white-space-tests: New file.
54817         * modules/unictype/property-private-use-tests: New file.
54818         * modules/unictype/property-punctuation-tests: New file.
54819         * modules/unictype/property-quotation-mark-tests: New file.
54820         * modules/unictype/property-radical-tests: New file.
54821         * modules/unictype/property-sentence-terminal-tests: New file.
54822         * modules/unictype/property-soft-dotted-tests: New file.
54823         * modules/unictype/property-space-tests: New file.
54824         * modules/unictype/property-terminal-punctuation-tests: New file.
54825         * modules/unictype/property-test-tests: New file.
54826         * modules/unictype/property-titlecase-tests: New file.
54827         * modules/unictype/property-unassigned-code-value-tests: New file.
54828         * modules/unictype/property-unified-ideograph-tests: New file.
54829         * modules/unictype/property-uppercase-tests: New file.
54830         * modules/unictype/property-variation-selector-tests: New file.
54831         * modules/unictype/property-white-space-tests: New file.
54832         * modules/unictype/property-xid-continue-tests: New file.
54833         * modules/unictype/property-xid-start-tests: New file.
54834         * modules/unictype/property-zero-width-tests: New file.
54835         * modules/unictype/scripts-tests: New file.
54836         * modules/unictype/syntax-c-ident-tests: New file.
54837         * modules/unictype/syntax-c-whitespace-tests: New file.
54838         * modules/unictype/syntax-java-ident-tests: New file.
54839         * modules/unictype/syntax-java-whitespace-tests: New file.
54840         * tests/unictype/test-bidi_byname.c: New file.
54841         * tests/unictype/test-bidi_name.c: New file.
54842         * tests/unictype/test-bidi_of.c: New file.
54843         * tests/unictype/test-bidi_test.c: New file.
54844         * tests/unictype/test-block_list.c: New file.
54845         * tests/unictype/test-block_of.c: New file.
54846         * tests/unictype/test-block_test.c: New file.
54847         * tests/unictype/test-categ_and.c: New file.
54848         * tests/unictype/test-categ_and_not.c: New file.
54849         * tests/unictype/test-categ_byname.c: New file.
54850         * tests/unictype/test-categ_name.c: New file.
54851         * tests/unictype/test-categ_none.c: New file.
54852         * tests/unictype/test-categ_of.c: New file.
54853         * tests/unictype/test-categ_or.c: New file.
54854         * tests/unictype/test-categ_test_withtable.c: New file.
54855         * tests/unictype/test-combining.c: New file.
54856         * tests/unictype/test-decdigit.c: New file.
54857         * tests/unictype/test-digit.c: New file.
54858         * tests/unictype/test-mirror.c: New file.
54859         * tests/unictype/test-numeric.c: New file.
54860         * tests/unictype/test-pr_byname.c: New file.
54861         * tests/unictype/test-pr_test.c: New file.
54862         * tests/unictype/test-predicate-part1.h: New file.
54863         * tests/unictype/test-predicate-part2.h: New file.
54864         * tests/unictype/test-scripts.c: New file.
54865         * tests/unictype/test-sy_c_ident.c: New file.
54866         * tests/unictype/test-sy_java_ident.c: New file.
54867
54868         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
54869         for Unicode 5.0.0.
54870         * tests/unictype/test-categ_Cc.c: Likewise.
54871         * tests/unictype/test-categ_Cf.c: Likewise.
54872         * tests/unictype/test-categ_Cn.c: Likewise.
54873         * tests/unictype/test-categ_Co.c: Likewise.
54874         * tests/unictype/test-categ_Cs.c: Likewise.
54875         * tests/unictype/test-categ_L.c: Likewise.
54876         * tests/unictype/test-categ_Ll.c: Likewise.
54877         * tests/unictype/test-categ_Lm.c: Likewise.
54878         * tests/unictype/test-categ_Lo.c: Likewise.
54879         * tests/unictype/test-categ_Lt.c: Likewise.
54880         * tests/unictype/test-categ_Lu.c: Likewise.
54881         * tests/unictype/test-categ_M.c: Likewise.
54882         * tests/unictype/test-categ_Mc.c: Likewise.
54883         * tests/unictype/test-categ_Me.c: Likewise.
54884         * tests/unictype/test-categ_Mn.c: Likewise.
54885         * tests/unictype/test-categ_N.c: Likewise.
54886         * tests/unictype/test-categ_Nd.c: Likewise.
54887         * tests/unictype/test-categ_Nl.c: Likewise.
54888         * tests/unictype/test-categ_No.c: Likewise.
54889         * tests/unictype/test-categ_P.c: Likewise.
54890         * tests/unictype/test-categ_Pc.c: Likewise.
54891         * tests/unictype/test-categ_Pd.c: Likewise.
54892         * tests/unictype/test-categ_Pe.c: Likewise.
54893         * tests/unictype/test-categ_Pf.c: Likewise.
54894         * tests/unictype/test-categ_Pi.c: Likewise.
54895         * tests/unictype/test-categ_Po.c: Likewise.
54896         * tests/unictype/test-categ_Ps.c: Likewise.
54897         * tests/unictype/test-categ_S.c: Likewise.
54898         * tests/unictype/test-categ_Sc.c: Likewise.
54899         * tests/unictype/test-categ_Sk.c: Likewise.
54900         * tests/unictype/test-categ_Sm.c: Likewise.
54901         * tests/unictype/test-categ_So.c: Likewise.
54902         * tests/unictype/test-categ_Z.c: Likewise.
54903         * tests/unictype/test-categ_Zl.c: Likewise.
54904         * tests/unictype/test-categ_Zp.c: Likewise.
54905         * tests/unictype/test-categ_Zs.c: Likewise.
54906         * tests/unictype/test-ctype_alnum.c: Likewise.
54907         * tests/unictype/test-ctype_alpha.c: Likewise.
54908         * tests/unictype/test-ctype_blank.c: Likewise.
54909         * tests/unictype/test-ctype_cntrl.c: Likewise.
54910         * tests/unictype/test-ctype_digit.c: Likewise.
54911         * tests/unictype/test-ctype_graph.c: Likewise.
54912         * tests/unictype/test-ctype_lower.c: Likewise.
54913         * tests/unictype/test-ctype_print.c: Likewise.
54914         * tests/unictype/test-ctype_punct.c: Likewise.
54915         * tests/unictype/test-ctype_space.c: Likewise.
54916         * tests/unictype/test-ctype_upper.c: Likewise.
54917         * tests/unictype/test-ctype_xdigit.c: Likewise.
54918         * tests/unictype/test-decdigit.h: Likewise.
54919         * tests/unictype/test-digit.h: Likewise.
54920         * tests/unictype/test-numeric.h: Likewise.
54921         * tests/unictype/test-pr_alphabetic.c: Likewise.
54922         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
54923         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
54924         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
54925         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
54926         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
54927         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
54928         * tests/unictype/test-pr_bidi_control.c: Likewise.
54929         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
54930         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
54931         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
54932         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
54933         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
54934         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
54935         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
54936         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
54937         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
54938         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
54939         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
54940         * tests/unictype/test-pr_combining.c: Likewise.
54941         * tests/unictype/test-pr_composite.c: Likewise.
54942         * tests/unictype/test-pr_currency_symbol.c: Likewise.
54943         * tests/unictype/test-pr_dash.c: Likewise.
54944         * tests/unictype/test-pr_decimal_digit.c: Likewise.
54945         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
54946         * tests/unictype/test-pr_deprecated.c: Likewise.
54947         * tests/unictype/test-pr_diacritic.c: Likewise.
54948         * tests/unictype/test-pr_extender.c: Likewise.
54949         * tests/unictype/test-pr_format_control.c: Likewise.
54950         * tests/unictype/test-pr_grapheme_base.c: Likewise.
54951         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
54952         * tests/unictype/test-pr_grapheme_link.c: Likewise.
54953         * tests/unictype/test-pr_hex_digit.c: Likewise.
54954         * tests/unictype/test-pr_hyphen.c: Likewise.
54955         * tests/unictype/test-pr_id_continue.c: Likewise.
54956         * tests/unictype/test-pr_id_start.c: Likewise.
54957         * tests/unictype/test-pr_ideographic.c: Likewise.
54958         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
54959         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
54960         * tests/unictype/test-pr_ignorable_control.c: Likewise.
54961         * tests/unictype/test-pr_iso_control.c: Likewise.
54962         * tests/unictype/test-pr_join_control.c: Likewise.
54963         * tests/unictype/test-pr_left_of_pair.c: Likewise.
54964         * tests/unictype/test-pr_line_separator.c: Likewise.
54965         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
54966         * tests/unictype/test-pr_lowercase.c: Likewise.
54967         * tests/unictype/test-pr_math.c: Likewise.
54968         * tests/unictype/test-pr_non_break.c: Likewise.
54969         * tests/unictype/test-pr_not_a_character.c: Likewise.
54970         * tests/unictype/test-pr_numeric.c: Likewise.
54971         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
54972         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
54973         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
54974         * tests/unictype/test-pr_other_id_continue.c: Likewise.
54975         * tests/unictype/test-pr_other_id_start.c: Likewise.
54976         * tests/unictype/test-pr_other_lowercase.c: Likewise.
54977         * tests/unictype/test-pr_other_math.c: Likewise.
54978         * tests/unictype/test-pr_other_uppercase.c: Likewise.
54979         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
54980         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
54981         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
54982         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
54983         * tests/unictype/test-pr_private_use.c: Likewise.
54984         * tests/unictype/test-pr_punctuation.c: Likewise.
54985         * tests/unictype/test-pr_quotation_mark.c: Likewise.
54986         * tests/unictype/test-pr_radical.c: Likewise.
54987         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
54988         * tests/unictype/test-pr_soft_dotted.c: Likewise.
54989         * tests/unictype/test-pr_space.c: Likewise.
54990         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
54991         * tests/unictype/test-pr_titlecase.c: Likewise.
54992         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
54993         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
54994         * tests/unictype/test-pr_uppercase.c: Likewise.
54995         * tests/unictype/test-pr_variation_selector.c: Likewise.
54996         * tests/unictype/test-pr_white_space.c: Likewise.
54997         * tests/unictype/test-pr_xid_continue.c: Likewise.
54998         * tests/unictype/test-pr_xid_start.c: Likewise.
54999         * tests/unictype/test-pr_zero_width.c: Likewise.
55000         * tests/unictype/test-sy_c_whitespace.c: Likewise.
55001         * tests/unictype/test-sy_java_whitespace.c: Likewise.
55002
55003 2007-11-12  Bruno Haible  <bruno@clisp.org>
55004
55005         Unicode character classification functions.
55006         * lib/unictype.h: New file.
55007         * modules/unictype/base: New file.
55008         * modules/unictype/category-L: New file.
55009         * modules/unictype/category-Lu: New file.
55010         * modules/unictype/category-Ll: New file.
55011         * modules/unictype/category-Lt: New file.
55012         * modules/unictype/category-Lm: New file.
55013         * modules/unictype/category-Lo: New file.
55014         * modules/unictype/category-M: New file.
55015         * modules/unictype/category-Mn: New file.
55016         * modules/unictype/category-Mc: New file.
55017         * modules/unictype/category-Me: New file.
55018         * modules/unictype/category-N: New file.
55019         * modules/unictype/category-Nd: New file.
55020         * modules/unictype/category-Nl: New file.
55021         * modules/unictype/category-No: New file.
55022         * modules/unictype/category-P: New file.
55023         * modules/unictype/category-Pc: New file.
55024         * modules/unictype/category-Pd: New file.
55025         * modules/unictype/category-Ps: New file.
55026         * modules/unictype/category-Pe: New file.
55027         * modules/unictype/category-Pi: New file.
55028         * modules/unictype/category-Pf: New file.
55029         * modules/unictype/category-Po: New file.
55030         * modules/unictype/category-S: New file.
55031         * modules/unictype/category-Sm: New file.
55032         * modules/unictype/category-Sc: New file.
55033         * modules/unictype/category-Sk: New file.
55034         * modules/unictype/category-So: New file.
55035         * modules/unictype/category-Z: New file.
55036         * modules/unictype/category-Zs: New file.
55037         * modules/unictype/category-Zl: New file.
55038         * modules/unictype/category-Zp: New file.
55039         * modules/unictype/category-C: New file.
55040         * modules/unictype/category-Cc: New file.
55041         * modules/unictype/category-Cf: New file.
55042         * modules/unictype/category-Cs: New file.
55043         * modules/unictype/category-Co: New file.
55044         * modules/unictype/category-Cn: New file.
55045         * modules/unictype/category-or: New file.
55046         * modules/unictype/category-of: New file.
55047         * modules/unictype/category-test: New file.
55048         * modules/unictype/category-test-withtable: New file.
55049         * modules/unictype/category-byname: New file.
55050         * modules/unictype/category-none: New file.
55051         * modules/unictype/category-and: New file.
55052         * modules/unictype/category-and-not: New file.
55053         * modules/unictype/category-name: New file.
55054         * modules/unictype/combining-class: New file.
55055         * modules/unictype/category-all: New file.
55056         * modules/unictype/bidicategory-all: New file.
55057         * modules/unictype/bidicategory-byname: New file.
55058         * modules/unictype/bidicategory-name: New file.
55059         * modules/unictype/bidicategory-of: New file.
55060         * modules/unictype/bidicategory-test: New file.
55061         * modules/unictype/decimal-digit: New file.
55062         * modules/unictype/digit: New file.
55063         * modules/unictype/numeric: New file.
55064         * modules/unictype/mirror: New file.
55065         * modules/unictype/property-white-space: New file.
55066         * modules/unictype/property-alphabetic: New file.
55067         * modules/unictype/property-other-alphabetic: New file.
55068         * modules/unictype/property-not-a-character: New file.
55069         * modules/unictype/property-default-ignorable-code-point: New file.
55070         * modules/unictype/property-other-default-ignorable-code-point: New
55071         file.
55072         * modules/unictype/property-deprecated: New file.
55073         * modules/unictype/property-logical-order-exception: New file.
55074         * modules/unictype/property-variation-selector: New file.
55075         * modules/unictype/property-private-use: New file.
55076         * modules/unictype/property-unassigned-code-value: New file.
55077         * modules/unictype/property-uppercase: New file.
55078         * modules/unictype/property-other-uppercase: New file.
55079         * modules/unictype/property-lowercase: New file.
55080         * modules/unictype/property-other-lowercase: New file.
55081         * modules/unictype/property-titlecase: New file.
55082         * modules/unictype/property-soft-dotted: New file.
55083         * modules/unictype/property-id-start: New file.
55084         * modules/unictype/property-other-id-start: New file.
55085         * modules/unictype/property-id-continue: New file.
55086         * modules/unictype/property-other-id-continue: New file.
55087         * modules/unictype/property-xid-start: New file.
55088         * modules/unictype/property-xid-continue: New file.
55089         * modules/unictype/property-pattern-white-space: New file.
55090         * modules/unictype/property-pattern-syntax: New file.
55091         * modules/unictype/property-join-control: New file.
55092         * modules/unictype/property-grapheme-base: New file.
55093         * modules/unictype/property-grapheme-extend: New file.
55094         * modules/unictype/property-other-grapheme-extend: New file.
55095         * modules/unictype/property-grapheme-link: New file.
55096         * modules/unictype/property-bidi-control: New file.
55097         * modules/unictype/property-bidi-left-to-right: New file.
55098         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
55099         * modules/unictype/property-bidi-arabic-right-to-left: New file.
55100         * modules/unictype/property-bidi-european-digit: New file.
55101         * modules/unictype/property-bidi-eur-num-separator: New file.
55102         * modules/unictype/property-bidi-eur-num-terminator: New file.
55103         * modules/unictype/property-bidi-arabic-digit: New file.
55104         * modules/unictype/property-bidi-common-separator: New file.
55105         * modules/unictype/property-bidi-block-separator: New file.
55106         * modules/unictype/property-bidi-segment-separator: New file.
55107         * modules/unictype/property-bidi-whitespace: New file.
55108         * modules/unictype/property-bidi-non-spacing-mark: New file.
55109         * modules/unictype/property-bidi-boundary-neutral: New file.
55110         * modules/unictype/property-bidi-pdf: New file.
55111         * modules/unictype/property-bidi-embedding-or-override: New file.
55112         * modules/unictype/property-bidi-other-neutral: New file.
55113         * modules/unictype/property-hex-digit: New file.
55114         * modules/unictype/property-ascii-hex-digit: New file.
55115         * modules/unictype/property-ideographic: New file.
55116         * modules/unictype/property-unified-ideograph: New file.
55117         * modules/unictype/property-radical: New file.
55118         * modules/unictype/property-ids-binary-operator: New file.
55119         * modules/unictype/property-ids-trinary-operator: New file.
55120         * modules/unictype/property-zero-width: New file.
55121         * modules/unictype/property-space: New file.
55122         * modules/unictype/property-non-break: New file.
55123         * modules/unictype/property-iso-control: New file.
55124         * modules/unictype/property-format-control: New file.
55125         * modules/unictype/property-dash: New file.
55126         * modules/unictype/property-hyphen: New file.
55127         * modules/unictype/property-punctuation: New file.
55128         * modules/unictype/property-line-separator: New file.
55129         * modules/unictype/property-paragraph-separator: New file.
55130         * modules/unictype/property-quotation-mark: New file.
55131         * modules/unictype/property-sentence-terminal: New file.
55132         * modules/unictype/property-terminal-punctuation: New file.
55133         * modules/unictype/property-currency-symbol: New file.
55134         * modules/unictype/property-math: New file.
55135         * modules/unictype/property-other-math: New file.
55136         * modules/unictype/property-paired-punctuation: New file.
55137         * modules/unictype/property-left-of-pair: New file.
55138         * modules/unictype/property-combining: New file.
55139         * modules/unictype/property-composite: New file.
55140         * modules/unictype/property-decimal-digit: New file.
55141         * modules/unictype/property-numeric: New file.
55142         * modules/unictype/property-diacritic: New file.
55143         * modules/unictype/property-extender: New file.
55144         * modules/unictype/property-ignorable-control: New file.
55145         * modules/unictype/property-test: New file.
55146         * modules/unictype/property-byname: New file.
55147         * modules/unictype/property-all: New file.
55148         * modules/unictype/scripts: New file.
55149         * modules/unictype/scripts-all: New file.
55150         * modules/unictype/block-of: New file.
55151         * modules/unictype/block-test: New file.
55152         * modules/unictype/block-list: New file.
55153         * modules/unictype/block-all: New file.
55154         * modules/unictype/syntax-c-whitespace: New file.
55155         * modules/unictype/syntax-java-whitespace: New file.
55156         * modules/unictype/syntax-c-ident: New file.
55157         * modules/unictype/syntax-java-ident: New file.
55158         * modules/unictype/ctype-alnum: New file.
55159         * modules/unictype/ctype-alpha: New file.
55160         * modules/unictype/ctype-cntrl: New file.
55161         * modules/unictype/ctype-digit: New file.
55162         * modules/unictype/ctype-graph: New file.
55163         * modules/unictype/ctype-lower: New file.
55164         * modules/unictype/ctype-print: New file.
55165         * modules/unictype/ctype-punct: New file.
55166         * modules/unictype/ctype-space: New file.
55167         * modules/unictype/ctype-upper: New file.
55168         * modules/unictype/ctype-xdigit: New file.
55169         * modules/unictype/ctype-blank: New file.
55170         * lib/unictype/bidi_byname.c: New file.
55171         * lib/unictype/bidi_name.c: New file.
55172         * lib/unictype/bidi_of.c: New file.
55173         * lib/unictype/bidi_test.c: New file.
55174         * lib/unictype/bitmap.h: New file.
55175         * lib/unictype/block_test.c: New file.
55176         * lib/unictype/blocks.c: New file.
55177         * lib/unictype/categ_C.c: New file.
55178         * lib/unictype/categ_Cc.c: New file.
55179         * lib/unictype/categ_Cf.c: New file.
55180         * lib/unictype/categ_Cn.c: New file.
55181         * lib/unictype/categ_Co.c: New file.
55182         * lib/unictype/categ_Cs.c: New file.
55183         * lib/unictype/categ_L.c: New file.
55184         * lib/unictype/categ_Ll.c: New file.
55185         * lib/unictype/categ_Lm.c: New file.
55186         * lib/unictype/categ_Lo.c: New file.
55187         * lib/unictype/categ_Lt.c: New file.
55188         * lib/unictype/categ_Lu.c: New file.
55189         * lib/unictype/categ_M.c: New file.
55190         * lib/unictype/categ_Mc.c: New file.
55191         * lib/unictype/categ_Me.c: New file.
55192         * lib/unictype/categ_Mn.c: New file.
55193         * lib/unictype/categ_N.c: New file.
55194         * lib/unictype/categ_Nd.c: New file.
55195         * lib/unictype/categ_Nl.c: New file.
55196         * lib/unictype/categ_No.c: New file.
55197         * lib/unictype/categ_P.c: New file.
55198         * lib/unictype/categ_Pc.c: New file.
55199         * lib/unictype/categ_Pd.c: New file.
55200         * lib/unictype/categ_Pe.c: New file.
55201         * lib/unictype/categ_Pf.c: New file.
55202         * lib/unictype/categ_Pi.c: New file.
55203         * lib/unictype/categ_Po.c: New file.
55204         * lib/unictype/categ_Ps.c: New file.
55205         * lib/unictype/categ_S.c: New file.
55206         * lib/unictype/categ_Sc.c: New file.
55207         * lib/unictype/categ_Sk.c: New file.
55208         * lib/unictype/categ_Sm.c: New file.
55209         * lib/unictype/categ_So.c: New file.
55210         * lib/unictype/categ_Z.c: New file.
55211         * lib/unictype/categ_Zl.c: New file.
55212         * lib/unictype/categ_Zp.c: New file.
55213         * lib/unictype/categ_Zs.c: New file.
55214         * lib/unictype/categ_and.c: New file.
55215         * lib/unictype/categ_and_not.c: New file.
55216         * lib/unictype/categ_byname.c: New file.
55217         * lib/unictype/categ_name.c: New file.
55218         * lib/unictype/categ_none.c: New file.
55219         * lib/unictype/categ_of.c: New file.
55220         * lib/unictype/categ_or.c: New file.
55221         * lib/unictype/categ_test.c: New file.
55222         * lib/unictype/combining.c: New file.
55223         * lib/unictype/ctype_alnum.c: New file.
55224         * lib/unictype/ctype_alpha.c: New file.
55225         * lib/unictype/ctype_blank.c: New file.
55226         * lib/unictype/ctype_cntrl.c: New file.
55227         * lib/unictype/ctype_digit.c: New file.
55228         * lib/unictype/ctype_graph.c: New file.
55229         * lib/unictype/ctype_lower.c: New file.
55230         * lib/unictype/ctype_print.c: New file.
55231         * lib/unictype/ctype_punct.c: New file.
55232         * lib/unictype/ctype_space.c: New file.
55233         * lib/unictype/ctype_upper.c: New file.
55234         * lib/unictype/ctype_xdigit.c: New file.
55235         * lib/unictype/decdigit.c: New file.
55236         * lib/unictype/digit.c: New file.
55237         * lib/unictype/identsyntaxmap.h: New file.
55238         * lib/unictype/mirror.c: New file.
55239         * lib/unictype/numeric.c: New file.
55240         * lib/unictype/pr_alphabetic.c: New file.
55241         * lib/unictype/pr_ascii_hex_digit.c: New file.
55242         * lib/unictype/pr_bidi_arabic_digit.c: New file.
55243         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
55244         * lib/unictype/pr_bidi_block_separator.c: New file.
55245         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
55246         * lib/unictype/pr_bidi_common_separator.c: New file.
55247         * lib/unictype/pr_bidi_control.c: New file.
55248         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
55249         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
55250         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
55251         * lib/unictype/pr_bidi_european_digit.c: New file.
55252         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
55253         * lib/unictype/pr_bidi_left_to_right.c: New file.
55254         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
55255         * lib/unictype/pr_bidi_other_neutral.c: New file.
55256         * lib/unictype/pr_bidi_pdf.c: New file.
55257         * lib/unictype/pr_bidi_segment_separator.c: New file.
55258         * lib/unictype/pr_bidi_whitespace.c: New file.
55259         * lib/unictype/pr_byname.c: New file.
55260         * lib/unictype/pr_byname.gperf: New file.
55261         * lib/unictype/pr_combining.c: New file.
55262         * lib/unictype/pr_composite.c: New file.
55263         * lib/unictype/pr_currency_symbol.c: New file.
55264         * lib/unictype/pr_dash.c: New file.
55265         * lib/unictype/pr_decimal_digit.c: New file.
55266         * lib/unictype/pr_default_ignorable_code_point.c: New file.
55267         * lib/unictype/pr_deprecated.c: New file.
55268         * lib/unictype/pr_diacritic.c: New file.
55269         * lib/unictype/pr_extender.c: New file.
55270         * lib/unictype/pr_format_control.c: New file.
55271         * lib/unictype/pr_grapheme_base.c: New file.
55272         * lib/unictype/pr_grapheme_extend.c: New file.
55273         * lib/unictype/pr_grapheme_link.c: New file.
55274         * lib/unictype/pr_hex_digit.c: New file.
55275         * lib/unictype/pr_hyphen.c: New file.
55276         * lib/unictype/pr_id_continue.c: New file.
55277         * lib/unictype/pr_id_start.c: New file.
55278         * lib/unictype/pr_ideographic.c: New file.
55279         * lib/unictype/pr_ids_binary_operator.c: New file.
55280         * lib/unictype/pr_ids_trinary_operator.c: New file.
55281         * lib/unictype/pr_ignorable_control.c: New file.
55282         * lib/unictype/pr_iso_control.c: New file.
55283         * lib/unictype/pr_join_control.c: New file.
55284         * lib/unictype/pr_left_of_pair.c: New file.
55285         * lib/unictype/pr_line_separator.c: New file.
55286         * lib/unictype/pr_logical_order_exception.c: New file.
55287         * lib/unictype/pr_lowercase.c: New file.
55288         * lib/unictype/pr_math.c: New file.
55289         * lib/unictype/pr_non_break.c: New file.
55290         * lib/unictype/pr_not_a_character.c: New file.
55291         * lib/unictype/pr_numeric.c: New file.
55292         * lib/unictype/pr_other_alphabetic.c: New file.
55293         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
55294         * lib/unictype/pr_other_grapheme_extend.c: New file.
55295         * lib/unictype/pr_other_id_continue.c: New file.
55296         * lib/unictype/pr_other_id_start.c: New file.
55297         * lib/unictype/pr_other_lowercase.c: New file.
55298         * lib/unictype/pr_other_math.c: New file.
55299         * lib/unictype/pr_other_uppercase.c: New file.
55300         * lib/unictype/pr_paired_punctuation.c: New file.
55301         * lib/unictype/pr_paragraph_separator.c: New file.
55302         * lib/unictype/pr_pattern_syntax.c: New file.
55303         * lib/unictype/pr_pattern_white_space.c: New file.
55304         * lib/unictype/pr_private_use.c: New file.
55305         * lib/unictype/pr_punctuation.c: New file.
55306         * lib/unictype/pr_quotation_mark.c: New file.
55307         * lib/unictype/pr_radical.c: New file.
55308         * lib/unictype/pr_sentence_terminal.c: New file.
55309         * lib/unictype/pr_soft_dotted.c: New file.
55310         * lib/unictype/pr_space.c: New file.
55311         * lib/unictype/pr_terminal_punctuation.c: New file.
55312         * lib/unictype/pr_test.c: New file.
55313         * lib/unictype/pr_titlecase.c: New file.
55314         * lib/unictype/pr_unassigned_code_value.c: New file.
55315         * lib/unictype/pr_unified_ideograph.c: New file.
55316         * lib/unictype/pr_uppercase.c: New file.
55317         * lib/unictype/pr_variation_selector.c: New file.
55318         * lib/unictype/pr_white_space.c: New file.
55319         * lib/unictype/pr_xid_continue.c: New file.
55320         * lib/unictype/pr_xid_start.c: New file.
55321         * lib/unictype/pr_zero_width.c: New file.
55322         * lib/unictype/scripts.c: New file.
55323         * lib/unictype/sy_c_ident.c: New file.
55324         * lib/unictype/sy_c_whitespace.c: New file.
55325         * lib/unictype/sy_java_ident.c: New file.
55326         * lib/unictype/sy_java_whitespace.c: New file.
55327
55328         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
55329         Unicode 5.0.0.
55330         * lib/unictype/blocks.h: Likewise.
55331         * lib/unictype/categ_C.h: Likewise.
55332         * lib/unictype/categ_Cc.h: Likewise.
55333         * lib/unictype/categ_Cf.h: Likewise.
55334         * lib/unictype/categ_Cn.h: Likewise.
55335         * lib/unictype/categ_Co.h: Likewise.
55336         * lib/unictype/categ_Cs.h: Likewise.
55337         * lib/unictype/categ_L.h: Likewise.
55338         * lib/unictype/categ_Ll.h: Likewise.
55339         * lib/unictype/categ_Lm.h: Likewise.
55340         * lib/unictype/categ_Lo.h: Likewise.
55341         * lib/unictype/categ_Lt.h: Likewise.
55342         * lib/unictype/categ_Lu.h: Likewise.
55343         * lib/unictype/categ_M.h: Likewise.
55344         * lib/unictype/categ_Mc.h: Likewise.
55345         * lib/unictype/categ_Me.h: Likewise.
55346         * lib/unictype/categ_Mn.h: Likewise.
55347         * lib/unictype/categ_N.h: Likewise.
55348         * lib/unictype/categ_Nd.h: Likewise.
55349         * lib/unictype/categ_Nl.h: Likewise.
55350         * lib/unictype/categ_No.h: Likewise.
55351         * lib/unictype/categ_P.h: Likewise.
55352         * lib/unictype/categ_Pc.h: Likewise.
55353         * lib/unictype/categ_Pd.h: Likewise.
55354         * lib/unictype/categ_Pe.h: Likewise.
55355         * lib/unictype/categ_Pf.h: Likewise.
55356         * lib/unictype/categ_Pi.h: Likewise.
55357         * lib/unictype/categ_Po.h: Likewise.
55358         * lib/unictype/categ_Ps.h: Likewise.
55359         * lib/unictype/categ_S.h: Likewise.
55360         * lib/unictype/categ_Sc.h: Likewise.
55361         * lib/unictype/categ_Sk.h: Likewise.
55362         * lib/unictype/categ_Sm.h: Likewise.
55363         * lib/unictype/categ_So.h: Likewise.
55364         * lib/unictype/categ_Z.h: Likewise.
55365         * lib/unictype/categ_Zl.h: Likewise.
55366         * lib/unictype/categ_Zp.h: Likewise.
55367         * lib/unictype/categ_Zs.h: Likewise.
55368         * lib/unictype/categ_of.h: Likewise.
55369         * lib/unictype/combining.h: Likewise.
55370         * lib/unictype/ctype_alnum.h: Likewise.
55371         * lib/unictype/ctype_alpha.h: Likewise.
55372         * lib/unictype/ctype_blank.h: Likewise.
55373         * lib/unictype/ctype_cntrl.h: Likewise.
55374         * lib/unictype/ctype_digit.h: Likewise.
55375         * lib/unictype/ctype_graph.h: Likewise.
55376         * lib/unictype/ctype_lower.h: Likewise.
55377         * lib/unictype/ctype_print.h: Likewise.
55378         * lib/unictype/ctype_punct.h: Likewise.
55379         * lib/unictype/ctype_space.h: Likewise.
55380         * lib/unictype/ctype_upper.h: Likewise.
55381         * lib/unictype/ctype_xdigit.h: Likewise.
55382         * lib/unictype/decdigit.h: Likewise.
55383         * lib/unictype/digit.h: Likewise.
55384         * lib/unictype/mirror.h: Likewise.
55385         * lib/unictype/numeric.h: Likewise.
55386         * lib/unictype/pr_alphabetic.h: Likewise.
55387         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
55388         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
55389         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
55390         * lib/unictype/pr_bidi_block_separator.h: Likewise.
55391         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
55392         * lib/unictype/pr_bidi_common_separator.h: Likewise.
55393         * lib/unictype/pr_bidi_control.h: Likewise.
55394         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
55395         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
55396         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
55397         * lib/unictype/pr_bidi_european_digit.h: Likewise.
55398         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
55399         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
55400         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
55401         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
55402         * lib/unictype/pr_bidi_pdf.h: Likewise.
55403         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
55404         * lib/unictype/pr_bidi_whitespace.h: Likewise.
55405         * lib/unictype/pr_combining.h: Likewise.
55406         * lib/unictype/pr_composite.h: Likewise.
55407         * lib/unictype/pr_currency_symbol.h: Likewise.
55408         * lib/unictype/pr_dash.h: Likewise.
55409         * lib/unictype/pr_decimal_digit.h: Likewise.
55410         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
55411         * lib/unictype/pr_deprecated.h: Likewise.
55412         * lib/unictype/pr_diacritic.h: Likewise.
55413         * lib/unictype/pr_extender.h: Likewise.
55414         * lib/unictype/pr_format_control.h: Likewise.
55415         * lib/unictype/pr_grapheme_base.h: Likewise.
55416         * lib/unictype/pr_grapheme_extend.h: Likewise.
55417         * lib/unictype/pr_grapheme_link.h: Likewise.
55418         * lib/unictype/pr_hex_digit.h: Likewise.
55419         * lib/unictype/pr_hyphen.h: Likewise.
55420         * lib/unictype/pr_id_continue.h: Likewise.
55421         * lib/unictype/pr_id_start.h: Likewise.
55422         * lib/unictype/pr_ideographic.h: Likewise.
55423         * lib/unictype/pr_ids_binary_operator.h: Likewise.
55424         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
55425         * lib/unictype/pr_ignorable_control.h: Likewise.
55426         * lib/unictype/pr_iso_control.h: Likewise.
55427         * lib/unictype/pr_join_control.h: Likewise.
55428         * lib/unictype/pr_left_of_pair.h: Likewise.
55429         * lib/unictype/pr_line_separator.h: Likewise.
55430         * lib/unictype/pr_logical_order_exception.h: Likewise.
55431         * lib/unictype/pr_lowercase.h: Likewise.
55432         * lib/unictype/pr_math.h: Likewise.
55433         * lib/unictype/pr_non_break.h: Likewise.
55434         * lib/unictype/pr_not_a_character.h: Likewise.
55435         * lib/unictype/pr_numeric.h: Likewise.
55436         * lib/unictype/pr_other_alphabetic.h: Likewise.
55437         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
55438         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
55439         * lib/unictype/pr_other_id_continue.h: Likewise.
55440         * lib/unictype/pr_other_id_start.h: Likewise.
55441         * lib/unictype/pr_other_lowercase.h: Likewise.
55442         * lib/unictype/pr_other_math.h: Likewise.
55443         * lib/unictype/pr_other_uppercase.h: Likewise.
55444         * lib/unictype/pr_paired_punctuation.h: Likewise.
55445         * lib/unictype/pr_paragraph_separator.h: Likewise.
55446         * lib/unictype/pr_pattern_syntax.h: Likewise.
55447         * lib/unictype/pr_pattern_white_space.h: Likewise.
55448         * lib/unictype/pr_private_use.h: Likewise.
55449         * lib/unictype/pr_punctuation.h: Likewise.
55450         * lib/unictype/pr_quotation_mark.h: Likewise.
55451         * lib/unictype/pr_radical.h: Likewise.
55452         * lib/unictype/pr_sentence_terminal.h: Likewise.
55453         * lib/unictype/pr_soft_dotted.h: Likewise.
55454         * lib/unictype/pr_space.h: Likewise.
55455         * lib/unictype/pr_terminal_punctuation.h: Likewise.
55456         * lib/unictype/pr_titlecase.h: Likewise.
55457         * lib/unictype/pr_unassigned_code_value.h: Likewise.
55458         * lib/unictype/pr_unified_ideograph.h: Likewise.
55459         * lib/unictype/pr_uppercase.h: Likewise.
55460         * lib/unictype/pr_variation_selector.h: Likewise.
55461         * lib/unictype/pr_white_space.h: Likewise.
55462         * lib/unictype/pr_xid_continue.h: Likewise.
55463         * lib/unictype/pr_xid_start.h: Likewise.
55464         * lib/unictype/pr_zero_width.h: Likewise.
55465         * lib/unictype/scripts.h: Likewise.
55466         * lib/unictype/scripts_byname.gperf: Likewise.
55467         * lib/unictype/sy_c_ident.h: Likewise.
55468         * lib/unictype/sy_c_whitespace.h: Likewise.
55469         * lib/unictype/sy_java_ident.h: Likewise.
55470         * lib/unictype/sy_java_whitespace.h: Likewise.
55471
55472         * lib/unictype/Makefile: New file.
55473         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
55474         glibc.
55475         * lib/unictype/3level.h: New file, copied from glibc.
55476         * lib/unictype/3levelbit.h: New file.
55477
55478 2007-11-11  Bruno Haible  <bruno@clisp.org>
55479
55480         * modules/gperf: New file.
55481         * modules/iconv_open (Depends-on): Add it.
55482         (Makefile.am): Remove the GPERF definition.
55483
55484 2007-11-11  Bruno Haible  <bruno@clisp.org>
55485
55486         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
55487         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
55488
55489 2007-11-11  Bruno Haible  <bruno@clisp.org>
55490
55491         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
55492         (usage): Remove function.
55493
55494 2007-11-11  Bruno Haible  <bruno@clisp.org>
55495
55496         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
55497         gl_FUNC_CEILF_LIBS.
55498         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
55499         gl_FUNC_CEIL_LIBS.
55500         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
55501         gl_FUNC_CEILL_LIBS.
55502         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
55503         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
55504         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
55505
55506 2007-11-11  Bruno Haible  <bruno@clisp.org>
55507
55508         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
55509         roundf were declared but do not exist on functions.
55510         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
55511         roundl were declared but do not exist on functions.
55512         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
55513         HAVE_FLOORL_AND_CEILL, respectively.
55514         Needed for Sun C on Solaris 10.
55515
55516 2007-11-11  Bruno Haible  <bruno@clisp.org>
55517
55518         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
55519         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
55520         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
55521         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
55522         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
55523         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
55524         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
55525         HAVE_DECL_ROUNDF.
55526         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
55527         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
55528         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
55529         of HAVE_DECL_ROUND*.
55530         * modules/math (Makefile.am): Update.
55531
55532 2007-11-10  Bruno Haible  <bruno@clisp.org>
55533
55534         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
55535         ptrdiff_t as m4/intl.m4.
55536
55537 2007-11-10  Jim Meyering  <meyering@redhat.com>
55538
55539         Avoid link failure for the argmatch test.
55540         * tests/test-argmatch.c (usage): Define function to avoid a link
55541         failure: argmatch_die requires a usage function.
55542
55543 2007-11-09  Bruno Haible  <bruno@clisp.org>
55544
55545         * doc/functions/snprintf.texi: Mention BeOS deficiency.
55546         * doc/functions/vsnprintf.texi: Likewise.
55547         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
55548         with a size argument < 2.
55549
55550 2007-11-09  Bruno Haible  <bruno@clisp.org>
55551
55552         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
55553         buffer. Fixes an inefficiency introduced on 2007-11-03.
55554
55555 2007-11-09  Bruno Haible  <bruno@clisp.org>
55556
55557         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
55558         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
55559
55560 2007-11-08  Jim Meyering  <meyering@redhat.com>
55561
55562         Change cache variable name prefix "jm_" to "gl_" everywhere.
55563         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
55564         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
55565         * m4/uptime.m4: s/gl_/jm_/
55566
55567 2007-11-07  Bruno Haible  <bruno@clisp.org>
55568
55569         Update to GNU gettext 0.17.
55570         * m4/intl.m4: Update to GNU gettext 0.17.
55571         * m4/po.m4: Likewise.
55572         * modules/gettext (Files): Remove m4/ulonglong.m4.
55573         (configure.ac): Require gettext infrastructure from version 0.17.
55574
55575 2007-11-06  Bruno Haible  <bruno@clisp.org>
55576
55577         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
55578         symbolic values are not defined in a public header.
55579         * lib/freadable.c (freadable) [QNX]: Likewise.
55580         * lib/freadahead.c (freadahead) [QNX]: Likewise.
55581         * lib/freading.c (freading) [QNX]: Likewise.
55582         * lib/fseterr.c (fseterr) [QNX]: Likewise.
55583         * lib/fwritable.c (fwritable) [QNX]: Likewise.
55584         * lib/fwriting.c (fwriting) [QNX]: Likewise.
55585         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
55586         Reported by Alain Magloire.
55587
55588         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
55589
55590 2007-11-05  Bruno Haible  <bruno@clisp.org>
55591
55592         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
55593         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
55594         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
55595         Reported by Eric Blake.
55596
55597 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55598             Bruno Haible  <bruno@clisp.org>
55599
55600         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
55601         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
55602         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
55603         (malloc): Undefine also before including <stdlib.h>.
55604         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
55605         Needed on OSF/1 4.0.
55606
55607 2007-11-05  Jim Meyering  <meyering@redhat.com>
55608
55609         git-version-gen: sync from coreutils.
55610         * build-aux/git-version-gen: Add comments.
55611         Change the first '-' to '.' in the snapshot version string,
55612         e.g., 6.9-377-08144 -> 6.9.377-08144
55613         Remove first parameter.
55614         Don't declare a version "-dirty" merely because a time
55615         stamp has changed.
55616
55617 2007-11-04  Bruno Haible  <bruno@clisp.org>
55618
55619         * lib/lock.h: Protect all macro definitions containing an 'if'
55620         statement through a "do { ... } while (0)".
55621         * lib/tls.h: Likewise.
55622
55623 2007-11-04  Bruno Haible  <bruno@clisp.org>
55624
55625         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
55626
55627 2007-11-04  Bruno Haible  <bruno@clisp.org>
55628
55629         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
55630         * modules/fprintf-posix (Depends-on): Add nocrash.
55631         * modules/snprintf-posix (Depends-on): Likewise.
55632         * modules/sprintf-posix (Depends-on): Likewise.
55633         * modules/vasnprintf-posix (Depends-on): Likewise.
55634         * modules/vasprintf-posix (Depends-on): Likewise.
55635         * modules/vfprintf-posix (Depends-on): Likewise.
55636         * modules/vsnprintf-posix (Depends-on): Likewise.
55637         * modules/vsprintf-posix (Depends-on): Likewise.
55638         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55639         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55640         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55641         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55642         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55643         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55644         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55645
55646 2007-11-04  Bruno Haible  <bruno@clisp.org>
55647
55648         * modules/nocrash: New file.
55649         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
55650         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
55651
55652 2007-11-04  Bruno Haible  <bruno@clisp.org>
55653
55654         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
55655         precision handling.
55656         * tests/test-vasprintf-posix.c (test_function): Likewise.
55657         * tests/test-snprintf-posix.h (test_function): Likewise.
55658         * tests/test-sprintf-posix.h (test_function): Likewise.
55659
55660         Fix *printf behaviour for large precisions on mingw and BeOS.
55661         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
55662         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
55663         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
55664         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55665         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55666         gl_PRINTF_PRECISION and test its result. Invoke
55667         gl_PREREQ_VASNPRINTF_PRECISION.
55668         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55669         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55670         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55671         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55672         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55673         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55674         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55675         * doc/functions/fprintf.texi: Update.
55676         * doc/functions/printf.texi: Update.
55677         * doc/functions/snprintf.texi: Update.
55678         * doc/functions/sprintf.texi: Update.
55679         * doc/functions/vfprintf.texi: Update.
55680         * doc/functions/vprintf.texi: Update.
55681         * doc/functions/vsnprintf.texi: Update.
55682         * doc/functions/vsprintf.texi: Update.
55683
55684 2007-11-04  Bruno Haible  <bruno@clisp.org>
55685
55686         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
55687
55688 2007-11-04  Bruno Haible  <bruno@clisp.org>
55689
55690         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
55691         Reported by Sylvain Beucler <beuc@gnu.org>.
55692
55693 2007-11-03  Bruno Haible  <bruno@clisp.org>
55694
55695         * tests/test-fprintf-posix2.sh: New file.
55696         * tests/test-fprintf-posix2.c: New file.
55697         * modules/fprintf-posix-tests (Files): Add them.
55698         (TESTS): Add test-fprintf-posix2.sh.
55699         (configure.ac): Check for getrlimit and setrlimit.
55700         (check_PROGRAMS): Add test-fprintf-posix2.
55701
55702         * tests/test-printf-posix2.sh: New file.
55703         * tests/test-printf-posix2.c: New file.
55704         * modules/printf-posix-tests (Files): Add them.
55705         (TESTS): Add test-printf-posix2.sh.
55706         (configure.ac): Check for getrlimit and setrlimit.
55707         (check_PROGRAMS): Add test-printf-posix2.
55708
55709         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
55710         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
55711         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
55712         (decode_double): New function, copied from decode_long_double.
55713         (scale10_round_decimal_decoded): New function, extracted from
55714         scale10_round_decimal_long_double.
55715         (scale10_round_decimal_long_double): Use it.
55716         (scale10_round_decimal_double): New function.
55717         (floorlog10): New function.
55718         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
55719         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
55720         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
55721         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55722         gl_PRINTF_ENOMEM and test its result. Invoke
55723         gl_PREREQ_VASNPRINTF_ENOMEM.
55724         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55725         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55726         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55727         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55728         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55729         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55730         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55731         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
55732         * modules/snprintf-posix (Depends-on): Likewise.
55733         * modules/sprintf-posix (Depends-on): Likewise.
55734         * modules/vasnprintf-posix (Depends-on): Likewise.
55735         * modules/vasprintf-posix (Depends-on): Likewise.
55736         * modules/vfprintf-posix (Depends-on): Likewise.
55737         * modules/vsnprintf-posix (Depends-on): Likewise.
55738         * modules/vsprintf-posix (Depends-on): Likewise.
55739         * doc/functions/fprintf.texi: Update.
55740         * doc/functions/printf.texi: Update.
55741         * doc/functions/snprintf.texi: Update.
55742         * doc/functions/sprintf.texi: Update.
55743         * doc/functions/vfprintf.texi: Update.
55744         * doc/functions/vprintf.texi: Update.
55745         * doc/functions/vsnprintf.texi: Update.
55746         * doc/functions/vsprintf.texi: Update.
55747
55748 2007-11-03  Bruno Haible  <bruno@clisp.org>
55749
55750         * modules/frexp-nolibm-tests: New file.
55751
55752         * modules/frexp-nolibm: New file.
55753         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
55754
55755 2007-11-03  Bruno Haible  <bruno@clisp.org>
55756
55757         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
55758         value is C99 compliant.
55759         Needed for OSF/1 5.1.
55760
55761 2007-11-03  Bruno Haible  <bruno@clisp.org>
55762
55763         Fix out-of-memory handling of vasnprintf.
55764         * lib/printf-parse.c: Include <errno.h>.
55765         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
55766         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
55767         is already set.
55768
55769 2007-11-02  Eric Blake  <ebb9@byu.net>
55770
55771         Fix tests on cygwin.
55772         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
55773
55774 2007-11-01  Bruno Haible  <bruno@clisp.org>
55775
55776         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
55777         warning.
55778         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
55779         needed for POSIX compatibility.
55780
55781 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
55782
55783         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
55784         for compatibility with GNU.
55785
55786 2007-11-01  Bruno Haible  <bruno@clisp.org>
55787
55788         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
55789         (putenv): Renamed from rpl_putenv. Change argument type from
55790         'const char *' to 'char *'.
55791         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
55792         of defining putenv in config.h, just set REPLACE_PUTENV.
55793         * modules/putenv (Depends-on): Add stdlib.
55794         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
55795         (Include): Use <stdlib.h>.
55796         * lib/stdlib.in.h (putenv): New declaration.
55797         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
55798         REPLACE_PUTENV.
55799         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
55800         REPLACE_PUTENV.
55801         Needed for MacOS X 10.5.0.
55802         Reported by Peter O'Gorman <peter@pogma.com>.
55803
55804 2007-11-01  Jim Meyering  <meyering@redhat.com>
55805
55806         Treat an empty date string exactly like "0".
55807         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
55808         if the remaining date string (to be parsed) is empty, use "0".
55809         Reported by Mischa Molhoek and discussed in this thread:
55810         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
55811
55812 2007-10-31  Bruno Haible  <bruno@clisp.org>
55813
55814         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
55815         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
55816         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
55817         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
55818         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
55819         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
55820
55821 2007-10-31  Bruno Haible  <bruno@clisp.org>
55822
55823         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
55824         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
55825         (AC_TYPE_LONG_LONG_INT): Use it.
55826         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
55827         it as well.
55828         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
55829         to m4/longlong.m4.
55830         * modules/stdint (Files): Remove m4/ulonglong.m4.
55831         * modules/strtoull (Files): Use m4/longlong.m4 instead of
55832         m4/ulonglong.m4.
55833         * modules/strtoumax (Files): Likewise.
55834
55835 2007-10-30  Bruno Haible  <bruno@clisp.org>
55836
55837         * modules/xvasprintf-posix: New file.
55838         Suggested by Eric Blake.
55839
55840 2007-10-30  Bruno Haible  <bruno@clisp.org>
55841
55842         * modules/xprintf-posix-tests: New file.
55843         * tests/test-xprintf-posix.sh: New file.
55844         * tests/test-xprintf-posix.c: New file.
55845         * tests/test-xfprintf-posix.c: New file.
55846
55847         * modules/xprintf-posix: New file.
55848
55849 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55850
55851         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
55852         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
55853         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
55854
55855 2007-10-29  Bruno Haible  <bruno@clisp.org>
55856
55857         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
55858         contain the special marker '_cv_'.
55859         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
55860         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
55861         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
55862         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
55863         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
55864         Reported by Ralf Wildenhues.
55865
55866 2007-10-29  Bruno Haible  <bruno@clisp.org>
55867
55868         * gnulib-tool (func_import): When --lgpl is not specified, set
55869         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
55870         GPLv3.
55871         Reported by Simon Josefsson.
55872
55873 2007-10-28  Bruno Haible  <bruno@clisp.org>
55874
55875         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
55876         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
55877         HAVE_DECL_ISFINITE.
55878         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
55879         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
55880         HAVE_DECL_ISFINITE.
55881
55882 2007-10-28  Bruno Haible  <bruno@clisp.org>
55883
55884         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
55885         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
55886
55887 2007-10-28  Bruno Haible  <bruno@clisp.org>
55888
55889         Fix link errors with Sun C 5.0 on Solaris 10.
55890         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
55891         function is declared but not present in the compiler's libm.
55892         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
55893         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
55894         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
55895         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
55896         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
55897         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
55898         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
55899         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
55900         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
55901         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
55902         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
55903         HAVE_DECL_FLOORL.
55904
55905 2007-10-28  Bruno Haible  <bruno@clisp.org>
55906
55907         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
55908         gl_FUNC_FLOORL. Cache the result.
55909         (gl_FUNC_FLOORL): Use it.
55910         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
55911         gl_FUNC_CEILL. Cache the result.
55912         (gl_FUNC_CEILL): Use it.
55913
55914         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
55915         gl_FUNC_FLOOR. Cache the result.
55916         (gl_FUNC_FLOOR): Use it.
55917         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
55918         gl_FUNC_CEIL. Cache the result.
55919         (gl_FUNC_CEIL): Use it.
55920
55921         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
55922         gl_FUNC_FLOORF. Cache the result.
55923         (gl_FUNC_FLOORF): Use it.
55924         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
55925         gl_FUNC_CEILF. Cache the result.
55926         (gl_FUNC_CEILF): Use it.
55927
55928 2007-10-28  Bruno Haible  <bruno@clisp.org>
55929
55930         * gnulib-tool: Allow specifying the LGPL version number through
55931         --lgpl=2 or --lgpl=3.
55932         (func_usage): Document --lgpl with argument.
55933         Handle --lgpl=... arguments.
55934         (func_import): Recognize also gl_LGPL calls with an argument. When
55935         --lgpl=2 is used and the module's license is just LGPL, report an
55936         error. Set sed_transform_lib_file according to the lgpl variable. In
55937         the generated files, use --lgpl or gl_LGPL invocations with argument,
55938         if necessary.
55939         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
55940         an LGPv2+ license.
55941         * doc/gnulib-tool.texi (Modified imports): Update explanation of
55942         gl_LGPL macro.
55943
55944 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55945             Bruno Haible  <bruno@clisp.org>
55946
55947         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
55948         (u16_uctomb_aux): Likewise.
55949         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
55950         !HAVE_INLINE.
55951         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
55952
55953 2007-10-28  Bruno Haible  <bruno@clisp.org>
55954
55955         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
55956         Invoke AM_GETTEXT_OPTION if it exists.
55957         * modules/vasprintf: Likewise.
55958         * modules/verror: Likewise.
55959         * modules/xprintf: Likewise.
55960         * modules/xvasprintf: Likewise.
55961
55962 2007-10-27  Ben Pfaff  <blp@gnu.org>
55963
55964         * lib/math.in.h: Define isfinite macro and prototypes for
55965         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
55966         implementations.
55967         * m4/math_h.m4: New substitutions for isfinite module.
55968         * lib/isfinite.c: New file.
55969         * m4/isfinite.m4: New file.
55970         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
55971         * modules/isfinite: New file.
55972         * modules/isfinite-tests: New file.
55973         * tests/tests-isfinite.c: New file.
55974         * doc/functions/isfinite.texi: Mention isfinite module.
55975         * MODULES.html.sh: Mention new module.
55976
55977 2007-10-27  Ben Pfaff  <blp@gnu.org>
55978
55979         Ralf Wildenhues reported that Tru64 4.0D declares the round
55980         functions but does not have definitions.
55981         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
55982         cannot be found in any library, set the output variable to
55983         "missing" instead of "".
55984         * m4/round.m4: Also use our substitute if we cannot find round in
55985         any library, even if it is declared.
55986         * m4/roundf.m4: Likewise for roundf.
55987         * m4/roundl.m4: Likewise for roundl.
55988         * lib/math.in.h: Undefine roundf, round, roundl before defining
55989         their replacements, to allow for hypothetical systems where these
55990         may be defined as macros but not available in libraries.
55991
55992 2007-10-27  Bruno Haible  <bruno@clisp.org>
55993
55994         * doc/gnulib.texi: Invoke @firstparagraphindent.
55995         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
55996         changes in gnulib.
55997         (Source changes): New section.
55998
55999 2007-10-26  Bruno Haible  <bruno@clisp.org>
56000
56001         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
56002         borrowed from autoconf.
56003
56004 2007-10-26  Bruno Haible  <bruno@clisp.org>
56005
56006         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
56007         strerror returned the empty string. Needed on HP-UX 11.00.
56008
56009 2007-10-24  Micah Cowan  <micah@cowan.name>
56010
56011         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
56012         * build-aux/bootstrap: Remove support for now-unnecessary option,
56013         --cvs-user, and envvars CVS_USER, CVS_RSH.
56014
56015 2007-10-24  Jim Meyering  <meyering@redhat.com>
56016
56017         Avoid diagnostics from sha1sum when there is no cached checksum.
56018         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
56019         if the po.s1 file hasn't been created yet.
56020
56021         * build-aux/bootstrap: Sync from coreutils:
56022         2007-10-24  Jim Meyering  <meyering@redhat.com>
56023         Get gnulib from the git repository, not from an obsolete cvs one.
56024         * build-aux/bootstrap: Suggestion from Micah Cowan.
56025         2007-10-04  Jim Meyering  <jim@meyering.net>
56026         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
56027         (update_po_files): Work also when there are no .po files in po/.
56028
56029 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56030
56031         * README: Append ".git" to git and cg examples.
56032         Problem reported by Benoit Sigoure.
56033
56034 2007-10-23  Micah Cowan  <micah@cowan.name>
56035
56036         * users.txt: Add wget.
56037
56038 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56039
56040         Fix linking of some unistdio tests on FreeBSD.
56041         * modules/unistdio/u16-vsnprintf-tests
56042         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
56043         * modules/unistdio/u16-vsprintf-tests
56044         (test_u16_vsnprintf1_LDADD): Likewise.
56045         * modules/unistdio/u32-vsnprintf-tests
56046         (test_u32_vsnprintf1_LDADD): Likewise.
56047         * modules/unistdio/u32-vsprintf-tests
56048         (test_u32_vsprintf1_LDADD): Likewise.
56049         * modules/unistdio/u8-vsnprintf-tests
56050         (test_u8_vsnprintf1_LDADD): Likewise.
56051         * modules/unistdio/u8-vsprintf-tests
56052         (test_u8_vsprintf1_LDADD): Likewise.
56053         * modules/unistdio/ulc-vsnprintf-tests
56054         (test_ulc_vsnprintf1_LDADD): Likewise.
56055         * modules/unistdio/ulc-vsprintf-tests
56056         (test_ulc_vsprintf1_LDADD): Likewise.
56057
56058         Fix linking of some uniconv tests on FreeBSD.
56059         * modules/uniconv/u16-conv-from-enc-tests
56060         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
56061         * modules/uniconv/u16-conv-to-enc-tests
56062         (test_u16_conv_to_enc_LDADD): Likewise.
56063         * modules/uniconv/u16-strconv-from-enc-tests
56064         (test_u16_strconv_from_enc_LDADD): Likewise.
56065         * modules/uniconv/u16-strconv-to-enc-tests
56066         (test_u16_strconv_to_enc_LDADD): Likewise.
56067         * modules/uniconv/u32-conv-from-enc-tests
56068         (test_u32_conv_from_enc_LDADD): Likewise.
56069         * modules/uniconv/u32-conv-to-enc-tests
56070         (test_u32_conv_to_enc_LDADD): Likewise.
56071         * modules/uniconv/u32-strconv-from-enc-tests
56072         (test_u32_strconv_from_enc_LDADD): Likewise.
56073         * modules/uniconv/u32-strconv-to-enc-tests
56074         (test_u32_strconv_to_enc_LDADD): Likewise.
56075         * modules/uniconv/u8-conv-from-enc-tests
56076         (test_u8_conv_from_enc_LDADD): Likewise.
56077         * modules/uniconv/u8-conv-to-enc-tests
56078         (test_u8_conv_to_enc_LDADD): Likewise.
56079         * modules/uniconv/u8-strconv-from-enc-tests
56080         (test_u8_strconv_from_enc_LDADD): Likewise.
56081         * modules/uniconv/u8-strconv-to-enc-tests
56082         (test_u8_strconv_to_enc_LDADD): Likewise.
56083
56084 2007-10-22  Bruno Haible  <bruno@clisp.org>
56085
56086         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
56087         size.
56088
56089 2007-10-22  Eric Blake  <ebb9@byu.net>
56090
56091         Tweak x*printf documentation.
56092         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
56093         variable name and comments.
56094         Suggested by Bruno Haible.
56095
56096 2007-10-22  Bruno Haible  <bruno@clisp.org>
56097
56098         * lib/acl.c (copy_acl): Fix file name in comment.
56099
56100 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
56101
56102         Fix Tru64 problem with stdbool.h.
56103         * lib/stdbool.in.h (false, true):
56104         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
56105         Don't declare as an enum in this situation; it runs afoul of Tru64.
56106         Problem reported by Steven M. Schweda in
56107         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
56108
56109 2007-10-22  Eric Blake  <ebb9@byu.net>
56110
56111         Also wrap vf?printf.
56112         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
56113         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
56114         (xvprintf, xvfprintf): New functions.
56115
56116 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56117
56118         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
56119         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
56120
56121         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
56122         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
56123
56124 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
56125
56126         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
56127         by Bruno Haible.
56128
56129 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56130
56131         * lib/getloadavg.c
56132         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
56133         Undef `sys' after including sys/table.h, for Tru64 4.0D.
56134
56135         * tests/test-i-ring.c: Work for C89.
56136
56137 2007-10-22  Bruno Haible  <bruno@clisp.org>
56138
56139         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
56140         -1u, in preprocessor expression, so that we don't test for the bug
56141         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
56142         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
56143
56144 2007-10-22  Eric Blake  <ebb9@byu.net>
56145
56146         * tests/test-yesno.sh: Silence stderr during test.
56147
56148 2007-10-22  Simon Josefsson  <simon@josefsson.org>
56149
56150         * modules/crypto/gc-camellia: New file.
56151
56152         * m4/gc-camellia.m4: New file.
56153
56154         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
56155
56156         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
56157
56158 2007-10-22  Simon Josefsson  <simon@josefsson.org>
56159
56160         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
56161         --help to stdout.  Reported by sms@antinode.org (Steven
56162         M. Schweda).
56163
56164 2007-10-22  Simon Josefsson  <simon@josefsson.org>
56165
56166         * users.txt: Fix link to libksba.
56167
56168 2007-10-21  Ben Pfaff  <blp@gnu.org>
56169
56170         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
56171         round.c roundf implementation that depends on floorf and ceilf to
56172         be tested unconditionally.
56173
56174 2007-10-21  Ben Pfaff  <blp@gnu.org>
56175
56176         * m4/check-libm-func.m4: Removed.
56177         * m4/check-math-lib.m4: New file.
56178         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
56179         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
56180         definition and lack of AC_LIBOBJ([roundf]).
56181         * m4/roundl.m4: Ditto, and similarly for roundl.
56182         * modules/round: Reference new m4 file.
56183         * modules/roundf: Ditto.
56184         * modules/roundl: Ditto.
56185         * tests/test-round2.c (main): Use ROUND instead of round.
56186         Bug report from Bruno Haible.
56187
56188 2007-10-21  Bruno Haible  <bruno@clisp.org>
56189
56190         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
56191         context.
56192
56193 2007-10-21  Bruno Haible  <bruno@clisp.org>
56194
56195         * tests/test-wcwidth.c (main): Allow negative result for some control
56196         characters.
56197
56198         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
56199         Needed on OSF/1 5.1.
56200
56201 2007-10-21  Bruno Haible  <bruno@clisp.org>
56202
56203         * tests/test-floorf1.c: Include isnanf.h.
56204         (main): Use isnanf() instead of isnan().
56205         * tests/test-ceilf1.c: Include isnanf.h.
56206         (main): Use isnanf() instead of isnan().
56207         * tests/test-truncf1.c: Include isnanf.h.
56208         (main): Use isnanf() instead of isnan().
56209         * tests/test-roundf1.c: Include isnanf.h.
56210         (main): Use isnanf() instead of isnan().
56211
56212 2007-10-21  Eric Blake  <ebb9@byu.net>
56213
56214         * users.txt: Update URL for m4.
56215
56216 2007-10-21  Bruno Haible  <bruno@clisp.org>
56217
56218         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
56219
56220 2007-10-21  Bruno Haible  <bruno@clisp.org>
56221
56222         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
56223         Git's management files if the CVS files are not present.
56224
56225 2007-10-20  Bruno Haible  <bruno@clisp.org>
56226
56227         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
56228         gcc-3.4.x.
56229
56230 2007-10-20  Ben Pfaff  <blp@gnu.org>
56231
56232         * lib/math.in.h: Declare round, roundf, roundl if we are providing
56233         implementations.
56234         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
56235         * lib/round.c: New file.
56236         * lib/roundf.c: New file.
56237         * lib/roundl.c: New file.
56238         * m4/round.m4: New file.
56239         * m4/roundf.m4: New file.
56240         * m4/roundl.m4: New file.
56241         * m4/check-libm-func-m4: New file.
56242         * modules/math: Replace round, roundf, roundl related @VARS@ in
56243         math.in.h.
56244         * modules/round: New file.
56245         * modules/round-tests: New file.
56246         * modules/roundf: New file.
56247         * modules/roundf-tests: New file.
56248         * modules/roundl: New file.
56249         * modules/roundl-tests: New file.
56250         * tests/test-round1.c: New file.
56251         * tests/test-round2.c: New file.
56252         * tests/test-roundf1.c: New file.
56253         * tests/test-roundf2.c: New file.
56254         * tests/test-roundl.c: New file.
56255         * doc/functions/round.texi: Mention round module.
56256         * doc/functions/roundf.texi: Mention roundf module.
56257         * doc/functions/roundl.texi: Mention roundl module.
56258         * MODULES.html.sh: Mention new modules.
56259         Thanks to Bruno Haible for suggestions.
56260
56261 2007-10-20  Jim Meyering  <meyering@redhat.com>
56262
56263         * lib/xprintf.c: Include <config.h> unconditionally.
56264
56265         Change xprintf's license to GPL.
56266         * modules/xprintf (License): s/LGPL/GPL/, since this module
56267         depends on modules (exit and exitfail) which are GPL.
56268         Suggestion from Bruno Haible.
56269
56270         xprintf fixes.
56271         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
56272         Use a clearer diagnostic.
56273         Patch from Bruno Haible.
56274
56275 2007-10-20  Bruno Haible  <bruno@clisp.org>
56276
56277         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
56278         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
56279         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56280
56281 2007-10-20  Bruno Haible  <bruno@clisp.org>
56282
56283         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
56284         precision in the comparison result > x - 1 or similar.
56285         * tests/test-ceilf2.c (correct_result_p): Likewise.
56286         * tests/test-truncf2.c (correct_result_p): Likewise.
56287         * tests/test-trunc2.c (correct_result_p): Likewise.
56288         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56289
56290 2007-10-20  Bruno Haible  <bruno@clisp.org>
56291
56292         * modules/ceil: New file.
56293         * m4/ceil.m4: New file.
56294         * doc/functions/ceil.texi: Mention the 'ceil' module.
56295
56296 2007-10-20  Bruno Haible  <bruno@clisp.org>
56297
56298         * modules/floor: New file.
56299         * m4/floor.m4: New file.
56300         * doc/functions/floor.texi: Mention the 'floor' module.
56301
56302 2007-10-20  Bruno Haible  <bruno@clisp.org>
56303
56304         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
56305         of %a.
56306         * modules/floorf-tests (Depends-on): Likewise.
56307         * modules/truncf-tests (Depends-on): Likewise.
56308         * modules/trunc-tests (Depends-on): Likewise.
56309         Reported by Ben Pfaff.
56310
56311 2007-10-19  Jim Meyering  <meyering@redhat.com>
56312
56313         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
56314         Don't bother testing specific errno values.  Just test ferror.
56315
56316         New module: xprintf
56317         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
56318
56319 2007-10-19  Bruno Haible  <bruno@clisp.org>
56320
56321         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
56322         syntax.
56323         * modules/javaexec (Makefile.am): Likewise.
56324         * modules/relocatable-prog (Makefile.am): Likewise.
56325         Suggested by Jim Meyering.
56326
56327 2007-10-18  Bruno Haible  <bruno@clisp.org>
56328
56329         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
56330         Reported by Jim Meyering.
56331
56332 2007-10-18  Eric Blake  <ebb9@byu.net>
56333
56334         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
56335
56336 2007-10-18  Bruno Haible  <bruno@clisp.org>
56337
56338         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
56339         the format string into writable memory. Needed in Fortify conditions.
56340
56341 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
56342             Bruno Haible  <bruno@clisp.org>
56343
56344         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
56345         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
56346         * modules/trim (Depends-on): Add mbchar.
56347         (configure.ac): Add gl_FUNC_MBRTOWC.
56348         (Makefile.am): Augment lib_SOURCES.
56349
56350 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
56351
56352         Modify glob.c to use fstatat and dirfd, to simplify it.
56353         Suggested by Eric Blake.
56354         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
56355         Don't include <stdbool.h>; not used.
56356         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
56357         (link_exists_p): Simplify implementation, since we can now assume
56358         dirfd and fstatat.
56359         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
56360
56361 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56362
56363         * gnulib-tool (func_get_dependencies): Fix sed script to
56364         match only tests.
56365
56366 2007-10-17  Bruno Haible  <bruno@clisp.org>
56367
56368         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
56369         allow locale names without encoding suffix.
56370         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
56371         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
56372
56373 2007-10-16  Bruno Haible  <bruno@clisp.org>
56374
56375         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
56376         * lib/getgroups.c (getgroups): Likewise.
56377         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
56378
56379 2007-10-16  Bruno Haible  <bruno@clisp.org>
56380
56381         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
56382         * modules/malloc-posix (License): Likewise.
56383         * modules/realloc-posix (License): Likewise.
56384         * modules/calloc-posix (License): Likewise.
56385         * modules/intprops (License): Change from GPL to LGPL, with
56386         Paul Eggert's approval.
56387
56388 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56389
56390         Merge glibc changes into lib/glob.c.
56391
56392         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
56393         2007-10-15 04:59:03 UTC.  Here are the changes:
56394
56395         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
56396
56397         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
56398
56399         * lib/glob.c: Add some branch prediction throughout.
56400
56401         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
56402
56403         [BZ #5103]
56404         * lib/glob.c (glob): Recognize patterns starting \/.
56405
56406         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
56407
56408         [BZ #3996]
56409         * lib/glob.c (attribute_hidden): Define if not defined.
56410         (glob): Unescape dirname, filename or username when needed and not
56411         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
56412         is NULL.  Handle unescaped [ in pattern without closing ].
56413         Don't pass GLOB_CHECK down to recursive glob for directories.
56414         (__glob_pattern_type): New function.
56415         (__glob_pattern_p): Implement using __glob_pattern_type.
56416         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
56417         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
56418         Remove unreachable code.
56419
56420         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
56421
56422         * lib/glob.c (glob_in_dir): Add some comments and asserts to
56423         explain why there are no leaks.
56424
56425         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
56426
56427         [BZ #3253]
56428         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
56429         time, rather allocate increasingly bigger arrays of pointers, if
56430         possible with alloca, if too large with malloc.
56431
56432 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
56433
56434         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
56435         Problem reported by H.Merijn Brand in
56436         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
56437         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
56438         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
56439
56440 2007-10-15  Bruno Haible  <bruno@clisp.org>
56441
56442         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
56443         with explicit rpl_ prefix.
56444         * lib/fopen.c (fopen): Likewise.
56445         * lib/freopen.c (freopen): Likewise.
56446         * lib/iconv.c (iconv): Likewise.
56447         * lib/iconv_close.c (iconv_close): Likewise.
56448
56449 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56450
56451         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
56452
56453 2007-10-15  Bruno Haible  <bruno@clisp.org>
56454
56455         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
56456         <stddef.h> instead of <stdlib.h> since we only need NULL.
56457         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56458
56459 2007-10-15  Bruno Haible  <bruno@clisp.org>
56460
56461         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
56462         Replace paragraph talking about LIBOBJS.
56463         Reported by Colin Watson <cjwatson@debian.org>.
56464
56465 2007-10-15  Bruno Haible  <bruno@clisp.org>
56466
56467         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
56468         <stdlib.h> before using NULL.
56469
56470 2007-10-15  Simon Josefsson  <simon@josefsson.org>
56471
56472         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
56473         Reported by Albert Chin <china@thewrittenword.com>.
56474
56475 2007-10-14  Bruno Haible  <bruno@clisp.org>
56476
56477         * modules/iconv_open-utf-tests: New file.
56478         * tests/test-iconv-utf.c: New file.
56479
56480         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
56481         * modules/iconv_open-utf: New file.
56482         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
56483         (iconv, iconv_close): New declarations.
56484         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
56485         be defined.
56486         (iconv_open): Add special handling of conversion between UTF-8 and
56487         UTF-{16,32}{BE,LE}.
56488         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
56489         * lib/iconv_close.c: New file.
56490         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
56491         gl_FUNC_ICONV_OPEN.
56492         (gl_FUNC_ICONV_OPEN): Use it.
56493         (gl_FUNC_ICONV_OPEN_UTF): New macro.
56494         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
56495         and REPLACE_ICONV_UTF.
56496         * modules/iconv_open (Depends-on): Add c-strcase.
56497         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
56498         ICONV_CONST.
56499         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
56500
56501 2007-10-13  Albert Chin  <china@thewrittenword.com>
56502             Bruno Haible  <bruno@clisp.org>
56503
56504         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
56505         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
56506
56507 2007-10-13  Bruno Haible  <bruno@clisp.org>
56508
56509         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
56510         defined, use the ISO C99 inline semantics.
56511         * lib/argp.h (ARGP_EI): Likewise.
56512
56513 2007-10-13  Bruno Haible  <bruno@clisp.org>
56514
56515         Handle 'inline' change in gcc 4.3.0.
56516         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
56517         argp_fmtstream_write, argp_fmtstream_set_lmargin,
56518         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
56519         argp_fmtstream_point): Disable 'extern' declaration if the function
56520         definition is going to be provided inline.
56521         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
56522         semantics, not the ISO C99 inline semantics.
56523         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
56524         'extern' declaration if the function definition is going to be provided
56525         inline.
56526         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
56527         the GNU C inline semantics, not the ISO C99 inline semantics. With
56528         GCC 4.2, avoid a warning.
56529
56530 2007-10-13  Bruno Haible  <bruno@clisp.org>
56531
56532         * lib/freading.h (freading): Enable the use of __freading for
56533         glibc >= 2.7.
56534         * lib/freading.c (freading): Likewise.
56535
56536 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
56537
56538         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
56539         "warning: C99 inline functions are not supported; using GNU89".
56540
56541 2007-10-12  Bruno Haible  <bruno@clisp.org>
56542
56543         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
56544         of 2.
56545         * tests/test-ceilf2.c: New file.
56546         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
56547
56548         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
56549         * modules/ceilf-tests: Update.
56550
56551 2007-10-12  Bruno Haible  <bruno@clisp.org>
56552
56553         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
56554         of 2.
56555         * tests/test-floorf2.c: New file.
56556         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
56557
56558         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
56559         * modules/floorf-tests: Update.
56560
56561 2007-10-12  Bruno Haible  <bruno@clisp.org>
56562
56563         * tests/test-trunc2.c: New file.
56564         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
56565
56566         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
56567         * modules/trunc-tests: Update.
56568
56569 2007-10-12  Bruno Haible  <bruno@clisp.org>
56570
56571         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
56572         of 2.
56573         * tests/test-truncf2.c: New file.
56574         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
56575
56576         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
56577         * modules/truncf-tests: Update.
56578
56579 2007-10-11  Eric Blake  <ebb9@byu.net>
56580
56581         Don't claim strerror is broken on Interix.
56582         * doc/functions/strerror.texi (strerror): Known broken systems are
56583         now Solaris 8, and not Interix.
56584         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
56585         Interix on cross-compile.
56586         Reported by Martin Koeppe in
56587         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
56588
56589 2007-10-11  Bruno Haible  <bruno@clisp.org>
56590
56591         * modules/i-ring-tests: New file.
56592         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
56593         instead of assert.
56594
56595 2007-10-11  Bruno Haible  <bruno@clisp.org>
56596
56597         * modules/filenamecat-tests: New file.
56598         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
56599         * lib/filenamecat.c: Remove test code.
56600
56601 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
56602
56603         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
56604
56605         * lib/strerror.c: Include <string.h> always, to test interface,
56606         and to remove the need for the dummy.
56607         Include intprops.h to compute width instead of doing it ourselves
56608         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
56609         (strerror): Define it to return NULL if there's no system strerror.
56610         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
56611         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
56612         ancient pre-strerror Unix systems well any more.  Saying "unknown
56613         system error" is enough.
56614         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
56615         simpler strerror.c implementation.
56616         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
56617         Simplify the tests to reflect the simpler strerror implementation.
56618         * modules/strerror (Depends-on): Add intprops.
56619
56620 2007-10-09  Eric Blake  <ebb9@byu.net>
56621
56622         Silence test-fpending.
56623         * modules/fpending-tests (Files): Add wrapper script.
56624         * tests/test-fpending.sh: New file.
56625
56626 2007-10-09  Bruno Haible  <bruno@clisp.org>
56627
56628         * MODULES.html.sh (func_module): Don't create a hyperlink for
56629         function names like 'printf_frexp'.
56630         (Misc): Add crc, memxor.
56631         (Characteristics of floating types): New section.
56632         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
56633         isnanf-nolibm, signbit, trunc, truncf, truncl.
56634         (Enhancements for ISO C 99 functions): New subsection Input/output.
56635         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
56636         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
56637         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
56638         (Compatibility checks for POSIX:2001 functions): Add clock-time.
56639         (Enhancements for POSIX:2001 functions): Add chdir-long.
56640         (File system functions): Add areadlink, chdir-safer, read-file.
56641         Remove cycle-check.
56642         (File system as inode set): New section.
56643         (Date and time): Add gethrxtime.
56644         (Multithreading): Add openmp.
56645         (Internationalization functions): Add localename.
56646         (Unicode string functions): Add unistr/u*-mbsnlen.
56647         (Support for maintaining and releasing projects): Add git-version-gen.
56648         (Lone files): Remove directories.
56649
56650 2007-10-08  Ben Pfaff  <blp@gnu.org>
56651
56652         * lib/xmalloca.h: Fix typo in comment.
56653
56654 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
56655
56656         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
56657         when avoiding problems with integer overflow.  Use a portable test
56658         instead.
56659
56660 2007-10-08  Simon Josefsson  <simon@josefsson.org>
56661
56662         * modules/dummy (License): Change to LGPLv2+.
56663         * modules/float (License): Likewise
56664         * modules/realloc (License): Likewise
56665         * modules/stdlib (License): Likewise
56666
56667 2007-10-07  Bruno Haible  <bruno@clisp.org>
56668
56669         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
56670         * floor.c (TWO_MANT_DIG): Likewise.
56671         * ceil.c (TWO_MANT_DIG): Likewise.
56672         Reported by Ben Pfaff.
56673
56674 2007-10-07  Bruno Haible  <bruno@clisp.org>
56675
56676         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
56677         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
56678         * lib/frexp.c (FUNC): Likewise.
56679         * lib/printf-frexp.h (printf_frexp): Likewise.
56680         * lib/printf-frexpl.h (printf_frexpl): Likewise.
56681         * lib/printf-frexp.c (FUNC): Likewise.
56682         Suggested by Jim Meyering.
56683
56684 2007-10-07  Jim Meyering  <meyering@redhat.com>
56685
56686         Make xnanosleep's integer overflow test more robust.
56687         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
56688         so that gcc-4.3.0 doesn't optimize away this test for overflow.
56689
56690 2007-10-07  Bruno Haible  <bruno@clisp.org>
56691
56692         * NEWS: Mention the license change.
56693
56694         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
56695         abbreviations in the modules files.
56696
56697         Change copyright notice from GPLv2+ to GPLv3+.
56698         * README: Change copyright notice.
56699         * MODULES.html.sh: Likewise.
56700         * build-aux/bootstrap.conf: Likewise.
56701         * build-aux/config.libpath: Likewise.
56702         * build-aux/csharpcomp.sh.in: Likewise.
56703         * build-aux/csharpexec.sh.in: Likewise.
56704         * build-aux/install-reloc: Likewise.
56705         * build-aux/javacomp.sh.in: Likewise.
56706         * build-aux/javaexec.sh.in: Likewise.
56707         * build-aux/ldd.sh.in: Likewise.
56708         * build-aux/reloc-ldflags: Likewise.
56709         * build-aux/relocatable.sh.in: Likewise.
56710         * build-aux/x-to-1.in: Likewise.
56711         * check-module: Likewise.
56712         * config/srclistvars.sh: Likewise.
56713         * gnulib-tool: Likewise.
56714         * lib/acl-internal.h: Likewise.
56715         * lib/acl.c: Likewise.
56716         * lib/acl.h: Likewise.
56717         * lib/acl_entries.c: Likewise.
56718         * lib/areadlink-with-size.c: Likewise.
56719         * lib/areadlink.c: Likewise.
56720         * lib/areadlink.h: Likewise.
56721         * lib/argmatch.c: Likewise.
56722         * lib/argmatch.h: Likewise.
56723         * lib/argp-ba.c: Likewise.
56724         * lib/argp-eexst.c: Likewise.
56725         * lib/argp-fmtstream.c: Likewise.
56726         * lib/argp-fmtstream.h: Likewise.
56727         * lib/argp-fs-xinl.c: Likewise.
56728         * lib/argp-help.c: Likewise.
56729         * lib/argp-namefrob.h: Likewise.
56730         * lib/argp-parse.c: Likewise.
56731         * lib/argp-pin.c: Likewise.
56732         * lib/argp-pv.c: Likewise.
56733         * lib/argp-pvh.c: Likewise.
56734         * lib/argp-xinl.c: Likewise.
56735         * lib/argp.h: Likewise.
56736         * lib/at-func.c: Likewise.
56737         * lib/atanl.c: Likewise.
56738         * lib/backupfile.c: Likewise.
56739         * lib/backupfile.h: Likewise.
56740         * lib/basename.c: Likewise.
56741         * lib/binary-io.h: Likewise.
56742         * lib/byteswap.in.h: Likewise.
56743         * lib/c-stack.c: Likewise.
56744         * lib/c-stack.h: Likewise.
56745         * lib/c-strcasestr.c: Likewise.
56746         * lib/c-strcasestr.h: Likewise.
56747         * lib/c-strstr.c: Likewise.
56748         * lib/c-strstr.h: Likewise.
56749         * lib/c-strtod.c: Likewise.
56750         * lib/calloc.c: Likewise.
56751         * lib/canon-host.c: Likewise.
56752         * lib/canon-host.h: Likewise.
56753         * lib/canonicalize-lgpl.c: Likewise.
56754         * lib/canonicalize.c: Likewise.
56755         * lib/canonicalize.h: Likewise.
56756         * lib/ceil.c: Likewise.
56757         * lib/ceilf.c: Likewise.
56758         * lib/ceill.c: Likewise.
56759         * lib/chdir-long.c: Likewise.
56760         * lib/chdir-long.h: Likewise.
56761         * lib/chdir-safer.c: Likewise.
56762         * lib/chdir-safer.h: Likewise.
56763         * lib/chown.c: Likewise.
56764         * lib/classpath.c: Likewise.
56765         * lib/classpath.h: Likewise.
56766         * lib/clean-temp.c: Likewise.
56767         * lib/clean-temp.h: Likewise.
56768         * lib/cloexec.c: Likewise.
56769         * lib/close-stream.c: Likewise.
56770         * lib/closein.c: Likewise.
56771         * lib/closein.h: Likewise.
56772         * lib/closeout.c: Likewise.
56773         * lib/closeout.h: Likewise.
56774         * lib/concat-filename.c: Likewise.
56775         * lib/copy-file.c: Likewise.
56776         * lib/copy-file.h: Likewise.
56777         * lib/count-one-bits.h: Likewise.
56778         * lib/crc.c: Likewise.
56779         * lib/crc.h: Likewise.
56780         * lib/creat-safer.c: Likewise.
56781         * lib/csharpcomp.c: Likewise.
56782         * lib/csharpcomp.h: Likewise.
56783         * lib/csharpexec.c: Likewise.
56784         * lib/csharpexec.h: Likewise.
56785         * lib/cycle-check.c: Likewise.
56786         * lib/cycle-check.h: Likewise.
56787         * lib/diacrit.c: Likewise.
56788         * lib/diacrit.h: Likewise.
56789         * lib/diffseq.h: Likewise.
56790         * lib/dirchownmod.c: Likewise.
56791         * lib/dirent.in.h: Likewise.
56792         * lib/dirfd.c: Likewise.
56793         * lib/dirfd.h: Likewise.
56794         * lib/dirname.c: Likewise.
56795         * lib/dirname.h: Likewise.
56796         * lib/dummy.c: Likewise.
56797         * lib/dup-safer.c: Likewise.
56798         * lib/dup2.c: Likewise.
56799         * lib/eealloc.h: Likewise.
56800         * lib/error.c: Likewise.
56801         * lib/error.h: Likewise.
56802         * lib/euidaccess.c: Likewise.
56803         * lib/exclude.c: Likewise.
56804         * lib/exclude.h: Likewise.
56805         * lib/execute.c: Likewise.
56806         * lib/execute.h: Likewise.
56807         * lib/exitfail.c: Likewise.
56808         * lib/exitfail.h: Likewise.
56809         * lib/expl.c: Likewise.
56810         * lib/fatal-signal.c: Likewise.
56811         * lib/fatal-signal.h: Likewise.
56812         * lib/fbufmode.c: Likewise.
56813         * lib/fbufmode.h: Likewise.
56814         * lib/fchdir.c: Likewise.
56815         * lib/fchmodat.c: Likewise.
56816         * lib/fchownat.c: Likewise.
56817         * lib/fcntl--.h: Likewise.
56818         * lib/fcntl-safer.h: Likewise.
56819         * lib/fcntl.in.h: Likewise.
56820         * lib/fd-safer.c: Likewise.
56821         * lib/fflush.c: Likewise.
56822         * lib/file-has-acl.c: Likewise.
56823         * lib/file-set.c: Likewise.
56824         * lib/file-type.c: Likewise.
56825         * lib/file-type.h: Likewise.
56826         * lib/fileblocks.c: Likewise.
56827         * lib/filemode.c: Likewise.
56828         * lib/filemode.h: Likewise.
56829         * lib/filename.h: Likewise.
56830         * lib/filenamecat.c: Likewise.
56831         * lib/filenamecat.h: Likewise.
56832         * lib/findprog.c: Likewise.
56833         * lib/findprog.h: Likewise.
56834         * lib/float.in.h: Likewise.
56835         * lib/floor.c: Likewise.
56836         * lib/floorf.c: Likewise.
56837         * lib/floorl.c: Likewise.
56838         * lib/fopen-safer.c: Likewise.
56839         * lib/fopen.c: Likewise.
56840         * lib/fpending.c: Likewise.
56841         * lib/fpending.h: Likewise.
56842         * lib/fprintf.c: Likewise.
56843         * lib/fprintftime.h: Likewise.
56844         * lib/fpucw.h: Likewise.
56845         * lib/fpurge.c: Likewise.
56846         * lib/fpurge.h: Likewise.
56847         * lib/freadable.c: Likewise.
56848         * lib/freadable.h: Likewise.
56849         * lib/freadahead.c: Likewise.
56850         * lib/freadahead.h: Likewise.
56851         * lib/freading.c: Likewise.
56852         * lib/freading.h: Likewise.
56853         * lib/free.c: Likewise.
56854         * lib/freopen.c: Likewise.
56855         * lib/frexp.c: Likewise.
56856         * lib/frexpl.c: Likewise.
56857         * lib/fseek.c: Likewise.
56858         * lib/fseterr.c: Likewise.
56859         * lib/fseterr.h: Likewise.
56860         * lib/fstatat.c: Likewise.
56861         * lib/fstrcmp.c: Likewise.
56862         * lib/fstrcmp.h: Likewise.
56863         * lib/fsusage.c: Likewise.
56864         * lib/fsusage.h: Likewise.
56865         * lib/ftell.c: Likewise.
56866         * lib/ftello.c: Likewise.
56867         * lib/fts-cycle.c: Likewise.
56868         * lib/fts.c: Likewise.
56869         * lib/fts_.h: Likewise.
56870         * lib/full-read.c: Likewise.
56871         * lib/full-read.h: Likewise.
56872         * lib/full-write.c: Likewise.
56873         * lib/full-write.h: Likewise.
56874         * lib/fwritable.c: Likewise.
56875         * lib/fwritable.h: Likewise.
56876         * lib/fwriteerror.c: Likewise.
56877         * lib/fwriteerror.h: Likewise.
56878         * lib/fwriting.c: Likewise.
56879         * lib/fwriting.h: Likewise.
56880         * lib/gcd.c: Likewise.
56881         * lib/gcd.h: Likewise.
56882         * lib/getcwd.c: Likewise.
56883         * lib/getdate.h: Likewise.
56884         * lib/getdate.y: Likewise.
56885         * lib/getdomainname.c: Likewise.
56886         * lib/getdomainname.h: Likewise.
56887         * lib/getgroups.c: Likewise.
56888         * lib/gethostname.c: Likewise.
56889         * lib/gethrxtime.c: Likewise.
56890         * lib/gethrxtime.h: Likewise.
56891         * lib/getloadavg.c: Likewise.
56892         * lib/getndelim2.c: Likewise.
56893         * lib/getndelim2.h: Likewise.
56894         * lib/getnline.c: Likewise.
56895         * lib/getnline.h: Likewise.
56896         * lib/getopt.c: Likewise.
56897         * lib/getopt.in.h: Likewise.
56898         * lib/getopt1.c: Likewise.
56899         * lib/getopt_int.h: Likewise.
56900         * lib/getpagesize.h: Likewise.
56901         * lib/getsubopt.c: Likewise.
56902         * lib/gettime.c: Likewise.
56903         * lib/getugroups.c: Likewise.
56904         * lib/getugroups.h: Likewise.
56905         * lib/getusershell.c: Likewise.
56906         * lib/gl_anyavltree_list1.h: Likewise.
56907         * lib/gl_anyavltree_list2.h: Likewise.
56908         * lib/gl_anyhash_list1.h: Likewise.
56909         * lib/gl_anyhash_list2.h: Likewise.
56910         * lib/gl_anylinked_list1.h: Likewise.
56911         * lib/gl_anylinked_list2.h: Likewise.
56912         * lib/gl_anyrbtree_list1.h: Likewise.
56913         * lib/gl_anyrbtree_list2.h: Likewise.
56914         * lib/gl_anytree_list1.h: Likewise.
56915         * lib/gl_anytree_list2.h: Likewise.
56916         * lib/gl_anytree_oset.h: Likewise.
56917         * lib/gl_anytreehash_list1.h: Likewise.
56918         * lib/gl_anytreehash_list2.h: Likewise.
56919         * lib/gl_array_list.c: Likewise.
56920         * lib/gl_array_list.h: Likewise.
56921         * lib/gl_array_oset.c: Likewise.
56922         * lib/gl_array_oset.h: Likewise.
56923         * lib/gl_avltree_list.c: Likewise.
56924         * lib/gl_avltree_list.h: Likewise.
56925         * lib/gl_avltree_oset.c: Likewise.
56926         * lib/gl_avltree_oset.h: Likewise.
56927         * lib/gl_avltreehash_list.c: Likewise.
56928         * lib/gl_avltreehash_list.h: Likewise.
56929         * lib/gl_carray_list.c: Likewise.
56930         * lib/gl_carray_list.h: Likewise.
56931         * lib/gl_linked_list.c: Likewise.
56932         * lib/gl_linked_list.h: Likewise.
56933         * lib/gl_linkedhash_list.c: Likewise.
56934         * lib/gl_linkedhash_list.h: Likewise.
56935         * lib/gl_list.c: Likewise.
56936         * lib/gl_list.h: Likewise.
56937         * lib/gl_oset.c: Likewise.
56938         * lib/gl_oset.h: Likewise.
56939         * lib/gl_rbtree_list.c: Likewise.
56940         * lib/gl_rbtree_list.h: Likewise.
56941         * lib/gl_rbtree_oset.c: Likewise.
56942         * lib/gl_rbtree_oset.h: Likewise.
56943         * lib/gl_rbtreehash_list.c: Likewise.
56944         * lib/gl_rbtreehash_list.h: Likewise.
56945         * lib/gl_sublist.c: Likewise.
56946         * lib/gl_sublist.h: Likewise.
56947         * lib/group-member.c: Likewise.
56948         * lib/group-member.h: Likewise.
56949         * lib/hard-locale.c: Likewise.
56950         * lib/hard-locale.h: Likewise.
56951         * lib/hash-pjw.c: Likewise.
56952         * lib/hash-pjw.h: Likewise.
56953         * lib/hash-triple.c: Likewise.
56954         * lib/hash.c: Likewise.
56955         * lib/hash.h: Likewise.
56956         * lib/human.c: Likewise.
56957         * lib/human.h: Likewise.
56958         * lib/i-ring.c: Likewise.
56959         * lib/i-ring.h: Likewise.
56960         * lib/idcache.c: Likewise.
56961         * lib/imaxabs.c: Likewise.
56962         * lib/imaxdiv.c: Likewise.
56963         * lib/inet_pton.c: Likewise.
56964         * lib/inet_pton.h: Likewise.
56965         * lib/intprops.h: Likewise.
56966         * lib/inttostr.c: Likewise.
56967         * lib/inttostr.h: Likewise.
56968         * lib/inttypes.in.h: Likewise.
56969         * lib/isapipe.c: Likewise.
56970         * lib/isdir.c: Likewise.
56971         * lib/isnan.c: Likewise.
56972         * lib/isnan.h: Likewise.
56973         * lib/isnanf.c: Likewise.
56974         * lib/isnanf.h: Likewise.
56975         * lib/isnanl-nolibm.h: Likewise.
56976         * lib/isnanl.c: Likewise.
56977         * lib/isnanl.h: Likewise.
56978         * lib/javacomp.c: Likewise.
56979         * lib/javacomp.h: Likewise.
56980         * lib/javaexec.c: Likewise.
56981         * lib/javaexec.h: Likewise.
56982         * lib/javaversion.c: Likewise.
56983         * lib/javaversion.h: Likewise.
56984         * lib/javaversion.java: Likewise.
56985         * lib/lbrkprop.h: Likewise.
56986         * lib/lchmod.h: Likewise.
56987         * lib/lchown.c: Likewise.
56988         * lib/ldexpl.c: Likewise.
56989         * lib/linebreak.c: Likewise.
56990         * lib/linebreak.h: Likewise.
56991         * lib/linebuffer.c: Likewise.
56992         * lib/linebuffer.h: Likewise.
56993         * lib/locale.in.h: Likewise.
56994         * lib/logl.c: Likewise.
56995         * lib/long-options.c: Likewise.
56996         * lib/long-options.h: Likewise.
56997         * lib/lstat.c: Likewise.
56998         * lib/lstat.h: Likewise.
56999         * lib/math.in.h: Likewise.
57000         * lib/mbchar.c: Likewise.
57001         * lib/mbchar.h: Likewise.
57002         * lib/mbfile.h: Likewise.
57003         * lib/mbiter.h: Likewise.
57004         * lib/mbscasecmp.c: Likewise.
57005         * lib/mbscasestr.c: Likewise.
57006         * lib/mbschr.c: Likewise.
57007         * lib/mbscspn.c: Likewise.
57008         * lib/mbslen.c: Likewise.
57009         * lib/mbsncasecmp.c: Likewise.
57010         * lib/mbsnlen.c: Likewise.
57011         * lib/mbspbrk.c: Likewise.
57012         * lib/mbspcasecmp.c: Likewise.
57013         * lib/mbsrchr.c: Likewise.
57014         * lib/mbssep.c: Likewise.
57015         * lib/mbsspn.c: Likewise.
57016         * lib/mbsstr.c: Likewise.
57017         * lib/mbstok_r.c: Likewise.
57018         * lib/mbswidth.c: Likewise.
57019         * lib/mbswidth.h: Likewise.
57020         * lib/mbuiter.h: Likewise.
57021         * lib/memcasecmp.c: Likewise.
57022         * lib/memcasecmp.h: Likewise.
57023         * lib/memchr.c: Likewise.
57024         * lib/memcmp.c: Likewise.
57025         * lib/memcoll.c: Likewise.
57026         * lib/memcoll.h: Likewise.
57027         * lib/memcpy.c: Likewise.
57028         * lib/memrchr.c: Likewise.
57029         * lib/mkancesdirs.c: Likewise.
57030         * lib/mkdir-p.c: Likewise.
57031         * lib/mkdir-p.h: Likewise.
57032         * lib/mkdir.c: Likewise.
57033         * lib/mkdirat.c: Likewise.
57034         * lib/mkdtemp.c: Likewise.
57035         * lib/mkstemp-safer.c: Likewise.
57036         * lib/mkstemp.c: Likewise.
57037         * lib/modechange.c: Likewise.
57038         * lib/modechange.h: Likewise.
57039         * lib/mountlist.c: Likewise.
57040         * lib/mountlist.h: Likewise.
57041         * lib/mpsort.c: Likewise.
57042         * lib/nanosleep.c: Likewise.
57043         * lib/obstack.c: Likewise.
57044         * lib/obstack.h: Likewise.
57045         * lib/open-safer.c: Likewise.
57046         * lib/open.c: Likewise.
57047         * lib/openat-die.c: Likewise.
57048         * lib/openat-priv.h: Likewise.
57049         * lib/openat-proc.c: Likewise.
57050         * lib/openat.c: Likewise.
57051         * lib/openat.h: Likewise.
57052         * lib/pagealign_alloc.c: Likewise.
57053         * lib/pagealign_alloc.h: Likewise.
57054         * lib/physmem.c: Likewise.
57055         * lib/physmem.h: Likewise.
57056         * lib/pipe-safer.c: Likewise.
57057         * lib/pipe.c: Likewise.
57058         * lib/pipe.h: Likewise.
57059         * lib/posixtm.c: Likewise.
57060         * lib/posixtm.h: Likewise.
57061         * lib/posixver.c: Likewise.
57062         * lib/printf-frexp.c: Likewise.
57063         * lib/printf-frexp.h: Likewise.
57064         * lib/printf-frexpl.c: Likewise.
57065         * lib/printf-frexpl.h: Likewise.
57066         * lib/printf.c: Likewise.
57067         * lib/progname.c: Likewise.
57068         * lib/progname.h: Likewise.
57069         * lib/progreloc.c: Likewise.
57070         * lib/putenv.c: Likewise.
57071         * lib/quote.c: Likewise.
57072         * lib/quote.h: Likewise.
57073         * lib/quotearg.c: Likewise.
57074         * lib/quotearg.h: Likewise.
57075         * lib/raise.c: Likewise.
57076         * lib/readline.c: Likewise.
57077         * lib/readline.h: Likewise.
57078         * lib/readlink.c: Likewise.
57079         * lib/readtokens.c: Likewise.
57080         * lib/readtokens.h: Likewise.
57081         * lib/readtokens0.c: Likewise.
57082         * lib/readtokens0.h: Likewise.
57083         * lib/readutmp.c: Likewise.
57084         * lib/readutmp.h: Likewise.
57085         * lib/realloc.c: Likewise.
57086         * lib/relocwrapper.c: Likewise.
57087         * lib/rename-dest-slash.c: Likewise.
57088         * lib/rename.c: Likewise.
57089         * lib/rmdir.c: Likewise.
57090         * lib/rpmatch.c: Likewise.
57091         * lib/safe-read.c: Likewise.
57092         * lib/safe-read.h: Likewise.
57093         * lib/safe-write.c: Likewise.
57094         * lib/safe-write.h: Likewise.
57095         * lib/same-inode.h: Likewise.
57096         * lib/same.c: Likewise.
57097         * lib/same.h: Likewise.
57098         * lib/save-cwd.c: Likewise.
57099         * lib/save-cwd.h: Likewise.
57100         * lib/savedir.c: Likewise.
57101         * lib/savedir.h: Likewise.
57102         * lib/savewd.c: Likewise.
57103         * lib/savewd.h: Likewise.
57104         * lib/search.in.h: Likewise.
57105         * lib/setenv.c: Likewise.
57106         * lib/setenv.h: Likewise.
57107         * lib/settime.c: Likewise.
57108         * lib/sh-quote.c: Likewise.
57109         * lib/sh-quote.h: Likewise.
57110         * lib/sig2str.c: Likewise.
57111         * lib/sig2str.h: Likewise.
57112         * lib/signal.in.h: Likewise.
57113         * lib/signbitd.c: Likewise.
57114         * lib/signbitf.c: Likewise.
57115         * lib/signbitl.c: Likewise.
57116         * lib/sigprocmask.c: Likewise.
57117         * lib/sincosl.c: Likewise.
57118         * lib/sleep.c: Likewise.
57119         * lib/sprintf.c: Likewise.
57120         * lib/sqrtl.c: Likewise.
57121         * lib/stat-time.h: Likewise.
57122         * lib/stdio--.h: Likewise.
57123         * lib/stdio-safer.h: Likewise.
57124         * lib/stdlib--.h: Likewise.
57125         * lib/stdlib-safer.h: Likewise.
57126         * lib/stdlib.in.h: Likewise.
57127         * lib/stpcpy.c: Likewise.
57128         * lib/stpncpy.c: Likewise.
57129         * lib/strchrnul.c: Likewise.
57130         * lib/strcspn.c: Likewise.
57131         * lib/strerror.c: Likewise.
57132         * lib/strftime.c: Likewise.
57133         * lib/strftime.h: Likewise.
57134         * lib/striconveh.c: Likewise.
57135         * lib/striconveh.h: Likewise.
57136         * lib/striconveha.c: Likewise.
57137         * lib/striconveha.h: Likewise.
57138         * lib/stripslash.c: Likewise.
57139         * lib/strnlen1.c: Likewise.
57140         * lib/strnlen1.h: Likewise.
57141         * lib/strtod.c: Likewise.
57142         * lib/strtoimax.c: Likewise.
57143         * lib/strtok_r.c: Likewise.
57144         * lib/strtol.c: Likewise.
57145         * lib/strtoll.c: Likewise.
57146         * lib/strtoul.c: Likewise.
57147         * lib/strtoull.c: Likewise.
57148         * lib/sysexits.in.h: Likewise.
57149         * lib/tempname.c: Likewise.
57150         * lib/tempname.h: Likewise.
57151         * lib/timespec.h: Likewise.
57152         * lib/tls.c: Likewise.
57153         * lib/tls.h: Likewise.
57154         * lib/tmpdir.c: Likewise.
57155         * lib/tmpdir.h: Likewise.
57156         * lib/tmpfile-safer.c: Likewise.
57157         * lib/tmpfile.c: Likewise.
57158         * lib/trigl.c: Likewise.
57159         * lib/trigl.h: Likewise.
57160         * lib/trim.c: Likewise.
57161         * lib/trim.h: Likewise.
57162         * lib/trunc.c: Likewise.
57163         * lib/truncf.c: Likewise.
57164         * lib/truncl.c: Likewise.
57165         * lib/tsearch.c: Likewise.
57166         * lib/unicodeio.c: Likewise.
57167         * lib/unicodeio.h: Likewise.
57168         * lib/unistd--.h: Likewise.
57169         * lib/unistd-safer.h: Likewise.
57170         * lib/unistdio/ulc-fprintf.c: Likewise.
57171         * lib/unistdio/ulc-vfprintf.c: Likewise.
57172         * lib/unlinkdir.c: Likewise.
57173         * lib/unlinkdir.h: Likewise.
57174         * lib/unlocked-io.h: Likewise.
57175         * lib/unsetenv.c: Likewise.
57176         * lib/userspec.c: Likewise.
57177         * lib/utime.c: Likewise.
57178         * lib/utimecmp.c: Likewise.
57179         * lib/utimecmp.h: Likewise.
57180         * lib/utimens.c: Likewise.
57181         * lib/verify.h: Likewise.
57182         * lib/verror.c: Likewise.
57183         * lib/verror.h: Likewise.
57184         * lib/version-etc-fsf.c: Likewise.
57185         * lib/version-etc.c: Likewise.
57186         * lib/version-etc.h: Likewise.
57187         * lib/vfprintf.c: Likewise.
57188         * lib/vprintf.c: Likewise.
57189         * lib/vsprintf.c: Likewise.
57190         * lib/w32spawn.h: Likewise.
57191         * lib/wait-process.c: Likewise.
57192         * lib/wait-process.h: Likewise.
57193         * lib/wcwidth.c: Likewise.
57194         * lib/write-any-file.c: Likewise.
57195         * lib/xalloc-die.c: Likewise.
57196         * lib/xalloc.h: Likewise.
57197         * lib/xasprintf.c: Likewise.
57198         * lib/xgetcwd.c: Likewise.
57199         * lib/xgetcwd.h: Likewise.
57200         * lib/xgetdomainname.c: Likewise.
57201         * lib/xgetdomainname.h: Likewise.
57202         * lib/xgethostname.c: Likewise.
57203         * lib/xmalloc.c: Likewise.
57204         * lib/xmalloca.c: Likewise.
57205         * lib/xmalloca.h: Likewise.
57206         * lib/xmemcoll.c: Likewise.
57207         * lib/xnanosleep.c: Likewise.
57208         * lib/xreadlink.c: Likewise.
57209         * lib/xreadlink.h: Likewise.
57210         * lib/xsetenv.c: Likewise.
57211         * lib/xsetenv.h: Likewise.
57212         * lib/xstriconv.c: Likewise.
57213         * lib/xstriconv.h: Likewise.
57214         * lib/xstrndup.c: Likewise.
57215         * lib/xstrndup.h: Likewise.
57216         * lib/xstrtod.c: Likewise.
57217         * lib/xstrtod.h: Likewise.
57218         * lib/xstrtol-error.c: Likewise.
57219         * lib/xstrtol.c: Likewise.
57220         * lib/xstrtol.h: Likewise.
57221         * lib/xtime.h: Likewise.
57222         * lib/xvasprintf.c: Likewise.
57223         * lib/xvasprintf.h: Likewise.
57224         * lib/yesno.c: Likewise.
57225         * lib/yesno.h: Likewise.
57226         * posix-modules: Likewise.
57227         * tests/test-alloca-opt.c: Likewise.
57228         * tests/test-arcfour.c: Likewise.
57229         * tests/test-arctwo.c: Likewise.
57230         * tests/test-argmatch.c: Likewise.
57231         * tests/test-argp-2.sh: Likewise.
57232         * tests/test-argp.c: Likewise.
57233         * tests/test-arpa_inet.c: Likewise.
57234         * tests/test-array_list.c: Likewise.
57235         * tests/test-array_oset.c: Likewise.
57236         * tests/test-atexit.c: Likewise.
57237         * tests/test-avltree_list.c: Likewise.
57238         * tests/test-avltree_oset.c: Likewise.
57239         * tests/test-avltreehash_list.c: Likewise.
57240         * tests/test-base64.c: Likewise.
57241         * tests/test-binary-io.c: Likewise.
57242         * tests/test-byteswap.c: Likewise.
57243         * tests/test-c-ctype.c: Likewise.
57244         * tests/test-c-strcasecmp.c: Likewise.
57245         * tests/test-c-strcasestr.c: Likewise.
57246         * tests/test-c-strncasecmp.c: Likewise.
57247         * tests/test-c-strstr.c: Likewise.
57248         * tests/test-canonicalize-lgpl.c: Likewise.
57249         * tests/test-canonicalize.c: Likewise.
57250         * tests/test-carray_list.c: Likewise.
57251         * tests/test-ceilf.c: Likewise.
57252         * tests/test-ceill.c: Likewise.
57253         * tests/test-count-one-bits.c: Likewise.
57254         * tests/test-crc.c: Likewise.
57255         * tests/test-dirname.c: Likewise.
57256         * tests/test-fbufmode.c: Likewise.
57257         * tests/test-fcntl.c: Likewise.
57258         * tests/test-fflush.c: Likewise.
57259         * tests/test-floorf.c: Likewise.
57260         * tests/test-floorl.c: Likewise.
57261         * tests/test-fopen.c: Likewise.
57262         * tests/test-fprintf-posix.c: Likewise.
57263         * tests/test-fprintf-posix.h: Likewise.
57264         * tests/test-fpurge.c: Likewise.
57265         * tests/test-freadable.c: Likewise.
57266         * tests/test-freadahead.c: Likewise.
57267         * tests/test-freading.c: Likewise.
57268         * tests/test-freopen.c: Likewise.
57269         * tests/test-frexp.c: Likewise.
57270         * tests/test-frexpl.c: Likewise.
57271         * tests/test-fseek.c: Likewise.
57272         * tests/test-fseeko.c: Likewise.
57273         * tests/test-fseterr.c: Likewise.
57274         * tests/test-fstrcmp.c: Likewise.
57275         * tests/test-ftell.c: Likewise.
57276         * tests/test-ftello.c: Likewise.
57277         * tests/test-fwritable.c: Likewise.
57278         * tests/test-fwriting.c: Likewise.
57279         * tests/test-getaddrinfo.c: Likewise.
57280         * tests/test-getpass.c: Likewise.
57281         * tests/test-gettimeofday.c: Likewise.
57282         * tests/test-hmac-md5.c: Likewise.
57283         * tests/test-hmac-sha1.c: Likewise.
57284         * tests/test-iconv.c: Likewise.
57285         * tests/test-iconvme.c: Likewise.
57286         * tests/test-inttypes.c: Likewise.
57287         * tests/test-isnan.c: Likewise.
57288         * tests/test-isnanf.c: Likewise.
57289         * tests/test-isnanl-nolibm.c: Likewise.
57290         * tests/test-isnanl.c: Likewise.
57291         * tests/test-isnanl.h: Likewise.
57292         * tests/test-ldexpl.c: Likewise.
57293         * tests/test-linked_list.c: Likewise.
57294         * tests/test-linkedhash_list.c: Likewise.
57295         * tests/test-locale.c: Likewise.
57296         * tests/test-localename.c: Likewise.
57297         * tests/test-lock.c: Likewise.
57298         * tests/test-lseek.c: Likewise.
57299         * tests/test-malloca.c: Likewise.
57300         * tests/test-math.c: Likewise.
57301         * tests/test-mbscasecmp.c: Likewise.
57302         * tests/test-mbscasestr1.c: Likewise.
57303         * tests/test-mbscasestr2.c: Likewise.
57304         * tests/test-mbscasestr3.c: Likewise.
57305         * tests/test-mbscasestr4.c: Likewise.
57306         * tests/test-mbschr.c: Likewise.
57307         * tests/test-mbscspn.c: Likewise.
57308         * tests/test-mbsncasecmp.c: Likewise.
57309         * tests/test-mbspbrk.c: Likewise.
57310         * tests/test-mbspcasecmp.c: Likewise.
57311         * tests/test-mbsrchr.c: Likewise.
57312         * tests/test-mbsspn.c: Likewise.
57313         * tests/test-mbsstr1.c: Likewise.
57314         * tests/test-mbsstr2.c: Likewise.
57315         * tests/test-mbsstr3.c: Likewise.
57316         * tests/test-md5.c: Likewise.
57317         * tests/test-memmem.c: Likewise.
57318         * tests/test-netinet_in.c: Likewise.
57319         * tests/test-open.c: Likewise.
57320         * tests/test-printf-frexp.c: Likewise.
57321         * tests/test-printf-frexpl.c: Likewise.
57322         * tests/test-printf-posix.c: Likewise.
57323         * tests/test-printf-posix.h: Likewise.
57324         * tests/test-rbtree_list.c: Likewise.
57325         * tests/test-rbtree_oset.c: Likewise.
57326         * tests/test-rbtreehash_list.c: Likewise.
57327         * tests/test-read-file.c: Likewise.
57328         * tests/test-rijndael.c: Likewise.
57329         * tests/test-search.c: Likewise.
57330         * tests/test-signbit.c: Likewise.
57331         * tests/test-sleep.c: Likewise.
57332         * tests/test-snprintf-posix.c: Likewise.
57333         * tests/test-snprintf-posix.h: Likewise.
57334         * tests/test-snprintf.c: Likewise.
57335         * tests/test-sprintf-posix.c: Likewise.
57336         * tests/test-sprintf-posix.h: Likewise.
57337         * tests/test-stat-time.c: Likewise.
57338         * tests/test-stdbool.c: Likewise.
57339         * tests/test-stdint.c: Likewise.
57340         * tests/test-stdio.c: Likewise.
57341         * tests/test-stdlib.c: Likewise.
57342         * tests/test-stpncpy.c: Likewise.
57343         * tests/test-strcasestr.c: Likewise.
57344         * tests/test-striconv.c: Likewise.
57345         * tests/test-striconveh.c: Likewise.
57346         * tests/test-striconveha.c: Likewise.
57347         * tests/test-string.c: Likewise.
57348         * tests/test-sys_select.c: Likewise.
57349         * tests/test-sys_socket.c: Likewise.
57350         * tests/test-sys_stat.c: Likewise.
57351         * tests/test-sys_time.c: Likewise.
57352         * tests/test-sysexits.c: Likewise.
57353         * tests/test-time.c: Likewise.
57354         * tests/test-tls.c: Likewise.
57355         * tests/test-trunc.c: Likewise.
57356         * tests/test-truncf.c: Likewise.
57357         * tests/test-truncl.c: Likewise.
57358         * tests/test-unistd.c: Likewise.
57359         * tests/test-vasnprintf-posix.c: Likewise.
57360         * tests/test-vasnprintf-posix2.c: Likewise.
57361         * tests/test-vasnprintf.c: Likewise.
57362         * tests/test-vasprintf-posix.c: Likewise.
57363         * tests/test-vasprintf.c: Likewise.
57364         * tests/test-verify.c: Likewise.
57365         * tests/test-vfprintf-posix.c: Likewise.
57366         * tests/test-vprintf-posix.c: Likewise.
57367         * tests/test-vsnprintf-posix.c: Likewise.
57368         * tests/test-vsnprintf.c: Likewise.
57369         * tests/test-vsprintf-posix.c: Likewise.
57370         * tests/test-wchar.c: Likewise.
57371         * tests/test-wctype.c: Likewise.
57372         * tests/test-wcwidth.c: Likewise.
57373         * tests/test-xstrtol.c: Likewise.
57374         * tests/test-xvasprintf.c: Likewise.
57375         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
57376         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
57377         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
57378         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
57379         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
57380         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
57381         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
57382         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
57383         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
57384         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
57385         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
57386         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
57387         * tests/uniname/test-uninames.c: Likewise.
57388         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
57389         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
57390         * tests/unistdio/test-u16-printf1.h: Likewise.
57391         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
57392         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
57393         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
57394         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
57395         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
57396         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
57397         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
57398         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
57399         * tests/unistdio/test-u32-printf1.h: Likewise.
57400         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
57401         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
57402         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
57403         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
57404         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
57405         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
57406         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
57407         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
57408         * tests/unistdio/test-u8-printf1.h: Likewise.
57409         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
57410         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
57411         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
57412         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
57413         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
57414         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
57415         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
57416         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
57417         * tests/unistdio/test-ulc-printf1.h: Likewise.
57418         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
57419         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
57420         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
57421         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
57422         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
57423         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
57424         * tests/uniwidth/test-u16-strwidth.c: Likewise.
57425         * tests/uniwidth/test-u16-width.c: Likewise.
57426         * tests/uniwidth/test-u32-strwidth.c: Likewise.
57427         * tests/uniwidth/test-u32-width.c: Likewise.
57428         * tests/uniwidth/test-u8-strwidth.c: Likewise.
57429         * tests/uniwidth/test-u8-width.c: Likewise.
57430         * tests/uniwidth/test-uc_width.c: Likewise.
57431         * config/srclist-update: Likewise.
57432         (fixlicense): Update to GPLv3+.
57433
57434         Change copyright notice from LGPLv2.1+ to LGPLv3+.
57435         * tests/test-tsearch.c: Change copyright notice.
57436
57437         Change copyright notice from LGPLv2.0+ to LGPLv3+.
57438         * lib/c-strcaseeq.h: Change copyright notice.
57439         * lib/streq.h: Likewise.
57440         * lib/uniconv.h: Likewise.
57441         * lib/uniconv/u-conv-from-enc.h: Likewise.
57442         * lib/uniconv/u-conv-to-enc.h: Likewise.
57443         * lib/uniconv/u-strconv-from-enc.h: Likewise.
57444         * lib/uniconv/u-strconv-to-enc.h: Likewise.
57445         * lib/uniconv/u16-conv-from-enc.c: Likewise.
57446         * lib/uniconv/u16-conv-to-enc.c: Likewise.
57447         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
57448         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
57449         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
57450         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
57451         * lib/uniconv/u32-conv-from-enc.c: Likewise.
57452         * lib/uniconv/u32-conv-to-enc.c: Likewise.
57453         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
57454         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
57455         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
57456         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
57457         * lib/uniconv/u8-conv-from-enc.c: Likewise.
57458         * lib/uniconv/u8-conv-to-enc.c: Likewise.
57459         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
57460         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
57461         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
57462         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
57463         * lib/uniname.h: Likewise.
57464         * lib/uniname/uniname.c: Likewise.
57465         * lib/unistdio.h: Likewise.
57466         * lib/unistdio/u-asnprintf.h: Likewise.
57467         * lib/unistdio/u-asprintf.h: Likewise.
57468         * lib/unistdio/u-printf-args.c: Likewise.
57469         * lib/unistdio/u-printf-args.h: Likewise.
57470         * lib/unistdio/u-printf-parse.h: Likewise.
57471         * lib/unistdio/u-snprintf.h: Likewise.
57472         * lib/unistdio/u-sprintf.h: Likewise.
57473         * lib/unistdio/u-vasprintf.h: Likewise.
57474         * lib/unistdio/u-vsnprintf.h: Likewise.
57475         * lib/unistdio/u-vsprintf.h: Likewise.
57476         * lib/unistdio/u16-asnprintf.c: Likewise.
57477         * lib/unistdio/u16-asprintf.c: Likewise.
57478         * lib/unistdio/u16-printf-parse.c: Likewise.
57479         * lib/unistdio/u16-snprintf.c: Likewise.
57480         * lib/unistdio/u16-sprintf.c: Likewise.
57481         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
57482         * lib/unistdio/u16-u16-asprintf.c: Likewise.
57483         * lib/unistdio/u16-u16-snprintf.c: Likewise.
57484         * lib/unistdio/u16-u16-sprintf.c: Likewise.
57485         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
57486         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
57487         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
57488         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
57489         * lib/unistdio/u16-vasnprintf.c: Likewise.
57490         * lib/unistdio/u16-vasprintf.c: Likewise.
57491         * lib/unistdio/u16-vsnprintf.c: Likewise.
57492         * lib/unistdio/u16-vsprintf.c: Likewise.
57493         * lib/unistdio/u32-asnprintf.c: Likewise.
57494         * lib/unistdio/u32-asprintf.c: Likewise.
57495         * lib/unistdio/u32-printf-parse.c: Likewise.
57496         * lib/unistdio/u32-snprintf.c: Likewise.
57497         * lib/unistdio/u32-sprintf.c: Likewise.
57498         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
57499         * lib/unistdio/u32-u32-asprintf.c: Likewise.
57500         * lib/unistdio/u32-u32-snprintf.c: Likewise.
57501         * lib/unistdio/u32-u32-sprintf.c: Likewise.
57502         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
57503         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
57504         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
57505         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
57506         * lib/unistdio/u32-vasnprintf.c: Likewise.
57507         * lib/unistdio/u32-vasprintf.c: Likewise.
57508         * lib/unistdio/u32-vsnprintf.c: Likewise.
57509         * lib/unistdio/u32-vsprintf.c: Likewise.
57510         * lib/unistdio/u8-asnprintf.c: Likewise.
57511         * lib/unistdio/u8-asprintf.c: Likewise.
57512         * lib/unistdio/u8-printf-parse.c: Likewise.
57513         * lib/unistdio/u8-snprintf.c: Likewise.
57514         * lib/unistdio/u8-sprintf.c: Likewise.
57515         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
57516         * lib/unistdio/u8-u8-asprintf.c: Likewise.
57517         * lib/unistdio/u8-u8-snprintf.c: Likewise.
57518         * lib/unistdio/u8-u8-sprintf.c: Likewise.
57519         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
57520         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
57521         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
57522         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
57523         * lib/unistdio/u8-vasnprintf.c: Likewise.
57524         * lib/unistdio/u8-vasprintf.c: Likewise.
57525         * lib/unistdio/u8-vsnprintf.c: Likewise.
57526         * lib/unistdio/u8-vsprintf.c: Likewise.
57527         * lib/unistdio/ulc-asnprintf.c: Likewise.
57528         * lib/unistdio/ulc-asprintf.c: Likewise.
57529         * lib/unistdio/ulc-printf-parse.c: Likewise.
57530         * lib/unistdio/ulc-snprintf.c: Likewise.
57531         * lib/unistdio/ulc-sprintf.c: Likewise.
57532         * lib/unistdio/ulc-vasnprintf.c: Likewise.
57533         * lib/unistdio/ulc-vasprintf.c: Likewise.
57534         * lib/unistdio/ulc-vsnprintf.c: Likewise.
57535         * lib/unistdio/ulc-vsprintf.c: Likewise.
57536         * lib/unistr.h: Likewise.
57537         * lib/unistr/u-cpy-alloc.h: Likewise.
57538         * lib/unistr/u-cpy.h: Likewise.
57539         * lib/unistr/u-endswith.h: Likewise.
57540         * lib/unistr/u-move.h: Likewise.
57541         * lib/unistr/u-set.h: Likewise.
57542         * lib/unistr/u-startswith.h: Likewise.
57543         * lib/unistr/u-stpcpy.h: Likewise.
57544         * lib/unistr/u-stpncpy.h: Likewise.
57545         * lib/unistr/u-strcat.h: Likewise.
57546         * lib/unistr/u-strcpy.h: Likewise.
57547         * lib/unistr/u-strcspn.h: Likewise.
57548         * lib/unistr/u-strdup.h: Likewise.
57549         * lib/unistr/u-strlen.h: Likewise.
57550         * lib/unistr/u-strncat.h: Likewise.
57551         * lib/unistr/u-strncpy.h: Likewise.
57552         * lib/unistr/u-strnlen.h: Likewise.
57553         * lib/unistr/u-strpbrk.h: Likewise.
57554         * lib/unistr/u-strspn.h: Likewise.
57555         * lib/unistr/u-strstr.h: Likewise.
57556         * lib/unistr/u-strtok.h: Likewise.
57557         * lib/unistr/u16-check.c: Likewise.
57558         * lib/unistr/u16-chr.c: Likewise.
57559         * lib/unistr/u16-cmp.c: Likewise.
57560         * lib/unistr/u16-cpy-alloc.c: Likewise.
57561         * lib/unistr/u16-cpy.c: Likewise.
57562         * lib/unistr/u16-endswith.c: Likewise.
57563         * lib/unistr/u16-mblen.c: Likewise.
57564         * lib/unistr/u16-mbsnlen.c: Likewise.
57565         * lib/unistr/u16-mbtouc-aux.c: Likewise.
57566         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
57567         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
57568         * lib/unistr/u16-mbtouc.c: Likewise.
57569         * lib/unistr/u16-mbtoucr.c: Likewise.
57570         * lib/unistr/u16-move.c: Likewise.
57571         * lib/unistr/u16-next.c: Likewise.
57572         * lib/unistr/u16-prev.c: Likewise.
57573         * lib/unistr/u16-set.c: Likewise.
57574         * lib/unistr/u16-startswith.c: Likewise.
57575         * lib/unistr/u16-stpcpy.c: Likewise.
57576         * lib/unistr/u16-stpncpy.c: Likewise.
57577         * lib/unistr/u16-strcat.c: Likewise.
57578         * lib/unistr/u16-strchr.c: Likewise.
57579         * lib/unistr/u16-strcmp.c: Likewise.
57580         * lib/unistr/u16-strcpy.c: Likewise.
57581         * lib/unistr/u16-strcspn.c: Likewise.
57582         * lib/unistr/u16-strdup.c: Likewise.
57583         * lib/unistr/u16-strlen.c: Likewise.
57584         * lib/unistr/u16-strmblen.c: Likewise.
57585         * lib/unistr/u16-strmbtouc.c: Likewise.
57586         * lib/unistr/u16-strncat.c: Likewise.
57587         * lib/unistr/u16-strncmp.c: Likewise.
57588         * lib/unistr/u16-strncpy.c: Likewise.
57589         * lib/unistr/u16-strnlen.c: Likewise.
57590         * lib/unistr/u16-strpbrk.c: Likewise.
57591         * lib/unistr/u16-strrchr.c: Likewise.
57592         * lib/unistr/u16-strspn.c: Likewise.
57593         * lib/unistr/u16-strstr.c: Likewise.
57594         * lib/unistr/u16-strtok.c: Likewise.
57595         * lib/unistr/u16-to-u32.c: Likewise.
57596         * lib/unistr/u16-to-u8.c: Likewise.
57597         * lib/unistr/u16-uctomb-aux.c: Likewise.
57598         * lib/unistr/u16-uctomb.c: Likewise.
57599         * lib/unistr/u32-check.c: Likewise.
57600         * lib/unistr/u32-chr.c: Likewise.
57601         * lib/unistr/u32-cmp.c: Likewise.
57602         * lib/unistr/u32-cpy-alloc.c: Likewise.
57603         * lib/unistr/u32-cpy.c: Likewise.
57604         * lib/unistr/u32-endswith.c: Likewise.
57605         * lib/unistr/u32-mblen.c: Likewise.
57606         * lib/unistr/u32-mbsnlen.c: Likewise.
57607         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
57608         * lib/unistr/u32-mbtouc.c: Likewise.
57609         * lib/unistr/u32-mbtoucr.c: Likewise.
57610         * lib/unistr/u32-move.c: Likewise.
57611         * lib/unistr/u32-next.c: Likewise.
57612         * lib/unistr/u32-prev.c: Likewise.
57613         * lib/unistr/u32-set.c: Likewise.
57614         * lib/unistr/u32-startswith.c: Likewise.
57615         * lib/unistr/u32-stpcpy.c: Likewise.
57616         * lib/unistr/u32-stpncpy.c: Likewise.
57617         * lib/unistr/u32-strcat.c: Likewise.
57618         * lib/unistr/u32-strchr.c: Likewise.
57619         * lib/unistr/u32-strcmp.c: Likewise.
57620         * lib/unistr/u32-strcpy.c: Likewise.
57621         * lib/unistr/u32-strcspn.c: Likewise.
57622         * lib/unistr/u32-strdup.c: Likewise.
57623         * lib/unistr/u32-strlen.c: Likewise.
57624         * lib/unistr/u32-strmblen.c: Likewise.
57625         * lib/unistr/u32-strmbtouc.c: Likewise.
57626         * lib/unistr/u32-strncat.c: Likewise.
57627         * lib/unistr/u32-strncmp.c: Likewise.
57628         * lib/unistr/u32-strncpy.c: Likewise.
57629         * lib/unistr/u32-strnlen.c: Likewise.
57630         * lib/unistr/u32-strpbrk.c: Likewise.
57631         * lib/unistr/u32-strrchr.c: Likewise.
57632         * lib/unistr/u32-strspn.c: Likewise.
57633         * lib/unistr/u32-strstr.c: Likewise.
57634         * lib/unistr/u32-strtok.c: Likewise.
57635         * lib/unistr/u32-to-u16.c: Likewise.
57636         * lib/unistr/u32-to-u8.c: Likewise.
57637         * lib/unistr/u32-uctomb.c: Likewise.
57638         * lib/unistr/u8-check.c: Likewise.
57639         * lib/unistr/u8-chr.c: Likewise.
57640         * lib/unistr/u8-cmp.c: Likewise.
57641         * lib/unistr/u8-cpy-alloc.c: Likewise.
57642         * lib/unistr/u8-cpy.c: Likewise.
57643         * lib/unistr/u8-endswith.c: Likewise.
57644         * lib/unistr/u8-mblen.c: Likewise.
57645         * lib/unistr/u8-mbsnlen.c: Likewise.
57646         * lib/unistr/u8-mbtouc-aux.c: Likewise.
57647         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
57648         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
57649         * lib/unistr/u8-mbtouc.c: Likewise.
57650         * lib/unistr/u8-mbtoucr.c: Likewise.
57651         * lib/unistr/u8-move.c: Likewise.
57652         * lib/unistr/u8-next.c: Likewise.
57653         * lib/unistr/u8-prev.c: Likewise.
57654         * lib/unistr/u8-set.c: Likewise.
57655         * lib/unistr/u8-startswith.c: Likewise.
57656         * lib/unistr/u8-stpcpy.c: Likewise.
57657         * lib/unistr/u8-stpncpy.c: Likewise.
57658         * lib/unistr/u8-strcat.c: Likewise.
57659         * lib/unistr/u8-strchr.c: Likewise.
57660         * lib/unistr/u8-strcmp.c: Likewise.
57661         * lib/unistr/u8-strcpy.c: Likewise.
57662         * lib/unistr/u8-strcspn.c: Likewise.
57663         * lib/unistr/u8-strdup.c: Likewise.
57664         * lib/unistr/u8-strlen.c: Likewise.
57665         * lib/unistr/u8-strmblen.c: Likewise.
57666         * lib/unistr/u8-strmbtouc.c: Likewise.
57667         * lib/unistr/u8-strncat.c: Likewise.
57668         * lib/unistr/u8-strncmp.c: Likewise.
57669         * lib/unistr/u8-strncpy.c: Likewise.
57670         * lib/unistr/u8-strnlen.c: Likewise.
57671         * lib/unistr/u8-strpbrk.c: Likewise.
57672         * lib/unistr/u8-strrchr.c: Likewise.
57673         * lib/unistr/u8-strspn.c: Likewise.
57674         * lib/unistr/u8-strstr.c: Likewise.
57675         * lib/unistr/u8-strtok.c: Likewise.
57676         * lib/unistr/u8-to-u16.c: Likewise.
57677         * lib/unistr/u8-to-u32.c: Likewise.
57678         * lib/unistr/u8-uctomb-aux.c: Likewise.
57679         * lib/unistr/u8-uctomb.c: Likewise.
57680         * lib/unitypes.h: Likewise.
57681         * lib/uniwidth.h: Likewise.
57682         * lib/uniwidth/cjk.h: Likewise.
57683         * lib/uniwidth/u16-strwidth.c: Likewise.
57684         * lib/uniwidth/u16-width.c: Likewise.
57685         * lib/uniwidth/u32-strwidth.c: Likewise.
57686         * lib/uniwidth/u32-width.c: Likewise.
57687         * lib/uniwidth/u8-strwidth.c: Likewise.
57688         * lib/uniwidth/u8-width.c: Likewise.
57689         * lib/uniwidth/width.c: Likewise.
57690
57691 2007-10-07  Bruno Haible  <bruno@clisp.org>
57692
57693         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
57694         The file is still under LGPL (see modules/inttypes).
57695
57696 2007-10-06  Bruno Haible  <bruno@clisp.org>
57697
57698         * modules/trunc (Dependencies): Add 'extensions'.
57699         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
57700         Reported by Ben Pfaff <blp@gnu.org>.
57701
57702 2007-10-06  Bruno Haible  <bruno@clisp.org>
57703
57704         * modules/freopen-tests: New file.
57705         * tests/test-freopen.c: New file.
57706
57707         * modules/fopen-tests: New file.
57708         * tests/test-fopen.c: New file.
57709
57710         * modules/fopen: New file.
57711         * lib/fopen.c: New file.
57712         * m4/fopen.m4: New file.
57713         * modules/freopen: New file.
57714         * lib/freopen.c: New file.
57715         * m4/freopen.m4: New file.
57716         * lib/stdio.in.h (fopen, freopen): New declarations.
57717         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
57718         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
57719         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
57720         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
57721         * doc/functions/fopen.texi: Mention the 'fopen' module.
57722         * doc/functions/freopen.texi: Mention the 'freopen' module.
57723
57724 2007-10-06  Bruno Haible  <bruno@clisp.org>
57725
57726         * modules/open-tests: New file.
57727         * tests/test-open.c: New file.
57728
57729         * modules/open: New file.
57730         * lib/open.c: New file.
57731         * m4/open.m4: New file.
57732         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
57733         lib/open.c does.
57734         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
57735         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
57736         macros.
57737         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
57738         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
57739         REPLACE_OPEN.
57740         * doc/functions/open.texi: Mention the 'open' module.
57741
57742 2007-10-04  Bruno Haible  <bruno@clisp.org>
57743
57744         * modules/ceill-tests: New file.
57745         * tests/test-ceill.c: New file.
57746
57747         * modules/ceill: New file.
57748         * lib/ceill.c: Replace entire file.
57749         * m4/ceill.m4: New file.
57750         * lib/math.in.h (ceill): Replace declaration.
57751         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
57752         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
57753         * doc/functions/ceill.texi: Mention the 'ceill' module.
57754         * modules/mathl (Files): Remove lib/ceill.c.
57755         (Depends-on): Add ceill.
57756
57757 2007-10-04  Bruno Haible  <bruno@clisp.org>
57758
57759         * modules/ceilf-tests: New file.
57760         * tests/test-ceilf.c: New file.
57761
57762         * modules/ceilf: New file.
57763         * lib/ceil.c: New file.
57764         * lib/ceilf.c: New file.
57765         * m4/ceilf.m4: New file.
57766         * lib/math.in.h (ceilf): New declaration.
57767         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
57768         HAVE_DECL_CEILF.
57769         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
57770         HAVE_DECL_CEILF.
57771         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
57772
57773 2007-10-04  Bruno Haible  <bruno@clisp.org>
57774
57775         * modules/floorl-tests: New file.
57776         * tests/test-floorl.c: New file.
57777
57778         * modules/floorl: New file.
57779         * lib/floorl.c: Replace entire file.
57780         * m4/floorl.m4: New file.
57781         * lib/math.in.h (floorl): Replace declaration.
57782         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
57783         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
57784         * doc/functions/floorl.texi: Mention the 'floorl' module.
57785         * modules/mathl (Files): Remove lib/floorl.c.
57786         (Depends-on): Add floorl.
57787
57788 2007-10-04  Bruno Haible  <bruno@clisp.org>
57789
57790         * modules/floorf-tests: New file.
57791         * tests/test-floorf.c: New file.
57792
57793         * modules/floorf: New file.
57794         * lib/floor.c: New file.
57795         * lib/floorf.c: New file.
57796         * m4/floorf.m4: New file.
57797         * lib/math.in.h (floorf): New declaration.
57798         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
57799         HAVE_DECL_FLOORF.
57800         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
57801         HAVE_DECL_FLOORF.
57802         * doc/functions/floorf.texi: Mention the 'floorf' module.
57803
57804 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
57805             Bruno Haible  <bruno@clisp.org>
57806
57807         Advertise for the Git server instead of the CVS server.
57808         * doc/gnulib-intro.texi (Steady Development): Mention the Git
57809         repository instead of the CVS one.
57810         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
57811         about all VCS systems generically.
57812         * doc/gnulib.texi (Introduction): Capitalize `Git'.
57813
57814 2007-10-04  Bruno Haible  <bruno@clisp.org>
57815
57816         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
57817         means.
57818         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
57819
57820 2007-10-04  Bruno Haible  <bruno@clisp.org>
57821
57822         * modules/truncl-tests: New file.
57823         * tests/test-truncl.c: New file.
57824
57825         * modules/truncl: New file.
57826         * lib/truncl.c: New file.
57827         * m4/truncl.m4: New file.
57828         * lib/math.in.h (truncl): New declaration.
57829         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
57830         HAVE_DECL_TRUNCL.
57831         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
57832         HAVE_DECL_TRUNCL.
57833         * doc/functions/truncl.texi: Mention the 'truncl' module.
57834
57835 2007-10-04  Bruno Haible  <bruno@clisp.org>
57836
57837         * modules/truncf-tests: New file.
57838         * tests/test-truncf.c: New file.
57839
57840         * modules/truncf: New file.
57841         * lib/trunc.c: Make paramerizable through USE_* macros.
57842         * lib/truncf.c: New file.
57843         * m4/truncf.m4: New file.
57844         * lib/math.in.h (truncf): New declaration.
57845         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
57846         HAVE_DECL_TRUNCF.
57847         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
57848         HAVE_DECL_TRUNCF.
57849         * doc/functions/truncf.texi: Mention the 'truncf' module.
57850
57851 2007-10-03  Bruno Haible  <bruno@clisp.org>
57852
57853         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
57854         augmentation also for tests modules.
57855         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
57856         * modules/atexit-tests (Makefile.am): Likewise.
57857         * modules/binary-io-tests (Makefile.am): Likewise.
57858         * modules/c-strcase-tests (Makefile.am): Likewise.
57859         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
57860         * modules/canonicalize-tests (Makefile.am): Likewise.
57861         * modules/closein-tests (Makefile.am): Likewise.
57862         * modules/fprintf-posix-tests (Makefile.am): Likewise.
57863         * modules/freadahead-tests (Makefile.am): Likewise.
57864         * modules/fseek-tests (Makefile.am): Likewise.
57865         * modules/fseeko-tests (Makefile.am): Likewise.
57866         * modules/ftell-tests (Makefile.am): Likewise.
57867         * modules/ftello-tests (Makefile.am): Likewise.
57868         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
57869         * modules/isnanl-tests (Makefile.am): Likewise.
57870         * modules/lseek-tests (Makefile.am): Likewise.
57871         * modules/mbscasecmp-tests (Makefile.am): Likewise.
57872         * modules/mbscasestr-tests (Makefile.am): Likewise.
57873         * modules/mbschr-tests (Makefile.am): Likewise.
57874         * modules/mbscspn-tests (Makefile.am): Likewise.
57875         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
57876         * modules/mbspbrk-tests (Makefile.am): Likewise.
57877         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
57878         * modules/mbsrchr-tests (Makefile.am): Likewise.
57879         * modules/mbsspn-tests (Makefile.am): Likewise.
57880         * modules/mbsstr-tests (Makefile.am): Likewise.
57881         * modules/printf-posix-tests (Makefile.am): Likewise.
57882         * modules/snprintf-posix-tests (Makefile.am): Likewise.
57883         * modules/sprintf-posix-tests (Makefile.am): Likewise.
57884         * modules/tsearch-tests (Makefile.am): Likewise.
57885         * modules/uniname/uniname-tests (Makefile.am): Likewise.
57886         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
57887         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
57888         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
57889         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
57890         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
57891         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
57892         * modules/vprintf-posix-tests (Makefile.am): Likewise.
57893         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
57894         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
57895         * modules/xstrtoimax-tests (Makefile.am): Likewise.
57896         * modules/xstrtol-tests (Makefile.am): Likewise.
57897         * modules/xstrtoumax-tests (Makefile.am): Likewise.
57898         * modules/yesno-tests (Makefile.am): Likewise.
57899
57900 2007-10-03  Bruno Haible  <bruno@clisp.org>
57901
57902         * modules/trunc-tests: New file.
57903         * tests/test-trunc.c: New file.
57904
57905         * modules/trunc: New file.
57906         * lib/trunc.c: New file.
57907         * m4/trunc.m4: New file.
57908         * lib/math.in.h (trunc): New declaration.
57909         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
57910         HAVE_DECL_TRUNC.
57911         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
57912         HAVE_DECL_TRUNC.
57913         * doc/functions/trunc.texi: Mention the 'trunc' module.
57914
57915 2007-10-03  Bruno Haible  <bruno@clisp.org>
57916
57917         * tests/test-fpending.c: New file, mostly copied
57918         from coreutils/lib/t-fpending.c.
57919         * modules/fpending-tests: New file.
57920
57921 2007-10-03  Bruno Haible  <bruno@clisp.org>
57922
57923         Port the stdio extensions to QNX (untested).
57924         * lib/fseterr.c (fseterr): Add support for QNX.
57925         * lib/fbufmode.c (fbufmode): Likewise.
57926         * lib/freadable.c (freadable): Likewise.
57927         * lib/fwritable.c (fwritable): Likewise.
57928         * lib/freading.c (freading): Likewise.
57929         * lib/fwriting.c (fwriting): Likewise.
57930         * lib/freadahead.c (freadahed): Likewise.
57931         * lib/fpurge.c (fpurge): Likewise.
57932         * lib/fseeko.c (rpl_fseeko): Likewise.
57933
57934 2007-10-03  Bruno Haible  <bruno@clisp.org>
57935             Jim Meyering  <jim@meyering.net>
57936             Eric Blake  <ebb9@byu.net>
57937
57938         * doc/relocatable.texi: Use @command instead of @program.
57939
57940 2007-10-02  Jim Meyering  <jim@meyering.net>
57941
57942         Perform one more "_.h" -> ".in.h" substitution.
57943         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
57944         instead of unistd_.h here, too.
57945
57946 2007-10-01  Bruno Haible  <bruno@clisp.org>
57947
57948         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
57949         Needed for the alloca-opt module.
57950
57951 2007-09-30  Bruno Haible  <bruno@clisp.org>
57952
57953         * lib/alloca.in.h: Renamed from lib/alloca_.h.
57954         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
57955         alloca_.h.
57956         * lib/argz.in.h: Renamed from lib/argz_.h.
57957         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
57958         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
57959         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
57960         byteswap_.h.
57961         * lib/dirent.in.h: Renamed from lib/dirent_.h.
57962         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
57963         dirent_.h.
57964         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
57965         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
57966         fcntl_.h.
57967         * lib/float.in.h: Renamed from lib/float_.h.
57968         * modules/float (Files, Makefile.am): Use float.in.h instead of
57969         float_.h.
57970         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
57971         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
57972         fnmatch_.h.
57973         * lib/getopt.in.h: Renamed from lib/getopt_.h.
57974         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
57975         getopt_.h.
57976         * lib/glob.in.h: Renamed from lib/glob_.h.
57977         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
57978         * lib/iconv.in.h: Renamed from lib/iconv_.h.
57979         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
57980         iconv_.h.
57981         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
57982         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
57983         inttypes_.h.
57984         * lib/locale.in.h: Renamed from lib/locale_.h.
57985         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
57986         locale_.h.
57987         * lib/math.in.h: Renamed from lib/math_.h.
57988         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
57989         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
57990         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
57991         of netinet_in_.h. Add dependency.
57992         * lib/poll.in.h: Renamed from lib/poll_.h.
57993         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
57994         * lib/search.in.h: Renamed from lib/search_.h.
57995         * modules/search (Files, Makefile.am): Use search.in.h instead of
57996         search_.h.
57997         * lib/signal.in.h: Renamed from lib/signal_.h.
57998         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
57999         _signal.h.
58000         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
58001         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
58002         stdbool_.h.
58003         * lib/stdint.in.h: Renamed from lib/stdint_.h.
58004         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
58005         stdint_.h.
58006         * lib/stdio.in.h: Renamed from lib/stdio_.h.
58007         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
58008         stdio_.h.
58009         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
58010         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
58011         stdlib_.h.
58012         * lib/string.in.h: Renamed from lib/string_.h.
58013         * modules/string (Files, Makefile.am): Use string.in.h instead of
58014         string_.h.
58015         * doc/gnulib-tool.texi (Initial import): Update.
58016         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
58017         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
58018         of sys_select_.h. Add dependency.
58019         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
58020         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
58021         of sys_socket_.h.
58022         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
58023         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
58024         sys_stat_.h.
58025         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
58026         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
58027         sys_time_.h.
58028         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
58029         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
58030         sysexits_.h.
58031         * lib/time.in.h: Renamed from lib/time_.h.
58032         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
58033         * lib/unistd.in.h: Renamed from lib/unistd_.h.
58034         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
58035         unistd_.h.
58036         * lib/wchar.in.h: Renamed from lib/wchar_.h.
58037         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
58038         wchar_.h.
58039         * lib/wctype.in.h: Renamed from lib/wctype_.h.
58040         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
58041         wctype_.h.
58042         * build-aux/bootstrap (slurp): Update.
58043         * lib/.cppi-disable: Update.
58044
58045 2007-09-30  Bruno Haible  <bruno@clisp.org>
58046
58047         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
58048         Needed on BeOS.
58049
58050 2007-09-30  Bruno Haible  <bruno@clisp.org>
58051
58052         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
58053
58054 2007-09-29  Bruno Haible  <bruno@clisp.org>
58055
58056         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
58057
58058 2007-09-29  Bruno Haible  <bruno@clisp.org>
58059
58060         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
58061         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
58062         * build-aux/install-reloc: Compile also areadlink.c.
58063         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
58064
58065 2007-09-29  Bruno Haible  <bruno@clisp.org>
58066
58067         * gnulib-tool (func_emit_initmacro_done): Indentation.
58068
58069 2007-09-29  Bruno Haible  <bruno@clisp.org>
58070
58071         * README: Add CVS checkout update instructions.
58072         Info from Bob Proulx <bob@proulx.com>.
58073
58074 2007-09-28  Eric Blake  <ebb9@byu.net>
58075
58076         Provide move-if-change.
58077         * build-aux/move-if-change: New file, based on best practice
58078         rather than any canonical upstream location.
58079
58080 2007-09-28  Jim Meyering  <jim@meyering.net>
58081
58082         Fix canonicalize loop-detection corner case.
58083         Do not attempt to stat the symlink values stored via seen_triple.
58084         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
58085         on linux-2.6.18, (but not 2.6.22).
58086         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
58087         triple_compare.  The former compares dev,ino,filename, while the latter
58088         would actually stat dirname(filename) when dev and ino were equal.
58089         * lib/hash-triple.c: Install <string.h>.
58090         (STREQ): Define.
58091         (triple_compare_ino_str): New function.
58092         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
58093
58094 2007-09-28  Eric Blake  <ebb9@byu.net>
58095
58096         Enforce that AC_REPLACE_FUNCS files exist.
58097         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
58098         override check for typos.
58099
58100         Fix test-closein on Solaris 10.
58101         * tests/test-closein.c (main): Don't assume stdin can be inherited
58102         closed on all systems.
58103         * tests/test-closein.sh: Likewise.
58104         Reported by Piotr Tarnowski.
58105
58106 2007-09-28  Jim Meyering  <jim@meyering.net>
58107
58108         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
58109
58110 2007-09-27  Jim Meyering  <jim@meyering.net>
58111
58112         canonicalize: Avoid a false-positive cycle failure.
58113         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
58114         Sort.  Remove cycle-check.
58115         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
58116         not cycle-check.h.
58117         (seen_triple): New function.
58118         (canonicalize_filename_mode): Use it instead of cycle-check.
58119         * tests/test-canonicalize.c: Add a test for this bug.
58120         * tests/test-canonicalize.sh: Set up and run the test.
58121
58122         New module, file-set, from coreutils.
58123         * modules/file-set: Define it.
58124         * lib/file-set.c, lib/file-set.h: Implement.
58125
58126         New module, hash-triple, from coreutils.
58127         * modules/hash-triple: Define it.
58128         * lib/hash-triple.c, lib/hash-triple.h: Implement.
58129
58130 2007-09-25  Eric Blake  <ebb9@byu.net>
58131
58132         Fix strerror on Interix.
58133         * lib/string_.h (strerror): Declare replacement.
58134         * doc/functions/strerror.texi (strerror): Document the Interix
58135         shortcoming.
58136         * modules/string (Makefile.am): Support new hooks.
58137         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
58138         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
58139         gl_FUNC_STRERROR_SEPARATE.
58140         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
58141         * lib/strerror.c (rpl_strerror): Provide replacement.
58142         * modules/strerror (Depends-on): Add string.
58143         (configure.ac): Detect use of module.
58144         * tests/test-strerror.c: New file.
58145         * modules/strerror-tests: New test module.
58146         * modules/argp (Depends-on): Add strerror.
58147         * modules/error (Depends-on): Likewise.
58148         Reported by Martin Koeppe.
58149
58150 2007-09-24  Bruno Haible  <bruno@clisp.org>
58151
58152         * README: Update git instructions.
58153
58154 2007-09-24  Eric Blake  <ebb9@byu.net>
58155
58156         Revert fpending breakage from 2007-09-08.
58157         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
58158         __fpending.c.
58159
58160 2007-09-24  Jim Meyering  <jim@meyering.net>
58161
58162         filenamecat.c: Add a test.
58163         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
58164         showing how the function works when DIR is the empty string.
58165
58166 2007-09-21  Simon Josefsson  <simon@josefsson.org>
58167
58168         * tests/test-canonicalize.sh: Turn on executable bit.
58169
58170 2007-09-19  Eric Blake  <ebb9@byu.net>
58171
58172         * README: Update CVS instructions.
58173
58174 2007-09-18  Bruno Haible  <bruno@clisp.org>
58175
58176         * modules/areadlink: New file.
58177         * lib/areadlink.h (areadlink): New declaration.
58178         * lib/areadlink.c: New file, based on lib/xreadlink.c.
58179
58180 2007-09-17  Jim Meyering  <jim@meyering.net>
58181
58182         * lib/savewd.c (ESTALE) [!defined]: Define.
58183         Reported to be required on Interix by Martin Koeppe.
58184
58185 2007-09-17  Bruno Haible  <bruno@clisp.org>
58186
58187         * gnulib-tool (func_version): Use $version.
58188
58189 2007-09-16  Bruno Haible  <bruno@clisp.org>
58190
58191         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
58192         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
58193         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
58194         Reported by Greg Schafer <gschafer@zip.com.au>.
58195
58196 2007-09-15  Bruno Haible  <bruno@clisp.org>
58197
58198         * gnulib-tool (sed): Try a little harder to make bash understand the
58199         alias.
58200         Reported by Bruce Korb <bruce.korb@gmail.com>.
58201
58202 2007-09-13  Eric Blake  <ebb9@byu.net>
58203
58204         * ChangeLog: Remove conflict markers.
58205
58206 2007-09-13  Simon Josefsson  <simon@josefsson.org>
58207
58208         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
58209         Reported by Bruno Haible <bruno@clisp.org>.
58210
58211 2007-09-12  Bruno Haible  <bruno@clisp.org>
58212
58213         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
58214         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
58215         is not defined.
58216
58217 2007-09-12  Eric Blake  <ebb9@byu.net>
58218
58219         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
58220         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
58221         Autoconf definition.
58222         * modules/euidaccess (Depends-on): Add extensions, for
58223         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
58224         * modules/fnmatch (Depends-on): Likewise.
58225         * modules/getaddrinfo (Depends-on): Likewise.
58226         * modules/getdelim (Depends-on): Likewise.
58227         * modules/getline (Depends-on): Likewise.
58228         * modules/getsubopt (Depends-on): Likewise.
58229         * modules/gettext (Depends-on): Likewise.
58230         * modules/group-member (Depends-on): Likewise.
58231         * modules/mbchar (Depends-on): Likewise.
58232         * modules/memmem (Depends-on): Likewise.
58233         * modules/mempcpy (Depends-on): Likewise.
58234         * modules/memrchr (Depends-on): Likewise.
58235         * modules/pagealign_alloc (Depends-on): Likewise.
58236         * modules/readutmp (Depends-on): Likewise.
58237         * modules/stpcpy (Depends-on): Likewise.
58238         * modules/stpncpy (Depends-on): Likewise.
58239         * modules/strchrnul (Depends-on): Likewise.
58240         * modules/strndup (Depends-on): Likewise.
58241         * modules/strsep (Depends-on): Likewise.
58242         * modules/strverscmp (Depends-on): Likewise.
58243         * modules/vasprintf (Depends-on): Likewise.
58244         * modules/wcwidth (Depends-on): Likewise.
58245         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
58246         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
58247         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
58248         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
58249         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58250         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58251         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
58252         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
58253         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
58254         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
58255         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58256         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
58257         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
58258         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
58259         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
58260         * m4/readutmp.m4 (gl_READUTMP): Likewise.
58261         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58262         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
58263         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
58264         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
58265         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58266         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
58267         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
58268         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
58269         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
58270         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
58271         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
58272         so that lock.m4 can be used in gettext without extensions module.
58273
58274 2007-09-11  Bruno Haible  <bruno@clisp.org>
58275
58276         * m4/isc-posix.m4: Remove file.
58277         Suggested by Eric Blake.
58278
58279 2007-09-11  Eric Blake  <ebb9@byu.net>
58280
58281         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
58282
58283 2007-09-10  Bruno Haible  <bruno@clisp.org>
58284
58285         * posix-modules: Fix typo in error message.
58286         Reported by Matt <mkraai@beckman.com>.
58287
58288 2007-09-09  Bruno Haible  <bruno@clisp.org>
58289
58290         * doc/functions/getdelim.texi: Update list of platforms lacking the
58291         function.
58292         * doc/functions/getline.texi: Likewise.
58293
58294 2007-09-09  Jim Meyering  <jim@meyering.net>
58295
58296         * lib/hash.c (hash_initialize): Detect calloc failure.
58297         Reported by Bruno Haible.
58298
58299 2007-09-09  Bruno Haible  <bruno@clisp.org>
58300
58301         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
58302         malloc or realloc fails.
58303
58304 2007-09-09  Bruno Haible  <bruno@clisp.org>
58305
58306         * modules/getcwd (Depends-on): Add malloc-posix.
58307         * modules/glob (Depends-on): Likewise.
58308         * modules/putenv (Depends-on): Likewise.
58309         * modules/strdup (Depends-on): Likewise.
58310         * modules/getdelim (Depends-on): Add realloc-posix.
58311         * modules/read-file (Depends-on): Likewise.
58312
58313 2007-09-09  Bruno Haible  <bruno@clisp.org>
58314
58315         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
58316         (gl_FUNC_MALLOC_POSIX): Require it.
58317         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
58318         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
58319         * modules/realloc (Files): Add m4/malloc.m4.
58320         * modules/calloc (Files): Likewise.
58321
58322 2007-09-09  Bruno Haible  <bruno@clisp.org>
58323
58324         * modules/malloc-posix: New file.
58325         * modules/malloc (Depends-on): Add malloc-posix.
58326         * lib/malloc.c: Include errno.h.
58327         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
58328         and a POSIX-compatible malloc into a single function. Set ENOMEM
58329         when returning NULL.
58330         * m4/malloc.m4: New file.
58331         * doc/functions/malloc.texi: Mention the malloc-posix module.
58332         * lib/stdlib_.h (malloc): New declaration.
58333         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58334         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
58335         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
58336         and HAVE_MALLOC_POSIX.
58337
58338 2007-09-09  Bruno Haible  <bruno@clisp.org>
58339
58340         * modules/realloc-posix: New file.
58341         * modules/realloc (Depends-on): Add realloc-posix.
58342         * lib/realloc.c: Include errno.h.
58343         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
58344         and a POSIX-compatible realloc into a single function. Set ENOMEM
58345         when returning NULL.
58346         * m4/realloc.m4: New file.
58347         * doc/functions/realloc.texi: Mention the realloc-posix module.
58348         * lib/stdlib_.h (realloc): New declaration.
58349         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58350         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
58351         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
58352         and HAVE_REALLOC_POSIX.
58353
58354 2007-09-09  Bruno Haible  <bruno@clisp.org>
58355
58356         * modules/calloc-posix: New file.
58357         * modules/calloc (Depends-on): Add calloc-posix.
58358         * lib/calloc.c: Include errno.h.
58359         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
58360         and a POSIX-compatible calloc into a single function. Set ENOMEM
58361         when returning NULL.
58362         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
58363         * doc/functions/calloc.texi: Mention the calloc-posix module.
58364         * lib/stdlib_.h (calloc): New declaration.
58365         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
58366         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
58367         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
58368         and HAVE_CALLOC_POSIX.
58369
58370 2007-09-09  Bruno Haible  <bruno@clisp.org>
58371
58372         Allow for modules to show an arbitrary notice.
58373         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
58374         * gnulib-tool: New option --extract-notice.
58375         (func_usage): Document it.
58376         (sed_extract_prog): Update.
58377         (func_get_notice): New function.
58378         (func_modules_notice): New function.
58379         (func_import, func_create_testdir): Invoke it.
58380         Suggested by Jim Meyering.
58381
58382 2007-09-09  Bruno Haible  <bruno@clisp.org>
58383
58384         * gnulib-tool: New options --verbose, --quiet.
58385         (func_usage): Document them.
58386         (verbose): New variable.
58387         (func_execute_command): New function.
58388         (func_import): Don't show the module list and the file list if
58389         $verbose < 0.
58390         (func_create_testdir): Likewise. Use func_execute_command.
58391         (func_create_megatestdir): Use func_execute_command.
58392
58393 2007-09-08  Bruno Haible  <bruno@clisp.org>
58394
58395         * gnulib-tool (func_import): Prefer rsync over wget when available,
58396         for fetching the PO files.
58397
58398 2007-09-08  Bruno Haible  <bruno@clisp.org>
58399
58400         * posix-modules: New file. Portions copied from gnulib-tool.
58401         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
58402
58403 2007-09-08  Jim Meyering  <jim@meyering.net>
58404
58405         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
58406         * lib/fpending.h: Rename from __fpending.h.
58407         * lib/fpending.c: Rename from __fpending.c.
58408         Include "fpending.h", not "__fpending.h".
58409         * lib/__fpending.h, lib/__fpending.c: Remove files.
58410         * modules/fpending (Files): Reflect new file names.
58411         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
58412
58413 2007-09-08  Bruno Haible  <bruno@clisp.org>
58414
58415         * m4/inttypes-h.m4: Remove stub file.
58416
58417 2007-09-07  Simon Josefsson  <simon@josefsson.org>
58418
58419         * doc/headers/stdint.texi: Discuss #include_next issue.
58420
58421 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
58422
58423         * build-aux/bootstrap: Remove obsolete comment about wget --help.
58424
58425 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58426
58427         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
58428         in variable name.
58429
58430 2007-09-03  Jim Meyering  <jim@meyering.net>
58431
58432         New module: git-version-gen.
58433         * modules/git-version-gen: New file.
58434
58435         Import changes from coreutils for bootstrap script.
58436
58437         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
58438
58439         bootstrap: uses rsync to download the .po files
58440         * build-aux/bootstrap (po_download_command_format): New global.
58441         (download_po_files): Use rsync.
58442         (update_po_files): Don't remove .po files after download,
58443         so future rsync runs can take advantage of the copies.
58444
58445         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
58446
58447         Solve the unnecessary-.po-file-regeneration problem once and for all.
58448         * build-aux/bootstrap (download_po_files): New function, renamed from
58449         get_translations.  Now, downloads, but doesn't update LINGUAS.
58450         (update_po_files): New function.
58451
58452         bootstrap: Ignore more.
58453         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
58454         uniwidth to e.g., lib/.gitignore.
58455         (slurp): Handle the sys_stat_.h -> sys mapping, too.
58456
58457         * build-aux/bootstrap: New setting: vc_ignore.
58458         (insert_sorted_if_absent): Create $file if absent.
58459         Adapt to new, possibly empty, list: $vc_ignore.
58460
58461         bootstrap: generate more ignorable names
58462         * build-aux/bootstrap (slurp): When generating ignorable names,
58463         also map .sin to .sed, .gperf to .c, and .y to .c.
58464
58465 2007-09-03  Jim Meyering  <jim@meyering.net>
58466
58467         * build-aux/git-version-gen: New file, from coreutils.  For details, see
58468         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
58469
58470 2007-09-02  Bruno Haible  <bruno@clisp.org>
58471
58472         Fix mis-recognition of 'mcs' on QNX 6.
58473         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
58474         output contains the string "Mono".
58475         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
58476         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
58477
58478 2007-09-01  Bruno Haible  <bruno@clisp.org>
58479
58480         Fix collision between uniwidth/* and linebreak modules.
58481         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
58482         u32_width): Remove declarations.
58483         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
58484         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
58485         streq3, streq2, streq1, streq0): Remove functions.
58486         (STREQ): Remove macro.
58487         (is_cjk_encoding): Remove function.
58488         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
58489         (uc_width, u8_width, u16_width, u32_width): Remove functions.
58490         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
58491         * NEWS: Document the change.
58492
58493 2007-09-01  Bruno Haible  <bruno@clisp.org>
58494
58495         * lib/streq.h: Add double-inclusion guard.
58496
58497 2007-09-01  Karl Berry  <karl@gnu.org>
58498
58499         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
58500
58501 2007-08-28  Jim Meyering  <jim@meyering.net>
58502
58503         Rename mreadlink_with_size to areadlink_with_size.
58504         * NEWS: Document the change.
58505         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
58506         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
58507         * lib/mreadlink.h: Rename this to...
58508         * lib/areadlink.h: ...this.
58509         * modules/mreadlink-with-size: Rename this to...
58510         * modules/areadlink-with-size: ...this.
58511         * lib/canonicalize.c: Reflect the renaming.
58512         * modules/canonicalize: Likewise.
58513
58514 2007-08-26  Bruno Haible  <bruno@clisp.org>
58515
58516         * gnulib-tool (func_import): When deciding which files to remove,
58517         consider also dangling symbolic links.
58518         Reported by Eric Blake.
58519
58520 2007-08-26  Bruno Haible  <bruno@clisp.org>
58521
58522         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
58523
58524 2007-08-23  Simon Josefsson  <simon@josefsson.org>
58525
58526         * lib/readline.c: Don't include getline.h, the prototype is now
58527         found in stdio.h.
58528
58529 2007-08-23  Jim Meyering  <jim@meyering.net>
58530
58531         Getdelim touchup.
58532         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
58533         around the funlockfile call, since funlockfile never sets errno.
58534         Don't set errno upon failed realloc.
58535
58536 2007-08-22  Eric Blake  <ebb9@byu.net>
58537
58538         Getline touchups.
58539         * lib/getdelim.c (getdelim): Revert regression that required *n to
58540         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
58541         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
58542         getdelim, rather than whether implementation is missing.
58543         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
58544         * lib/stdio_.h (getline): Also declare if replacement is
58545         required.
58546         * doc/functions/getdelim.texi: New file.
58547         * doc/functions/getline.texi: Likewise.
58548         * doc/gnulib.texi (Function Substitutes): Add new files.
58549         Reported by Bruno Haible.
58550
58551 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
58552
58553         * users.txt: Add Guile.
58554
58555 2007-08-22  Eric Blake  <ebb9@byu.net>
58556
58557         * tests/test-getdelim.c (main): Use remove, not unlink.
58558         * tests/test-getline.c (main): Likewise.
58559
58560         Move getline and getdelim into stdio.h, per POSIX 200x.
58561         * modules/getline (Files): Remove getline.h.
58562         (Depends-on): Add stdio.
58563         (configure.ac): Add module indicator.
58564         * modules/getdelim (Files): Remove getdelim.h.
58565         (Depends-on): Add stdio.
58566         (configure.ac): Add module indicator.
58567         * modules/stdio (Makefile.am): Work with new indicators.
58568         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
58569         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
58570         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
58571         * lib/getdelim.h: Delete.
58572         * lib/getline.h: Delete.
58573         * lib/stdio_.h (getdelim, getline): Declare.
58574         * modules/getdelim-tests: New module.
58575         * modules/getline-tests: Likewise.
58576         * tests/test-getdelim.c: New file.
58577         * tests/test-getline.c: Likewise.
58578         * NEWS: Document the change.
58579         * lib/getline.c: Update choice of header.
58580         * lib/csharpcomp.c: Likewise.
58581         * lib/getpass.c: Likewise.
58582         * lib/javacomp.c: Likewise.
58583         * lib/javaversion.c: Likewise.
58584         * lib/yesno.c: Likewise.
58585         * lib/getdelim.c: Likewise.
58586         (getdelim): Set errno on failure, and avoid memory leak.
58587
58588 2007-08-19  Bruno Haible  <bruno@clisp.org>
58589
58590         * modules/closein (Depends-on): Add freadahead.
58591         * lib/closein.c: Include freadahead.h.
58592         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
58593         is zero.
58594
58595 2007-08-19  Bruno Haible  <bruno@clisp.org>
58596
58597         * modules/freadahead-tests: New file.
58598         * tests/test-freadahead.sh: New file.
58599         * tests/test-freadahead.c: New file.
58600
58601         * modules/freadahead: New file.
58602         * lib/freadahead.h: New file.
58603         * lib/freadahead.c: New file.
58604         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
58605         fbufmode, fpurge, freadable, fwritable.
58606
58607 2007-08-19  Eric Blake  <ebb9@byu.net>
58608
58609         Test yesno in combination with closein.
58610         * lib/yesno.c (yesno): Document use of stdin.
58611         * modules/yesno-tests (Files): New module.
58612         * tests/test-yesno.c (main): New file.
58613         * tests/test-yesno.sh: Likewise.
58614
58615 2007-08-19  Bruno Haible  <bruno@clisp.org>
58616
58617         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
58618         * lib/fseeko.c (rpl_fseeko): Likewise.
58619         * lib/fseterr.c (fseterr): Likewise.
58620
58621 2007-08-19  Bruno Haible  <bruno@clisp.org>
58622
58623         * tests/test-lseek.c (main): Disable a test for BeOS.
58624         * doc/functions/lseek.texi: Document the BeOS bug.
58625
58626 2007-08-19  Bruno Haible  <bruno@clisp.org>
58627             Eric Blake  <ebb9@byu.net>
58628
58629         * lib/lseek.c: Include <sys/stat.h>.
58630         (rpl_lseek): Add workaround code also for Unix platforms.
58631         Needed for BeOS.
58632         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
58633         * doc/functions/lseek.texi: Document BeOS definiency.
58634
58635 2007-08-18  Bruno Haible  <bruno@clisp.org>
58636
58637         * modules/fstrcmp-tests: New file.
58638         * tests/test-fstrcmp.c: New file.
58639
58640 2007-08-18  Bruno Haible  <bruno@clisp.org>
58641
58642         * modules/fstrcmp: New file, from GNU gettext with modifications.
58643         * lib/fstrcmp.h: New file, from GNU gettext.
58644         * lib/fstrcmp.c: New file, from GNU gettext.
58645         * MODULES.html.sh (String handling): Add fstrcmp.
58646
58647 2007-08-18  Bruno Haible  <bruno@clisp.org>
58648
58649         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
58650         'bool'.
58651         (diag, compareseq): Remove const from the ctxt argument.
58652         (USE_HEURISTIC): Undefine at the end.
58653
58654 2007-08-18  Jim Meyering  <jim@meyering.net>
58655
58656         New file: lib/idcache.h
58657         * NEWS: Mention the addition.
58658         * modules/idcache (Files): Add lib/idcache.h
58659         * lib/idcache.c: Include "idcache.h".
58660         Don't include <sys/types.h>.
58661         Add a FIXME comment.
58662         Move file-scoped "static" declarations to the top.
58663         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
58664
58665 2007-08-17  Bruno Haible  <bruno@clisp.org>
58666         and Paul Eggert  <eggert@cs.ucla.edu>
58667
58668         * MODULES.html.sh: Add diffseq.
58669         * modules/diffseq: New file.
58670         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
58671         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
58672
58673 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
58674
58675         Import changes from coreutils for bootstrap script.
58676
58677         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
58678
58679         * build-aux/bootstrap (slurp): Work even in environments where
58680         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
58681         current code does not slurp files whose names start with ".", and
58682         this looks like it might be a troublesome area.
58683
58684         2007-07-11  Jim Meyering  <jim@meyering.net>
58685
58686         If there's a GPL vN copyright comment, require that N == 3.
58687
58688         2007-07-08  Jim Meyering  <jim@meyering.net>
58689
58690         Run the coreutils-specific code only if tests/Makefile.am.in exists.
58691         * build-aux/bootstrap (mam_template): Move definition out of loop.
58692
58693         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
58694
58695         * build-aux/bootstrap (symlink_to_dir): Rename function from
58696         symlink_to_gnulib.  Add a directory parameter.  Update all
58697         callers.
58698         (cp_mark_as_generated): Also check for -- and link to -- files in
58699         gl/.
58700
58701         2007-07-08  Jim Meyering  <jim@meyering.net>
58702
58703         Adapt to deeper hierarchy in gnulib.
58704         * build-aux/bootstrap (symlink_to_dir): If the destination
58705         directory doesn't exist, create it. This is required at least for
58706         "lib/uniwidth/cjk.h".
58707
58708         2007-05-15  Jim Meyering  <jim@meyering.net>
58709
58710         * build-aux/bootstrap: Now that generated Makefile.am files
58711         are no longer under version control, they must be created at
58712         bootstrap time.
58713
58714 2007-08-14  Ben Pfaff  <blp@gnu.org>
58715
58716         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
58717
58718 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
58719
58720         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
58721         given the changes below.
58722         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
58723         even on hosts that have padding bits beyond the supported 64.
58724
58725 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
58726
58727         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
58728         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
58729         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
58730         depends on it.
58731         (xstrtol_error): Remove.
58732         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
58733         but with a different signature.
58734         (ATTRIBUTE_NORETURN, __attribute__): New macros.
58735         * lib/xstrtol-error.c: Include exitfail.h.
58736         (xstrtol_fatal): New function, with a different signature from the
58737         old xstrtol_error, so that the caller need not worry about passing
58738         in an exit status, or about storage management of the option argument.
58739         (xstrtol_error): Now a static function.  Redo signature to
58740         implement xstrtol_fatal.  Output the correct number of hyphens in
58741         front of the option so that the caller need not worry about
58742         storage management.
58743         (N_): New macro.
58744         (_): Remove; not used now.
58745         * modules/xstrtol: Depend on getopt.
58746         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
58747         of old STRTOL_FATAL_ERROR macro.
58748         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
58749         of test program.
58750         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
58751         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
58752
58753 2007-08-08  Eric Blake  <ebb9@byu.net>
58754
58755         * lib/xstrtol-error.c: Add missing include.
58756
58757         Move xstrtol messages into gnulib domain, when --pobase is used.
58758         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
58759         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
58760         * modules/xstrtol (Files): Distribute new file.
58761         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
58762         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
58763         * tests/test-xstrtol.c: ...into new file.
58764         * tests/test-xstrtoul.c: Also test xstrtoul.
58765         * tests/test-xstrtoimax.c: Also test xstrtoimax.
58766         * tests/test-xstrtoumax.c: Also test xstrtoumax.
58767         * tests/test-xstrtol.sh: Drive the tests.
58768         * tests/test-xstrtoimax.sh: Likewise.
58769         * tests/test-xstrtoumax.sh: Likewise.
58770         * modules/xstrtol-tests: New module.
58771         * modules/xstrtoimax-tests: Likewise.
58772         * modules/xstrtoumax-tests: Likewise.
58773
58774 2007-08-08  Jim Meyering  <jim@meyering.net>
58775
58776         New function: mfile_name_concat.
58777         * lib/filenamecat.c (mfile_name_concat): New function, just like
58778         file_name_concat, but return NULL upon failure rather than exiting
58779         with a diagnostic.
58780         * lib/filenamecat.h: Declare it.
58781
58782 2007-08-07  Bruno Haible  <bruno@clisp.org>
58783
58784         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
58785         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
58786         warning from gcc.
58787         Reported by Eric Blake.
58788
58789 2007-08-07  Simon Josefsson  <simon@josefsson.org>
58790
58791         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
58792         * modules/crypto/arcfour (License): Likewise.
58793         * modules/crypto/des-tests (License): Likewise.
58794         * modules/crypto/gc-arctwo-tests (License): Likewise.
58795         * modules/crypto/gc-des-tests (License): Likewise.
58796         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
58797         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
58798         * modules/crypto/gc-md2-tests (License): Likewise.
58799         * modules/crypto/gc-md4-tests (License): Likewise.
58800         * modules/crypto/gc-md5-tests (License): Likewise.
58801         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
58802         * modules/crypto/gc-rijndael-tests (License): Likewise.
58803         * modules/crypto/gc-sha1-tests (License): Likewise.
58804         * modules/crypto/gc-tests (License): Likewise.
58805         * modules/crypto/hmac-md5 (License): Likewise.
58806         * modules/crypto/hmac-sha1 (License): Likewise.
58807         * modules/crypto/md2-tests (License): Likewise.
58808         * modules/crypto/md4-tests (License): Likewise.
58809         * modules/crypto/md5 (License): Likewise.
58810         * modules/crypto/rijndael (License): Likewise.
58811         * modules/crypto/sha1 (License): Likewise.
58812         * modules/memxor (License): Likewise.
58813
58814 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
58815         and Bruno Haible  <bruno@clisp.org>
58816
58817         * NEWS: Describe interface changes to human, xstrtol.
58818         * lib/human.h: Include <xstrtol.h>.
58819         (human_options): Return enum strtol_error, not int.  Remove
58820         bool arg; take int * instead.
58821         * lib/human.c: Don't include "gettext.h".
58822         (_): Remove; no longer used.
58823         Don't include <xstrtol.h>, since human.h does it.
58824         (human_options): Adjust to abovementioned interface changes.
58825         Do not report error to stderr; that's now the caller's
58826         responsibility.
58827         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
58828         interface change.
58829         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
58830         Str, Argument_type_string.  All uses changed.  Put " argument"
58831         in diagnostics to make them clearer.  Change wording of suffix
58832         message for clarity.
58833         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
58834         Argument_type_string.
58835         (STRTOL_FATAL_WARN): Remove; no longer used.
58836         * modules/human (Depends-on): Remove gettext-h.
58837
58838 2007-08-06  Simon Josefsson  <simon@josefsson.org>
58839
58840         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
58841
58842 2007-07-31  Bruno Haible  <bruno@clisp.org>
58843
58844         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
58845         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
58846         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
58847
58848 2007-07-31  Bruno Haible  <bruno@clisp.org>
58849
58850         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
58851         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
58852
58853 2007-07-30  Bruno Haible  <bruno@clisp.org>
58854
58855         * modules/base64 (License): Use the synonymous term "LGPLv2+".
58856         * modules/c-ctype (License): Likewise.
58857         * modules/c-strcase (License): Likewise.
58858         * modules/check-version (License): Likewise.
58859         * modules/iconv (License): Likewise.
58860         * modules/iconv_open (License): Likewise.
58861         * modules/read-file (License): Likewise.
58862         * modules/striconv (License): Likewise.
58863         * modules/strverscmp (License): Likewise.
58864         * modules/vasprintf (License): Likewise.
58865         * modules/crypto/des (License): Likewise.
58866         * modules/crypto/gc (License): Likewise.
58867         * modules/crypto/gc-arcfour (License): Likewise.
58868         * modules/crypto/gc-arctwo (License): Likewise.
58869         * modules/crypto/gc-des (License): Likewise.
58870         * modules/crypto/gc-hmac-md5 (License): Likewise.
58871         * modules/crypto/gc-hmac-sha1 (License): Likewise.
58872         * modules/crypto/gc-md2 (License): Likewise.
58873         * modules/crypto/gc-md4 (License): Likewise.
58874         * modules/crypto/gc-md5 (License): Likewise.
58875         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
58876         * modules/crypto/gc-random (License): Likewise.
58877         * modules/crypto/gc-rijndael (License): Likewise.
58878         * modules/crypto/gc-sha1 (License): Likewise.
58879         * modules/crypto/md2 (License): Likewise.
58880         * modules/crypto/md4 (License): Likewise.
58881
58882 2007-07-30  Jim Meyering  <jim@meyering.net>
58883
58884         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
58885         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
58886         it has valid stat data.  This bug would cause du not to count the
58887         sizes of inaccessible directories.
58888         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
58889         in <http://bugzilla.redhat.com/250077>.
58890
58891 2007-07-25  Peter O'Gorman  <peter@pogma.com>
58892             Bruno Haible  <bruno@clisp.org>
58893
58894         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
58895         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
58896         #include_next, gives a diagnostic about it, but reports no error in
58897         the exit code.
58898         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
58899
58900 2007-07-24  Ben Pfaff  <blp@gnu.org>
58901
58902         Improve name: "count-one-bits" is better than "popcount".
58903         * MODULES.html.sh: Update name.
58904         * lib/popcount.h: Renamed lib/count-one-bits.h.
58905         (popcount): Renamed count_one_bits.
58906         (popcountl): Renamed count_one_bits_l.
58907         (popcountll): Renamed count_one_bits_ll.
58908         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
58909         * modules/popcount: Renamed module/count-one-bits.
58910         * modules/popcount-tests: Renamed module/count-one-bits-tests.
58911         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
58912
58913 2007-07-23  Ben Pfaff  <blp@gnu.org>
58914
58915         * lib/popcount.h (popcount32): Reduce size of constants, to allow
58916         better code generation, and add U to large constants to avoid
58917         warnings, in non-GCC case.
58918         Suggested by Bruno Haible.
58919
58920 2007-07-23  Ben Pfaff  <blp@gnu.org>
58921
58922         * lib/popcount.h: Use verify_true instead of if...abort.
58923         * modules/popcount: Depend on verify module.
58924         Suggested by Jim Meyering.
58925
58926 2007-07-23  Bruno Haible  <bruno@clisp.org>
58927
58928         * gnulib-tool (func_import): Create a .cvsignore file also when the
58929         directory is not yet in CVS but the toplevel directory is. When
58930         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
58931         Reported by Karl Berry.
58932
58933 2007-07-22  Ben Pfaff  <blp@gnu.org>
58934
58935         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
58936         case.
58937         Suggested by Eric Blake.
58938
58939 2007-07-22  Ben Pfaff  <blp@gnu.org>
58940
58941         New module: popcount.
58942         * MODULES.html.sh: Add popcount.
58943         * modules/popcount: New file.
58944         * modules/popcount-tests: New file.
58945         * tests/test-popcount.c: New file.
58946         * lib/popcount.h: New file.
58947         * m4/popcount.m4: New file.
58948
58949 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
58950
58951         * build-aux/announce-gen: Update to GPLv3.
58952
58953         * build-aux/config.guess: Update from config.
58954
58955 2007-07-21  Bruno Haible  <bruno@clisp.org>
58956
58957         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
58958         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
58959
58960 2007-07-20  Jim Meyering  <jim@meyering.net>
58961
58962         * check-module: Diagnose a self-dependency.
58963
58964 2007-07-19  Bruno Haible  <bruno@clisp.org>
58965
58966         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
58967         empty.
58968         Reported by Eric Blake.
58969
58970 2007-07-18  Bruno Haible  <bruno@clisp.org>
58971
58972         * gnulib-tool: New options --po-base, --po-domain.
58973         (func_usage): Document them.
58974         (pobase, po_domain): New variables.
58975         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
58976         DEFAULT_TEXT_DOMAIN.
58977         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
58978         (func_import): Consider pobase and po_domain. Create a po/ directory.
58979         (func_create_testdir): Set pobase and po_domain to empty.
58980         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
58981         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
58982
58983 2007-07-18  Bruno Haible  <bruno@clisp.org>
58984
58985         * gnulib-tool (func_get_automake_snippet): Synthesize also an
58986         EXTRA_DIST augmentation for files in build-aux/.
58987
58988 2007-07-16  Bruno Haible  <bruno@clisp.org>
58989
58990         * modules/lseek (License): Use the synonymous term "LGPLv2+".
58991         * modules/getdelim (License): Likewise.
58992
58993 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58994
58995         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
58996         * modules/d-type (License): Likewise.
58997         * modules/extensions (License): Likewise.
58998         * modules/fnmatch (License): Likewise.
58999         * modules/fseeko (License): Likewise.
59000         * modules/getaddrinfo (License): Likewise.
59001         * modules/getline (License): Likewise.
59002         * modules/getlogin_r (License): Likewise.
59003         * modules/getpass (License): Likewise.
59004         * modules/gettimeofday (License): Likewise.
59005         * modules/glob (License): Likewise.
59006         * modules/inet_ntop (License): Likewise.
59007         * modules/malloc (License): Likewise.
59008         * modules/malloca (License): Likewise.
59009         * modules/memmem (License): Likewise.
59010         * modules/mempcpy (License): Likewise.
59011         * modules/memset (License): Likewise.
59012         * modules/minmax (License): Likewise.
59013         * modules/mktime (License): Likewise.
59014         * modules/netinet_in (License): Likewise.
59015         * modules/pathmax (License): Likewise.
59016         * modules/poll (License): Likewise.
59017         * modules/regex (License): Likewise.
59018         * modules/snprintf (License): Likewise.
59019         * modules/stdbool (License): Likewise.
59020         * modules/stdint (License): Likewise.
59021         * modules/stdio (License): Likewise.
59022         * modules/strcase (License): Likewise.
59023         * modules/strcasestr (License): Likewise.
59024         * modules/strdup (License): Likewise.
59025         * modules/string (License): Likewise.
59026         * modules/strndup (License): Likewise.
59027         * modules/strnlen (License): Likewise.
59028         * modules/strpbrk (License): Likewise.
59029         * modules/strptime (License): Likewise.
59030         * modules/strsep (License): Likewise.
59031         * modules/sys_select (License): Likewise.
59032         * modules/sys_socket (License): Likewise.
59033         * modules/sys_stat (License): Likewise.
59034         * modules/sys_time (License): Likewise.
59035         * modules/time (License): Likewise.
59036         * modules/time_r (License): Likewise.
59037         * modules/timegm (License): Likewise.
59038         * modules/unistd (License): Likewise.
59039         * modules/vsnprintf (License): Likewise.
59040         * modules/wctype (License): Likewise.
59041
59042 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59043
59044         * modules/argz (License): LGPLv2+.
59045
59046 2007-07-15  Karl Berry  <karl@gnu.org>
59047
59048         * doc/gnulib.texi: revise node structure per new fdl.texi.
59049
59050 2007-07-14  Bruno Haible  <bruno@clisp.org>
59051
59052         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
59053         the output file.
59054         * lib/uniname/uninames.h: Regenerated.
59055
59056 2007-07-14  Karl Berry  <karl@gnu.org>
59057
59058         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
59059         omitting sectioning and index commands.
59060
59061 2007-07-13  Bruno Haible  <bruno@clisp.org>
59062
59063         New gnulib-tool option --more-symlinks.
59064         * gnulib-tool (func_usage): Document --more-symlinks.
59065         (do_copyrights): New variable.
59066         Recognize option --more-symlinks.
59067         (func_import): Don't add a copyright notice transform to
59068         sed_transform_lib_file if do_copyrights is empty.
59069
59070 2007-07-13  Bruno Haible  <bruno@clisp.org>
59071
59072         * lib/vasnprintf.c (decimal_point_char): Define also if
59073         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
59074         && !NEED_PRINTF_DIRECTIVE_A.
59075         Reported by Clemens Koller <clemens.koller@anagramm.de> via
59076         Gary V. Vaughan <gary@gnu.org>.
59077
59078 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
59079
59080         * lib/inttypes_.h: Undo previous change, since it was fixed
59081         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
59082
59083 2007-07-13  Bruno Haible  <bruno@clisp.org>
59084
59085         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
59086         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
59087
59088 2007-07-13  Jim Meyering  <jim@meyering.net>
59089
59090         df: Don't fail for Tru64's "file-on-file mount".
59091         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
59092         so we fall through and use statfs instead.  Details here:
59093         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
59094         Reported by Albert Chin.
59095
59096 2007-07-13  Bruno Haible  <bruno@clisp.org>
59097
59098         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
59099         * modules/configmake (License): Likewise.
59100         * modules/gettext (License): Likewise.
59101         * modules/gettext-h (License): Likewise.
59102         * modules/include_next (License): Likewise.
59103         * modules/link-warning (License): Likewise.
59104         * modules/localcharset (License): Likewise.
59105         * modules/localename (License): Likewise.
59106         * modules/lock (License): Likewise.
59107         * modules/relocatable-lib-lgpl (License): Likewise.
59108         * modules/size_max (License): Likewise.
59109         * modules/vasnprintf (License): Likewise.
59110         * modules/wchar (License): Likewise.
59111         * modules/xsize (License): Likewise.
59112
59113 2007-07-13  Bruno Haible  <bruno@clisp.org>
59114
59115         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
59116         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
59117
59118 2007-07-12  Bruno Haible  <bruno@clisp.org>
59119
59120         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
59121         in the modules files.
59122
59123 2007-07-11  Karl Berry  <karl@gnu.org>
59124
59125         * MODULES.html.sh (func_module): use
59126          sed -e '\|^'"${includefile}"'$|d'
59127          instead of /.../d, to avoid errors on $includefile's containing /.
59128
59129 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
59130
59131         * gnulib-tool (func_import): Avoid duplication of --avoid
59132         statements
59133         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
59134         names to `_' in variable names.
59135
59136 2007-07-10  Eric Blake  <ebb9@byu.net>
59137
59138         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
59139         * NEWS: Document this change.
59140
59141 2007-07-08  Bruno Haible  <bruno@clisp.org>
59142
59143         Update to Unicode 5.0.
59144         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
59145         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
59146         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
59147         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
59148         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
59149         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
59150         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
59151         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
59152         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
59153         U+10A3F, U+1D242..U+1D244.
59154         (nonspacing_table_ind): Update.
59155         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
59156         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
59157
59158 2007-07-08  Bruno Haible  <bruno@clisp.org>
59159
59160         Update to Unicode 5.0.
59161         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
59162         code transform. Extend the name index field of unicode_name_to_code and
59163         unicode_code_to_name from 16 to 24 bits.
59164         * lib/uniname/uniname.c (unicode_character_name,
59165         unicode_name_character): Add the range 0x12xxx to the code transform.
59166         * lib/uniname/uninames.h: Regenerated.
59167         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
59168
59169 2007-07-07  Bruno Haible  <bruno@clisp.org>
59170
59171         * modules/wcwidth-tests: New file.
59172         * tests/test-wcwidth.c: New file.
59173
59174         Work around MacOS X wcwidth() bug.
59175         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
59176         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
59177         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
59178         original wcwidth in non-UTF-8 locales.
59179         * modules/wcwidth (Depends-on): Add localcharset, streq,
59180         uniwidth/width.
59181         * doc/functions/wcwidth.texi: Update.
59182
59183 2007-07-07  Bruno Haible  <bruno@clisp.org>
59184
59185         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
59186         (wcwidth): New declaration.
59187         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
59188         macros.
59189         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
59190         here. Prepare for creating <wchar.h> unconditionally.
59191         * modules/wchar (Depends-on): Add link-warning.
59192         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
59193         REPLACE_WCWIDTH, and GL_LINK_WARNING.
59194         * lib/wcwidth.h: Remove file.
59195         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
59196         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
59197         * modules/wcwidth (Files): Remove lib/wcwidth.h.
59198         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
59199         (Include): Replace wcwidth.h with <wchar.h>.
59200         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
59201         * lib/mbchar.h: Don't include wcwidth.h.
59202         * lib/mbswidth.c: Likewise.
59203         * NEWS: Mention the change.
59204
59205 2007-07-07  Bruno Haible  <bruno@clisp.org>
59206
59207         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
59208         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
59209         definition with an external declaration.
59210         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
59211         defined as a function. Remove AC_C_INLINE requirement.
59212         * modules/wcwidth (Files): Add lib/wcwidth.c.
59213         (Makefile.am): Remove redundant statement.
59214
59215 2007-07-07  Bruno Haible  <bruno@clisp.org>
59216
59217         * MODULES.html.sh (Unicode string functions): Add the new modules.
59218
59219         * tests/uniwidth/test-u32-strwidth.c: New file.
59220         * modules/uniwidth/u32-strwidth-tests: New file.
59221
59222         * lib/uniwidth/u32-strwidth.c: New file.
59223         * modules/uniwidth/u32-strwidth: New file.
59224
59225         * tests/uniwidth/test-u16-strwidth.c: New file.
59226         * modules/uniwidth/u16-strwidth-tests: New file.
59227
59228         * lib/uniwidth/u16-strwidth.c: New file.
59229         * modules/uniwidth/u16-strwidth: New file.
59230
59231         * tests/uniwidth/test-u8-strwidth.c: New file.
59232         * modules/uniwidth/u8-strwidth-tests: New file.
59233
59234         * lib/uniwidth/u8-strwidth.c: New file.
59235         * modules/uniwidth/u8-strwidth: New file.
59236
59237         * tests/uniwidth/test-u32-width.c: New file.
59238         * modules/uniwidth/u32-width-tests: New file.
59239
59240         * lib/uniwidth/u32-width.c: New file.
59241         * modules/uniwidth/u32-width: New file.
59242
59243         * tests/uniwidth/test-u16-width.c: New file.
59244         * modules/uniwidth/u16-width-tests: New file.
59245
59246         * lib/uniwidth/u16-width.c: New file.
59247         * modules/uniwidth/u16-width: New file.
59248
59249         * tests/uniwidth/test-u8-width.c: New file.
59250         * modules/uniwidth/u8-width-tests: New file.
59251
59252         * lib/uniwidth/u8-width.c: New file.
59253         * modules/uniwidth/u8-width: New file.
59254
59255         * tests/uniwidth/test-uc_width.c: New file.
59256         * modules/uniwidth/width-tests: New file.
59257
59258         * lib/uniwidth/width.c: New file, from GNU libiconv.
59259         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
59260         * modules/uniwidth/width: New file.
59261
59262         * lib/uniwidth.h: New file, from GNU libiconv.
59263         * modules/uniwidth/base: New file.
59264
59265 2007-07-07  Bruno Haible  <bruno@clisp.org>
59266
59267         * lib/uniname.h: New file, from GNU gettext.
59268         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
59269         * lib/uniname/uninames.h: New file, from GNU gettext.
59270         * lib/uniname/uniname.c: New file, from GNU gettext.
59271         * tests/uniname/test-uninames.sh: New file.
59272         * tests/uniname/test-uninames.c: New file, from GNU gettext.
59273         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
59274         * modules/uniname/base: New file.
59275         * modules/uniname/uniname: New file.
59276         * modules/uniname/uniname-tests: New file.
59277         * MODULES.html.sh (Unicode string functions): Add the new modules.
59278
59279 2007-07-06  Bruno Haible  <bruno@clisp.org>
59280
59281         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
59282
59283 2007-07-06  Bruno Haible  <bruno@clisp.org>
59284
59285         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
59286         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
59287         includes <cygwin/sys_time.h> which includes <sys/select.h> which
59288         include <sys/time.h>.
59289         Reported by Eric Blake.
59290
59291 2007-07-06  Eric Blake  <ebb9@byu.net>
59292
59293         Fix testing canonicalize on cygwin.
59294         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
59295         Revert patch from 2007-06-19.
59296         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
59297         canonicalize module is also in use.
59298         * tests/test-canonicalize.c: New file.
59299         * tests/test-canonicalize.sh: Likewise.
59300         * modules/canonicalize-tests: Likewise.
59301
59302 2007-07-06  Jim Meyering  <jim@meyering.net>
59303
59304         * lib/getugroups.c (getugroups): Detect getgrent failure.
59305         Adjust comment to reflect reality: this function may return -1.
59306
59307 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
59308
59309         * build-aux/bootstrap (TP_URL,get_translations): Update to use
59310         the new TP address.
59311         (usage): Fix typo
59312         (gnulib_mk): New variable.
59313
59314 2007-07-05  Jim Meyering  <jim@meyering.net>
59315
59316         Don't let endgrent clobber errno, no matter how improbable.
59317         * lib/getugroups.c (getugroups): Save and restore errno around
59318         endgrent call.
59319
59320         Close the group DB even when failing with 2^31 or more members.
59321         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
59322
59323 2007-07-04  Jim Meyering  <jim@meyering.net>
59324
59325         * lib/getugroups.h: New file.
59326         * lib/getugroups.c: Include "getugroups.h".
59327         Remove uses of "register" keyword.
59328         Move local variable, "cp", down into scope where used.
59329         Give "username" parameter the "const" attribute.
59330         * modules/getugroups (Files): Add lib/getugroups.h
59331
59332 2007-07-04  Karl Berry  <karl@gnu.org>
59333
59334         * MODULES.html.sh (func_all_modules): Complete rename of
59335         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
59336
59337 2007-07-02  Bruno Haible  <bruno@clisp.org>
59338
59339         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
59340         mode, when inttypes.h comes from gnulib.
59341         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59342
59343 2007-07-02  Simon Josefsson  <simon@josefsson.org>
59344
59345         * NEWS: Mention lgpl module name change.
59346
59347         * modules/lgpl-2.1: Renamed from lgpl.
59348
59349         * NEWS: Mention gpl module name change.
59350
59351         * modules/gpl-3.0: New file, based on gpl-2.0.
59352
59353         * modules/gpl-2.0: Renamed from gpl.
59354
59355         * modules/gpl: Fix filename, doc/gpl.texi is now found at
59356         doc/gpl-2.0.texi.
59357
59358 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
59359
59360         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
59361         #define __STDC_LIMIT_MACROS temporarily while including
59362         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
59363         Problem reported by Joel E. Denny in
59364         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
59365
59366 2007-07-01  Bruno Haible  <bruno@clisp.org>
59367
59368         * lib/unistdio.h: New file.
59369         * lib/unistdio/u-asnprintf.h: New file.
59370         * lib/unistdio/u-asprintf.h: New file.
59371         * lib/unistdio/u-printf-args.c: New file.
59372         * lib/unistdio/u-printf-args.h: New file.
59373         * lib/unistdio/u-printf-parse.h: New file.
59374         * lib/unistdio/u-snprintf.h: New file.
59375         * lib/unistdio/u-sprintf.h: New file.
59376         * lib/unistdio/u-vasprintf.h: New file.
59377         * lib/unistdio/u-vsnprintf.h: New file.
59378         * lib/unistdio/u-vsprintf.h: New file.
59379         * lib/unistdio/ulc-asnprintf.c: New file.
59380         * lib/unistdio/ulc-asprintf.c: New file.
59381         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
59382         * lib/unistdio/ulc-printf-parse.c: New file.
59383         * lib/unistdio/ulc-snprintf.c: New file.
59384         * lib/unistdio/ulc-sprintf.c: New file.
59385         * lib/unistdio/ulc-vasnprintf.c: New file.
59386         * lib/unistdio/ulc-vasprintf.c: New file.
59387         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
59388         * lib/unistdio/ulc-vsnprintf.c: New file.
59389         * lib/unistdio/ulc-vsprintf.c: New file.
59390         * lib/unistdio/u8-asnprintf.c: New file.
59391         * lib/unistdio/u8-asprintf.c: New file.
59392         * lib/unistdio/u8-printf-parse.c: New file.
59393         * lib/unistdio/u8-snprintf.c: New file.
59394         * lib/unistdio/u8-sprintf.c: New file.
59395         * lib/unistdio/u8-vasnprintf.c: New file.
59396         * lib/unistdio/u8-vasprintf.c: New file.
59397         * lib/unistdio/u8-vsnprintf.c: New file.
59398         * lib/unistdio/u8-vsprintf.c: New file.
59399         * lib/unistdio/u8-u8-asnprintf.c: New file.
59400         * lib/unistdio/u8-u8-asprintf.c: New file.
59401         * lib/unistdio/u8-u8-snprintf.c: New file.
59402         * lib/unistdio/u8-u8-sprintf.c: New file.
59403         * lib/unistdio/u8-u8-vasnprintf.c: New file.
59404         * lib/unistdio/u8-u8-vasprintf.c: New file.
59405         * lib/unistdio/u8-u8-vsnprintf.c: New file.
59406         * lib/unistdio/u8-u8-vsprintf.c: New file.
59407         * lib/unistdio/u16-asnprintf.c: New file.
59408         * lib/unistdio/u16-asprintf.c: New file.
59409         * lib/unistdio/u16-printf-parse.c: New file.
59410         * lib/unistdio/u16-snprintf.c: New file.
59411         * lib/unistdio/u16-sprintf.c: New file.
59412         * lib/unistdio/u16-vasnprintf.c: New file.
59413         * lib/unistdio/u16-vasprintf.c: New file.
59414         * lib/unistdio/u16-vsnprintf.c: New file.
59415         * lib/unistdio/u16-vsprintf.c: New file.
59416         * lib/unistdio/u16-u16-asnprintf.c: New file.
59417         * lib/unistdio/u16-u16-asprintf.c: New file.
59418         * lib/unistdio/u16-u16-snprintf.c: New file.
59419         * lib/unistdio/u16-u16-sprintf.c: New file.
59420         * lib/unistdio/u16-u16-vasnprintf.c: New file.
59421         * lib/unistdio/u16-u16-vasprintf.c: New file.
59422         * lib/unistdio/u16-u16-vsnprintf.c: New file.
59423         * lib/unistdio/u16-u16-vsprintf.c: New file.
59424         * lib/unistdio/u32-asnprintf.c: New file.
59425         * lib/unistdio/u32-asprintf.c: New file.
59426         * lib/unistdio/u32-printf-parse.c: New file.
59427         * lib/unistdio/u32-snprintf.c: New file.
59428         * lib/unistdio/u32-sprintf.c: New file.
59429         * lib/unistdio/u32-vasnprintf.c: New file.
59430         * lib/unistdio/u32-vasprintf.c: New file.
59431         * lib/unistdio/u32-vsnprintf.c: New file.
59432         * lib/unistdio/u32-vsprintf.c: New file.
59433         * lib/unistdio/u32-u32-asnprintf.c: New file.
59434         * lib/unistdio/u32-u32-asprintf.c: New file.
59435         * lib/unistdio/u32-u32-snprintf.c: New file.
59436         * lib/unistdio/u32-u32-sprintf.c: New file.
59437         * lib/unistdio/u32-u32-vasnprintf.c: New file.
59438         * lib/unistdio/u32-u32-vasprintf.c: New file.
59439         * lib/unistdio/u32-u32-vsnprintf.c: New file.
59440         * lib/unistdio/u32-u32-vsprintf.c: New file.
59441         * tests/unistdio/test-ulc-asnprintf1.c: New file.
59442         * tests/unistdio/test-ulc-asnprintf1.h: New file.
59443         * tests/unistdio/test-ulc-printf1.h: New file.
59444         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
59445         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
59446         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
59447         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
59448         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
59449         * tests/unistdio/test-ulc-vasprintf1.c: New file.
59450         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
59451         * tests/unistdio/test-ulc-vsprintf1.c: New file.
59452         * tests/unistdio/test-u8-asnprintf1.c: New file.
59453         * tests/unistdio/test-u8-asnprintf1.h: New file.
59454         * tests/unistdio/test-u8-printf1.h: New file.
59455         * tests/unistdio/test-u8-vasnprintf1.c: New file.
59456         * tests/unistdio/test-u8-vasnprintf2.c: New file.
59457         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
59458         * tests/unistdio/test-u8-vasnprintf3.c: New file.
59459         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
59460         * tests/unistdio/test-u8-vasprintf1.c: New file.
59461         * tests/unistdio/test-u8-vsnprintf1.c: New file.
59462         * tests/unistdio/test-u8-vsprintf1.c: New file.
59463         * tests/unistdio/test-u16-asnprintf1.c: New file.
59464         * tests/unistdio/test-u16-asnprintf1.h: New file.
59465         * tests/unistdio/test-u16-printf1.h: New file.
59466         * tests/unistdio/test-u16-vasnprintf1.c: New file.
59467         * tests/unistdio/test-u16-vasnprintf2.c: New file.
59468         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
59469         * tests/unistdio/test-u16-vasnprintf3.c: New file.
59470         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
59471         * tests/unistdio/test-u16-vasprintf1.c: New file.
59472         * tests/unistdio/test-u16-vsnprintf1.c: New file.
59473         * tests/unistdio/test-u16-vsprintf1.c: New file.
59474         * tests/unistdio/test-u32-asnprintf1.c: New file.
59475         * tests/unistdio/test-u32-asnprintf1.h: New file.
59476         * tests/unistdio/test-u32-printf1.h: New file.
59477         * tests/unistdio/test-u32-vasnprintf1.c: New file.
59478         * tests/unistdio/test-u32-vasnprintf2.c: New file.
59479         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
59480         * tests/unistdio/test-u32-vasnprintf3.c: New file.
59481         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
59482         * tests/unistdio/test-u32-vasprintf1.c: New file.
59483         * tests/unistdio/test-u32-vsnprintf1.c: New file.
59484         * tests/unistdio/test-u32-vsprintf1.c: New file.
59485         * modules/unistdio/base: New file.
59486         * modules/unistdio/u-printf-args: New file.
59487         * modules/unistdio/ulc-asnprintf: New file.
59488         * modules/unistdio/ulc-asprintf: New file.
59489         * modules/unistdio/ulc-fprintf: New file.
59490         * modules/unistdio/ulc-printf-parse: New file.
59491         * modules/unistdio/ulc-snprintf: New file.
59492         * modules/unistdio/ulc-sprintf: New file.
59493         * modules/unistdio/ulc-vasnprintf: New file.
59494         * modules/unistdio/ulc-vasprintf: New file.
59495         * modules/unistdio/ulc-vfprintf: New file.
59496         * modules/unistdio/ulc-vsnprintf: New file.
59497         * modules/unistdio/ulc-vsprintf: New file.
59498         * modules/unistdio/u8-asnprintf: New file.
59499         * modules/unistdio/u8-asprintf: New file.
59500         * modules/unistdio/u8-printf-parse: New file.
59501         * modules/unistdio/u8-snprintf: New file.
59502         * modules/unistdio/u8-sprintf: New file.
59503         * modules/unistdio/u8-vasnprintf: New file.
59504         * modules/unistdio/u8-vasprintf: New file.
59505         * modules/unistdio/u8-vsnprintf: New file.
59506         * modules/unistdio/u8-vsprintf: New file.
59507         * modules/unistdio/u8-u8-asnprintf: New file.
59508         * modules/unistdio/u8-u8-asprintf: New file.
59509         * modules/unistdio/u8-u8-snprintf: New file.
59510         * modules/unistdio/u8-u8-sprintf: New file.
59511         * modules/unistdio/u8-u8-vasnprintf: New file.
59512         * modules/unistdio/u8-u8-vasprintf: New file.
59513         * modules/unistdio/u8-u8-vsnprintf: New file.
59514         * modules/unistdio/u8-u8-vsprintf: New file.
59515         * modules/unistdio/u16-asnprintf: New file.
59516         * modules/unistdio/u16-asprintf: New file.
59517         * modules/unistdio/u16-printf-parse: New file.
59518         * modules/unistdio/u16-snprintf: New file.
59519         * modules/unistdio/u16-sprintf: New file.
59520         * modules/unistdio/u16-vasnprintf: New file.
59521         * modules/unistdio/u16-vasprintf: New file.
59522         * modules/unistdio/u16-vsnprintf: New file.
59523         * modules/unistdio/u16-vsprintf: New file.
59524         * modules/unistdio/u16-u16-asnprintf: New file.
59525         * modules/unistdio/u16-u16-asprintf: New file.
59526         * modules/unistdio/u16-u16-snprintf: New file.
59527         * modules/unistdio/u16-u16-sprintf: New file.
59528         * modules/unistdio/u16-u16-vasnprintf: New file.
59529         * modules/unistdio/u16-u16-vasprintf: New file.
59530         * modules/unistdio/u16-u16-vsnprintf: New file.
59531         * modules/unistdio/u16-u16-vsprintf: New file.
59532         * modules/unistdio/u32-asnprintf: New file.
59533         * modules/unistdio/u32-asprintf: New file.
59534         * modules/unistdio/u32-printf-parse: New file.
59535         * modules/unistdio/u32-snprintf: New file.
59536         * modules/unistdio/u32-sprintf: New file.
59537         * modules/unistdio/u32-vasnprintf: New file.
59538         * modules/unistdio/u32-vasprintf: New file.
59539         * modules/unistdio/u32-vsnprintf: New file.
59540         * modules/unistdio/u32-vsprintf: New file.
59541         * modules/unistdio/u32-u32-asnprintf: New file.
59542         * modules/unistdio/u32-u32-asprintf: New file.
59543         * modules/unistdio/u32-u32-snprintf: New file.
59544         * modules/unistdio/u32-u32-sprintf: New file.
59545         * modules/unistdio/u32-u32-vasnprintf: New file.
59546         * modules/unistdio/u32-u32-vasprintf: New file.
59547         * modules/unistdio/u32-u32-vsnprintf: New file.
59548         * modules/unistdio/u32-u32-vsprintf: New file.
59549         * modules/unistdio/ulc-asnprintf-tests: New file.
59550         * modules/unistdio/ulc-vasnprintf-tests: New file.
59551         * modules/unistdio/ulc-vasprintf-tests: New file.
59552         * modules/unistdio/ulc-vsnprintf-tests: New file.
59553         * modules/unistdio/ulc-vsprintf-tests: New file.
59554         * modules/unistdio/u8-asnprintf-tests: New file.
59555         * modules/unistdio/u8-vasnprintf-tests: New file.
59556         * modules/unistdio/u8-vasprintf-tests: New file.
59557         * modules/unistdio/u8-vsnprintf-tests: New file.
59558         * modules/unistdio/u8-vsprintf-tests: New file.
59559         * modules/unistdio/u16-asnprintf-tests: New file.
59560         * modules/unistdio/u16-vasnprintf-tests: New file.
59561         * modules/unistdio/u16-vasprintf-tests: New file.
59562         * modules/unistdio/u16-vsnprintf-tests: New file.
59563         * modules/unistdio/u16-vsprintf-tests: New file.
59564         * modules/unistdio/u32-asnprintf-tests: New file.
59565         * modules/unistdio/u32-vasnprintf-tests: New file.
59566         * modules/unistdio/u32-vasprintf-tests: New file.
59567         * modules/unistdio/u32-vsnprintf-tests: New file.
59568         * modules/unistdio/u32-vsprintf-tests: New file.
59569         * MODULES.html.sh (Unicode string functions): Add the new modules.
59570
59571 2007-07-01  Bruno Haible  <bruno@clisp.org>
59572
59573         * lib/sprintf.c (sprintf): Limit the available length estimation,
59574         to avoid address wraparound.
59575         * lib/vsprintf.c (vsprintf): Likewise.
59576         * modules/sprintf-posix (Dependencies): Add stdint.
59577         * modules/vsprintf-posix (Dependencies): Likewise.
59578
59579 2007-07-01  Bruno Haible  <bruno@clisp.org>
59580
59581         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
59582         Windows PATH as well. Conservative double-quoting. Comments.
59583
59584 2007-07-01  Bruno Haible  <bruno@clisp.org>
59585             Eric Blake  <ebb9@byu.net>
59586             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59587
59588         * gnulib-tool (self_abspathname): Fix algorithm to cope with
59589         empty components in $PATH, denoting '.'.
59590
59591 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59592
59593         * gnulib-tool: Fix indentation.
59594         (func_create_megatestdir): Likewise.
59595         Report by Bruno Haible.
59596
59597 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59598
59599         Sync from Automake.
59600         * build-aux/gnupload: Fix shell portability issues with for loops.
59601         Report by Karl Berry.
59602
59603 2007-06-29  Simon Josefsson  <simon@josefsson.org>
59604
59605         * build-aux/maint.mk (POURL): Use translationproject.org.
59606
59607 2007-06-27  Simon Josefsson  <simon@josefsson.org>
59608             Bruno Haible  <bruno@clisp.org>
59609
59610         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
59611         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
59612         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
59613         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
59614         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
59615
59616 2007-06-27  Bruno Haible  <bruno@clisp.org>
59617
59618         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
59619         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
59620
59621 2007-06-26  Karl Berry  <karl@gnu.org>
59622
59623         * MODULES.html.sh: remove xreadlink-with-size.
59624
59625 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59626
59627         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
59628         method that I hope also handles the double-include problem noted
59629         by Bruno Haible in
59630         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
59631
59632 2007-06-23  Bruno Haible  <bruno@clisp.org>
59633
59634         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59635         Don't let the 'mostlyclean' target fail if the last subdirectory could
59636         not be removed.
59637         Reported by Karl Berry.
59638
59639 2007-06-23  Bruno Haible  <bruno@clisp.org>
59640
59641         * gnulib-tool (echo): Add a speedier workaround for ksh.
59642         * tests/test-echo.sh: Likewise.
59643
59644 2007-06-23  Bruno Haible  <bruno@clisp.org>
59645
59646         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
59647         * tests/test-echo.sh: Likewise.
59648
59649 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59650
59651         * gnulib-tool (IFS): Initialize early, so we don't set it to
59652         empty later.
59653         (self_abspathname): Rewrite algorithm to set it, reindent.
59654         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
59655         (func_create_megatestdir): Merge some sed scripts.
59656
59657 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59658
59659         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
59660         exposed by Sun Studio 11 cc on Solaris 8.
59661
59662 2007-06-22  Bruno Haible  <bruno@clisp.org>
59663
59664         * gnulib-tool (echo): Ensure the echo primitive does not interpret
59665         backslashes.
59666         * tests/test-echo.sh: New file.
59667
59668 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59669
59670         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
59671         simplify `sed_replace_build_aux' scripts, they are portable but
59672         echoing them with `echo' is not.
59673         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
59674
59675 2007-06-21  Karl Berry  <karl@gnu.org>
59676
59677         * config/srclist.txt: guess we can't handle the licenses via
59678         srclist at the moment.
59679
59680 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
59681
59682         * MODULES.html.sh: Add include_next.
59683         * modules/include_next: New file.
59684
59685 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
59686
59687         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
59688         INCLUDE_NEXT.
59689         (gl_CHECK_NEXT_HEADERS): New macro.
59690         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
59691         the obsolescent gl_ABSOLUTE_HEADER.
59692         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
59693         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
59694         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
59695         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
59696         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
59697         * m4/math_h.m4 (gl_MATH_H): Likewise.
59698         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
59699         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
59700         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
59701         * m4/stdint.m4 (gl_STDINT_H): Likewise.
59702         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
59703         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
59704         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
59705         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59706         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59707         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
59708         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
59709         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
59710         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
59711         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
59712         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
59713         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
59714         * m4/inttypes.m4 (gl_INTTYPES_H): Define
59715         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
59716         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
59717         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
59718         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
59719         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
59720         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
59721         * lib/float_.h: Likewise.
59722         * lib/inttypes_.h: Likewise.
59723         * lib/math_.h: Likewise.
59724         * lib/search_.h: Likewise.
59725         * lib/signal_.h: Likewise.
59726         * lib/stdint_.h: Likewise.
59727         * lib/stdio_.h: Likewise.
59728         * lib/stdlib_.h: Likewise.
59729         * lib/string_.h: Likewise.
59730         * lib/sys_stat_.h: Likewise.
59731         * lib/sys_time_.h: Likewise.
59732         * lib/time_.h: Likewise.
59733         * lib/unistd_.h: Likewise.
59734         * lib/wchar_.h: Likewise.
59735         * lib/wctype_.h: Likewise.
59736         * lib/dirent_.h: Likewise.
59737         * lib/iconv_.h: Likewise.
59738         * lib/locale_.h: Likewise.
59739         * lib/netinet_in_.h: Likewise.
59740         * lib/sys_select_.h: Likewise.
59741         * lib/sys_socket_.h: Likewise.
59742         * lib/sysexits_.h: Likewise.
59743         * modules/fcntl (Depends-on): Depend on include_next, not
59744         absolute_header.
59745         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
59746         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
59747         * modules/fchdir: Likewise.
59748         * modules/float: Likewise.
59749         * modules/iconv_open: Likewise.
59750         * modules/inttypes: Likewise.
59751         * modules/locale: Likewise.
59752         * modules/math: Likewise.
59753         * modules/netinet_in: Likewise.
59754         * modules/search: Likewise.
59755         * modules/signal: Likewise.
59756         * modules/stdint: Likewise.
59757         * modules/stdio: Likewise.
59758         * modules/stdlib: Likewise.
59759         * modules/string: Likewise.
59760         * modules/sys_select: Likewise.
59761         * modules/sys_socket: Likewise.
59762         * modules/sys_stat: Likewise.
59763         * modules/sys_time: Likewise.
59764         * modules/sysexits: Likewise.
59765         * modules/time: Likewise.
59766         * modules/unistd: Likewise.
59767         * modules/wchar: Likewise.
59768         * modules/wctype: Likewise.
59769         * modules/sys_stat: Change maintainer to "all".
59770         * modules/unistd: Likewise.
59771
59772 2007-06-20  Karl Berry  <karl@gnu.org>
59773
59774         * config/srclist.txt: track www changes in license files.
59775
59776 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
59777
59778         * build-aux/bootstrap: Remove stray dot.
59779         Make sure build_aux settings are honored when linking
59780         gnulib_extra_files.
59781
59782 2007-06-19  Eric Blake  <ebb9@byu.net>
59783
59784         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
59785         Allow compilation on cygwin.
59786
59787 2007-06-19  Jim Meyering  <jim@meyering.net>
59788
59789         xreadlink-with-size: Remove module.  No longer used.
59790         Ex-callers now use xreadlink or mreadlink-with-size.
59791         * modules/xreadlink-with-size: Remove module.
59792         * lib/xreadlink-with-size.c: Remove file.
59793         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
59794         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
59795         just before the function definition *is* accurate.
59796
59797         Eliminate one way canonicalize_filename_mode could exit.
59798         * lib/canonicalize.c (canonicalize_filename_mode):
59799         Use mreadlink_with_size, not xreadlink_with_size.
59800
59801 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
59802
59803         Detect porting problems to FreeBSD/arm, which has time_t wider than
59804         long int.  Original problem reported for GNU diff by Xin Li in
59805         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
59806         * modules/getdate (Depends-on): Add intprops, verify.
59807         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
59808         is an integer type no wider than long int.
59809
59810 2007-06-18  Jim Meyering  <jim@meyering.net>
59811
59812         New module: mreadlink-with-size.
59813         * MODULES.html.sh: Add mreadlink-with-size.
59814         * modules/mreadlink-with-size: New module
59815         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
59816         not xreadlink-with-size.
59817         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
59818
59819 2007-06-16  Bruno Haible  <bruno@clisp.org>
59820
59821         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
59822         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
59823         Reported by Gary V. Vaughan <gary@gnu.org>.
59824
59825 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
59826
59827         Revamp lchown so that it lives in unistd.h where it belongs.
59828         * lib/lchown.h: Remove.
59829         * lib/dirchownmod.c: Don't include lib/lchown.h.
59830         * lib/fchownat.c: Likewise.
59831         * lib/openat.c: Likewise.
59832         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
59833         does not follow symlinks.
59834         (EOPNOTSUPP): Define if not defined.
59835         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
59836         is defined to 0.
59837         (lchown): New decl.
59838         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
59839         Do not check for lchown decl.
59840         Set REPLACE_LCHOWN.
59841         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
59842         REPLACE_LCHOWN.
59843         * modules/chown: Make it clear it follows symlinks.
59844         * modules/lchown: Make it clear it doesn't follow symlinks.
59845         (Files): Remove lib/lchown.h
59846         (Depends-on): Add unistd.
59847         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
59848         (Include): Include <unistd.h>, not "lchown.h".
59849         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
59850         REPLACE_LCHOWN.
59851
59852 2007-06-15  Jim Meyering  <jim@meyering.net>
59853
59854         Change license (GPL to LGPL) of fsusage and dependents.
59855         * modules/fsusage (License): Change to LGPL.
59856         * modules/full-read (License): Likewise.
59857         * modules/full-write (License): Likewise.
59858         * modules/safe-read (License): Likewise.
59859         * modules/safe-write (License): Likewise.
59860
59861 2007-06-14  Ben Pfaff  <blp@gnu.org>
59862
59863         Missing part of allocsa -> malloca transition.
59864         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
59865         gl_MALLOCA.
59866
59867 2007-06-12  Bruno Haible  <bruno@clisp.org>
59868
59869         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
59870         to ia64, x86_64, i386.
59871         Reported by Eric Blake.
59872
59873 2007-06-12  Bruno Haible  <bruno@clisp.org>
59874
59875         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
59876         cross-compiling to x86_64.
59877
59878 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
59879
59880         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
59881         glitch reported by Ralf Wildenhues in
59882         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
59883
59884         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
59885         Vin Shelton.
59886
59887 2007-06-11  Bruno Haible  <bruno@clisp.org>
59888
59889         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
59890         replacement string.
59891         Reported by Eric Blake.
59892
59893 2007-06-10  Bruno Haible  <bruno@clisp.org>
59894
59895         Prepare vasnprintf code for use with Unicode strings.
59896         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
59897         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
59898         TYPE_U32_STRING.
59899         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
59900         a_u32_string variants.
59901         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
59902         * lib/printf-args.c: Don't include config.h and the specification
59903         header if PRINTF_FETCHARGS is already defined.
59904         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
59905         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
59906         TYPE_U16_STRING, TYPE_U32_STRING.
59907         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
59908         u16_directive, u16_directives, u32_directive, u32_directives): New
59909         types.
59910         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
59911         New declarations.
59912         * lib/printf-parse.c: Don't include config.h and the specification
59913         header if PRINTF_PARSE is already defined. Eliminate the set of
59914         parameters for WIDE_CHAR_VERSION; the user of this file must provide
59915         them now. Include c-ctype.h.
59916         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
59917         directive and CHAR_T_ONLY_ASCII.
59918         * lib/vasnprintf.c: Don't include config.h and the specification header
59919         if VASNPRINTF is already defined.
59920         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
59921         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
59922         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
59923         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
59924         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
59925         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
59926         code accordingly.
59927         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
59928         pad_ourselves also in this case, with the 'c' and 's' directives, and
59929         with a different notion of "width".
59930         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
59931
59932 2007-06-10  Bruno Haible  <bruno@clisp.org>
59933
59934         * modules/unistr/u32-mbsnlen: New file.
59935         * lib/unistr/u32-mbsnlen.c: New file.
59936
59937         * modules/unistr/u16-mbsnlen: New file.
59938         * lib/unistr/u16-mbsnlen.c: New file.
59939
59940         * modules/unistr/u8-mbsnlen: New file.
59941         * lib/unistr/u8-mbsnlen.c: New file.
59942
59943         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
59944         declarations.
59945
59946 2007-06-10  Bruno Haible  <bruno@clisp.org>
59947
59948         * lib/string_.h (mbsnlen): New declaration.
59949         * lib/mbsnlen.c: New file.
59950         * m4/mbsnlen.m4: New file.
59951         * modules/mbsnlen: New file.
59952         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
59953         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
59954         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
59955
59956 2007-06-10  Bruno Haible  <bruno@clisp.org>
59957
59958         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
59959
59960 2007-06-10  Bruno Haible  <bruno@clisp.org>
59961
59962         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
59963         * lib/mbuiter.h: Likewise.
59964
59965 2007-06-10  Bruno Haible  <bruno@clisp.org>
59966
59967         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
59968         declaration.
59969
59970 2007-06-10  Karl Berry  <karl@gnu.org>
59971
59972         * config/srclist.txt: remove gettext entries, Bruno prefers
59973         to update individually.
59974
59975 2007-06-10  Bruno Haible  <bruno@clisp.org>
59976
59977         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
59978         'maxlen'. Ensure only length + width bytes are allocated, not
59979         length + 1 + width.
59980
59981 2007-06-09  Bruno Haible  <bruno@clisp.org>
59982
59983         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
59984         (CHAR_T): Remove macro.
59985         (VASNPRINTF): Update.
59986
59987 2007-06-09  Bruno Haible  <bruno@clisp.org>
59988
59989         * MODULES.html.sh (Unicode string functions): Add the new modules.
59990
59991         * modules/uniconv/u32-conv-to-enc: New file.
59992         * lib/uniconv/u32-conv-to-enc.c: New file.
59993         * modules/uniconv/u32-conv-to-enc-tests: New file.
59994         * tests/uniconv/test-u32-conv-to-enc.c: New file.
59995
59996         * modules/uniconv/u16-conv-to-enc: New file.
59997         * lib/uniconv/u16-conv-to-enc.c: New file.
59998         * lib/uniconv/u-conv-to-enc.h: New file.
59999         * modules/uniconv/u16-conv-to-enc-tests: New file.
60000         * tests/uniconv/test-u16-conv-to-enc.c: New file.
60001
60002         * modules/uniconv/u8-conv-to-enc: New file.
60003         * lib/uniconv/u8-conv-to-enc.c: New file.
60004         * modules/uniconv/u8-conv-to-enc-tests: New file.
60005         * tests/uniconv/test-u8-conv-to-enc.c: New file.
60006
60007         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
60008         u32_conv_to_encoding): New declarations.
60009
60010 2007-06-09  Bruno Haible  <bruno@clisp.org>
60011
60012         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
60013
60014 2007-06-09  Bruno Haible  <bruno@clisp.org>
60015
60016         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
60017         * modules/malloca: Renamed from modules/allocsa, updated.
60018         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
60019         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
60020         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
60021         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
60022         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
60023         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
60024         * modules/xmalloca: Renamed from modules/xallocsa, updated.
60025         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
60026         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
60027         * modules/c-strcasestr (Depends-on): Update.
60028         * lib/c-strcasestr.c: Update.
60029         * modules/c-strstr (Depends-on): Update.
60030         * lib/c-strstr.c: Update.
60031         * modules/canonicalize-lgpl (Depends-on): Update.
60032         * lib/canonicalize-lgpl.c: Update.
60033         * modules/clean-temp (Depends-on): Update.
60034         * lib/clean-temp.c: Update.
60035         * modules/csharpcomp (Depends-on): Update.
60036         * lib/csharpcomp.c: Update.
60037         * modules/csharpexec (Depends-on): Update.
60038         * lib/csharpexec.c: Update.
60039         * modules/javacomp (Depends-on): Update.
60040         * lib/javacomp.c: Update.
60041         * modules/javaexec (Depends-on): Update.
60042         * lib/javaexec.c: Update.
60043         * modules/mbscasestr (Depends-on): Update.
60044         * lib/mbscasestr.c: Update.
60045         * modules/mbsstr (Depends-on): Update.
60046         * lib/mbsstr.c: Update.
60047         * modules/setenv (Depends-on): Update.
60048         * lib/setenv.c: Update.
60049         * modules/strcasestr (Depends-on): Update.
60050         * lib/strcasestr.c: Update.
60051         * modules/striconveha (Depends-on): Update.
60052         * lib/striconveha.c: Update.
60053         * modules/relocatable-prog-wrapper (Files): Update.
60054         * lib/relocwrapper.c: Update.
60055         * build-aux/install-reloc: Update.
60056         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
60057
60058 2007-06-08  Bruno Haible  <bruno@clisp.org>
60059
60060         Port to uClibc.
60061         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
60062         * lib/fpurge.c (fpurge): Likewise.
60063         * lib/freading.c (freading): Likewise.
60064         * lib/fseeko.c (rpl_fseeko): Likewise.
60065         * lib/fseterr.c (fseterr): Likewise.
60066         * lib/fwriting.c (fwriting): Likewise.
60067         * tests/test-fflush.c (main): Avoid a failure on uClibc.
60068
60069 2007-06-08  Bruno Haible  <bruno@clisp.org>
60070
60071         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
60072         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
60073         * modules/gettext (Files): Add m4/intlmacosx.m4.
60074
60075 2007-06-07  Bruno Haible  <bruno@clisp.org>
60076
60077         * modules/localename-tests: New file.
60078         * tests/test-localename.c: New file.
60079
60080         New module 'localename'.
60081         * lib/localename.h: New file.
60082         * lib/localename.c: New file, from GNU gettext.
60083         * m4/localename.m4: New file.
60084         * modules/localename: New file.
60085
60086 2007-06-07  Bruno Haible  <bruno@clisp.org>
60087
60088         Work around the lack of <wchar.h> on some builds of uClibc.
60089         * doc/headers/wchar.texi: Update.
60090         * lib/wchar_.h: Include <wchar.h> only if it exists.
60091         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
60092         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
60093         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
60094         doesn't exist.
60095         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
60096         * modules/mbfile (Depends-on): Add wchar.
60097         * modules/mbiter (Depends-on): Likewise.
60098         * modules/mbuiter (Depends-on): Likewise.
60099         Reported by Simon Josefsson.
60100
60101 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
60102
60103         Work around problem reported by Steven M. Schweda in
60104         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
60105         Tru64 5.1B with the Compaq compiler environment installed declares
60106         an 'isblank' function but does not define it in the C library.
60107         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
60108         * lib/regex_internal.h (isblank): Likewise.
60109         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
60110         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
60111
60112 2007-06-05  Bruno Haible  <bruno@clisp.org>
60113
60114         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
60115         ia64.
60116         * modules/printf-safe: New file.
60117         * modules/fprintf-posix (Depends-on): Add printf-safe.
60118         * modules/printf-posix (Depends-on): Likewise.
60119         * modules/snprintf-posix (Depends-on): Likewise.
60120         * modules/sprintf-posix (Depends-on): Likewise.
60121         * modules/vasnprintf-posix (Depends-on): Likewise.
60122         * modules/vasprintf-posix (Depends-on): Likewise.
60123         * modules/vfprintf-posix (Depends-on): Likewise.
60124         * modules/vprintf-posix (Depends-on): Likewise.
60125         * modules/vsnprintf-posix (Depends-on): Likewise.
60126         * modules/vsprintf-posix (Depends-on): Likewise.
60127         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
60128         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
60129         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
60130         "no" on i386, x86_64, ia64.
60131         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
60132         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60133         on i386, x86_64, ia64.
60134         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
60135         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60136         on i386, x86_64, ia64.
60137         * tests/test-vasnprintf-posix.c: Include float.h.
60138         (LDBL80_WORDS): New macro.
60139         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60140         on i386, x86_64, ia64.
60141         * tests/test-vasprintf-posix.c: Include float.h.
60142         (LDBL80_WORDS): New macro.
60143         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60144         on i386, x86_64, ia64.
60145         * tests/test-snprintf-posix.c: Include float.h.
60146         * tests/test-sprintf-posix.c: Likewise.
60147         * tests/test-vsnprintf-posix.c: Likewise.
60148         * tests/test-vsprintf-posix.c: Likewise.
60149
60150 2007-06-05  Bruno Haible  <bruno@clisp.org>
60151
60152         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
60153         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
60154         non-IEEE numbers on i386, x86_64, ia64.
60155         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
60156         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
60157         * tests/test-isnanl.h: Include float.h.
60158         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
60159
60160 2007-06-05  Bruno Haible  <bruno@clisp.org>
60161
60162         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
60163         also the %a / %A. Handle the %a / %A code before this extra handling.
60164
60165 2007-06-05  Bruno Haible  <bruno@clisp.org>
60166
60167         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
60168         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
60169
60170 2007-06-05  Bruno Haible  <bruno@clisp.org>
60171
60172         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
60173         typo in variable name.
60174
60175 2007-06-05  Eric Blake  <ebb9@byu.net>
60176
60177         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
60178         Reported by Simon Josefsson.
60179
60180 2007-06-04  Bruno Haible  <bruno@clisp.org>
60181
60182         Avoid test failures on some PowerPC platforms.
60183         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
60184         Define differently for PowerPC.
60185         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
60186         Reported by Gary V. Vaughan <gary@gnu.org>.
60187
60188 2007-06-02  Bruno Haible  <bruno@clisp.org>
60189
60190         Fix test-stdint failure on FreeBSD/ia64.
60191         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
60192         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
60193         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
60194         * doc/headers/stdint.texi: Update.
60195
60196 2007-06-01  Bruno Haible  <bruno@clisp.org>
60197
60198         * tests/test-binary-io.c (main): Pass a third argument to open().
60199         Reported by Gary V. Vaughan <gary@gnu.org>.
60200
60201 2007-06-01  Bruno Haible  <bruno@clisp.org>
60202
60203         * doc/functions/frexpl.texi: Update for mingw.
60204
60205 2007-06-01  Bruno Haible  <bruno@clisp.org>
60206
60207         * tests/test-lseek.c (main): Disable test of errno for invalid third
60208         argument.
60209         * doc/functions/lseek.texi: Update.
60210         Reported by Gary V. Vaughan <gary@gnu.org>.
60211
60212 2007-05-28  Bruno Haible  <bruno@clisp.org>
60213
60214         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
60215
60216 2007-05-31  Eric Blake  <ebb9@byu.net>
60217
60218         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
60219         cross compiling.
60220
60221 2007-05-30  Eric Blake  <ebb9@byu.net>
60222         and Bruno Haible  <bruno@clisp.org>
60223
60224         Work around mingw test failures exposed by m4-1.4.9b.
60225         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
60226         * tests/test-unistd.c: Disable uid_t and git_t tests for the
60227         moment.
60228
60229 2007-05-30  Bruno Haible  <bruno@clisp.org>
60230
60231         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
60232         assuming that they are closed. Needed on HP-UX 11.
60233
60234 2007-05-29  Bruno Haible  <bruno@clisp.org>
60235
60236         Fix a problem with #include_next.
60237         * lib/dirent_.h: Split the double-inclusion guard.
60238         * lib/fcntl_.h: Likewise.
60239         * lib/float_.h: Likewise.
60240         * lib/iconv_.h: Likewise.
60241         * lib/inttypes_.h: Likewise.
60242         * lib/locale_.h: Likewise.
60243         * lib/math_.h: Likewise.
60244         * lib/netinet_in_.h: Likewise.
60245         * lib/search_.h: Likewise.
60246         * lib/signal_.h: Likewise.
60247         * lib/stdint_.h: Likewise.
60248         * lib/stdio_.h: Likewise.
60249         * lib/stdlib_.h: Likewise.
60250         * lib/string_.h: Likewise.
60251         * lib/sys_select_.h: Likewise.
60252         * lib/sys_socket_.h: Likewise.
60253         * lib/sys_stat_.h: Likewise.
60254         * lib/sys_time_.h: Likewise.
60255         * lib/sysexits_.h: Likewise.
60256         * lib/time_.h: Likewise.
60257         * lib/unistd_.h: Likewise.
60258         * lib/wchar_.h: Likewise.
60259         * lib/wctype_.h: Likewise.
60260
60261 2007-05-29  Bruno Haible  <bruno@clisp.org>
60262
60263         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
60264         for the moment.
60265
60266 2007-05-29  Bruno Haible  <bruno@clisp.org>
60267
60268         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
60269         invocation.
60270         Reported by Eric Blake.
60271
60272 2007-05-29  Bruno Haible  <bruno@clisp.org>
60273
60274         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
60275         compiling case.
60276
60277 2007-05-29  Eric Blake  <ebb9@byu.net>
60278             Bruno Haible  <bruno@clisp.org>
60279
60280         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
60281         cross compiles.
60282
60283 2007-05-28  Eric Blake  <ebb9@byu.net>
60284
60285         * modules/closein-tests (test_closein_LDADD): Support test on
60286         cygwin with libtool.
60287
60288 2007-05-28  Bruno Haible  <bruno@clisp.org>
60289
60290         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
60291         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
60292         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
60293         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
60294         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
60295         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
60296         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
60297         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
60298         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
60299
60300 2007-05-28  Eric Blake  <ebb9@byu.net>
60301
60302         Unconditionally include <config.h> in unit tests.
60303         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
60304         * tests/test-allocsa.c, tests/test-arcfour.c,
60305         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
60306         tests/test-array_list.c, tests/test-array_oset.c,
60307         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
60308         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
60309         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
60310         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
60311         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
60312         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
60313         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
60314         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
60315         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
60316         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
60317         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
60318         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
60319         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
60320         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
60321         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
60322         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
60323         test-md5.c, test-memmem.c, test-printf-posix.c,
60324         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
60325         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
60326         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
60327         test-strcasestr.c, test-striconv.c, test-striconveh.c,
60328         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
60329         test-vasnprintf-posix2.c, test-vasnprintf.c,
60330         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
60331         test-vfprintf-posix.c, test-vprintf-posix.c,
60332         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
60333         test-xvasprintf.c: Likewise.
60334
60335 2007-05-28  Bruno Haible  <bruno@clisp.org>
60336
60337         * gnulib-tool (func_import): Remember the --with-tests command-line
60338         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
60339         Reported by Eric Blake.
60340
60341 2007-05-28  Bruno Haible  <bruno@clisp.org>
60342
60343         * modules/ftell-tests: New file.
60344         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
60345         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
60346
60347         * lib/ftell.c: New file.
60348         * modules/ftell: New file.
60349         * m4/ftell.m4: New file.
60350         * doc/functions/ftell.texi: Update.
60351         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
60352         REPLACE_FTELL.
60353         * lib/stdio_.h (rpl_ftell): New declaration.
60354         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
60355         REPLACE_FTELL.
60356
60357 2007-05-28  Eric Blake  <ebb9@byu.net>
60358
60359         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
60360
60361 2007-05-28  Bruno Haible  <bruno@clisp.org>
60362
60363         * modules/fseek-tests: New file.
60364         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
60365         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
60366
60367         * lib/fseek.c: New file.
60368         * modules/fseek: New file.
60369         * m4/fseek.m4: New file.
60370         * doc/functions/fseek.texi: Update.
60371         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
60372         REPLACE_FSEEK.
60373         * lib/stdio_.h (rpl_fseek): New declaration.
60374         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
60375         REPLACE_FSEEK.
60376
60377 2007-05-28  Bruno Haible  <bruno@clisp.org>
60378
60379         * lib/stdio_.h (fflush): More comments.
60380
60381 2007-05-28  Bruno Haible  <bruno@clisp.org>
60382
60383         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
60384         runtime test.
60385
60386 2007-05-28  Eric Blake  <ebb9@byu.net>
60387
60388         Improve lseek module.
60389         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
60390         * lib/unistd_.h (lseek): Scale back link warning message.
60391         * tests/test-lseek.c: Beef up test.
60392         * tests/test-lseek.sh: Exercise more facets of lseek.
60393         Reported by Bruno Haible.
60394
60395 2007-05-28  Bruno Haible  <bruno@clisp.org>
60396
60397         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
60398         to define.
60399
60400 2007-05-27  Bruno Haible  <bruno@clisp.org>
60401
60402         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
60403
60404 2007-05-27  Bruno Haible  <bruno@clisp.org>
60405
60406         * modules/openmp: New file.
60407         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
60408         Noah Misch.
60409
60410 2007-05-26  Bruno Haible  <bruno@clisp.org>
60411
60412         * modules/chdir-long (Depends-on): Add fchdir.
60413         * modules/chdir-safer (Depends-on): Likewise.
60414         * modules/fts (Depends-on): Likewise.
60415         * modules/fts-lgpl (Depends-on): Likewise.
60416         * modules/openat (Depends-on): Likewise.
60417         * modules/savewd (Depends-on): Likewise.
60418
60419 2007-05-24  Eric Blake  <ebb9@byu.net>
60420
60421         Fix lseek on mingw.
60422         * modules/lseek: New module.
60423         * m4/lseek.m4: New file.
60424         * lib/lseek.c: New file.
60425         * modules/lseek-tests: New file.
60426         * tests/test-lseek.c: New file.
60427         * tests/test-lseek.sh: New file.
60428         * MODULES.html.sh: Document lseek module.
60429         * modules/fflush (Depends-on): Add lseek, fseeko.
60430         * modules/fseeko (Depends-on): Likewise.
60431         * modules/ftello (Depends-on): Likewise.
60432         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
60433         broken.
60434         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
60435         broken.
60436         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
60437         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
60438         * lib/ftello.c (rpl_ftello): Likewise.
60439         * tests/test-fseeko.c (main): Test this.
60440         * tests/test-fseeko.sh: Likewise.
60441         * tests/test-ftello.c (main): Likewise.
60442         * tests/test-ftello.sh: Likewise.
60443         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
60444         implies replacing fseek.
60445         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
60446         HAVE_FTELLO.
60447         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
60448         * modules/unistd (Makefile.am): Likewise.
60449         * lib/unistd_.h (lseek): Declare a replacement.
60450         * doc/functions/lseek.texi (lseek): Document this fix.
60451         * doc/functions/fseek.texi (fseek): Likewise.
60452         * doc/functions/ftell.texi (ftell): Likewise.
60453
60454 2007-05-24  Bruno Haible  <bruno@clisp.org>
60455
60456         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
60457         in the printed representation of a NaN.
60458         * tests/test-vasprintf-posix.c (test_function): Likewise.
60459         * tests/test-snprintf-posix.h (test_function): Likewise.
60460         * tests/test-sprintf-posix.h (test_function): Likewise.
60461         Reported by Eric Blake.
60462
60463 2007-05-23  Eric Blake  <ebb9@byu.net>
60464
60465         Fix fseeko/ftello on cygwin 1.5.24.
60466         * doc/functions/fseeko.texi (fseeko): Document the fix.
60467         * doc/functions/ftello.texi (ftello): Document the fix.
60468         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
60469         * doc/functions/stdout.text (stdout): New file.
60470         * doc/functions/stderr.text (stderr): New file.
60471         * doc/gnulib.texi (Function Substitutes): Use new files.
60472         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
60473         prior to 1.7.0.
60474         * tests/test-ftello.c (main): Likewise for ftello.
60475         * tests/test-fseeko.sh: New file.
60476         * tests/test-ftello.sh: New file.
60477         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
60478         with seekable stdin.
60479         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
60480         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
60481         (gl_REPLACE_FSEEKO): New macro.
60482         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
60483         * modules/fseeko (Files): Distribute fseeko.c.
60484         * modules/ftello (Files): Distribute ftello.c.
60485         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
60486         mode.
60487         * lib/ftello.c (rpl_ftello): New file.
60488         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
60489         fseeko, ftello.
60490         (gl_STDIN_LARGE_OFFSET): New macro.
60491         * modules/stdio (Makefile.am): Perform the replacement.
60492         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
60493
60494 2007-05-23  Bruno Haible  <bruno@clisp.org>
60495
60496         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
60497         GNULIB_POSIXCHECK is defined.
60498
60499 2007-05-21  Bruno Haible  <bruno@clisp.org>
60500
60501         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
60502         Check also the output for NaN arguments. When cross-compiling, guess
60503         no on IRIX.
60504         * lib/vasnprintf.c: Update comments.
60505         * tests/test-vasnprintf-posix.c (strisnan): New function.
60506         (test_function): Use it.
60507         * tests/test-vasprintf-posix.c (strisnan): New function.
60508         (test_function): Use it.
60509         * tests/test-snprintf-posix.h (strisnan): New function.
60510         (test_function): Use it.
60511         * tests/test-sprintf-posix.h (strisnan): New function.
60512         (test_function): Use it.
60513         Reported by Eric Blake.
60514
60515 2007-05-20  Bruno Haible  <bruno@clisp.org>
60516
60517         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
60518         numbers that fails on BeOS.
60519         * doc/functions/frexpl.texi: Update.
60520
60521 2007-05-20  Jim Meyering  <jim@meyering.net>
60522
60523         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
60524         forced upon us by glibc-2.6.
60525
60526 2007-05-20  Bruno Haible  <bruno@clisp.org>
60527
60528         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
60529         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
60530         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
60531         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
60532         NEED_PRINTF_INFINITE.
60533         (is_infinitel): New function.
60534         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
60535         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
60536         gl_PREREQ_VASNPRINTF_INFINITE.
60537         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
60538         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60539         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
60540         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
60541         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
60542         gl_PREREQ_VASNPRINTF_INFINITE.
60543         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60544         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60545         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60546         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60547         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60548         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60549         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60550         * doc/functions/fprintf.texi: Update.
60551         * doc/functions/printf.texi: Update.
60552         * doc/functions/snprintf.texi: Update.
60553         * doc/functions/sprintf.texi: Update.
60554         * doc/functions/vfprintf.texi: Update.
60555         * doc/functions/vprintf.texi: Update.
60556         * doc/functions/vsnprintf.texi: Update.
60557         * doc/functions/vsprintf.texi: Update.
60558
60559 2007-05-20  Bruno Haible  <bruno@clisp.org>
60560
60561         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
60562         was not found in libc.
60563         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
60564
60565 2007-05-20  Bruno Haible  <bruno@clisp.org>
60566
60567         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
60568         printed as "-nan" instead of "nan".
60569         * tests/test-vasprintf-posix.c (test_function): Likewise.
60570         * tests/test-snprintf-posix.h (test_function): Likewise.
60571         * tests/test-sprintf-posix.h (test_function): Likewise.
60572         Needed for HP-UX 11.
60573
60574 2007-05-20  Jim Meyering  <jim@meyering.net>
60575
60576         Fix buggy test for the fchownat-deref bug.
60577         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
60578         symlink required for the run-test.  Without it, this test would
60579         always declare that fchownat doesn't work, and client code would
60580         unnecessarily use the replacement function with fixed libc.
60581         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
60582         Reported by Greg Schafer.
60583
60584 2007-05-19  Bruno Haible  <bruno@clisp.org>
60585
60586         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
60587         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
60588         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
60589         Needed for IRIX 6.5 and Solaris 2.5.1.
60590
60591 2007-05-19  Bruno Haible  <bruno@clisp.org>
60592
60593         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
60594         (test_function): Skip tests involving -0.0 on platforms where
60595         -0.0 = 0.0.
60596         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
60597         (test_function): Skip tests involving -0.0 on platforms where
60598         -0.0 = 0.0.
60599         * tests/test-snprintf-posix.h (have_minus_zero): New function.
60600         (test_function): Skip tests involving -0.0 on platforms where
60601         -0.0 = 0.0.
60602         * tests/test-sprintf-posix.h (have_minus_zero): New function.
60603         (test_function): Skip tests involving -0.0 on platforms where
60604         -0.0 = 0.0.
60605         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
60606         tests.
60607         * tests/test-printf-posix.h (test_function): Likewise.
60608         * tests/test-printf-posix.output: Remove all -0.0 related results.
60609         Needed for IRIX 6.5.
60610
60611 2007-05-19  Bruno Haible  <bruno@clisp.org>
60612
60613         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
60614         printed as "nan0x7fffffff" instead of "nan".
60615         * tests/test-vasprintf-posix.c (test_function): Likewise.
60616         * tests/test-snprintf-posix.h (test_function): Likewise.
60617         * tests/test-sprintf-posix.h (test_function): Likewise.
60618         * tests/test-fprintf-posix.h (NaN): Remove macro.
60619         (test_function): Remove all NaN related tests.
60620         * tests/test-printf-posix.h (NaN): Remove macro.
60621         (test_function): Remove all NaN related tests.
60622         * tests/test-printf-posix.output: Remove all NaN related results.
60623         Needed for IRIX 6.5.
60624
60625 2007-05-19  Bruno Haible  <bruno@clisp.org>
60626
60627         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
60628         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
60629
60630 2007-05-19  Bruno Haible  <bruno@clisp.org>
60631
60632         * lib/float_.h: New file.
60633         * m4/float_h.m4: New file.
60634         * modules/float: New file.
60635         * modules/isnanl (Dependencies): Add float.
60636         * modules/isnanl-nolibm (Dependencies): Likewise.
60637         * modules/mathl (Dependencies): Likewise.
60638         * modules/printf-frexpl (Dependencies): Likewise.
60639         * modules/signbit (Dependencies): Likewise.
60640         * modules/vasnprintf (Dependencies): Likewise.
60641         * doc/headers/float.texi: Update.
60642
60643 2007-05-19  Jim Meyering  <jim@meyering.net>
60644
60645         * lib/utimens.c (gl_futimens): Rename from futimens,
60646         now that glibc-2.6 declares futimens.
60647         * lib/utimens.h: Likewise.
60648
60649 2007-05-19  Bruno Haible  <bruno@clisp.org>
60650
60651         Avoid test failures on mingw.
60652         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
60653         * tests/test-printf-posix.sh: Likewise.
60654         * tests/test-vfprintf-posix.sh: Likewise.
60655         * tests/test-vprintf-posix.sh: Likewise.
60656
60657 2007-05-19  Bruno Haible  <bruno@clisp.org>
60658
60659         Fix *printf result for NaN, Inf, -0.0 on mingw.
60660         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
60661         * lib/vasnprintf.c: Include math.h and isnan.h.
60662         (is_infinite_or_zero): New function.
60663         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
60664         values in the %f, %F, %e, %E, %g, %G directives.
60665         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
60666         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60667         gl_PRINTF_INFINITE and test its result. Invoke
60668         gl_PREREQ_VASNPRINTF_INFINITE.
60669         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60670         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60671         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60672         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60673         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60674         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60675         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60676         * doc/functions/fprintf.texi: Update.
60677         * doc/functions/printf.texi: Update.
60678         * doc/functions/snprintf.texi: Update.
60679         * doc/functions/sprintf.texi: Update.
60680         * doc/functions/vfprintf.texi: Update.
60681         * doc/functions/vprintf.texi: Update.
60682         * doc/functions/vsnprintf.texi: Update.
60683         * doc/functions/vsprintf.texi: Update.
60684
60685 2007-05-19  Bruno Haible  <bruno@clisp.org>
60686
60687         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
60688         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
60689         Instead of multiplying with 10^k, set extra_zeroes to k.
60690         (scale10_round_long_double): Remove function.
60691
60692 2007-05-18  Bruno Haible  <bruno@clisp.org>
60693
60694         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
60695         introduced on 2007-05-06.
60696
60697 2007-05-18  Bruno Haible  <bruno@clisp.org>
60698
60699         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
60700         %g directives.
60701         * tests/test-vasprintf-posix.c (test_function): Likewise.
60702         * tests/test-snprintf-posix.h (test_function): Likewise.
60703         * tests/test-sprintf-posix.h (test_function): Likewise.
60704
60705 2007-05-18  Bruno Haible  <bruno@clisp.org>
60706
60707         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
60708         (strmatch): New function.
60709         (test_function): Test the %f directive on numbers of various exponents.
60710         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
60711         (strmatch): New function.
60712         (test_function): Test the %f directive on numbers of various exponents.
60713         * tests/test-snprintf-posix.h (strmatch): New function.
60714         (test_function): Test the %f directive on numbers of various exponents.
60715         * tests/test-sprintf-posix.h (strmatch): New function.
60716         (test_function): Test the %f directive on numbers of various exponents.
60717         * tests/test-snprintf-posix.c (SIZEOF): New macro.
60718         * tests/test-sprintf-posix.c (SIZEOF): New macro.
60719         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
60720         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
60721
60722 2007-05-18  Bruno Haible  <bruno@clisp.org>
60723
60724         Add support for 'long double' number output.
60725         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
60726         * lib/vasnprintf.c: Include math.h and float+.h.
60727         (mp_limb_t): New type.
60728         (GMP_LIMB_BITS): New macro.
60729         (mp_twolimb_t): New type.
60730         (GMP_TWOLIMB_BITS): New macro.
60731         (mpn_t): New type.
60732         (multiply, divide, convert_to_decimal, decode_long_double,
60733         scale10_round_long_double, scale10_round_decimal_long_double,
60734         floorlog10l): New functions.
60735         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
60736         for the %f, %F, %e, %E, %g, %G directives.
60737         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
60738         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60739         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
60740         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
60741         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60742         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60743         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60744         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60745         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60746         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60747         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60748         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
60749         * modules/snprintf-posix (Depends-on): Likewise.
60750         * modules/sprintf-posix (Depends-on): Likewise.
60751         * modules/vasnprintf-posix (Depends-on): Likewise.
60752         * modules/vasprintf-posix (Depends-on): Likewise.
60753         * modules/vfprintf-posix (Depends-on): Likewise.
60754         * modules/vsnprintf-posix (Depends-on): Likewise.
60755         * modules/vsprintf-posix (Depends-on): Likewise.
60756         * modules/vasnprintf (Files): Add lib/float+.h.
60757         * doc/functions/fprintf.texi: Update.
60758         * doc/functions/printf.texi: Update.
60759         * doc/functions/snprintf.texi: Update.
60760         * doc/functions/sprintf.texi: Update.
60761         * doc/functions/vfprintf.texi: Update.
60762         * doc/functions/vprintf.texi: Update.
60763         * doc/functions/vsnprintf.texi: Update.
60764         * doc/functions/vsprintf.texi: Update.
60765
60766 2007-05-18  Bruno Haible  <bruno@clisp.org>
60767
60768         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
60769
60770 2007-05-18  Bruno Haible  <bruno@clisp.org>
60771
60772         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
60773         for printing 64-bit integers. Needed for mingw.
60774
60775 2007-05-18  Bruno Haible  <bruno@clisp.org>
60776
60777         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
60778         gl_FUNC_FREXPL_WORKS.
60779         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
60780
60781 2007-05-18  Bruno Haible  <bruno@clisp.org>
60782
60783         * modules/frexpl-nolibm-tests: New file.
60784
60785         * modules/frexpl-nolibm: New file.
60786         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
60787
60788 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60789
60790         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
60791         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
60792         GCC 4.2, which otherwise issues a lot of warnings.
60793         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
60794         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
60795         Likewise.
60796         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
60797         * modules/iconv_open (iconv.h): Likewise.
60798         * modules/locale (locale.h): Likewise.
60799         * modules/netinet_in (netinet/in.h): Likewise.
60800         * modules/sys_select (sys_select.h): Likewise.
60801         * modules/sys_socket (sys/socket.h): Likewise.
60802         * modules/sys_stat (sys/stat.h): Likewise.
60803         * modules/sysexits (sysexits.h): Likewise.
60804         * modules/unistd (unistd.h): Likewise.
60805
60806 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60807
60808         * modules/closein-tests (Makefile.am): Distribute
60809         `test-closein.sh'.
60810
60811 2007-05-17  Bruno Haible  <bruno@clisp.org>
60812
60813         * tests/test-printf-posix.output: Renamed from
60814         tests/test-fprintf-posix.out.
60815         * modules/fprintf-posix-tests: Update.
60816         * modules/printf-posix-tests: Update.
60817         * modules/vfprintf-posix-tests: Update.
60818         * modules/vprintf-posix-tests: Update.
60819         * tests/test-fprintf-posix.sh: Update.
60820         * tests/test-printf-posix.sh: Update.
60821         * tests/test-vfprintf-posix.sh: Update.
60822         * tests/test-vprintf-posix.sh: Update.
60823         Reported by Ralf Wildenhues.
60824
60825 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60826
60827         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
60828         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
60829         GCC 4.2, which otherwise issues a lot of warnings.
60830         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
60831         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
60832         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
60833         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
60834         it should no longer be needed.
60835         * lib/string_.h: Likewise.
60836         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
60837         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
60838         * modules/inttypes (inttypes.h): Likewise.
60839         * modules/math (math.h): Likewise.
60840         * modules/search (search.h): Likewise.
60841         * modules/signal (signal.h): Likewise.
60842         * modules/stdint (stdint.h): Likewise.
60843         * modules/stdio (stdio.h): Likewise.
60844         * modules/stdlib (stdlib.h): Likewise.
60845         * modules/string (string.h): Likewise.
60846         * modules/sys_time (sys/time.h): Likewise.
60847         * modules/time (time.h): Likewise.
60848         * modules/wchar (wchar.h): Likewise.
60849         * modules/wctype (wtype.h): Likewise.
60850
60851 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60852
60853         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
60854
60855 2007-05-13  Bruno Haible  <bruno@clisp.org>
60856
60857         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
60858         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60859         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
60860         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60861         (gl_PREREQ_STRTOK_R): Don't require it here.
60862
60863 2007-05-13  Bruno Haible  <bruno@clisp.org>
60864
60865         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
60866         when used in C++ mode.
60867
60868 2007-05-12  Bruno Haible  <bruno@clisp.org>
60869
60870         * lib/linebuffer.h: Tweak doc.
60871         * lib/linebuffer.c: Likewise.
60872
60873 2007-05-12  James Youngman  <jay@gnu.org>
60874
60875         * lib/linebuffer.c (readlinebuffer_delim): New function,
60876         like readlinebuffer, but use a caller-specified delimiter.
60877         (readlinebuffer): Just call readlinebuffer_delim with '\n'
60878         as the delimiter.
60879         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
60880
60881 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60882
60883         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
60884         * modules/openat (Files): Remove openat-die.c.
60885         (Depends-on): Add openat-die.
60886         * modules/openat-die: New module.
60887
60888 2007-05-06  Bruno Haible  <bruno@clisp.org>
60889
60890         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
60891         Update with info about Cygwin.
60892         * doc/functions/fprintf.texi: Update.
60893         * doc/functions/printf.texi: Update.
60894         * doc/functions/snprintf.texi: Update.
60895         * doc/functions/sprintf.texi: Update.
60896         * doc/functions/vfprintf.texi: Update.
60897         * doc/functions/vprintf.texi: Update.
60898         * doc/functions/vsnprintf.texi: Update.
60899         * doc/functions/vsprintf.texi: Update.
60900         Reported by Eric Blake.
60901
60902 2007-05-06  Bruno Haible  <bruno@clisp.org>
60903
60904         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
60905         padding ourselves for the floating-point directives.
60906         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
60907         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
60908         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60909         gl_PRINTF_FLAG_ZERO and test its result. Invoke
60910         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
60911         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60912         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
60913         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60914         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60915         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60916         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60917         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60918         * tests/test-snprintf-posix.h (test_function): Also check the width
60919         and some flags in the %f directive.
60920         * tests/test-sprintf-posix.h (test_function): Likewise.
60921         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60922         * tests/test-vasprintf-posix.c (test_function): Likewise.
60923         * doc/functions/fprintf.texi: Update.
60924         * doc/functions/printf.texi: Update.
60925         * doc/functions/snprintf.texi: Update.
60926         * doc/functions/sprintf.texi: Update.
60927         * doc/functions/vfprintf.texi: Update.
60928         * doc/functions/vprintf.texi: Update.
60929         * doc/functions/vsnprintf.texi: Update.
60930         * doc/functions/vsprintf.texi: Update.
60931
60932 2007-05-06  Bruno Haible  <bruno@clisp.org>
60933
60934         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
60935         pass the ' flag character to sprintf or snprintf.
60936         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
60937         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
60938         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
60939         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
60940         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
60941         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60942         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
60943         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60944         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60945         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60946         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60947         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60948         * tests/test-snprintf-posix.h (test_function): Also check the grouping
60949         flag.
60950         * tests/test-sprintf-posix.h (test_function): Likewise.
60951         * tests/test-vasnprintf-posix.c (test_function): Likewise.
60952         * tests/test-vasprintf-posix.c (test_function): Likewise.
60953         * doc/functions/fprintf.texi: Update.
60954         * doc/functions/printf.texi: Update.
60955         * doc/functions/snprintf.texi: Update.
60956         * doc/functions/sprintf.texi: Update.
60957         * doc/functions/vfprintf.texi: Update.
60958         * doc/functions/vprintf.texi: Update.
60959         * doc/functions/vsnprintf.texi: Update.
60960         * doc/functions/vsprintf.texi: Update.
60961
60962 2007-05-01  Bruno Haible  <bruno@clisp.org>
60963
60964         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
60965
60966 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
60967
60968         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
60969         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
60970
60971 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
60972
60973         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
60974         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
60975         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
60976
60977 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
60978
60979         * lib/argp-help.c (struct hol_entry): New member `ord'.
60980         (HOL_ENTRY_PTRCMP): Use ord for comparison
60981         (hol_sort): Initialize ord.
60982
60983 2007-05-01  Bruno Haible  <bruno@clisp.org>
60984
60985         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
60986         Reported by Eric Blake.
60987         * doc/gnulib.texi (Function Substitutes): Update.
60988
60989 2007-05-01  Bruno Haible  <bruno@clisp.org>
60990
60991         * doc/functions.texi: Remove file, now redundant through
60992         doc/functions/*.texi.
60993
60994 2007-05-01  Bruno Haible  <bruno@clisp.org>
60995
60996         * modules/argp (Depends-on): Add sleep.
60997
60998 2007-05-01  Bruno Haible  <bruno@clisp.org>
60999
61000         * modules/sleep-tests: New file.
61001         * tests/test-sleep.c: New file.
61002
61003         * modules/sleep: New file.
61004         * lib/sleep.c: New file.
61005         * m4/sleep.m4: New file.
61006         * lib/unistd_.h (sleep): New declaration.
61007         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
61008         HAVE_SLEEP.
61009         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
61010         * doc/functions/sleep.texi: Document the sleep module.
61011
61012 2007-05-01  Bruno Haible  <bruno@clisp.org>
61013
61014         * lib/sigprocmask.h: Remove file.
61015         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
61016         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
61017         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
61018         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
61019         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
61020         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
61021         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
61022         HAVE_SIGSET_T as a shell variable.
61023         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
61024         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
61025         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
61026         (Depends-on): Add signal. Remove verify.
61027         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
61028         (Include): Mention <signal.h> instead of sigprocmask.h.
61029         * NEWS: Mention the change.
61030         * lib/fatal-signal.c: Don't include sigprocmask.h.
61031
61032 2007-05-01  Bruno Haible  <bruno@clisp.org>
61033
61034         * modules/signal: New file.
61035         * lib/signal_.h: New file.
61036         * m4/signal_h.m4: New file.
61037
61038 2007-05-01  Bruno Haible  <bruno@clisp.org>
61039
61040         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
61041         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
61042         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
61043         HAVE_WCTYPE_CTMP_BUG into wctype.h.
61044
61045 2007-05-01  Bruno Haible  <bruno@clisp.org>
61046
61047         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
61048         configure time.
61049         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
61050         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
61051         * modules/sys_stat (Makefile.am): Substitute their values into
61052         sys/stat.h.
61053
61054 2007-05-01  Bruno Haible  <bruno@clisp.org>
61055
61056         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
61057         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
61058         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
61059
61060 2007-05-01  Bruno Haible  <bruno@clisp.org>
61061
61062         * doc/header/assert.texi: Undo last change: don't mention the gnulib
61063         'assert' module here.
61064
61065 2007-05-01  Bruno Haible  <bruno@clisp.org>
61066
61067         * doc/functions/*.texi: New files.
61068         * doc/functions/google-ranking.txt: New file.
61069         * doc/gnulib.texi (Function Substitutes): New chapter.
61070         (ctime, inet_ntoa): Remove sections.
61071         * doc/ctime.texi: Remove file.
61072         * doc/inet_ntoa.texi: Remove file.
61073         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
61074         dependencies.
61075         (%.info): New rule, specifying a --reference-limit.
61076
61077 2007-05-01  Bruno Haible  <bruno@clisp.org>
61078
61079         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
61080
61081 2007-05-01  Bruno Haible  <bruno@clisp.org>
61082
61083         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
61084         the portability of 'mkdir' to mingw systems.
61085
61086 2007-05-01  Bruno Haible  <bruno@clisp.org>
61087
61088         * doc/headers/google-ranking.txt: New file.
61089
61090 2007-04-30  Eric Blake  <ebb9@byu.net>
61091
61092         Prefer fseeko to fseek.
61093         * modules/getpass (Depends-on): Add fseeko.
61094         * lib/getpass.c (getpass): Use fseeko, not fseek.
61095
61096 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
61097
61098         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
61099         assumes the sorting is stable, while most qsort implementations
61100         are not.  Use argument addresses to ensure they never compare as
61101         equal.
61102
61103         * tests/test-argp-2.sh (usage-indent test): Fix output
61104         (func_compare): Restore diff options
61105         * tests/test-argp.c: Restore #include "progname.h"
61106
61107 2007-04-29  Bruno Haible  <bruno@clisp.org>
61108
61109         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
61110         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61111         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
61112         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61113         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
61114         (configure.ac): Define CHECK_SNPRINTF_POSIX.
61115         (TESTS, check_PROGRAMS): Add test-snprintf.
61116         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
61117         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
61118         (TESTS, check_PROGRAMS): Add test-vsnprintf.
61119         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
61120         assertions that fail on HP-UX, OSF/1, or IRIX.
61121         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
61122
61123 2007-04-29  Bruno Haible  <bruno@clisp.org>
61124
61125         * MODULES.html.sh (posix_functions): Remove 'contents'.
61126
61127 2007-04-29  Karl Berry  <karl@gnu.org>
61128
61129         * config/srclist.txt (gendocs_template_min): new entry.
61130
61131 2007-04-29  Bruno Haible  <bruno@clisp.org>
61132
61133         Work around fpurge bug on BSD systems.
61134         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
61135         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
61136         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
61137         fpurge to rpl_fpurge if the system already has this function.
61138         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
61139         the case where the system already has this function. Correct invariants
61140         on BSD systems.
61141         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
61142         BSD systems.
61143
61144 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
61145
61146         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
61147         proposed by Sven Verdoolaege.
61148
61149         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
61150         options.
61151         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
61152         (usage and help tests): Update
61153
61154 2007-04-29  Bruno Haible  <bruno@clisp.org>
61155
61156         * tests/test-fflush.c (main): Use a file of size 17, not 10.
61157         Print more information in case of failure. Disable a test on BeOS.
61158
61159 2007-04-29  Bruno Haible  <bruno@clisp.org>
61160
61161         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
61162         This helps debugging on systems on which no gdb is available.
61163
61164 2007-04-29  Bruno Haible  <bruno@clisp.org>
61165
61166         * lib/freading.h: Improve comments.
61167         * lib/fwriting.h: Likewise.
61168         * tests/test-freading.c (main): Don't check freading immediately after
61169         repositioning. Needed for glibc.
61170
61171 2007-04-29  Bruno Haible  <bruno@clisp.org>
61172
61173         * lib/freading.c (freading): Trivial simplification.
61174
61175 2007-04-28  Bruno Haible  <bruno@clisp.org>
61176
61177         * tests/test-fwriting.c (main): Also test the interaction between
61178         fflush and fwriting.
61179         * modules/fwriting-tests (Depends-on): Add fflush.
61180
61181         * tests/test-freading.c (main): Also test the interaction between
61182         fflush and freading.
61183         * modules/freading-tests (Depends-on): Add fflush.
61184
61185 2007-04-28  Bruno Haible  <bruno@clisp.org>
61186
61187         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
61188         fseeko and ftello.
61189         Suggested by Eric Blake.
61190
61191 2007-04-28  Jim Meyering  <jim@meyering.net>
61192
61193         Avoid false-negative in gl_STDINT_H's C99 conformance test.
61194         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
61195         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
61196
61197 2007-04-27  Eric Blake  <ebb9@byu.net>
61198
61199         * doc/headers/assert.texi (assert.h): Document assert module use.
61200
61201 2007-04-27  Bruno Haible  <bruno@clisp.org>
61202
61203         * doc/headers/*.texi: New files.
61204         * doc/gnulib.texi (Header File Substitutes): New chapter.
61205         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
61206         dependencies.
61207         (standards.info ,standards.html, standards.dvi): Update dependencies.
61208         (mostlyclean, clean): New targets.
61209
61210 2007-04-27  Bruno Haible  <bruno@clisp.org>
61211
61212         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
61213         * modules/sysexits (Files, Makefile.am): Update.
61214
61215         * lib/sys_socket_.h: Renamed from lib/socket_.h.
61216         * modules/sys_socket (Files, Makefile.am): Update.
61217
61218         * lib/sys_stat_.h: Renamed from lib/stat_.h.
61219         * modules/sys_stat (Files, Makefile.am): Update.
61220
61221 2007-04-27  Eric Blake  <ebb9@byu.net>
61222
61223         * lib/freading.h: Improve comments.
61224         * lib/fwriting.h: Likewise.
61225         * lib/fflush.c: Likewise.
61226
61227         Fix closein for mingw.
61228         * modules/closein-tests: Add tests for closein.
61229         * tests/test-closein.c: New file.
61230         * tests/test-closein.sh: Likewise.
61231         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
61232         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
61233
61234 2007-04-27  Bruno Haible  <bruno@clisp.org>
61235
61236         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
61237         version is < 6.
61238         * lib/math_.h [__DECC]: Likewise.
61239         * lib/stdio_.h [__DECC]: Likewise.
61240         * lib/stdlib_.h [__DECC]: Likewise.
61241         * lib/string_.h [__DECC]: Likewise.
61242         * lib/time_.h [__DECC]: Likewise.
61243         * lib/wchar_.h [__DECC]: Likewise.
61244         * lib/wctype_.h [__DECC]: Likewise.
61245
61246 2007-04-27  Bruno Haible  <bruno@clisp.org>
61247
61248         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
61249
61250 2007-04-27  Bruno Haible  <bruno@clisp.org>
61251
61252         * lib/fflush.c: Add comments.
61253         * modules/fpurge-tests (Depends-on): Add fflush.
61254         * modules/freadable-tests (Depends-on): Likewise.
61255         * modules/fwritable-tests (Depends-on): Likewise.
61256
61257 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
61258
61259         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
61260         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
61261         Report by Bruno Haible <bruno@clisp.org>.
61262
61263 2007-04-26  Eric Blake  <ebb9@byu.net>
61264
61265         Fix fflush on mingw.
61266         * modules/fflush (Depends-on): Add freading.
61267         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
61268         but unread data.
61269
61270 2007-04-26  Eric Blake  <ebb9@byu.net>
61271         and Bruno Haible  <bruno@clisp.org>
61272
61273         Implement freading and fwriting.
61274         * lib/freading.c: New file.
61275         * lib/freading.h: Likewise.
61276         * m4/freading.m4: Likewise.
61277         * modules/freading: Likewise.
61278         * modules/freading-tests: Likewise.
61279         * tests/test-freading.c: Likewise.
61280         * lib/fwriting.c: New file.
61281         * lib/fwriting.h: Likewise.
61282         * m4/fwriting.m4: Likewise.
61283         * modules/fwriting: Likewise.
61284         * modules/fwriting-tests: Likewise.
61285         * tests/test-fwriting.c: Likewise.
61286         * MODULES.html.sh (File stream based Input/Output): Mention them.
61287
61288 2007-04-26  Bruno Haible  <bruno@clisp.org>
61289
61290         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
61291         'long' when we assume it.
61292         Suggested by Eric Blake.
61293
61294 2007-04-26  Bruno Haible  <bruno@clisp.org>
61295
61296         Ensure fseeko, ftello are declared on glibc systems.
61297         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
61298         * modules/fseeko (configure.ac-early): Likewise.
61299         * modules/ftello (configure.ac-early): Likewise.
61300         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
61301         AC_FUNC_FSEEKO for this.
61302         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
61303         (gl_CHECK_FSEEKO): Remove macro.
61304
61305 2007-04-26  Bruno Haible  <bruno@clisp.org>
61306
61307         * tests/test-fflush.c (main): Also check the ftell result after
61308         fflush and fseek/fseeko.
61309         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
61310         file descriptor position cache in the stream.
61311         * lib/fseeko.c (rpl_fseeko): Likewise.
61312
61313 2007-04-26  Bruno Haible  <bruno@clisp.org>
61314
61315         * modules/fflush-tests (Depends-on): Add fseeko.
61316
61317 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
61318             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61319
61320         * lib/argz_.h: ensure error_t definition is obtained in same
61321         mechanism system argz.h would have.
61322         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
61323         argz facilities are known bad.  Err on the side of caution if
61324         cross-compiling.
61325
61326 2007-04-25  Eric Blake  <ebb9@byu.net>
61327
61328         * lib/fpurge.c (includes): Use stdlib.h for free.
61329         * tests/test-fflush.c (main): Also test fflush-fseeko.
61330
61331 2007-04-25  Bruno Haible  <bruno@clisp.org>
61332
61333         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
61334         * lib/fseeko.c: New file.
61335         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
61336         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
61337         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
61338         gl_FUNC_FSEEKO.
61339         (gl_FUNC_FSEEKO): Invoke it.
61340         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
61341         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
61342         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
61343
61344 2007-04-25  Bruno Haible  <bruno@clisp.org>
61345
61346         * modules/fflush (Depends-on): Add ftello.
61347
61348 2007-04-25  Bruno Haible  <bruno@clisp.org>
61349
61350         * modules/ftello-tests: New file.
61351         * tests/test-ftello.c: New file.
61352
61353         * modules/ftello: New file.
61354         * m4/ftello.m4: New file.
61355         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
61356         HAVE_FTELLO.
61357         * lib/stdio_.h (ftello): New declaration.
61358         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
61359         HAVE_FTELLO.
61360
61361 2007-04-25  Bruno Haible  <bruno@clisp.org>
61362
61363         * modules/fseeko-tests: New file.
61364         * tests/test-fseeko.c: New file.
61365
61366         * modules/fseeko: New file.
61367         * m4/fseeko.m4: New file.
61368         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
61369         HAVE_FSEEKO.
61370         * lib/stdio_.h (fseeko): New declaration.
61371         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
61372         HAVE_FSEEKO.
61373
61374 2007-04-25  Bruno Haible  <bruno@clisp.org>
61375
61376         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
61377
61378 2007-04-25  Bruno Haible  <bruno@clisp.org>
61379
61380         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
61381         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
61382         * tests/test-unistd.c: Likewise.
61383         * tests/test-fcntl.c: Likewise.
61384
61385 2007-04-23  Eric Blake  <ebb9@byu.net>
61386
61387         * lib/fflush.c: Fix missing include.
61388         Reported by Bruno Haible.
61389
61390 2007-04-23  Bruno Haible  <bruno@clisp.org>
61391
61392         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
61393         Reported by Eric Blake.
61394
61395 2007-04-23  Bruno Haible  <bruno@clisp.org>
61396
61397         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
61398
61399 2007-04-23  Bruno Haible  <bruno@clisp.org>
61400
61401         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
61402
61403 2007-04-23  Bruno Haible  <bruno@clisp.org>
61404
61405         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
61406         Needed on HP-UX 11.
61407
61408 2007-04-16  Eric Blake  <ebb9@byu.net>
61409
61410         Make fflush rely on fpurge.
61411         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
61412         open coding all variants.
61413         * modules/fflush (Depends-on): Add fpurge and unistd.
61414         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
61415         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
61416
61417         Fix --with-tests compilation on cygwin.
61418         * modules/argmatch-tests (Makefile.am): List gnulib library first
61419         in LDADD.
61420         * modules/argp-tests (Makefile.am): Likewise.
61421         * modules/array-list-tests (Makefile.am): Likewise.
61422         * modules/array-oset-tests (Makefile.am): Likewise.
61423         * modules/avltree-list-tests (Makefile.am): Likewise.
61424         * modules/avltree-oset-tests (Makefile.am): Likewise.
61425         * modules/avltreehash-list-tests (Makefile.am): Likewise.
61426         * modules/carray-list-tests (Makefile.am): Likewise.
61427         * modules/dirname-tests (Makefile.am): Likewise.
61428         * modules/frexp-tests (Makefile.am): Likewise.
61429         * modules/isnanl-tests (Makefile.am): Likewise.
61430         * modules/linked-list-tests (Makefile.am): Likewise.
61431         * modules/linkedhash-list-tests (Makefile.am): Likewise.
61432         * modules/lock-tests (Makefile.am): Likewise.
61433         * modules/rbtree-list-tests (Makefile.am): Likewise.
61434         * modules/rbtree-oset-tests (Makefile.am): Likewise.
61435         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
61436         * modules/tls-tests (Makefile.am): Likewise.
61437         * modules/tsearch-tests (Makefile.am): Likewise.
61438         * modules/xvasprintf-tests (Makefile.am): Likewise.
61439
61440         Fix fpurge for cygwin.
61441         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
61442         value.
61443         * modules/fpurge-tests (Depends-on): Clean up trash.
61444
61445 2007-04-16  Simon Josefsson  <simon@josefsson.org>
61446
61447         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
61448
61449         * m4/autobuild.m4: Re-indent.
61450
61451 2007-04-13  Bruno Haible  <bruno@clisp.org>
61452
61453         * modules/fpurge-tests: New file.
61454         * tests/test-fpurge.c: New file.
61455
61456         * modules/fpurge: New file.
61457         * lib/fpurge.h: New file.
61458         * lib/fpurge.c: New file.
61459         * m4/fpurge.m4: New file.
61460
61461 2007-04-13  Bruno Haible  <bruno@clisp.org>
61462
61463         * modules/fbufmode-tests: New file.
61464         * tests/test-fbufmode.c: New file.
61465
61466         * modules/fbufmode: New file.
61467         * lib/fbufmode.h: New file.
61468         * lib/fbufmode.c: New file.
61469         * m4/fbufmode.m4: New file.
61470
61471 2007-04-13  Bruno Haible  <bruno@clisp.org>
61472
61473         * modules/fwritable-tests: New file.
61474         * tests/test-fwritable.c: New file.
61475
61476         * modules/fwritable: New file.
61477         * lib/fwritable.h: New file.
61478         * lib/fwritable.c: New file.
61479         * m4/fwritable.m4: New file.
61480
61481 2007-04-13  Bruno Haible  <bruno@clisp.org>
61482
61483         * modules/freadable-tests: New file.
61484         * tests/test-freadable.c: New file.
61485
61486         * modules/freadable: New file.
61487         * lib/freadable.h: New file.
61488         * lib/freadable.c: New file.
61489         * m4/freadable.m4: New file.
61490
61491 2007-04-13  Bruno Haible  <bruno@clisp.org>
61492
61493         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
61494         MOSTLYCLEANFILES.
61495
61496 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
61497
61498         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
61499         gzip bootstrap.conf to avoid dragging in i18n machinery.
61500         (gnulib_tool_option): Use it.
61501
61502 2007-04-13  Bruno Haible  <bruno@clisp.org>
61503
61504         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
61505         %F directives.
61506         * tests/test-vasprintf-posix.c (test_function): Likewise.
61507         * tests/test-snprintf-posix.h (test_function): Likewise.
61508         * tests/test-sprintf-posix.h (test_function): Likewise.
61509         * tests/test-fprintf-posix.h (test_function): Likewise.
61510         * tests/test-printf-posix.h (test_function): Likewise.
61511         * tests/test-fprintf-posix.out: Likewise.
61512
61513 2007-04-13  Bruno Haible  <bruno@clisp.org>
61514
61515         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
61516         * modules/tls-tests (configure.ac): Likewise.
61517         Reported by Arto C. Nirkko <anirkko@insel.ch>.
61518
61519 2007-04-13  Bruno Haible  <bruno@clisp.org>
61520
61521         * lib/tls.c (glthread_tls_get): Fix return type.
61522         Patch by Arto C. Nirkko <anirkko@insel.ch>.
61523
61524 2007-04-12  Eric Blake  <ebb9@byu.net>
61525
61526         * modules/gettime (Depends-on): Remove gettime.
61527         Reported by Dmitry V. Levin.
61528
61529 2007-04-12  Bruno Haible  <bruno@clisp.org>
61530
61531         * modules/fflush (Include): Mention <stdio.h>.
61532         * modules/strtoimax (Include): Mention <inttypes.h>.
61533         * modules/strtoumax (Include): Likewise.
61534
61535 2007-04-12  Eric Blake  <ebb9@byu.net>
61536
61537         * .cvsignore: New file.
61538         * .gitignore: Likewise.
61539
61540 2007-04-12  Bruno Haible  <bruno@clisp.org>
61541
61542         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
61543         not before, since $(LDADD) often contains libgnu.a.
61544         * modules/striconv-tests (test_striconv_LDADD): Likewise.
61545         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
61546         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
61547         Needed on Cygwin.
61548
61549 2007-04-12  Eric Blake  <ebb9@byu.net>
61550
61551         Work around glibc's failure to flush stdin on fclose.
61552         * lib/closein.c (close_stdin): Flush stdin before closing.
61553
61554         Work around glibc's failure to reset seekable stdin on exit.
61555         * modules/closein: New module.
61556         * lib/closein.c: New file.
61557         * lib/closein.h: Likewise.
61558         * m4/closein.m4: Likewise.
61559         * MODULES.html.sh (File stream based Input/Output): Document it.
61560
61561 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61562
61563         * gnulib-tool: Rename generated 'autobuild' script to
61564         'do-autobuild' in --create-megatestdir output.
61565
61566         * doc/gnulib.texi (Build robot for gnulib): Fix.
61567
61568 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61569
61570         * modules/sysexits (Depends-on): Add absolute-header.
61571
61572 2007-04-12  Eric Blake  <ebb9@byu.net>
61573
61574         No need to preserve errno on success.
61575         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
61576         Reported by Bruno Haible.
61577
61578 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61579
61580         * MODULES.html.sh (Support for maintaining and releasing
61581         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
61582
61583 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61584
61585         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
61586
61587 2007-04-12  Simon Josefsson  <simon@josefsson.org>
61588
61589         * modules/autobuild: New module.
61590
61591         * m4/autobuild.m4: New file.
61592
61593 2007-04-11  Bruno Haible  <bruno@clisp.org>
61594
61595         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
61596         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
61597         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
61598         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
61599         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61600         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61601         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61602         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61603         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61604         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61605         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
61606         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61607         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61608         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
61609         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61610         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61611         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
61612         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61613         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61614         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
61615         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61616         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61617         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
61618         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61619         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61620         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
61621         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
61622         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
61623         Reported by Eric Blake.
61624
61625 2007-04-11  Bruno Haible  <bruno@clisp.org>
61626
61627         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
61628
61629 2007-04-10  Bruno Haible  <bruno@clisp.org>
61630
61631         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
61632         for NaN and Infinity. Needed on FreeBSD 6.1.
61633         * tests/test-vasnprintf-posix.c (test_function): Undo last change
61634         regarding results for "%010a" of Infinity and NaN.
61635         * tests/test-vasprintf-posix.c (test_function): Likewise.
61636         * tests/test-snprintf-posix.h (test_function): Likewise.
61637         * tests/test-sprintf-posix.h (test_function): Likewise.
61638         * tests/test-fprintf-posix.h (test_function): Likewise.
61639         * tests/test-printf-posix.h (test_function): Likewise.
61640         * tests/test-fprintf-posix.out: Likewise.
61641
61642 2007-04-10  Bruno Haible  <bruno@clisp.org>
61643
61644         * modules/locale-tests: New file.
61645         * tests/test-locale.c: New file.
61646
61647         * modules/locale: New file.
61648         * lib/locale_.h: New file.
61649         * m4/locale_h.m4: New file.
61650
61651 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
61652             Bruno Haible  <bruno@clisp.org>
61653
61654         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
61655         be determined, test for availability of the copysignf, copysign,
61656         copysignl functions.
61657         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
61658         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
61659         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
61660
61661 2007-04-09  Eric Blake  <ebb9@byu.net>
61662
61663         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
61664         * modules/stdio (Makefile.am): Support fflush.
61665         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
61666         * modules/fflush: New file.
61667         * lib/fflush.c: Likewise.
61668         * m4/fflush.m4: Likewise.
61669         * modules/fflush-tests: New test.
61670         * tests/test-fflush.c: Likewise.
61671         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
61672
61673 2007-04-06  Bruno Haible  <bruno@clisp.org>
61674
61675         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
61676         (VASNPRINTF): Use signbit for faster determination whether to print a
61677         minus sign.
61678         * modules/vasnprintf (Files): Remove lib/float+.h.
61679         * modules/fprintf-posix (Depends-on): Add signbit.
61680         * modules/snprintf-posix (Depends-on): Likewise.
61681         * modules/sprintf-posix (Depends-on): Likewise.
61682         * modules/vasnprintf-posix (Depends-on): Likewise.
61683         * modules/vasprintf-posix (Depends-on): Likewise.
61684         * modules/vfprintf-posix (Depends-on): Likewise.
61685         * modules/vsnprintf-posix (Depends-on): Likewise.
61686         * modules/vsprintf-posix (Depends-on): Likewise.
61687
61688 2007-04-06  Bruno Haible  <bruno@clisp.org>
61689
61690         * tests/test-frexp.c (main): Test also the sign bit of zero results.
61691         * tests/test-frexpl.c (main): Likewise.
61692         * tests/test-ldexpl.c (main): Likewise.
61693         * modules/frexp-tests (Depends-on): Add signbit.
61694         * modules/frexpl-tests (Depdends-on): Likewise.
61695         * modules/ldexpl-tests (Depdends-on): Likewise.
61696
61697 2007-04-06  Bruno Haible  <bruno@clisp.org>
61698
61699         * modules/signbit-tests: New file.
61700         * tests/test-signbit.c: New file.
61701
61702         * modules/signbit: New file.
61703         * lib/signbitf.c: New file.
61704         * lib/signbitd.c: New file.
61705         * lib/signbitl.c: New file.
61706         * m4/signbit.m4: New file.
61707         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
61708         (signbit): New macro.
61709         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
61710         REPLACE_SIGNBIT.
61711         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
61712         REPLACE_FREXPL into math.h.
61713
61714 2007-04-06  Bruno Haible  <bruno@clisp.org>
61715
61716         * modules/isnanf-nolibm-tests: New file.
61717         * tests/test-isnanf.c: New file.
61718
61719         * modules/isnanf-nolibm: New file.
61720         * lib/isnanf.h: New file.
61721         * lib/isnanf.c: New file.
61722         * lib/isnan.c: Consider the USE_FLOAT macro.
61723         * m4/isnanf.m4: New file.
61724
61725 2007-04-06  Bruno Haible  <bruno@clisp.org>
61726
61727         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
61728         (Link): New section.
61729
61730         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
61731
61732 2007-04-06  Bruno Haible  <bruno@clisp.org>
61733
61734         Assume the 'long double' type.
61735         * m4/longdouble.m4: Remove file.
61736         * config/srclist.txt: Don't mention longdouble.m4.
61737         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
61738         * lib/float+.h: Likewise.
61739         * lib/frexp.c: Likewise.
61740         * lib/printf-args.h: Likewise.
61741         * lib/printf-args.c: Likewise.
61742         * lib/printf-frexp.c: Likewise.
61743         * lib/printf-parse.c: Likewise.
61744         * lib/vasnprintf.c: Likewise.
61745         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
61746         * m4/intl.m4: Likewise.
61747         * m4/isnanl.m4: Likewise.
61748         * m4/printf.m4: Likewise.
61749         * m4/printf-frexpl.m4: Likewise.
61750         * m4/vasnprintf.m4: Likewise.
61751         * modules/allocsa (Files): Remove m4/longdouble.m4.
61752         * modules/gettext (Files): Likewise.
61753         * modules/relocatable-prog-wrapper (Files): Likewise.
61754         * modules/vasnprintf (Files): Likewise.
61755         * modules/isnanl (Files): Likewise.
61756         (Include): Simplify.
61757         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
61758         (Include): Simplify.
61759         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
61760         (Include): Simplify.
61761         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
61762         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61763         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
61764         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61765         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
61766         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61767         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
61768         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61769         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
61770         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61771         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
61772         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
61773         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
61774         * tests/test-isnanl.c: Likewise.
61775         * tests/test-snprintf-posix.h: Likewise.
61776         * tests/test-sprintf-posix.h: Likewise.
61777         * tests/test-vasnprintf-posix.c: Likewise.
61778         * tests/test-vasnprintf-posix2.c: Likewise.
61779         * tests/test-vasprintf-posix.c: Likewise.
61780
61781 2007-04-06  Bruno Haible  <bruno@clisp.org>
61782
61783         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
61784         * lib/math_.h [__DECC]: Include the overridden include file through
61785         #include_next, outside the double-inclusion guard.
61786         * lib/stdio_.h [__DECC]: Likewise.
61787         * lib/stdlib_.h [__DECC]: Likewise.
61788         * lib/string_.h [__DECC]: Likewise.
61789         * lib/time_.h [__DECC]: Likewise.
61790         * lib/wchar_.h [__DECC]: Likewise.
61791         * lib/wctype_.h [__DECC]: Likewise.
61792         * lib/inttypes_.h [__DECC]: Likewise.
61793         Reported by Albert Chin <china@thewrittenword.com> in
61794         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
61795
61796 2007-04-04  Eric Blake  <ebb9@byu.net>
61797
61798         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
61799         1.5.x.
61800
61801 2007-04-04  Bruno Haible  <bruno@clisp.org>
61802
61803         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
61804         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
61805
61806 2007-04-04  Bruno Haible  <bruno@clisp.org>
61807
61808         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
61809         results for "%010a" of Infinity and NaN.
61810         * tests/test-vasprintf-posix.c (test_function): Likewise.
61811         * tests/test-snprintf-posix.h (test_function): Likewise.
61812         * tests/test-sprintf-posix.h (test_function): Likewise.
61813         * tests/test-fprintf-posix.h (test_function): Remove these tests.
61814         * tests/test-printf-posix.h (test_function): Likewise.
61815         * tests/test-fprintf-posix.out: Update.
61816         Needed for FreeBSD 6.1.
61817
61818 2007-04-04  Bruno Haible  <bruno@clisp.org>
61819
61820         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
61821         directly used by the gnulib modules nor by gnulib-tool.
61822
61823 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
61824
61825         * DEPENDENCIES: Give overall description of version dependency
61826         desirability.  Use more-typical names for apps.
61827         Add shell, coreutils, diffutils, grep, tar, gzip.
61828
61829 2007-04-04  Simon Josefsson  <simon@josefsson.org>
61830
61831         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
61832
61833 2007-04-04  Karl Berry  <karl@gnu.org>
61834
61835         * MODULES.html.sh (func_module): missing '.
61836
61837 2007-04-03  Bruno Haible  <bruno@clisp.org>
61838
61839         * modules/argmatch-tests (Makefile.am): New variable
61840         test_argmatch_LDADD.
61841         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
61842         * modules/array-list-tests (Makefile.am): New variable
61843         test_array_list_LDADD.
61844         * modules/array-oset-tests (Makefile.am): New variable
61845         test_array_oset_LDADD.
61846         * modules/avltree-list-tests (Makefile.am): New variable
61847         test_avltree_list_LDADD.
61848         * modules/avltree-oset-tests (Makefile.am): New variable
61849         test_avltree_oset_LDADD.
61850         * modules/avltreehash-list-tests (Makefile.am): New variable
61851         test_avltreehash_list_LDADD.
61852         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
61853         test_canonicalize_lgpl_LDADD.
61854         * modules/carray-list-tests (Makefile.am): New variable
61855         test_carray_list_LDADD.
61856         * modules/dirname-tests (Makefile.am): New variable
61857         test_dirname_LDADD.
61858         * modules/linked-list-tests (Makefile.am): New variable
61859         test_linked_list_LDADD.
61860         * modules/linkedhash-list-tests (Makefile.am): New variable
61861         test_linkedhash_list_LDADD.
61862         * modules/rbtree-list-tests (Makefile.am): New variable
61863         test_rbtree_list_LDADD.
61864         * modules/rbtree-oset-tests (Makefile.am): New variable
61865         test_rbtree_oset_LDADD.
61866         * modules/rbtreehash-list-tests (Makefile.am): New variable
61867         test_rbtreehash_list_LDADD.
61868         * modules/xvasprintf-tests (Makefile.am): New variable
61869         test_xvasprintf_LDADD.
61870         Reported by Eric Blake.
61871
61872 2007-04-03  Eric Blake  <ebb9@byu.net>
61873
61874         * DEPENDENCIES: Weaken m4 requirements.
61875
61876 2007-04-03  Bruno Haible  <bruno@clisp.org>
61877
61878         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
61879         * modules/isnanl-tests (configure.ac): Likewise.
61880
61881 2007-04-03  Ben Pfaff  <blp@gnu.org>
61882
61883         * modules/iconv_open: Add $(srcdir)/ to source directory
61884         references in Makefile fragments that call gperf, to fix VPATH
61885         builds.
61886
61887 2007-04-03  Bruno Haible  <bruno@clisp.org>
61888
61889         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
61890         * lib/ldexpl.c: Undo last change.
61891
61892 2007-04-03  Bruno Haible  <bruno@clisp.org>
61893
61894         * modules/printf-frexpl (Depends-on): Undo last change.
61895         (Files): Add m4/ldexpl.m4.
61896
61897 2007-04-03  Bruno Haible  <bruno@clisp.org>
61898
61899         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
61900         * modules/isnanl (Link): New section.
61901
61902         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
61903         * modules/frexp (Link): New section.
61904
61905         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
61906         * modules/frexpl (Link): New section.
61907
61908         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
61909         * modules/ldexpl (Link): New section.
61910
61911 2007-04-03  Bruno Haible  <bruno@clisp.org>
61912
61913         * modules/TEMPLATE-EXTENDED: New file.
61914         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
61915
61916 2007-04-03  Bruno Haible  <bruno@clisp.org>
61917
61918         * DEPENDENCIES: New file.
61919         Suggested by Simon Josefsson.
61920
61921 2007-04-03  Bruno Haible  <bruno@clisp.org>
61922
61923         * doc/gnulib.texi: Escape @.
61924
61925 2007-04-03  James Youngman  <jay@gnu.org>
61926         and Paul Eggert  <eggert@cs.ucla.edu>
61927
61928         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
61929         birthtime on all systems that have birthtime, not just those which
61930         use st_birthtimensec rather than st_birthtim.  Putting zero in
61931         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
61932         that the birth time is not available for files on an NFS mount.
61933
61934 2007-04-03  Simon Josefsson  <simon@josefsson.org>
61935
61936         * modules/memxor: Move back from crypto/, suggested by Bruno.
61937         * modules/crypto/hmac-sha1: Fix memxor dependency.
61938
61939         * modules/crypto/gc: Moved from ../.
61940
61941 2007-04-02  Eric Blake  <ebb9@byu.net>
61942
61943         * lib/ldexpl.c (includes): Avoid libm.
61944
61945         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
61946
61947 2007-04-02  Bruno Haible  <bruno@clisp.org>
61948
61949         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
61950         on IRIX.
61951
61952 2007-04-02  Bruno Haible  <bruno@clisp.org>
61953
61954         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
61955         x86 or x86_64 platforms running MacOS X.
61956         Reported by Ryan Schmidt <@ryandesign.com>.
61957
61958 2007-04-02  Bruno Haible  <bruno@clisp.org>
61959
61960         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
61961         i386.
61962
61963 2007-04-01  Simon Josefsson  <simon@josefsson.org>
61964
61965         * modules/crypto/arcfour: Moved from ../.
61966         * modules/crypto/arcfour-tests: Moved from ../.
61967         * modules/crypto/arctwo: Moved from ../.
61968         * modules/crypto/arctwo-tests: Moved from ../.
61969         * modules/crypto/des: Moved from ../.
61970         * modules/crypto/des-tests: Moved from ../.
61971         * modules/crypto/gc-arcfour: Moved from ../.
61972         * modules/crypto/gc-arcfour-tests: Moved from ../.
61973         * modules/crypto/gc-arctwo: Moved from ../.
61974         * modules/crypto/gc-arctwo-tests: Moved from ../.
61975         * modules/crypto/gc-des: Moved from ../.
61976         * modules/crypto/gc-des-tests: Moved from ../.
61977         * modules/crypto/gc-hmac-md5: Moved from ../.
61978         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
61979         * modules/crypto/gc-hmac-sha1: Moved from ../.
61980         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
61981         * modules/crypto/gc-md2: Moved from ../.
61982         * modules/crypto/gc-md2-tests: Moved from ../.
61983         * modules/crypto/gc-md4: Moved from ../.
61984         * modules/crypto/gc-md4-tests: Moved from ../.
61985         * modules/crypto/gc-md5: Moved from ../.
61986         * modules/crypto/gc-md5-tests: Moved from ../.
61987         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
61988         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
61989         * modules/crypto/gc-random: Moved from ../.
61990         * modules/crypto/gc-rijndael: Moved from ../.
61991         * modules/crypto/gc-rijndael-tests: Moved from ../.
61992         * modules/crypto/gc-sha1: Moved from ../.
61993         * modules/crypto/gc-sha1-tests: Moved from ../.
61994         * modules/crypto/gc-tests: Moved from ../.
61995         * modules/crypto/hmac-md5: Moved from ../.
61996         * modules/crypto/hmac-md5-tests: Moved from ../.
61997         * modules/crypto/hmac-sha1: Moved from ../.
61998         * modules/crypto/hmac-sha1-tests: Moved from ../.
61999         * modules/crypto/md2: Moved from ../.
62000         * modules/crypto/md2-tests: Moved from ../.
62001         * modules/crypto/md4: Moved from ../.
62002         * modules/crypto/md4-tests: Moved from ../.
62003         * modules/crypto/md5: Moved from ../.
62004         * modules/crypto/md5-tests: Moved from ../.
62005         * modules/crypto/memxor: Moved from ../.
62006         * modules/crypto/rijndael: Moved from ../.
62007         * modules/crypto/rijndael-tests: Moved from ../.
62008         * modules/crypto/sha1: Moved from ../.
62009
62010 2007-03-30  James Youngman  <jay@gnu.org>
62011
62012         * tests/test-stat-time.c (prepare_test): use chmod() rather than
62013         rename() to change the ctime of a file (because ctime is unaffected
62014         by rename on jfs2 on AIX 5.1).
62015         (main): Start by doing cleanup, in case a previous run failed leaving
62016         test files behind.
62017
62018 2007-03-31  Bruno Haible  <bruno@clisp.org>
62019
62020         Support old proprietary implementations of iconv.
62021         * modules/iconv_open: New file.
62022         * lib/iconv_.h: New file.
62023         * m4/iconv_h.m4: New file.
62024         * lib/iconv_open.c: New file.
62025         * lib/iconv_open-aix.gperf: New file.
62026         * lib/iconv_open-hpux.gperf: New file.
62027         * lib/iconv_open-irix.gperf: New file.
62028         * lib/iconv_open-osf.gperf: New file.
62029         * m4/iconv_open.m4: New file.
62030         * modules/linebreak (Depends-on): Add iconv_open.
62031         * modules/striconv (Depends-on): Likewise.
62032         * modules/striconveh (Depends-on): Likewise.
62033         * modules/unicodeio (Depends-on): Likewise.
62034         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
62035         (iconv_t)(-1).
62036         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
62037         conversion if cd is (iconv_t)(-1).
62038         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
62039         is not possible.
62040
62041 2007-03-31  Bruno Haible  <bruno@clisp.org>
62042
62043         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
62044         work on Solaris either. Protect also second use of "autodetect_jp".
62045
62046 2007-03-31  Bruno Haible  <bruno@clisp.org>
62047
62048         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
62049         the function is not present.
62050
62051 2007-03-31  Bruno Haible  <bruno@clisp.org>
62052
62053         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
62054         the function is not present.
62055
62056 2007-03-31  Bruno Haible  <bruno@clisp.org>
62057
62058         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
62059         a bug in HP-UX iconv_open().
62060
62061 2007-03-31  Bruno Haible  <bruno@clisp.org>
62062
62063         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
62064         (Mathematics <math.h>): New section, add fpieee.
62065         (Input/output <stdio.h>): Add fseterr.
62066         (Mathematics <math.h>): New section, add printf-frexp.
62067         (Container data structures): Add sublist.
62068         (Core language properties): Add fpucw, inline.
62069         (Functions for greatest-width integer types <inttypes.h>): Add
62070         imaxabs, imaxdiv, inttypes.
62071         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
62072         isnanl-nolibm, ldexp.
62073         (Mathematics <math.h>): New section, add printf-frexpl.
62074         (Support for systems lacking POSIX:2001): Add fprintf-posix,
62075         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
62076         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
62077         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
62078         (Unicode string functions): Add unistr/u*-mbtoucr.
62079         (Java): Add javacomp-script, javaexec-script.
62080         (C#): Add csharpcomp-script, csharpexec-script.
62081         (Support for building libraries and executables): Add havelib,
62082         relocatable-*.
62083         (Support for maintaining and releasing projects): Renamed from
62084         'Support for maintaining and release projects'. Add announce-gen.
62085
62086 2007-03-31  Bruno Haible  <bruno@clisp.org>
62087
62088         * README: Talk primarily about git.
62089         (git and CVS): Renamed from CVS.
62090         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
62091         gnulib is available through git.
62092         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
62093
62094 2007-03-30  Bruno Haible  <bruno@clisp.org>
62095
62096         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
62097         * lib/poll_.h: Likewise.
62098         * lib/stat_.h: Likewise.
62099         * lib/sys_time_.h: Likewise.
62100         * lib/sysexit_.h: Likewise.
62101         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
62102         * lib/stdbool_.h: Likewise.
62103         * lib/byteswap_.h: Add double-inclusion guard.
62104
62105 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
62106
62107         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
62108
62109 2007-03-30  Karl Berry  <karl@gnu.org>
62110
62111         * config/srclist-update: double space after USA in the license
62112         substitution, since that's how it's usually (?) written.
62113
62114 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
62115
62116         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
62117         reported by Bruno Haible.
62118
62119 2007-03-29  Bruno Haible  <bruno@clisp.org>
62120
62121         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
62122         a bug in AIX iconv().
62123
62124 2007-03-29  Bruno Haible  <bruno@clisp.org>
62125
62126         * modules/ldexpl-tests: New file.
62127         * tests/test-ldexpl.c: New file.
62128
62129 2007-03-29  Bruno Haible  <bruno@clisp.org>
62130
62131         * lib/ldexpl.c: Include fpucw.h.
62132         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
62133         multiplication.
62134         * modules/ldexpl (Depends-on): Add fpucw.
62135
62136 2007-03-29  Bruno Haible  <bruno@clisp.org>
62137
62138         * modules/ldexpl: New file.
62139         * m4/ldexpl.m4: New file.
62140         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
62141         set.
62142         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
62143         REPLACE_LDEXPL.
62144         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
62145         REPLACE_LDEXPL.
62146         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
62147         gl_FUNC_LDEXPL_WORKS.
62148         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
62149         * modules/mathl (Files): Remove lib/ldexpl.c.
62150         (Depends-on): Add ldexpl.
62151
62152 2007-03-29  Bruno Haible  <bruno@clisp.org>
62153
62154         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
62155
62156 2007-03-29  Bruno Haible  <bruno@clisp.org>
62157
62158         * tests/test-striconveh.c (main): Don't assume that a direct conversion
62159         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
62160         and possibly also HP-UX.
62161         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
62162         work on AIX, IRIX, HP-UX, OSF/1.
62163         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
62164         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
62165         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
62166         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
62167         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
62168         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
62169
62170 2007-03-29  Bruno Haible  <bruno@clisp.org>
62171
62172         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
62173
62174 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
62175
62176         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
62177         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
62178
62179 2007-03-29  Eric Blake  <ebb9@byu.net>
62180
62181         * lib/acl-internal.h: Remove redundant include.
62182         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
62183         Cygwin when a file is locked.
62184
62185 2007-03-29  Bruno Haible  <bruno@clisp.org>
62186
62187         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
62188         file.
62189         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
62190
62191 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
62192
62193         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
62194         try to remove a parent directory if the child couldn't be removed
62195         (except for the first rmdir, which could fail because the child
62196         doesn't exist).  Problem reported by Jeff Blaine in
62197         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
62198
62199 2007-03-28  Bruno Haible  <bruno@clisp.org>
62200
62201         * lib/striconveh.c (utf8conv_carefully): New function.
62202         (mem_cd_iconveh_internal): Invoke it.
62203
62204 2007-03-28  Bruno Haible  <bruno@clisp.org>
62205
62206         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
62207         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
62208         input.
62209         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
62210         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
62211         unistr/u8-uctomb.
62212
62213 2007-03-28  Bruno Haible  <bruno@clisp.org>
62214
62215         * modules/unistr/u8-mbtoucr: New file.
62216         * lib/unistr/u8-mbtoucr.c: New file.
62217         * modules/unistr/u16-mbtoucr: New file.
62218         * lib/unistr/u16-mbtoucr.c: New file.
62219         * modules/unistr/u16-mbtoucr: New file.
62220         * lib/unistr/u16-mbtoucr.c: New file.
62221         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
62222
62223 2007-03-27  Simon Josefsson  <simon@josefsson.org>
62224             Bruno Haible  <bruno@clisp.org>
62225
62226         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
62227         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
62228         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
62229
62230         * m4/stdio_h.m4: Add stubs for vasprintf too.
62231
62232         * modules/stdio: Support vasprintf in sed command.
62233
62234         * modules/vasprintf: Depend on stdio for prototypes.  Remove
62235         vasprintf.h.  Add stdio module indicator.
62236
62237         * lib/stdio_.h: Declare asprintf and vasprintf, based on
62238         vasprintf.h.
62239
62240         * lib/vasprintf.h: File removed.
62241
62242         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
62243         * lib/vasprintf.c: Ditto.
62244         * lib/xvasprintf.c: Ditto.
62245         * tests/test-vasprintf-posix.c: Ditto.
62246         * tests/test-vasprintf.c: Ditto.
62247
62248 2007-03-27  Bruno Haible  <bruno@clisp.org>
62249
62250         Make vasnprintf multithread-safe.
62251         * lib/vasnprintf.c (decimal_point_char): New function.
62252         (VASNPRINTF): Use it.
62253         Suggested by Simon Josefsson.
62254
62255 2007-03-27  Eric Blake  <ebb9@byu.net>
62256
62257         Support sub-second birthtime on cygwin.
62258         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
62259         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
62260         (get_stat_birthtime): Also work with st_birthtim.
62261
62262 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
62263
62264         * lib/stat-time.h (USE_BIRTHTIME): Remove.
62265         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
62266         (get_stat_birthtime_ns): Do not try to use "spare" fields.
62267         (get_stat_birthtime_ns): Simplify compile-time tests.
62268         (get_stat_birthtime): Change the API to look like
62269         get_stat_mtime etc., except return a negative tv_nsec on error.
62270         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
62271         Don't check for "spare" fields.
62272         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
62273         or for struct stat.st_birthtime, as these tests aren't used.
62274         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
62275
62276 2007-03-27  Bruno Haible  <bruno@clisp.org>
62277
62278         * lib/stat-time.h: Include <sys/stat.h>.
62279
62280 2007-03-27  James Youngman  <jay@gnu.org>
62281
62282         * lib/stat-time.h (get_stat_birthtime): New function for
62283           retrieving st_birthtime as provided by UFS2 (hence *BSD).
62284         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
62285           and its variants.
62286         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
62287         * modules/stat-time-test: New file.
62288         * tests/test-stat-time.c: New test, devised by Bruno Haible.
62289
62290 2007-03-26  Bruno Haible  <bruno@clisp.org>
62291
62292         Better support of signalling NaNs.
62293         * lib/atanl.c: Include isnanl.h.
62294         (atanl): Perform test for NaN at the beginning of the function and
62295         through a call to isnanl.
62296         * lib/cosl.c: Include isnanl.h.
62297         (cosl): Perform test for NaN at the beginning of the function and
62298         through a call to isnanl.
62299         * lib/ldexpl.c: Include isnanl.h.
62300         (ldexpl): Perform test for NaN through a call to isnanl.
62301         * lib/logl.c: Include isnanl.h.
62302         (logl): Perform test for NaN at the beginning of the function and
62303         through a call to isnanl.
62304         * lib/sinl.c: Include isnanl.h.
62305         (sinl): Perform test for NaN at the beginning of the function and
62306         through a call to isnanl.
62307         * lib/sqrtl.c: Include isnanl.h.
62308         (sqrtl): Perform test for NaN at the beginning of the function and
62309         through a call to isnanl.
62310         * lib/tanl.c: Include isnanl.h.
62311         (tanl): Perform test for NaN at the beginning of the function and
62312         through a call to isnanl.
62313         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
62314         * modules/mathl (Depends-on): Add isnanl.
62315
62316 2007-03-26  Eric Blake  <ebb9@byu.net>
62317
62318         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
62319         regression in logic sense of previous patch.
62320
62321 2007-03-26  Bruno Haible  <bruno@clisp.org>
62322
62323         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
62324         unportable shell command "if ! ...".
62325         Reported by Ralf Wildenhues.
62326
62327 2007-03-25  Bruno Haible  <bruno@clisp.org>
62328
62329         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
62330         <sysexits.h> file, and only add EX_CONFIG.
62331         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
62332         absolute file name and whether it is sufficient. Substitute also
62333         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
62334         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
62335         ABSOLUTE_SYSEXITS_H into sysexits.h.
62336
62337 2007-03-25  Bruno Haible  <bruno@clisp.org>
62338
62339         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
62340         hints is NULL.
62341
62342 2007-03-25  Bruno Haible  <bruno@clisp.org>
62343
62344         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
62345         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
62346
62347 2007-03-25  Bruno Haible  <bruno@clisp.org>
62348
62349         * lib/vasnprintf.c: Include langinfo.h.
62350         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
62351         multithread-safe.
62352         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
62353         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
62354         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62355         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62356         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62357         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62358         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62359         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
62360         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62361         Reported by Simon Josefsson.
62362
62363 2007-03-25  Bruno Haible  <bruno@clisp.org>
62364
62365         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
62366         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
62367         * modules/vasnprintf (Depends-on): Add stdint.
62368
62369 2007-03-25  Bruno Haible  <bruno@clisp.org>
62370
62371         * modules/fpieee: New file.
62372         * m4/fpieee.m4: New file.
62373         * modules/isnan-nolibm (Depends-on): Add fpieee.
62374         * modules/isnanl-nolibm (Depends-on): Add fpieee.
62375         * modules/isnanl (Depends-on): Add fpieee.
62376
62377 2007-03-25  Bruno Haible  <bruno@clisp.org>
62378
62379         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
62380
62381 2007-03-25  Bruno Haible  <bruno@clisp.org>
62382
62383         Avoid test failures on IRIX 6.5.
62384         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
62385         (main): Use it.
62386         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
62387         macros.
62388         (main): Use them.
62389
62390 2007-03-25  Bruno Haible  <bruno@clisp.org>
62391
62392         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
62393         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
62394         exists but doesn't work.
62395         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
62396         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
62397         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
62398         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
62399         math.h.
62400
62401 2007-03-25  Bruno Haible  <bruno@clisp.org>
62402
62403         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
62404         returns inf. Needed on IRIX 6.5.
62405
62406 2007-03-25  Bruno Haible  <bruno@clisp.org>
62407
62408         * tests/test-frexpl.c: Include isnanl-nolibm.h.
62409         (main): Use isnanl instead of x != x idiom.
62410         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
62411
62412         * tests/test-frexp.c: Include isnan.h.
62413         (main): Use isnan instead of x != x idiom.
62414         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
62415
62416 2007-03-25  Bruno Haible  <bruno@clisp.org>
62417
62418         * tests/test-frexp.c (NaN): New function/macro.
62419         (main): Use it instead of 0.0 / 0.0.
62420         * tests/test-isnan.c (NaN): New function/macro.
62421         (main): Use it instead of 0.0 / 0.0.
62422         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
62423         (test_function): Use it instead of 0.0 / 0.0.
62424         * tests/test-vasprintf-posix.c (NaN): New function/macro.
62425         (test_function): Use it instead of 0.0 / 0.0.
62426         * tests/test-snprintf-posix.h (NaN): New function/macro.
62427         (test_function): Use it instead of 0.0 / 0.0.
62428         * tests/test-sprintf-posix.h (NaN): New function/macro.
62429         (test_function): Use it instead of 0.0 / 0.0.
62430         * tests/test-fprintf-posix.h (NaN): New function/macro.
62431         (test_function): Use it instead of 0.0 / 0.0.
62432         * tests/test-printf-posix.h (NaN): New function/macro.
62433         (test_function): Use it instead of 0.0 / 0.0.
62434
62435         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
62436
62437 2007-03-25  Bruno Haible  <bruno@clisp.org>
62438
62439         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
62440
62441 2007-03-25  Bruno Haible  <bruno@clisp.org>
62442
62443         * lib/regexec.c (merge_state_with_log): Make static.
62444
62445 2007-03-25  Bruno Haible  <bruno@clisp.org>
62446
62447         * lib/trigl.c (kernel_rem_pio2): Make static.
62448
62449 2007-03-25  Bruno Haible  <bruno@clisp.org>
62450
62451         * lib/sincosl.c (sincosl_table): Make static.
62452
62453 2007-03-25  Bruno Haible  <bruno@clisp.org>
62454
62455         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
62456         if the compiler does not support C99.
62457
62458 2007-03-25  Bruno Haible  <bruno@clisp.org>
62459
62460         * modules/time (Makefile.am): Ensure all rule action lines start with a
62461         tab.
62462
62463 2007-03-24  Bruno Haible  <bruno@clisp.org>
62464
62465         * modules/tsearch-tests: New file.
62466         * tests/test-tsearch.sh: New file.
62467         * tests/test-tsearch.c: New file, mostly copied from glibc.
62468
62469         * modules/search-tests: New file.
62470         * tests/test-search.c: New file.
62471
62472         * modules/search: New file.
62473         * lib/search_.h: New file, incorporating lib/tsearch.h.
62474         * m4/search_h.m4: New file.
62475         * lib/tsearch.h: Remove file.
62476         * lib/tsearch.c: Include search.h instead of tsearch.h.
62477         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
62478         HAVE_TSEARCH.
62479         * modules/tsearch (Files): Remove lib/tsearch.h.
62480         (Depends-on): Add search.
62481         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
62482         (Include): Change tsearch.h into search.h.
62483
62484 2007-03-24  Bruno Haible  <bruno@clisp.org>
62485
62486         * modules/fpucw: New file.
62487         * lib/fpucw.h: New file.
62488         * lib/frexp.c: Include fpucw.h.
62489         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
62490         (FUNC): Use them.
62491         * lib/printf-frexp.c: Include fpucw.h.
62492         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
62493         (FUNC): Use them.
62494         * lib/vasnprintf.c: Include fpucw.h.
62495         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
62496         'long double' calculations.
62497         * tests/test-frexpl.c: Include fpucw.h.
62498         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
62499         * tests/test-printf-frexpl.c: Include fpucw.h.
62500         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
62501         * modules/frexpl (Depends-on): Add fpucw.
62502         * modules/printf-frexpl (Depends-on): Likewise.
62503         * modules/fprintf-posix (Depends-on): Likewise.
62504         * modules/snprintf-posix (Depends-on): Likewise.
62505         * modules/sprintf-posix (Depends-on): Likewise.
62506         * modules/vasnprintf-posix (Depends-on): Likewise.
62507         * modules/vasprintf-posix (Depends-on): Likewise.
62508         * modules/vfprintf-posix (Depends-on): Likewise.
62509         * modules/vsnprintf-posix (Depends-on): Likewise.
62510         * modules/vsprintf-posix (Depends-on): Likewise.
62511         * modules/frexpl-tests (Depends-on): Likewise.
62512         * modules/printf-frexpl-tests (Depends-on): Likewise.
62513
62514 2007-03-24  Bruno Haible  <bruno@clisp.org>
62515
62516         * lib/float+.h: New file.
62517         * lib/isnan.c: Include float+.h.
62518         (SIZE): New macro.
62519         (FUNC): Compare only SIZE bytes of the value.
62520         * lib/vasnprintf.c: Include float+.h.
62521         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
62522         SIZEOF_LDBL or SIZEOF_DBL bytes.
62523         * modules/isnan-nolibm (Files): Add lib/float+.h.
62524         * modules/isnanl-nolibm (Files): Add lib/float+.h.
62525         * modules/isnanl (Files): Add lib/float+.h.
62526         * modules/vasnprintf (Files): Add lib/float+.h.
62527
62528 2007-03-24  Bruno Haible  <bruno@clisp.org>
62529
62530         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
62531         include isnanl-nolibm.h.
62532
62533 2007-03-24  Bruno Haible  <bruno@clisp.org>
62534
62535         * tests/test-read-file.c (main): Don't produce spurious output for
62536         expected situations. Make the test fail if it encountered unexpected
62537         results.
62538
62539 2007-03-24  Bruno Haible  <bruno@clisp.org>
62540
62541         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
62542         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
62543
62544 2007-03-24  Bruno Haible  <bruno@clisp.org>
62545
62546         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
62547
62548 2007-03-24  Bruno Haible  <bruno@clisp.org>
62549
62550         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
62551         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
62552
62553         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
62554         * modules/utf8-ucs4: Turn into a symbolic link to module
62555         unistr/u8-mbtouc.
62556
62557         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
62558         utf8-ucs4-unsafe.
62559         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
62560         unistr/u8-mbtouc-unsafe.
62561
62562         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
62563         * modules/utf16-ucs4: Turn into a symbolic link to module
62564         unistr/u16-mbtouc.
62565
62566         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
62567         utf16-ucs4-unsafe.
62568         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
62569         unistr/u16-mbtouc-unsafe.
62570
62571         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
62572         * modules/ucs4-utf8: Turn into a symbolic link to module
62573         unistr/u8-ubtomb.
62574
62575         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
62576         * modules/ucs4-utf16: Turn into a symbolic link to module
62577         unistr/u16-ubtomb.
62578
62579 2007-03-24  Bruno Haible  <bruno@clisp.org>
62580
62581         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
62582         Enable the function only if HAVE_INLINE.
62583         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
62584         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
62585         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
62586         Enable the function only if HAVE_INLINE.
62587         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
62588         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
62589         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
62590         Enable the function only if HAVE_INLINE.
62591         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
62592         Enable the function only if HAVE_INLINE.
62593         * modules/utf8-ucs4: Update.
62594         * modules/utf8-ucs4-unsafe: Update.
62595         * modules/utf16-ucs4: Update.
62596         * modules/utf16-ucs4-unsafe: Update.
62597         * modules/ucs4-utf8: Update.
62598         * modules/ucs4-utf16: Update.
62599
62600 2007-03-24  Bruno Haible  <bruno@clisp.org>
62601
62602         * lib/utf8-ucs4.h: Remove file.
62603         * lib/utf8-ucs4-unsafe.h: Remove file.
62604         * lib/utf16-ucs4.h: Remove file.
62605         * lib/utf16-ucs4-unsafe.h: Remove file.
62606         * lib/ucs4-utf8.h: Remove file.
62607         * lib/ucs4-utf16.h: Remove file.
62608         * lib/unistr.h: Include their previous contents.
62609         * m4/utf-ucs4.m4: Remove file.
62610         * m4/ucs4-utf.m4: Remove file.
62611         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
62612         (Depends-on): Add unistr/base.
62613         (configure.ac): Remove gl_UTF_UCS4.
62614         (Makefile.am): Update.
62615         (Include): Change to unistr.h.
62616         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
62617         (Depends-on): Add unistr/base.
62618         (configure.ac): Remove gl_UTF_UCS4.
62619         (Makefile.am): Update.
62620         (Include): Change to unistr.h.
62621         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
62622         (Depends-on): Add unistr/base.
62623         (configure.ac): Remove gl_UTF_UCS4.
62624         (Makefile.am): Update.
62625         (Include): Change to unistr.h.
62626         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
62627         (Depends-on): Add unistr/base.
62628         (configure.ac): Remove gl_UTF_UCS4.
62629         (Makefile.am): Update.
62630         (Include): Change to unistr.h.
62631         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
62632         (Depends-on): Add unistr/base.
62633         (configure.ac): Remove gl_UCS4_UTF.
62634         (Makefile.am): Update.
62635         (Include): Change to unistr.h.
62636         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
62637         (Depends-on): Add unistr/base.
62638         (configure.ac): Remove gl_UCS4_UTF.
62639         (Makefile.am): Update.
62640         (Include): Change to unistr.h.
62641         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
62642         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
62643         utf8-ucs4-unsafe.h.
62644         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
62645         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
62646         utf16-ucs4-unsafe.h.
62647         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
62648         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
62649         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
62650         * lib/unistr/u8-strchr.c: Likewise.
62651         * lib/unistr/u8-strrchr.c: Likewise.
62652         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
62653         * lib/unistr/u16-strchr.c: Likewise.
62654         * lib/unistr/u16-strrchr.c: Likewise.
62655         * lib/striconveh.c: Update.
62656         * lib/linebreak.c: Update.
62657
62658 2007-03-24  Bruno Haible  <bruno@clisp.org>
62659
62660         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
62661         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
62662
62663 2007-03-22  Bruno Haible  <bruno@clisp.org>
62664
62665         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
62666
62667 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
62668
62669         * MODULES.html.sh (File system functions): New module write-any-file.
62670         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
62671         * m4/write-any-file.m4: New files.
62672
62673 2007-03-23  Eric Blake  <ebb9@byu.net>
62674
62675         * gnulib-tool: Rearrange space-tab sequences, since some editors
62676         like to eat them.
62677
62678 2007-03-23  Eric Blake  <ebb9@byu.net>
62679
62680         * lib/version-etc.c (version_etc_va): Update license wording to
62681         be more concise.  Recommended by Richard Stallman.
62682
62683 2007-03-22  Bruno Haible  <bruno@clisp.org>
62684
62685         * lib/poll.c (MSG_PEEK): New fallback definition.
62686
62687 2007-03-22  Bruno Haible  <bruno@clisp.org>
62688
62689         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
62690         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
62691         (main): Update.
62692         Fixes a compilation error on BeOS.
62693
62694 2007-03-22  Bruno Haible  <bruno@clisp.org>
62695
62696         * modules/frexpl-tests: New file.
62697         * tests/test-frexpl.c: New file.
62698
62699         * modules/frexpl: New file.
62700         * m4/frexpl.m4: New file.
62701         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
62702         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
62703         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
62704         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
62705         (Depends-on): Add frexpl. Remove isnanl-nolibm.
62706         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
62707
62708 2007-03-22  Bruno Haible  <bruno@clisp.org>
62709
62710         * lib/frexpl.c: Share code with lib/frexp.c.
62711         * modules/mathl (Files): Add lib/frexp.c.
62712         (Depends-on): Add isnanl-nolibm.
62713
62714 2007-03-22  Bruno Haible  <bruno@clisp.org>
62715
62716         * modules/printf-frexp (Files): Add m4/frexp.m4.
62717         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
62718         only if the found frexp function actually works.
62719
62720 2007-03-22  Bruno Haible  <bruno@clisp.org>
62721
62722         * lib/frexp.c: Remove older implementation that uses divisions.
62723
62724 2007-03-21  Bruno Haible  <bruno@clisp.org>
62725
62726         * modules/frexp-tests: New file.
62727         * tests/test-frexp.c: New file.
62728
62729         * modules/frexp: New file.
62730         * lib/frexp.c: New file.
62731         * m4/frexp.m4: New file.
62732         * lib/math_.h (frexp): New declaration.
62733         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
62734         REPLACE_FREXP.
62735         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
62736
62737 2007-03-21  Bruno Haible  <bruno@clisp.org>
62738
62739         * modules/isnanl-tests: New file.
62740         * tests/test-isnanl.c: New file.
62741
62742         * modules/isnanl: New file.
62743         * lib/isnanl.h: New file.
62744         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
62745         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
62746         gl_FUNC_ISNANL_WORKS.
62747         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
62748         New macros.
62749
62750 2007-03-21  Bruno Haible  <bruno@clisp.org>
62751
62752         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
62753         lib/isnanl.h.
62754         (Include): Update.
62755         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
62756         * lib/vasnprintf.c: Update.
62757         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
62758         tests/test-isnanl.h, remove tests/test-isnanl.c.
62759         (Makefile.am): Update.
62760         * tests/test-isnanl-nolibm.c: New file.
62761         * tests/test-isnanl.h: New file.
62762         * tests/test-isnanl.c: Remove file.
62763
62764 2007-03-21  Jim Meyering  <jim@meyering.net>
62765
62766         When trying to open ".", treat ESTALE like EACCES.
62767         * lib/savewd.c (savewd_save): Resort to forking not just upon
62768         failure with EACCES, but also when errno is ESTALE.
62769
62770 2007-03-20  Bruno Haible  <bruno@clisp.org>
62771
62772         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
62773         Needed on AIX 5.1. Reported by Matthew Woehlke.
62774
62775 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62776
62777         Suggestions by Bruno Haible:
62778         * lib/acl-internal.h: Include "gettext.h" rather than rolling
62779         our own.
62780         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
62781         * modules/acl (Depends-on): Add gettext.
62782
62783 2007-03-19  Bruno Haible  <bruno@clisp.org>
62784
62785         * modules/iconvme: Remove file.
62786         * lib/iconvme.h: Remove file.
62787         * lib/iconvme.c: Remove file.
62788         * m4/iconvme.m4: Remove file.
62789
62790 2007-03-19  Bruno Haible  <bruno@clisp.org>
62791
62792         * doc/relocatable-maint.texi: Break long shell script line.
62793         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
62794
62795 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62796
62797         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
62798         handle file_has_acl.
62799         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
62800         * lib/acl.c: Move header inclusions and related macro defns into
62801         lib/acl-internal.h.
62802         (S_ISLNK): Remove defn, since that's now done for us.
62803         (file_has_acl): Move to lib/file-has-acl.c.
62804         Call acl_trivial if available.  This is the crucial part of the fix.
62805         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
62806         shared within the library.  Rewrite a bit, partly to make it compatible
62807         with the GNU coding style.
62808         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
62809         Remove unnecessary double-quotes.
62810         Don't test for acl_to_text; the build will catch that.
62811         Replace acl_entries if it doesn't exist and it is needed.
62812         Check for -lsec and acl_trivial (as used on Solaris 10).
62813         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
62814         lib/file-has-acl.c.
62815         (Depends-on): Add sys_stat, for S_ISLNK.
62816
62817 2007-03-19  Ben Pfaff  <blp@gnu.org>
62818
62819         * doc/gnulib.texi: Fix typos.
62820         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
62821
62822 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
62823
62824         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
62825         If size is zero here, buf must be zero.
62826
62827 2007-03-19  Simon Josefsson  <simon@josefsson.org>
62828
62829         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
62830         <bruno@clisp.org>.
62831
62832 2007-03-18  Bruno Haible  <bruno@clisp.org>
62833
62834         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
62835         Suggested by Eric Blake.
62836
62837 2007-03-18  Ben Pfaff  <blp@gnu.org>
62838
62839         * doc/relocatable.texi: Recommend using as prefix a directory
62840         that does not exist and will never be created.  Based on
62841         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
62842         and others.
62843
62844 2007-03-17  Bruno Haible  <bruno@clisp.org>
62845
62846         * lib/fchownat.c: Include lchown.h.
62847
62848 2007-03-17  Bruno Haible  <bruno@clisp.org>
62849
62850         Fix endless loop when the given allocated size was > INT_MAX.
62851         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
62852         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
62853         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
62854         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
62855         * lib/sprintf.c (sprintf): Likewise.
62856
62857 2007-03-17  Bruno Haible  <bruno@clisp.org>
62858
62859         * tests/test-argp-2.sh (func_compare): Output a context diff.
62860
62861 2007-03-17  Bruno Haible  <bruno@clisp.org>
62862
62863         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
62864         locale's decimal-point character.
62865
62866 2007-03-17  Bruno Haible  <bruno@clisp.org>
62867
62868         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
62869         before comparing it. Needed because on some platforms (e.g. x86) a
62870         'long double' occupies less bytes than sizeof (long double).
62871
62872 2007-03-17  Bruno Haible  <bruno@clisp.org>
62873
62874         * tests/test-crc.c (main): Make printf statements 64-bit clean.
62875         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
62876         * tests/test-getaddrinfo.c (simple): Likewise.
62877         * tests/test-read-file.c (main): Likewise.
62878
62879 2007-03-17  Bruno Haible  <bruno@clisp.org>
62880
62881         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
62882
62883 2007-03-17  Bruno Haible  <bruno@clisp.org>
62884
62885         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
62886         unused variable.
62887
62888 2007-03-17  Bruno Haible  <bruno@clisp.org>
62889
62890         * tests/test-c-strcasecmp.c: Include c-strcase.h.
62891         * tests/test-c-strncasecmp.c: Likewise.
62892
62893 2007-03-17  Bruno Haible  <bruno@clisp.org>
62894
62895         * modules/stdlib (Depends-on): Add unistd.
62896         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
62897         Needed for MacOS X 10.3.
62898
62899 2007-03-17  Bruno Haible  <bruno@clisp.org>
62900
62901         * lib/unistr/u-strdup.h: Include <stdlib.h>.
62902
62903 2007-03-17  Bruno Haible  <bruno@clisp.org>
62904
62905         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
62906
62907 2007-03-17  Bruno Haible  <bruno@clisp.org>
62908
62909         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
62910         to reflect files copied from gnulib (with or without modifications).
62911         Suggested by Jim Meyering.
62912
62913 2007-03-17  Eric Blake  <ebb9@byu.net>
62914
62915         * NEWS: Document stdlib change from 2007-02-18.
62916
62917 2007-03-17  Jim Meyering  <jim@meyering.net>
62918
62919         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
62920         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
62921         someone uses a name containing shell meta-characters.
62922         Reported by Alfred M. Szmidt.
62923
62924         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
62925
62926 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62927
62928         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
62929         and copy gettext configuration files only if configure.ac contains
62930         a use of AM_GNU_GETTEXT_VERSION.
62931
62932 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
62933
62934         * build-aux/bootstrap (gnulib_name): New variable.
62935         (gnulib_tool_options): Use it.
62936
62937 2007-03-13  Simon Josefsson  <simon@josefsson.org>
62938
62939         * tests/test-des.c: Use new namespace.
62940
62941 2007-03-15  Bruno Haible  <bruno@clisp.org>
62942
62943         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
62944         Reported by James Youngman <jay@gnu.org>.
62945
62946 2007-03-15  Bruno Haible  <bruno@clisp.org>
62947
62948         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
62949         declared prototype. Needed with cc on OSF/1 5.1.
62950
62951 2007-03-15  Bruno Haible  <bruno@clisp.org>
62952
62953         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
62954         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
62955         (struct gl_list_implementation): Add dispose_fn argument to the
62956         'create_empty', 'create' methods.
62957         (struct gl_list_impl_base): Add field 'dispose_fn'.
62958         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
62959         argument.
62960         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
62961         dispose_fn argument.
62962         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
62963         dispose_fn on the dropped values.
62964         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
62965         dispose_fn argument.
62966         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
62967         dropped values.
62968         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
62969         (gl_tree_remove_node): Call dispose_fn on the dropped value.
62970         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
62971         (gl_tree_remove_node): Call dispose_fn on the dropped value.
62972         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
62973         argument.
62974         (gl_tree_list_free): Call dispose_fn on the dropped values.
62975         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
62976         the dropped values.
62977         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62978         Add dispose_fn argument.
62979         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
62980         Call dispose_fn on the dropped values.
62981         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
62982         Add dispose_fn argument.
62983         (gl_sublist_create): Initialize the 'dispose_fn' field.
62984         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
62985         * tests/test-array_list.c (main): Update.
62986         * tests/test-carray_list.c (main): Update.
62987         * tests/test-avltree_list.c (main): Update.
62988         * tests/test-rbtree_list.c (main): Update.
62989         * tests/test-avltreehash_list.c (main): Update.
62990         * tests/test-rbtreehash_list.c (main): Update.
62991         * tests/test-linked_list.c (main): Update.
62992         * tests/test-linkedhash_list.c (main): Update.
62993         * tests/test-array_oset.c (main): Update.
62994
62995 2007-03-15  Bruno Haible  <bruno@clisp.org>
62996
62997         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
62998         (gl_oset_create_empty): Add dispose_fn argument.
62999         (struct gl_oset_implementation): Add dispose_fn argument to
63000         'create_empty' method.
63001         (struct gl_oset_impl_base): Add dispose_fn field.
63002         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
63003         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
63004         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
63005         values.
63006         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
63007         (gl_tree_oset_free): Call dispose_fn on the dropped values.
63008         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
63009         dropped value.
63010         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
63011         dropped value.
63012         * tests/test-array_oset.c (main): Update.
63013         * tests/test-avltree_oset.c (main): Update.
63014         * tests/test-rbtree_oset.c (main): Update.
63015         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
63016
63017 2007-03-13  Bruno Haible  <bruno@clisp.org>
63018
63019         * tests/test-stdbool.c (i): Update after last patch.
63020
63021 2007-03-12  Bruno Haible  <bruno@clisp.org>
63022
63023         * lib/quotearg.c: Include <wctype.h> early, before the definition of
63024         the iswprint macro. Needed on Solaris 2.5.1.
63025
63026 2007-03-12  Bruno Haible  <bruno@clisp.org>
63027
63028         * tests/test-printf-frexp.c (main): Declare x as volatile.
63029
63030 2007-03-12  Simon Josefsson  <simon@josefsson.org>
63031
63032         * doc/gnulib.texi (Build robot for gnulib): New section.
63033
63034 2007-03-12  Jim Meyering  <jim@meyering.net>
63035
63036         * build-aux/bootstrap: New file.
63037         * build-aux/bootstrap.conf: New file, from coreutils.
63038
63039 2007-03-11  Bruno Haible  <bruno@clisp.org>
63040
63041         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
63042
63043 2007-03-12  Simon Josefsson  <simon@josefsson.org>
63044
63045         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
63046         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
63047         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
63048
63049 2007-03-11  Bruno Haible  <bruno@clisp.org>
63050
63051         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
63052         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
63053
63054 2007-03-11  Bruno Haible  <bruno@clisp.org>
63055
63056         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
63057         formula. Needed for SunPRO C 5.0.
63058
63059 2007-03-11  Bruno Haible  <bruno@clisp.org>
63060
63061         * modules/long-options (Depends-on): Add getopt.
63062
63063 2007-03-11  Bruno Haible  <bruno@clisp.org>
63064
63065         * modules/modechange (Depends-on): Add stdbool.
63066
63067 2007-03-11  Bruno Haible  <bruno@clisp.org>
63068
63069         * modules/i-ring (Depends-on): Add stdbool.
63070
63071 2007-03-11  Bruno Haible  <bruno@clisp.org>
63072
63073         * modules/gc-des (Depends-on): Add stdbool.
63074
63075 2007-03-11  Bruno Haible  <bruno@clisp.org>
63076
63077         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
63078
63079 2007-03-11  Bruno Haible  <bruno@clisp.org>
63080
63081         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
63082
63083 2007-03-11  Bruno Haible  <bruno@clisp.org>
63084
63085         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
63086
63087 2007-03-11  Bruno Haible  <bruno@clisp.org>
63088
63089         * lib/vasnprintf.c (sprintf): Undefine.
63090
63091 2007-03-11  Bruno Haible  <bruno@clisp.org>
63092
63093         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
63094         initializers in SunPRO C and Compaq C compilers.
63095
63096 2007-03-11  Bruno Haible  <bruno@clisp.org>
63097
63098         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
63099         decrementing code ANSI C compliant.
63100
63101 2007-03-11  Bruno Haible  <bruno@clisp.org>
63102
63103         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
63104         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
63105
63106 2007-03-11  Bruno Haible  <bruno@clisp.org>
63107
63108         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
63109         <stdbool.h> substitute doesn't pass.
63110
63111 2007-03-11  Bruno Haible  <bruno@clisp.org>
63112
63113         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
63114
63115 2007-03-11  Bruno Haible  <bruno@clisp.org>
63116
63117         * gnulib-tool (func_create_megatestdir): Create also an autobuild
63118         script, for submission to autobuild.josefsson.org.
63119
63120 2007-03-10  Bruno Haible  <bruno@clisp.org>
63121
63122         * modules/canonicalize-lgpl-tests: New file.
63123         * tests/test-canonicalize-lgpl.sh: New file.
63124         * tests/test-canonicalize-lgpl.c: New file.
63125
63126         * modules/c-strcase-tests: New file.
63127         * tests/test-c-strcase.sh: New file.
63128         * tests/test-c-strcasecmp.c: New file.
63129         * tests/test-c-strncasecmp.c: New file.
63130
63131         * modules/atexit-tests: New file.
63132         * tests/test-atexit.sh: New file.
63133         * tests/test-atexit.c: New file.
63134
63135 2007-03-10  Bruno Haible  <bruno@clisp.org>
63136
63137         * tests/test-binary-io.sh: Use temporary filenames that are not so
63138         likely to clash with those of other tests (in a parallel make).
63139         * tests/test-binary-io.c: Likewise.
63140
63141 2007-03-10  Bruno Haible  <bruno@clisp.org>
63142
63143         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
63144         fallback; use #error instead.
63145         Suggested by Simon Josefsson.
63146
63147 2007-03-10  Bruno Haible  <bruno@clisp.org>
63148
63149         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
63150         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
63151         first and the last.
63152
63153 2007-03-10  Bruno Haible  <bruno@clisp.org>
63154
63155         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
63156
63157 2007-03-10  Bruno Haible  <bruno@clisp.org>
63158
63159         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
63160         "make distcheck".
63161         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
63162         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
63163         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
63164
63165 2007-03-10  Bruno Haible  <bruno@clisp.org>
63166
63167         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
63168         variable.
63169         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
63170         variable.
63171
63172 2007-03-09  Eric Blake  <ebb9@byu.net>
63173         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
63174
63175         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
63176         types are not being provided by gnulib.
63177         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
63178         types are supported.
63179
63180 2007-03-10  Bruno Haible  <bruno@clisp.org>
63181
63182         * lib/stdio_.h (__attribute__): New macro.
63183         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
63184         vsprintf): Specify __attribute__ __format__ for GCC.
63185         Suggested by Eric Blake.
63186
63187 2007-03-09  Bruno Haible  <bruno@clisp.org>
63188
63189         * modules/printf-posix-tests: New file.
63190         * tests/test-printf-posix.sh: New file.
63191         * tests/test-printf-posix.c: New file.
63192
63193         * modules/printf-posix: New file.
63194         * lib/printf.c: New file.
63195         * m4/printf-posix-rpl.m4: New file.
63196         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
63197         REPLACE_PRINTF.
63198         * lib/stdio_.h (printf): New declaration.
63199         (format, __format__, ____printf____, ____scanf____, ____strftime____,
63200         ____strfmon____): New macros.
63201         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
63202         REPLACE_PRINTF.
63203
63204 2007-03-09  Bruno Haible  <bruno@clisp.org>
63205
63206         * tests/test-vasnprintf-posix2.sh: New file.
63207         * tests/test-vasnprintf-posix2.c: New file.
63208         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
63209         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
63210         (Makefile.am): Activate test-vasnprintf-posix2.sh.
63211
63212         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
63213         a locale dependent decimal point, rather than always '.'.
63214
63215 2007-03-09  Eric Blake  <ebb9@byu.net>
63216
63217         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
63218         spite of platforms like Tandem/NSK that define it to -1.
63219
63220 2007-03-08  Bruno Haible  <bruno@clisp.org>
63221
63222         * modules/vprintf-posix-tests: New file.
63223         * tests/test-vprintf-posix.sh: New file.
63224         * tests/test-vprintf-posix.c: New file.
63225         * tests/test-printf-posix.h: New file.
63226
63227         * modules/vprintf-posix: New file.
63228         * lib/vprintf.c: New file.
63229         * m4/vprintf-posix.m4: New file.
63230         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
63231         REPLACE_VPRINTF.
63232         * lib/stdio_.h (vprintf): New declaration.
63233         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
63234         REPLACE_VPRINTF.
63235
63236 2007-03-08  Bruno Haible  <bruno@clisp.org>
63237
63238         * modules/fprintf-posix-tests: New file.
63239         * tests/test-fprintf-posix.sh: New file.
63240         * tests/test-fprintf-posix.c: New file.
63241
63242         * modules/fprintf-posix: New file.
63243         * lib/fprintf.c: New file.
63244         * m4/fprintf-posix.m4: New file.
63245         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
63246         REPLACE_FPRINTF.
63247         * lib/stdio_.h (fprintf): New declaration.
63248         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
63249         REPLACE_FPRINTF.
63250
63251 2007-03-08  Bruno Haible  <bruno@clisp.org>
63252
63253         * modules/vfprintf-posix-tests: New file.
63254         * tests/test-vfprintf-posix.sh: New file.
63255         * tests/test-vfprintf-posix.c: New file.
63256         * tests/test-fprintf-posix.h: New file.
63257         * tests/test-fprintf-posix.out: New file.
63258
63259         * modules/vfprintf-posix: New file.
63260         * lib/vfprintf.c: New file.
63261         * m4/vfprintf-posix.m4: New file.
63262         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
63263         REPLACE_VFPRINTF.
63264         * lib/stdio_.h (vfprintf): New declaration.
63265         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
63266         REPLACE_VFPRINTF.
63267
63268 2007-03-08  Bruno Haible  <bruno@clisp.org>
63269
63270         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
63271
63272 2007-03-08  Bruno Haible  <bruno@clisp.org>
63273
63274         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
63275         instead of 'expr' invocations.
63276         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63277         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63278         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63279         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63280         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63281         Suggested by Paul Eggert.
63282
63283 2007-03-08  Bruno Haible  <bruno@clisp.org>
63284
63285         * modules/fseterr-tests: New file.
63286         * tests/test-fseterr.c: New file.
63287
63288         * modules/fseterr: New file.
63289         * lib/fseterr.h: New file.
63290         * lib/fseterr.c: New file.
63291
63292 2007-03-08  Bruno Haible  <bruno@clisp.org>
63293
63294         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
63295         * lib/getopt_.h: Likewise.
63296         * lib/mbswidth.h: Likewise.
63297         * lib/setenv.h: Likewise.
63298         * lib/vasnprintf.h: Likewise.
63299         * lib/vasprintf.h: Likewise.
63300         * lib/verror.h: Likewise.
63301         * lib/xsetenv.h: Likewise.
63302         * lib/xvasprintf.h: Likewise.
63303
63304 2007-03-08  Jim Meyering  <jim@meyering.net>
63305
63306         * users.txt: Add parted.
63307
63308         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
63309
63310 2007-03-07  Bruno Haible  <bruno@clisp.org>
63311
63312         * m4/printf.m4: Make the shell script snippets copy&pastable.
63313
63314 2007-03-02  Bruno Haible  <bruno@clisp.org>
63315
63316         * lib/netinet_in_.h: New file.
63317         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
63318         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
63319         * modules/netinet_in (Files): Add lib/netinet_in_.h.
63320         (Depends-on): Add absolute-header.
63321         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
63322         into netinet/in.h.
63323
63324 2007-03-03  Bruno Haible  <bruno@clisp.org>
63325
63326         * lib/sys_select_.h: New file.
63327         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
63328         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
63329         * modules/sys_select (Files): Add lib/sys_select_.h.
63330         (Depends-on): Add absolute-header.
63331         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
63332         into sys/select.h.
63333
63334 2007-03-02  Bruno Haible  <bruno@clisp.org>
63335
63336         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
63337         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
63338         values.
63339         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
63340         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
63341         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
63342         * modules/sys_socket (Depends-on): Add absolute-header.
63343         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
63344         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
63345         (Include): Remove requirement of inclusion of <sys/types.h>.
63346
63347 2007-03-02  Bruno Haible  <bruno@clisp.org>
63348
63349         * lib/byteswap_.h (bswap_32): Fix formula.
63350
63351 2007-03-06  Bruno Haible  <bruno@clisp.org>
63352
63353         * modules/sprintf-posix-tests: New file.
63354         * tests/test-sprintf-posix.c: New file.
63355
63356         * modules/sprintf-posix: New file.
63357         * lib/sprintf.c: New file.
63358         * m4/sprintf-posix.m4: New file.
63359         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
63360         REPLACE_SPRINTF.
63361         * lib/stdio_.h (sprintf): New declaration.
63362         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
63363         REPLACE_SPRINTF.
63364
63365 2007-03-06  Bruno Haible  <bruno@clisp.org>
63366
63367         * modules/vsprintf-posix-tests: New file.
63368         * tests/test-vsprintf-posix.c: New file.
63369         * tests/test-sprintf-posix.h: New file.
63370
63371         * modules/vsprintf-posix: New file.
63372         * lib/vsprintf.c: New file.
63373         * m4/vsprintf-posix.m4: New file.
63374         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
63375         REPLACE_VSPRINTF.
63376         * lib/stdio_.h (vsprintf): New declaration.
63377         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
63378         REPLACE_VSPRINTF.
63379
63380 2007-03-06  Bruno Haible  <bruno@clisp.org>
63381
63382         * modules/vsnprintf (Depend-on): Remove minmax.
63383
63384 2007-03-06  Bruno Haible  <bruno@clisp.org>
63385
63386         * modules/snprintf-posix-tests: New file.
63387         * tests/test-snprintf-posix.c: New file.
63388
63389         * modules/snprintf-posix: New file.
63390         * m4/snprintf-posix.m4: New file.
63391         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
63392         gl_FUNC_SNPRINTF.
63393         (gl_FUNC_SNPRINTF): Invoke it.
63394         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
63395         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
63396         is set.
63397         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
63398
63399 2007-03-06  Bruno Haible  <bruno@clisp.org>
63400
63401         * modules/vsnprintf-posix-tests: New file.
63402         * tests/test-vsnprintf-posix.c: New file.
63403         * tests/test-snprintf-posix.h: New file.
63404
63405         * modules/vsnprintf-posix: New file.
63406         * m4/vsnprintf-posix.m4: New file.
63407         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
63408         gl_FUNC_VSNPRINTF.
63409         (gl_FUNC_VSNPRINTF): Invoke it.
63410         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
63411         * lib/stdio_.h (vsnprintf): Define as a replacement if
63412         REPLACE_VSNPRINTF is set.
63413         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
63414
63415 2007-03-06  Bruno Haible  <bruno@clisp.org>
63416
63417         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
63418         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
63419
63420 2007-03-06  Bruno Haible  <bruno@clisp.org>
63421
63422         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
63423         (asinl): Declare also if HAVE_DECL_ASINL is set.
63424         (atanl): Declare also if HAVE_DECL_ATANL is set.
63425         (ceill): Declare also if HAVE_DECL_CEILL is set.
63426         (cosl): Declare also if HAVE_DECL_COSL is set.
63427         (expl): Declare also if HAVE_DECL_EXPL is set.
63428         (floorl): Declare also if HAVE_DECL_FLOORL is set.
63429         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
63430         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
63431         (logl): Declare also if HAVE_DECL_LOGL is set.
63432         (sinl): Declare also if HAVE_DECL_SINL is set.
63433         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
63434         (tanl): Declare also if HAVE_DECL_TANL is set.
63435         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
63436         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
63437         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
63438         declaration of frexpl, ldexpl.
63439         * modules/printf-frexpl (Depends-on): Add math.
63440         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
63441
63442 2007-03-05  Bruno Haible  <bruno@clisp.org>
63443
63444         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
63445         frexpl and ldexpl are declared.
63446         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
63447
63448 2007-03-05  Bruno Haible  <bruno@clisp.org>
63449
63450         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
63451         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
63452
63453 2007-03-05  Bruno Haible  <bruno@clisp.org>
63454
63455         * lib/stdio_.h: Include <stddef.h>.
63456
63457 2007-03-05  Bruno Haible  <bruno@clisp.org>
63458
63459         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
63460
63461 2007-03-05  Bruno Haible  <bruno@clisp.org>
63462
63463         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
63464         NetBSD 4, from Ralf Wildenhues.
63465
63466 2007-03-04  Bruno Haible  <bruno@clisp.org>
63467
63468         * lib/vasprintf.h: Update #if logic for the case when the functions
63469         exist but are overridden.
63470
63471 2007-03-04  Bruno Haible  <bruno@clisp.org>
63472
63473         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
63474         implementations: glibc-2.4 and MacOS X 10.3.
63475         * tests/test-vasnprintf-posix.c (test_function): Test also the case
63476         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
63477         * tests/test-vasprintf-posix.c (test_function): Likewise.
63478
63479 2007-03-04  Bruno Haible  <bruno@clisp.org>
63480
63481         * modules/vasprintf-posix-tests: New file.
63482         * tests/test-vasprintf-posix.c: New file.
63483
63484         * modules/vasprintf-posix: New file.
63485         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
63486         defined.
63487         * m4/vasprintf-posix.m4: New file.
63488         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
63489         gl_FUNC_VASPRINTF.
63490         (gl_FUNC_VASPRINTF): Invoke it.
63491         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
63492         here.
63493         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
63494
63495 2007-03-04  Bruno Haible  <bruno@clisp.org>
63496
63497         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
63498         REPLACE_GETTIMEOFDAY.
63499         * modules/sys_time (Makefile.am): Likewise.
63500         * m4/sys_time_h.m4: Likewise.
63501         * m4/gettimeofday.m4: Likewise.
63502
63503 2007-03-04  Bruno Haible  <bruno@clisp.org>
63504
63505         * modules/vasnprintf-posix-tests: New file.
63506         * tests/test-vasnprintf-posix.c: New file.
63507
63508         * modules/vasnprintf-posix: New file.
63509         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
63510         printf-frexpl.h.
63511         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
63512         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
63513         REPLACE_VASNPRINTF is defined.
63514         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
63515         gl_FUNC_VASNPRINTF.
63516         (gl_FUNC_VASNPRINTF): Invoke it.
63517         * m4/vasnprintf-posix.m4: New file.
63518         * m4/printf.m4: New file.
63519
63520 2007-03-04  Bruno Haible  <bruno@clisp.org>
63521
63522         Compile progreloc.c only if --enable-relocatable is specified.
63523         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
63524         if --enable-relocatable was specified.
63525         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
63526         lib_SOURCES.
63527
63528 2007-03-04  Jim Meyering  <jim@meyering.net>
63529
63530         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
63531         Use it consistently, rather than enumerating errno constants.
63532
63533 2007-03-04  Bruno Haible  <bruno@clisp.org>
63534
63535         * modules/xvasprintf-tests: New file.
63536         * tests/test-xvasprintf.c: New file.
63537
63538         * modules/vasprintf-tests: New file.
63539         * tests/test-vasprintf.c: New file.
63540
63541         * modules/vasnprintf-tests: New file.
63542         * tests/test-vasnprintf.c: New file.
63543
63544         * modules/vsnprintf-tests: New file.
63545         * tests/test-vsnprintf.c: New file.
63546
63547         * modules/snprintf-tests: New file.
63548         * tests/test-snprintf.c: New file.
63549
63550 2007-03-04  Bruno Haible  <bruno@clisp.org>
63551
63552         Compile relocatable.c only if --enable-relocatable is specified.
63553         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
63554         gl_RELOCATABLE_LIBRARY.
63555         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
63556         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
63557         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
63558         gl_RELOCATABLE_LIBRARY.
63559         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
63560         (Makefile.am): Remove lib_SOURCES.
63561         * modules/relocatable-lib-lgpl (configure.ac): Invoke
63562         gl_RELOCATABLE_LIBRARY.
63563         (Makefile.am): Remove lib_SOURCES.
63564         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
63565         always.
63566         * modules/relocatable-prog-wrapper (configure.ac): Invoke
63567         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
63568
63569 2007-03-04  Bruno Haible  <bruno@clisp.org>
63570
63571         * modules/argmatch-tests: New file.
63572         * tests/test-argmatch.c: New file.
63573
63574         * tests/test-allocsa.c (main): Halve the number of loop runs.
63575
63576         * modules/alloca-opt-tests: New file.
63577         * tests/test-alloca-opt.c: New file.
63578
63579 2007-03-04  Jim Meyering  <jim@meyering.net>
63580
63581         Work around difference between Linux ACLs and Solaris 10 ZFS.
63582         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
63583         for EINVAL.
63584
63585 2007-03-03  Bruno Haible  <bruno@clisp.org>
63586
63587         * modules/relocatable-prog (Depends-on): Add back progreloc's
63588         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
63589
63590 2007-03-03  Bruno Haible  <bruno@clisp.org>
63591
63592         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
63593         * modules/relocatable-lib: New file.
63594
63595 2007-03-03  Bruno Haible  <bruno@clisp.org>
63596
63597         * modules/relocatable-prog: Renamed from modules/relocatable.
63598         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
63599
63600 2007-03-03  Bruno Haible  <bruno@clisp.org>
63601
63602         * modules/relocatable-script (Files): Add doc/relocatable.texi,
63603         m4/relocatable-lib.m4.
63604         (Depends-on): Remove 'relocatable'.
63605         (configure.ac): Add gl_RELOCATABLE_NOP.
63606
63607 2007-03-03  Bruno Haible  <bruno@clisp.org>
63608
63609         * modules/relocatable-prog-wrapper: New file.
63610         * modules/relocatable (Depends-on): Add it. Remove all other
63611         dependencies except progname.
63612         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
63613
63614         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
63615         (gl_FUNC_STRERROR): Nop.
63616         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
63617
63618         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
63619         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
63620
63621         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
63622         (gl_FUNC_READLINK): Update.
63623
63624         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
63625
63626 2007-03-03  Bruno Haible  <bruno@clisp.org>
63627
63628         * lib/xreadlink.c: Include <unistd.h> unconditionally.
63629         * modules/xreadlink (Depends-on): Add unistd.
63630         * modules/xreadlink-with-size (Depends-on): Likewise.
63631
63632 2007-03-03  Bruno Haible  <bruno@clisp.org>
63633
63634         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
63635         extracted from gt_FUNC_SETENV.
63636         (gt_FUNC_SETENV): Remove macro.
63637         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
63638         remove gt_FUNC_SETENV.
63639
63640 2007-03-03  Bruno Haible  <bruno@clisp.org>
63641
63642         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
63643         ENABLE_RELOCATABLE here.
63644         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
63645
63646 2007-03-03  Bruno Haible  <bruno@clisp.org>
63647
63648         * modules/rbtreehash-list-tests (Depends-on): Add progname.
63649         * tests/test-rbtreehash_list.c: Include progname.h.
63650         (main): Call set_program_name.
63651
63652         * modules/rbtree-oset-tests (Depends-on): Add progname.
63653         * tests/test-rbtree_oset.c: Include progname.h.
63654         (main): Call set_program_name.
63655
63656         * modules/rbtree-list-tests (Depends-on): Add progname.
63657         * tests/test-rbtree_list.c: Include progname.h.
63658         (main): Call set_program_name.
63659
63660         * modules/linked-list-tests (Depends-on): Add progname.
63661         * tests/test-linked_list.c: Include progname.h.
63662         (main): Call set_program_name.
63663
63664 2007-03-03  Bruno Haible  <bruno@clisp.org>
63665
63666         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
63667         All uses of __restrict changed to _Restrict_.
63668         * lib/glob_.h (__restrict): Remove macro.
63669
63670 2007-03-02  Bruno Haible  <bruno@clisp.org>
63671
63672         * modules/gettext (configure.ac): Require gettext infrastructure
63673         from version 0.16.1.
63674
63675 2007-03-02  Bruno Haible  <bruno@clisp.org>
63676
63677         * modules/linkedhash-list-tests (Depends-on): Add progname.
63678         * tests/test-linkedhash_list.c: Include progname.h.
63679         (main): Call set_program_name.
63680
63681         * modules/carray-list-tests (Depends-on): Add progname.
63682         * tests/test-carray_list.c: Include progname.h.
63683         (main): Call set_program_name.
63684
63685         * modules/avltreehash-list-tests (Depends-on): Add progname.
63686         * tests/test-avltreehash_list.c: Include progname.h.
63687         (main): Call set_program_name.
63688
63689         * modules/avltree-oset-tests (Depends-on): Add progname.
63690         * tests/test-avltree_oset.c: Include progname.h.
63691         (main): Call set_program_name.
63692
63693         * modules/avltree-list-tests (Depends-on): Add progname.
63694         * tests/test-avltree_list.c: Include progname.h.
63695         (main): Call set_program_name.
63696
63697         * modules/array-oset-tests (Depends-on): Add progname.
63698         * tests/test-array_oset.c: Include progname.h.
63699         (main): Call set_program_name.
63700
63701         * modules/array-list-tests (Depends-on): Add progname.
63702         * tests/test-array_list.c: Include progname.h.
63703         (main): Call set_program_name.
63704
63705         * modules/argp-tests (Depends-on): Add progname.
63706         * tests/test-argp.c: Include argp.h first. Include progname.h.
63707         (main): Call set_program_name.
63708
63709 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
63710
63711         * doc/gnulib-tool.texi (Initial import): Reword description of
63712         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
63713         limited effect even if defined after the first system include.
63714
63715 2007-03-01  Bruno Haible  <bruno@clisp.org>
63716
63717         * build-aux/config.libpath: Update to libtool-1.5.22.
63718         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
63719
63720 2007-03-01  Bruno Haible  <bruno@clisp.org>
63721
63722         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
63723         foo_CFLAGS.
63724         Reported by Ralf Wildenhues.
63725
63726 2007-03-01  Bruno Haible  <bruno@clisp.org>
63727
63728         * build-aux/install-reloc: Remove object files left over by some
63729         compilers.
63730         Reported by Ralf Wildenhues.
63731
63732 2007-03-01  Bruno Haible  <bruno@clisp.org>
63733
63734         * build-aux/install-reloc: Break long lines.
63735
63736 2007-03-01  Bruno Haible  <bruno@clisp.org>
63737
63738         * doc/relocatable.texi: Document that it may not work on OpenBSD.
63739         Reported by Ralf Wildenhues.
63740
63741 2007-03-01  Bruno Haible  <bruno@clisp.org>
63742
63743         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
63744         include ordering constraints.
63745
63746 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
63747
63748         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
63749         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
63750         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
63751         as another example.
63752         * lib/time_.h: Fix misspelling.
63753         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
63754         Require gl_HEADER_TIME_H_DEFAULTS.
63755         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
63756         * m4/time_r.m4 (gl_TIME_R): Likewise.
63757         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
63758
63759 2007-03-01  Bruno Haible  <bruno@clisp.org>
63760
63761         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
63762         * m4/utimens.m4 (gl_UTIMENS): Likewise.
63763
63764 2007-03-01  Jim Meyering  <jim@meyering.net>
63765
63766         * modules/xreadlink (Maintainer): Add my name.
63767         * modules/xreadlink-with-size (Depends-on): Alphabetize.
63768
63769 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
63770             Bruno Haible  <bruno@clisp.org>
63771
63772         * build-aux/install-reloc: Compile also c-ctype.c.
63773         * build-aux/relocatable.sh.in: New file.
63774         * doc/relocatable.texi: New file.
63775         * doc/relocatable-maint.texi: New file.
63776         * doc/gnulib.texi: Include relocatable-maint.texi.
63777         * lib/progreloc.c: Include unistd.h unconditionally.
63778         * lib/relocwrapper.c: Include unistd.h unconditionally.
63779         Include c-ctype.h.
63780         (add_dotbin): Use c_tolower.
63781         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
63782         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
63783         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
63784         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
63785         to m4/relocatable-lib.m4.
63786         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
63787         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
63788         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
63789         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
63790         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
63791         * modules/relocatable: New file.
63792         * modules/relocatable-lib: New file.
63793         * modules/relocatable-script: New file.
63794
63795 2007-02-28  Bruno Haible  <bruno@clisp.org>
63796
63797         Import --enable-relocatable infrastructure.
63798         * build-aux/config.libpath: New file, from GNU gettext.
63799         * build-aux/install-reloc: New file, from GNU gettext.
63800         * build-aux/reloc-ldflags: New file, from GNU gettext.
63801         * lib/relocatable.h: New file, from GNU gettext.
63802         * lib/relocatable.c: New file, from GNU gettext.
63803         * lib/relocwrapper.c: New file, from GNU gettext.
63804         * m4/relocatable.m4: New file, from GNU gettext.
63805
63806 2007-02-28  Bruno Haible  <bruno@clisp.org>
63807
63808         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
63809
63810         * modules/xreadlink: New file, from GNU gettext with modifications.
63811         * lib/xreadlink.c: New file, from GNU gettext.
63812         * lib/xreadlink.h: Add comments.
63813         (xreadlink): New declaration.
63814
63815         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
63816         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
63817         lib/xreadlink-with-size.c.
63818         (configure.ac): Remove gl_XREADLINK invocation.
63819         (Makefile.am): Augment lib_SOURCES.
63820         * m4/xreadlink.m4: Remove file.
63821         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
63822         (xreadlink_with_size): Renamed from xreadink.
63823         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
63824         * modules/canonicalize (Depends-on): Replace xreadlink with
63825         xreadlink-with-size.
63826         * lib/canonicalize.c (canonicalize_filename_mode): Update.
63827
63828 2007-02-25  Jim Meyering  <jim@meyering.net>
63829
63830         * build-aux/announce-gen: When complaining about excess arguments,
63831         list them.
63832
63833 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
63834
63835         * README: Document signed integer overflow situation more
63836         accurately.
63837
63838 2007-02-25  Bruno Haible  <bruno@clisp.org>
63839
63840         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
63841         'a' or 'A' conversion.
63842
63843 2007-02-25  Bruno Haible  <bruno@clisp.org>
63844
63845         * modules/filename: Renamed from modules/pathname.
63846         (Files): Replace lib/pathname.h with lib/filename.h. Replace
63847         lib/concatpath.c with lib/concat-filename.c.
63848         (Makefile.am): Update.
63849         (Include): Replace pathname.h with filename.h.
63850         * lib/filename.h: Renamed from lib/pathname.h.
63851         (concatenated_filename): Renamed from concatenated_pathname.
63852         * lib/concat-filename.c: Renamed from lib/concatpath.c.
63853         (concatenated_filename): Renamed from concatenated_pathname.
63854         * lib/findprog.c: Include filename.h instead of pathname.h.
63855         (find_in_path): Update.
63856         * lib/javacomp.c: Include filename.h instead of pathname.h.
63857         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
63858         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
63859         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
63860         is_oldgcj_14_13_usable, is_javac_usable): Update.
63861         * lib/javaexec.c: Include filename.h instead of pathname.h.
63862         (execute_java_class): Update.
63863         * modules/findprog: Update.
63864         * modules/javacomp: Update.
63865         * modules/javaexec: Update.
63866         * MODULES.html.sh (File system functions): Add 'filename', remove
63867         'pathname'.
63868
63869 2007-02-25  Bruno Haible  <bruno@clisp.org>
63870
63871         * modules/printf-frexpl-tests: New file.
63872         * tests/test-printf-frexpl.c: New file.
63873
63874         * modules/printf-frexpl: New file.
63875         * lib/printf-frexpl.h: New file.
63876         * lib/printf-frexpl.c: New file.
63877         * m4/printf-frexpl.m4: New file.
63878
63879 2007-02-25  Bruno Haible  <bruno@clisp.org>
63880
63881         * modules/printf-frexp-tests: New file.
63882         * tests/test-printf-frexp.c: New file.
63883
63884         * modules/printf-frexp: New file.
63885         * lib/printf-frexp.h: New file.
63886         * lib/printf-frexp.c: New file.
63887         * m4/printf-frexp.m4: New file.
63888
63889 2007-02-25  Bruno Haible  <bruno@clisp.org>
63890
63891         Assume automake >= 1.10 for the tests.
63892         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
63893         * modules/arctwo-tests: Likewise.
63894         * modules/argp-tests: Likewise.
63895         * modules/avltree-list-tests: Likewise.
63896         * modules/avltree-oset-tests: Likewise.
63897         * modules/avltreehash-list-tests: Likewise.
63898         * modules/carray-list-tests: Likewise.
63899         * modules/crc-tests: Likewise.
63900         * modules/des-tests: Likewise.
63901         * modules/gc-arcfour-tests: Likewise.
63902         * modules/gc-arctwo-tests: Likewise.
63903         * modules/gc-des-tests: Likewise.
63904         * modules/gc-hmac-md5-tests: Likewise.
63905         * modules/gc-hmac-sha1-tests: Likewise.
63906         * modules/gc-md2-tests: Likewise.
63907         * modules/gc-md4-tests: Likewise.
63908         * modules/gc-md5-tests: Likewise.
63909         * modules/gc-pbkdf2-sha1-tests: Likewise.
63910         * modules/gc-rijndael-tests: Likewise.
63911         * modules/gc-sha1-tests: Likewise.
63912         * modules/gc-tests: Likewise.
63913         * modules/getaddrinfo-tests: Likewise.
63914         * modules/hmac-md5-tests: Likewise.
63915         * modules/hmac-sha1-tests: Likewise.
63916         * modules/linked-list-tests: Likewise.
63917         * modules/linkedhash-list-tests: Likewise.
63918         * modules/lock-tests: Likewise.
63919         * modules/md2-tests: Likewise.
63920         * modules/md4-tests: Likewise.
63921         * modules/md5-tests: Likewise.
63922         * modules/rbtree-list-tests: Likewise.
63923         * modules/rbtree-oset-tests: Likewise.
63924         * modules/rbtreehash-list-tests: Likewise.
63925         * modules/read-file-tests: Likewise.
63926         * modules/rijndael-tests: Likewise.
63927         * modules/stdint-tests: Likewise.
63928         * modules/tls-tests: Likewise.
63929
63930 2007-02-24  Bruno Haible  <bruno@clisp.org>
63931
63932         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
63933         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
63934         function; instead check whether isnan with a double argument links.
63935         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
63936         function; instead check whether isnan with a 'long double' argument
63937         links.
63938         Reported by Eric Blake <ebb9@byu.net>.
63939
63940 2007-02-24  Bruno Haible  <bruno@clisp.org>
63941
63942         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
63943         defined.
63944         * lib/isnanl.c: Remove all code. Just include isnan.c.
63945         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
63946
63947 2007-02-25  Jim Meyering  <jim@meyering.net>
63948
63949         Avoid conflicting types for 'unsetenv' on FreeBSD.
63950         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
63951         conflicting with FreeBSD's (5.0 and 6.1) function declaration
63952         in stdlib.h.
63953
63954 2007-02-24  Bruno Haible  <bruno@clisp.org>
63955
63956         * modules/isnanl-nolibm-tests: New file.
63957         * tests/test-isnanl.c: New file.
63958
63959         * modules/isnanl-nolibm: New file.
63960         * lib/isnanl.h: New file.
63961         * lib/isnanl.c: New file.
63962         * m4/isnanl.m4: New file.
63963
63964 2007-02-24  Bruno Haible  <bruno@clisp.org>
63965
63966         * modules/isnan-nolibm-tests: New file.
63967         * tests/test-isnan.c: New file.
63968
63969         * modules/isnan-nolibm: New file.
63970         * lib/isnan.h: New file.
63971         * lib/isnan.c: New file.
63972         * m4/isnan.m4: New file.
63973
63974 2007-02-24  Bruno Haible  <bruno@clisp.org>
63975
63976         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
63977         assume that an exponent fits in 20 bits.
63978
63979 2007-02-24  Jim Meyering  <jim@meyering.net>
63980
63981         * m4/regex.m4: Update the description of the configure-time option,
63982         --without-included-regex, to state accurately what the defaults are,
63983         and perhaps to give people an idea why using this option is risky.
63984
63985 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
63986
63987         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
63988         loops on small arguments.  This attempts to avoid the problem
63989         Bruno Haible reported for AIX 4.3.2 in
63990         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
63991
63992 2007-02-23  Bruno Haible  <bruno@clisp.org>
63993
63994         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
63995         Needed for help2man.
63996
63997 2007-02-23  Karl Berry  <karl@gnu.org>
63998
63999         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
64000         exists, foo.h should be cvs-ignored, not committed.
64001
64002 2007-02-23  Eric Blake  <ebb9@byu.net>
64003
64004         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
64005         * lib/stat-time.h (includes): Likewise.
64006         * lib/utimecmp.c (includes): Likewise.
64007         * lib/utimens.h (includes): Likewise.
64008         * lib/getdate.y (includes): Also include "timespec.h" for use
64009         internal to the module.
64010         * modules/utimens (Depends-on): Revert yesterday's patch.
64011         * modules/nanosleep (Depends-on): Add missing dependency.
64012
64013 2007-02-22  Bruno Haible  <bruno@clisp.org>
64014
64015         * lib/glob.c: Don't include getlogin_r.h.
64016
64017 2007-02-22  Jim Meyering  <jim@meyering.net>
64018
64019         * modules/utimens (Depends-on): Add timespec, required for
64020         utimens.h's inclusion of timespec.h.
64021
64022 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
64023
64024         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
64025         long unreadable paths in GNU/Linux.  Problem reported by Andreas
64026         Schwab in
64027         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
64028         I'll try to think of a better way to fix the Solaris problem.
64029
64030         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
64031         like glibc; on Solaris 10, it fails with errno == EINVAL.
64032         POSIX says the behavior is unspecified if the first argument is NULL,
64033         so play it safe and never pass NULL to the system getcwd.
64034
64035 2007-02-21  Jim Meyering  <jim@meyering.net>
64036
64037         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
64038         of gettimeofday.  It would conflict with the one now always
64039         provided via sys_time_.h.  Reported by Matthew Woehlke, as
64040         an IRIX 6.5 build failure.
64041
64042 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
64043
64044         Minor fixups to port to Solaris 10 with Sun C 5.8.
64045         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
64046         * modules/getcwd (Depends-on): Add dirfd.
64047         * lib/putenv.c (putenv): #undef it.
64048         (rpl_putenv): New decl.
64049         (malloc, free): Include <stdlib.h> rather than prototyping separately.
64050
64051 2007-02-20  Bruno Haible  <bruno@clisp.org>
64052
64053         * modules/stdio-tests: New file.
64054         * tests/test-stdio.c: New file.
64055
64056         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
64057         (Depends-on): Add stdio.
64058         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
64059         (Include): Use <stdio.h> instead of vsnprintf.h.
64060         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
64061         HAVE_DECL_VSNPRINTF.
64062         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
64063
64064         * modules/snprintf (Files): Remove lib/snprintf.h.
64065         (Depends-on): Add stdio.
64066         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
64067         (Include): Use <stdio.h> instead of snprintf.h.
64068         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
64069         HAVE_DECL_SNPRINTF.
64070         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
64071         * lib/getaddrinfo.c: Likewise.
64072
64073         * modules/stdio: New file.
64074         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
64075         * lib/snprintf.h: Remove file.
64076         * lib/vsnprintf.h: Remove file.
64077         * lib/.cppi-disable: Remove snprintf.h.
64078         * m4/stdio_h.m4: New file.
64079         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
64080
64081 2007-02-20  Jim Meyering  <jim@meyering.net>
64082
64083         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
64084         used by e.g., mingw.  From Bruno Haible.
64085
64086 2007-02-19  Bruno Haible  <bruno@clisp.org>
64087
64088         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
64089         warnings.
64090         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64091
64092 2007-02-19  Bruno Haible  <bruno@clisp.org>
64093
64094         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
64095         from mingw users.
64096
64097 2007-02-19  Bruno Haible  <bruno@clisp.org>
64098
64099         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
64100         warnings.
64101         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
64102
64103 2007-02-19  Jim Meyering  <jim@meyering.net>
64104
64105         Don't use FD after a successful "fdopendir (fd)".
64106         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
64107         Reset it by calling dirfd on the just-obtained DIR*.
64108
64109         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
64110         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
64111
64112 2007-02-18  Bruno Haible  <bruno@clisp.org>
64113
64114         * lib/readlink.c: Include <unistd.h>.
64115         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
64116         HAVE_READLINK.
64117         * modules/readlink (Depends-on): Add unistd.
64118         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64119         (Include): Add <unistd.h>.
64120
64121         * lib/getlogin_r.h: Remove file.
64122         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
64123         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
64124         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
64125         HAVE_DECL_GETLOGIN_R.
64126         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
64127         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64128         (Include): Use <unistd.h> instead of getlogin_r.h.
64129
64130         * lib/getcwd.h: Remove file.
64131         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
64132         * lib/xgetcwd.c: Likewise.
64133         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
64134         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
64135         * modules/getcwd (Files): Remove lib/getcwd.h.
64136         (Depends-on): Add unistd.
64137         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64138         (Include): Use <unistd.h> instad of getcwd.h.
64139
64140         * lib/ftruncate.c: Include <unistd.h> first.
64141         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
64142         Set HAVE_FTRUNCATE.
64143         * modules/ftruncate (Depends-on): Add unistd.
64144         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64145
64146         * lib/fchdir.c: Include <unistd.h> first.
64147         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
64148         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
64149         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
64150         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64151         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
64152
64153         * lib/dup2.c: Include <unistd.h> first.
64154         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
64155         HAVE_DUP2.
64156         * modules/dup2 (Depends-on): Add unistd.
64157         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64158
64159         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
64160         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
64161         REPLACE_CHOWN. Don't define chown as a macro here.
64162         * modules/chown (Depends-on): Add unistd.
64163         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64164
64165         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
64166         Add definition for GL_LINK_WARNING.
64167         (chown, dup2): New declarations.
64168         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
64169         link warning.
64170         (ftruncate): New declaration.
64171         (getcwd): New declaration, taken from old getcwd.h.
64172         (getlogin_r): New declaration, taken from old getlogin_r.h.
64173         (readlink): New declaration.
64174         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
64175         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
64176         (gl_PREREQ_UNISTD): Remove macro.
64177         (gl_UNISTD_MODULE_INDICATOR): New macro.
64178         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
64179         many new variables. Don't set UNISTD_H.
64180         * modules/unistd (Description): Change.
64181         (Depends-on): Add link-warning.
64182         (configure.ac): Update.
64183         (Makefile.am): Create unistd.h always. Substitute many new variables
64184         into it.
64185
64186 2007-02-18  Bruno Haible  <bruno@clisp.org>
64187
64188         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
64189         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
64190         HAVE_GETSUBOPT.
64191         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
64192         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
64193         * lib/getsubopt.h: Remove file.
64194         * modules/getsubopt (Files): Remove lib/getsubopt.h.
64195         (Depends-on): Add stdlib.
64196         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64197         (Includes): Use <stdlib.h> instead of getsubopt.h.
64198         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
64199         Set HAVE_GETSUBOPT.
64200         * lib/getsubopt.c: Don't include getsubopt.h.
64201
64202 2007-02-18  Bruno Haible  <bruno@clisp.org>
64203
64204         * modules/fchdir (Depends-on): Add dup2.
64205
64206 2007-02-18  Bruno Haible  <bruno@clisp.org>
64207
64208         * lib/stdlib_.h: Handle glibc's special invocation convention
64209         specially.
64210
64211 2007-02-18  Bruno Haible  <bruno@clisp.org>
64212
64213         * modules/stdlib-tests: New file.
64214         * tests/test-stdlib.c: New file.
64215
64216         * modules/mkstemp (Files): Remove lib/mkstemp.h.
64217         (Depends-on): Add stdlib.
64218         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64219         (Includes): Use <stdlib.h> instead of mkstemp.h.
64220         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
64221         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
64222         * lib/mkstemp.c: Don't include mkstemp.h.
64223         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
64224         * lib/stdlib--.h: Don't include mkstemp.h.
64225
64226         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
64227         (Depends-on): Add stdlib.
64228         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64229         (Includes): Use <stdlib.h> instead of mkdtemp.h.
64230         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
64231         HAVE_MKDTEMP.
64232         * lib/mkdtemp.c: Don't include mkdtemp.h.
64233         * lib/clean-temp.c: Don't include mkdtemp.h.
64234
64235         * modules/exit (Files): Remove lib/exit.h.
64236         (Depends-on): Add stdlib.
64237         (Makefile.am): Remove lib_SOURCES.
64238         (Include): Use <stdlib.h> instead of exit.h.
64239         * lib/argmatch.c: Don't include exit.h.
64240         * lib/execute.c: Likewise.
64241         * lib/pagealign_alloc.c: Likewise.
64242         * lib/pipe.c: Likewise.
64243         * lib/wait-process.c: Likewise.
64244         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
64245         * lib/exitfail.c: Likewise.
64246         * lib/savewd.c: Likewise.
64247         * lib/xsetenv.c: Likewise.
64248
64249         * modules/stdlib: New file.
64250         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
64251         and extra comments about mkstemp().
64252         * lib/exit.h: Remove file.
64253         * lib/mkdtemp.h: Remove file.
64254         * lib/mkstemp.h: Remove file.
64255         * m4/stdlib_h.m4: New file.
64256         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
64257
64258 2007-02-18  Bruno Haible  <bruno@clisp.org>
64259
64260         * modules/math-tests: New file.
64261         * tests/test-math.c: New file.
64262
64263         * modules/math: New file.
64264         * modules/mathl (Files): Remove lib/mathl.h.
64265         (Depends-on): Add math.
64266         (Makefile.am): Don't mention mathl.h.
64267         (Include): Use <math.h> instead of mathl.h.
64268         * lib/math_.h: New file.
64269         * lib/mathl.h: Remove file.
64270         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
64271         mathl.h.
64272         * lib/asinl.c: Likewise.
64273         * lib/atanl.c: Likewise.
64274         * lib/ceill.c: Likewise.
64275         * lib/cosl.c: Likewise.
64276         * lib/expl.c: Likewise.
64277         * lib/floorl.c: Likewise.
64278         * lib/frexpl.c: Likewise.
64279         * lib/ldexpl.c: Likewise.
64280         * lib/logl.c: Likewise.
64281         * lib/sincosl.c: Likewise.
64282         * lib/sinl.c: Likewise.
64283         * lib/sqrtl.c: Likewise.
64284         * lib/tanl.c: Likewise.
64285         * lib/trigl.c: Likewise.
64286         * m4/math_h.m4: New file.
64287         * MODULES.html.sh (Mathematics): Add math.
64288
64289 2007-02-17  Bruno Haible  <bruno@clisp.org>
64290
64291         * modules/wctype-tests: New file.
64292         * tests/test-wctype.c: New file.
64293
64294         * modules/wchar-tests: New file.
64295         * tests/test-wchar.c: New file.
64296
64297         * modules/unistd-tests: New file.
64298         * tests/test-unistd.c: New file.
64299
64300         * modules/time-tests: New file.
64301         * tests/test-time.c: New file.
64302
64303         * modules/sysexits-tests: New file.
64304         * tests/test-sysexits.c: New file.
64305
64306         * modules/sys_time-tests: New file.
64307         * tests/test-sys_time.c: New file.
64308
64309         * modules/sys_stat-tests: New file.
64310         * tests/test-sys_stat.c: New file.
64311
64312         * modules/sys_socket-tests: New file.
64313         * tests/test-sys_socket.c: New file.
64314
64315         * modules/sys_select-tests: New file.
64316         * tests/test-sys_select.c: New file.
64317
64318         * modules/string-tests: New file.
64319         * tests/test-string.c: New file.
64320
64321         * modules/stdbool-tests: New file.
64322         * tests/test-stdbool.c: New file.
64323
64324         * modules/netinet_in-tests: New file.
64325         * tests/test-netinet_in.c: New file.
64326
64327         * modules/inttypes-tests: New file.
64328         * tests/test-inttypes.c: New file.
64329
64330         * modules/fcntl-tests: New file.
64331         * tests/test-fcntl.c: New file.
64332
64333         * modules/byteswap-tests: New file.
64334         * tests/test-byteswap.c: New file.
64335
64336         * modules/arpa_inet-tests: New file.
64337         * tests/test-arpa_inet.c: New file.
64338
64339 2007-02-17  Bruno Haible  <bruno@clisp.org>
64340
64341         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
64342         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
64343         if the corresponding module is not enabled. Emit link warnings if
64344         the function is used nevertheless.
64345         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
64346         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
64347         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
64348         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
64349         * modules/inttypes (Depends-on): Add link-warning.
64350         (Makefile.am): Copy the contents of build-aux/link-warning.h into
64351         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
64352         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
64353         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
64354         * modules/imaxdiv (configure.ac): Likewise.
64355         * modules/strtoimax (configure.ac): Likewise.
64356         * modules/strtoumax (configure.ac): Likewise.
64357
64358 2007-02-17  Bruno Haible  <bruno@clisp.org>
64359
64360         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
64361         gl_STRING_MODULE_INDICATOR_DEFAULTS.
64362         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
64363         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
64364
64365 2007-02-17  Bruno Haible  <bruno@clisp.org>
64366
64367         * modules/link-warning: New file.
64368         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
64369         * lib/string_.h (GL_LINK_WARNING): Remove definition.
64370         * modules/string (Depends-on): Add link-warning.
64371         (Makefile.am): Copy the contents of build-aux/link-warning.h into
64372         string.h.
64373         * MODULES.html.sh (Support for building libraries and executables): Add
64374         link-warning.
64375
64376 2007-02-17  Bruno Haible  <bruno@clisp.org>
64377
64378         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
64379         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
64380         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
64381         long lines.
64382
64383 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
64384             Bruno Haible  <bruno@clisp.org>
64385
64386         * modules/tmpfile: New file.
64387         * lib/tmpfile.c: New file.
64388         * m4/tmpfile.m4: New file.
64389         * MODULES.html.sh (func_all_modules): New section "Input/output".
64390
64391 2007-02-15  Bruno Haible  <bruno@clisp.org>
64392
64393         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
64394         (supports_delete_on_close): New function.
64395         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
64396
64397 2007-02-14  Bruno Haible  <bruno@clisp.org>
64398
64399         * modules/mbspcasecmp-tests: New file.
64400         * tests/test-mbspcasecmp.sh: New file.
64401         * tests/test-mbspcasecmp.c: New file.
64402
64403         New module mbspcasecmp.
64404         * modules/mbspcasecmp: New file.
64405         * lib/mbspcasecmp.c: New file.
64406         * lib/string_.h (strncasecmp): Change warning message.
64407         (mbspcasecmp): New declaration.
64408         * m4/mbspcasecmp.m4: New file.
64409         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64410         GNULIB_MBSPCASECMP.
64411         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
64412         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
64413
64414 2007-02-14  Bruno Haible  <bruno@clisp.org>
64415
64416         * modules/mbsncasecmp-tests: New file.
64417         * tests/test-mbsncasecmp.sh: New file.
64418         * tests/test-mbsncasecmp.c: New file.
64419
64420         New module mbsncasecmp.
64421         * modules/mbsncasecmp: New file.
64422         * lib/mbsncasecmp.c: New file.
64423         * lib/string_.h (mbsncasecmp): New declaration.
64424         * m4/mbsncasecmp.m4: New file.
64425         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64426         GNULIB_MBSNCASECMP.
64427         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
64428         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
64429
64430 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
64431
64432         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
64433         Verify that it doesn't overlap with our flags.
64434         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
64435         do not have the desired effect in multibyte locales; instead, use
64436         mbscasecmp.
64437         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
64438         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
64439         we don't require GNU fnmatch ourselves (if our users require it, they
64440         should do so explicitly).
64441
64442         Fix regex code so it doesn't rely on strcasecmp.
64443         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
64444         Otherwise, include gnulib's langinfo.h.
64445         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
64446         undesirable behavior in non-C locales.  Instead, rely on localecharset.
64447         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
64448         * modules/regex (FILES): Remove m4/codeset.m4.
64449         (Depends-on): Add localcharset.  Remove strcase.
64450
64451 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64452
64453         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
64454         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
64455
64456 2007-02-13  Bruno Haible  <bruno@clisp.org>
64457
64458         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
64459         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64460
64461 2007-02-12  Bruno Haible  <bruno@clisp.org>
64462
64463         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
64464         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
64465         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
64466         time warning rather than a link error.
64467
64468 2007-02-12  Bruno Haible  <bruno@clisp.org>
64469
64470         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
64471         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64472         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64473
64474 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
64475
64476         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
64477         args, not 2.
64478
64479 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
64480
64481         New module 'time', so that apps can include <time.h> as per
64482         POSIX and GNU instead of separate include files like time_r.h
64483         and timegm.h.  This implementation tries out a simpler approach
64484         for replacing decls in standard include files (as compared to
64485         the string module), somewhat as an experiment.
64486
64487         * config/srclist.txt: Comment out mktime.c for now.
64488         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
64489         since it doesn't apply any more.  Use generic wording instead.
64490         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
64491         'time'.
64492         * lib/time_.h, m4/time_h.m4, modules/time: New files.
64493         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
64494         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
64495         Don't include <sys/types.h>; no longer needed since we assume C89.
64496         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
64497         * lib/strftime.c: Likewise.
64498         * lib/time_r.c: Likewise.
64499         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
64500         * lib/nanosleep.c: Include <time.h> first, to check interface.
64501         * lib/strptime.c: Likewise.
64502         * lib/time_r.c: Likewise.
64503         * lib/timegm.c: Likewise.
64504         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
64505         needed.
64506         * lib/timegm.c: Don't include timegm.h; no longer needed.
64507         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
64508         time.h now handles any problems in that area.
64509         (struct timespec, nanosleep): Remove; time.h now arranges for these.
64510         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
64511         that time.h defines struct timespec.
64512         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
64513         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
64514         handles that.
64515         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
64516         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
64517         needed.  Set REPLACE_LOCALTIME.
64518         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
64519         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
64520         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
64521         nanosleep; time_h.m4 now does that.  Don't require
64522         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
64523         module handles this now.
64524         * modules/getdate (Depends-on): Remove timespec.  Add time.
64525         * modules/nanosleep (Depends-on): Likewise.
64526         * modules/stat-time (Depends-on): Likewise.
64527         * modules/nanosleep (Include): Include time.h, not timespec.h.
64528         * modules/strptime (Files): Remove lib/strptime.h.
64529         (Depends-on): Add extensions, time.
64530         (Include): Include time.h, not strptime.h.
64531         * modules/time_r (Files): Remove lib/time_r.h.
64532         (Depends-on): Add time.
64533         (Include): Include time.h, not time_r.h.
64534         * modules/timegm: Likewise.
64535         * modules/timespec (Description): Now does timespec-related decls
64536         of our own, instead of struct timespec itself.
64537         (Depends-on): Add time; remove extensions.
64538         (Maintainer): Add self.
64539         * modules/utimecmp (Depends-on): Add time; remove timespec.
64540         * modules/utimens (Depends-on): Likewise.
64541         * modules/xnanosleep (Depends-on): Likewise.
64542
64543 2007-02-11  Bruno Haible  <bruno@clisp.org>
64544
64545         * lib/c-strstr.c: Include allocsa.h.
64546         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64547         * lib/c-strcasestr.c: Include allocsa.h.
64548         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64549         * lib/strcasestr.c: Include allocsa.h.
64550         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
64551         * lib/mbsstr.c: Include allocsa.h.
64552         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
64553         allocsa/freesa instead of malloc/free.
64554         * lib/mbscasestr.c: Include allocsa.h.
64555         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
64556         allocsa/freesa instead of malloc/free.
64557         * modules/c-strstr (Depends-on): Add allocsa.
64558         * modules/c-strcasestr (Depends-on): Likewise.
64559         * modules/strcasestr (Depends-on): Likewise.
64560         * modules/mbsstr (Depends-on): Likewise.
64561         * modules/mbscasestr (Depends-on): Likewise.
64562
64563 2007-02-11  Bruno Haible  <bruno@clisp.org>
64564
64565         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
64566
64567         * modules/mbsspn-tests: New file.
64568         * tests/test-mbsspn.sh: New file.
64569         * tests/test-mbsspn.c: New file.
64570
64571 2007-02-11  Bruno Haible  <bruno@clisp.org>
64572
64573         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
64574
64575         * modules/mbspbrk-tests: New file.
64576         * tests/test-mbspbrk.sh: New file.
64577         * tests/test-mbspbrk.c: New file.
64578
64579 2007-02-11  Bruno Haible  <bruno@clisp.org>
64580
64581         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
64582         unneeded cast.
64583
64584         * modules/mbscspn-tests: New file.
64585         * tests/test-mbscspn.sh: New file.
64586         * tests/test-mbscspn.c: New file.
64587
64588 2007-02-11  Bruno Haible  <bruno@clisp.org>
64589
64590         * modules/mbscasecmp-tests: New file.
64591         * tests/test-mbscasecmp.sh: New file.
64592         * tests/test-mbscasecmp.c: New file.
64593
64594 2007-02-11  Bruno Haible  <bruno@clisp.org>
64595
64596         Ensure O(n) worst-case complexity of mbscasestr.
64597         * lib/mbscasestr.c: Include stdbool.h.
64598         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
64599         functions.
64600         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
64601         the bookkeeping indicates that it's worth it.
64602         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
64603
64604         * modules/mbscasestr-tests: New file.
64605         * tests/test-mbscasestr1.c: New file.
64606         * tests/test-mbscasestr2.sh: New file.
64607         * tests/test-mbscasestr2.c: New file.
64608         * tests/test-mbscasestr3.sh: New file.
64609         * tests/test-mbscasestr3.c: New file.
64610         * tests/test-mbscasestr4.sh: New file.
64611         * tests/test-mbscasestr4.c: New file.
64612         * m4/locale-tr.m4: New file.
64613
64614 2007-02-11  Bruno Haible  <bruno@clisp.org>
64615
64616         Ensure O(n) worst-case complexity of mbsstr.
64617         * lib/mbsstr.c: Include stdbool.h.
64618         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
64619         functions.
64620         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
64621         bookkeeping indicates that it's worth it.
64622         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
64623
64624         * modules/mbsstr-tests: New file.
64625         * tests/test-mbsstr1.c: New file.
64626         * tests/test-mbsstr2.sh: New file.
64627         * tests/test-mbsstr2.c: New file.
64628         * tests/test-mbsstr3.sh: New file.
64629         * tests/test-mbsstr3.c: New file.
64630         * m4/locale-fr.m4: New file.
64631
64632 2007-02-11  Bruno Haible  <bruno@clisp.org>
64633
64634         * lib/mbsrchr.c (mbsrchr): Fix bug.
64635
64636         * modules/mbsrchr-tests: New file.
64637         * tests/test-mbsrchr.sh: New file.
64638         * tests/test-mbsrchr.c: New file.
64639
64640 2007-02-11  Bruno Haible  <bruno@clisp.org>
64641
64642         * lib/mbschr.c (mbschr): Fix bug.
64643
64644         * modules/mbschr-tests: New file.
64645         * tests/test-mbschr.sh: New file.
64646         * tests/test-mbschr.c: New file.
64647         * m4/locale-zh.m4: New file.
64648
64649 2007-02-11  Bruno Haible  <bruno@clisp.org>
64650
64651         Support for copying multibyte string iterators.
64652         * lib/mbiter.h: Include <string.h>.
64653         (mbiter_multi_copy): New function.
64654         (mbi_copy): New macro.
64655         * lib/mbuiter.h: Include <string.h>.
64656         (mbuiter_multi_copy): New function.
64657         (mbui_copy): New macro.
64658
64659 2007-02-11  Bruno Haible  <bruno@clisp.org>
64660
64661         New module mbslen.
64662         * modules/mbslen: New file.
64663         * lib/mbslen.c: New file.
64664         * lib/string_.h (mbslen): New declaration.
64665         * m4/mbslen.m4: New file.
64666         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64667         GNULIB_MBSLEN.
64668         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
64669         * MODULES.html.sh (Internationalization functions): Add mbslen.
64670
64671 2007-02-11  Bruno Haible  <bruno@clisp.org>
64672
64673         Ensure O(n) worst-case complexity of strcasestr substitute.
64674         * lib/strcasestr.c: Include stdbool.h.
64675         (knuth_morris_pratt): New function.
64676         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
64677         bookkeeping indicates that it's worth it.
64678         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
64679
64680         * modules/strcasestr-tests: New file.
64681         * tests/test-strcasestr.c: New file.
64682
64683 2007-02-11  Bruno Haible  <bruno@clisp.org>
64684
64685         Ensure O(n) worst-case complexity of c_strcasestr.
64686         * lib/c-strcasestr.c: Include stdbool.h, string.h.
64687         (knuth_morris_pratt): New function.
64688         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
64689         the bookkeeping indicates that it's worth it.
64690         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
64691
64692         * modules/c-strcasestr-tests: New file.
64693         * tests/test-c-strcasestr.c: New file.
64694
64695 2007-02-11  Bruno Haible  <bruno@clisp.org>
64696
64697         Ensure O(n) worst-case complexity of c_strstr.
64698         * lib/c-strstr.c: Include stdbool.h, string.h.
64699         (knuth_morris_pratt): New function.
64700         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
64701         bookkeeping indicates that it's worth it.
64702         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
64703
64704         * lib/c-strstr.c: Complete rewrite for maintainability.
64705
64706         * modules/c-strstr-tests: New file.
64707         * tests/test-c-strstr.c: New file.
64708
64709 2007-02-11  Bruno Haible  <bruno@clisp.org>
64710
64711         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
64712         5.2.1 and earlier, whereby \055 was treated just like the range
64713         delimiter '-'.
64714         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
64715
64716 2007-02-08  Bruno Haible  <bruno@clisp.org>
64717
64718         * modules/regex (Depends-on): Add stdbool.
64719         Reported by Dalibor Topic <robilad@kaffe.org>.
64720
64721 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
64722
64723         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
64724         Prefer returning from main to exiting from it.
64725         Remove unnecessary parens after sizeof.
64726
64727 2007-02-05  Bruno Haible  <bruno@clisp.org>
64728
64729         New module mbssep.
64730         * modules/mbssep: New file.
64731         * lib/mbssep.c: New file.
64732         * lib/string_.h (strsep): Add a conditional link warning.
64733         (mbssep): New declaration.
64734         * m4/mbssep.m4: New file.
64735         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64736         GNULIB_MBSSEP.
64737         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
64738         * MODULES.html.sh (Internationalization functions): Add mbssep.
64739
64740 2007-02-05  Bruno Haible  <bruno@clisp.org>
64741
64742         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
64743         Optimize search in case of 1 delimiter.
64744
64745 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
64746
64747         * lib/acl.h: Include sys/types.h before sys/acl.h.
64748
64749 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
64750
64751         Merge upstream fix for glibc bugzilla #3957:
64752
64753         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
64754
64755         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
64756         bit for RE_HAT_LISTS_NOT_NEWLINE.
64757         (build_charclass_op): Remove bogus comment.
64758
64759 2007-02-05  Simon Josefsson  <simon@josefsson.org>
64760
64761         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
64762
64763 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
64764
64765         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
64766         * lib/memmem.c [!defined _LIBC]: Include config.h.
64767
64768 2007-02-04  Bruno Haible  <bruno@clisp.org>
64769
64770         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
64771         warning message.
64772
64773 2007-02-04  Bruno Haible  <bruno@clisp.org>
64774
64775         New module mbstok_r.
64776         * modules/mbstok_r: New file.
64777         * lib/mbstok_r.c: New file.
64778         * lib/string_.h (strtok_r): Change argument names to match the
64779         comments. Add a conditional link warning.
64780         (mbstok_r): New declaration.
64781         * m4/mbstok_r.m4: New file.
64782         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64783         GNULIB_MBSTOK_R.
64784         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
64785         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
64786
64787 2007-02-04  Bruno Haible  <bruno@clisp.org>
64788
64789         New module mbsspn.
64790         * modules/mbsspn: New file.
64791         * lib/mbsspn.c: New file.
64792         * lib/string_.h (strspn): Add a conditional link warning.
64793         (mbsspn): New declaration.
64794         * m4/mbsspn.m4: New file.
64795         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64796         GNULIB_MBSSPN.
64797         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
64798         * MODULES.html.sh (Internationalization functions): Add mbsspn.
64799
64800 2007-02-04  Bruno Haible  <bruno@clisp.org>
64801
64802         New module mbspbrk.
64803         * modules/mbspbrk: New file.
64804         * lib/mbspbrk.c: New file.
64805         * lib/string_.h (strpbrk): Add a conditional link warning.
64806         (mbspbrk): New declaration.
64807         * m4/mbspbrk.m4: New file.
64808         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64809         GNULIB_MBSPBRK.
64810         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
64811         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
64812
64813 2007-02-04  Bruno Haible  <bruno@clisp.org>
64814
64815         New module mbscspn.
64816         * modules/mbscspn: New file.
64817         * lib/mbscspn.c: New file.
64818         * lib/string_.h (strcspn): Add a conditional link warning.
64819         (mbscspn): New declaration.
64820         * m4/mbscspn.m4: New file.
64821         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64822         GNULIB_MBSCSPN.
64823         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
64824         * MODULES.html.sh (Internationalization functions): Add mbscspn.
64825
64826 2007-02-04  Bruno Haible  <bruno@clisp.org>
64827
64828         New module mbscasestr, reduced goal of strcasestr.
64829         * modules/mbscasestr: New file.
64830         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
64831         (mbscasestr): Renamed from strcasestr.
64832         * lib/strcasestr.c: Don't include mbuiter.h.
64833         (strcasestr): Remove support for multibyte locales.
64834         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
64835         Change the conditional link warning.
64836         (mbscasestr): New declaration.
64837         * m4/mbscasestr.m4: New file.
64838         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
64839         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
64840         REPLACE_STRCASESTR.
64841         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
64842         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64843         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
64844         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
64845         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
64846         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
64847         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
64848         (Depends-on): Remove mbuiter.
64849         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
64850
64851 2007-02-04  Bruno Haible  <bruno@clisp.org>
64852
64853         Simplify handling of strncasecmp.
64854         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
64855         the conditional link warning.
64856         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
64857         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
64858         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
64859         * modules/strcase (configure.ac): Don't invoke
64860         gl_STRING_MODULE_INDICATOR.
64861         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
64862
64863 2007-02-04  Bruno Haible  <bruno@clisp.org>
64864
64865         New module mbscasecmp, reduced goal of strcasecmp.
64866         * modules/mbscasecmp: New file.
64867         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
64868         (mbscasecmp): Renamed from strcasecmp.
64869         * lib/strcasecmp.c: Don't include mbuiter.h.
64870         (strcasecmp): Remove support for multibyte locales.
64871         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
64872         Change the conditional link warning.
64873         (mbscasecmp): New declaration.
64874         * m4/mbscasecmp.m4: New file.
64875         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
64876         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
64877         REPLACE_STRCASECMP.
64878         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
64879         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64880         GNULIB_MBSCASECMP.
64881         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
64882         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
64883         * modules/strcase (Files): Remove m4/mbrtowc.m4.
64884         (Depends-on): Remove mbuiter.
64885         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
64886
64887 2007-02-04  Bruno Haible  <bruno@clisp.org>
64888
64889         New module mbsstr. Remove module strstr.
64890         * modules/mbsstr: New file.
64891         * modules/strstr: Remove file.
64892         * lib/mbsstr.c: Renamed from lib/strstr.c.
64893         (mbsstr): Renamed from strstr.
64894         * lib/string_.h (strstr): Remove declaration. Change the conditional
64895         link warning.
64896         (mbsstr): New declaration.
64897         * m4/mbsstr.m4: New file.
64898         * m4/strstr.m4: Remove file.
64899         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
64900         REPLACE_STRSTR.
64901         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
64902         Don't initialize GNULIB_STRSTR.
64903         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
64904         substitute GNULIB_STRSTR and REPLACE_STRSTR.
64905         * MODULES.html.sh (Internationalization functions): Add mbsstr.
64906         (Support for systems lacking ANSI C 89): Remove strstr.
64907
64908 2007-02-04  Bruno Haible  <bruno@clisp.org>
64909
64910         New module mbsrchr.
64911         * modules/mbsrchr: New file.
64912         * lib/mbsrchr.c: New file.
64913         * lib/string_.h (strrchr): Add a conditional link warning.
64914         (mbsrchr): New declaration.
64915         * m4/mbsrchr.m4: New file.
64916         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64917         GNULIB_MBSRCHR.
64918         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
64919         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
64920
64921 2007-02-04  Bruno Haible  <bruno@clisp.org>
64922
64923         New module mbschr.
64924         * modules/mbschr: New file.
64925         * lib/mbschr.c: New file.
64926         * lib/string_.h (strchr): Add a conditional link warning.
64927         (mbschr): New declaration.
64928         * m4/mbschr.m4: New file.
64929         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
64930         GNULIB_MBSCHR.
64931         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
64932         * MODULES.html.sh (Internationalization functions): Add mbschr.
64933
64934 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
64935
64936         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
64937
64938         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
64939
64940 2007-02-04  Bruno Haible  <bruno@clisp.org>
64941
64942         New module description section 'configure.ac-early'.
64943         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
64944         (func_get_autoconf_early_snippet): New function.
64945         (func_import, func_create_testdir): Use it. Remove special cases for
64946         modules 'extensions' and 'lock'.
64947         * modules/extensions (configure.ac-early): Require
64948         gl_USE_SYSTEM_EXTENSIONS.
64949         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
64950
64951 2007-02-04  Bruno Haible  <bruno@clisp.org>
64952
64953         Make use of gcj-4.3's -fsource and -ftarget option.
64954         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
64955         and if so try the options -fsource and -ftarget.
64956         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
64957         source_version, ftarget_option, target_version arguments.
64958         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
64959         (is_envjavac_oldgcj_14_14_usable): Renamed from
64960         is_envjavac_gcj_14_14_usable.
64961         (is_envjavac_oldgcj_14_13_usable): Renamed from
64962         is_envjavac_gcj_14_13_usable.
64963         (is_gcj_present): Update.
64964         (is_gcj_43, is_gcj43_usable): New functions.
64965         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
64966         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
64967         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
64968         try the options -fsource and -ftarget.
64969
64970 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
64971
64972         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
64973         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
64974         larger value.
64975
64976 2007-02-03  Jim Meyering  <jim@meyering.net>
64977
64978         Give tools a better chance to allocate space for very large buffers.
64979         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
64980
64981         Make pwd and readlink work also when run with an unreadable parent dir
64982         on systems with openat support.
64983         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
64984         provided getcwd function, even when we have openat support.
64985         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
64986
64987 2007-02-02  Bruno Haible  <bruno@clisp.org>
64988
64989         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
64990         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
64991         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
64992         portability problems if one of these functions is only used on specific
64993         platforms.
64994         Reported by Paul Eggert.
64995
64996 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
64997
64998         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
64999         is causing more trouble than it's curing.
65000         * lib/regex_internal.h (__mempcpy): Remove.
65001         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
65002         (and make the code a tad smaller to boot).
65003         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
65004
65005 2007-02-02  Jim Meyering  <jim@meyering.net>
65006
65007         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
65008         section, not in the Makefile.am: one.
65009
65010 2007-02-02  Eric Blake  <ebb9@byu.net>
65011
65012         * lib/strchrnul.c: Always include config.h first.
65013
65014         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
65015         gnulib strstr is not necessary here.
65016
65017 2007-02-02  Simon Josefsson  <simon@josefsson.org>
65018
65019         * m4/socklen.m4: Fix typo.
65020
65021 2007-02-02  Eric Blake  <ebb9@byu.net>
65022
65023         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
65024         * modules/netinet_in (Makefile.am): Likewise.
65025
65026 2007-02-01  Bruno Haible  <bruno@clisp.org>
65027
65028         * lib/string_.h (GL_LINK_WARNING): New macro.
65029         (strcasecmp, strstr, strcasestr): If provided by the system,
65030         conditionally define as a macro that leads to a warning instead of to
65031         an error.
65032         (strncasecmp): Conditionally define as a macro that leads to a warning.
65033
65034 2007-02-01  Karl Berry  <karl@gnu.org>
65035
65036         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
65037
65038 2007-02-01  Bruno Haible  <bruno@clisp.org>
65039
65040         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
65041         renamings.
65042
65043 2007-02-01  Eric Blake  <ebb9@byu.net>
65044
65045         * modules/regex (Depends-on): Revert dependence on mempcpy.
65046         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
65047         module's definition of mempcpy.
65048         Reported by Paul Eggert.
65049
65050 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
65051
65052         * lib/string_.h: If the gnulib module XYZ is not present, undefine
65053         the symbol XYZ before redefining it.  This fixes a problem with
65054         programs that don't use XYZ, when compiled on systems that define
65055         XYZ to something else.
65056
65057 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
65058
65059         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
65060         occurs when "mkdir -m foo" creates a setgid directory that is (1)
65061         writeable to group or other and (2) is intended to have a special
65062         mode bit that is set or cleared.  In such a case, the directory
65063         should be neither group- nor other-writeable until the special
65064         mode bits are right.
65065
65066 2007-01-31  Eric Blake  <ebb9@byu.net>
65067
65068         * modules/mountlist (Depends-on): Add strstr.
65069
65070         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
65071         bug.
65072         * modules/string (Makefile.am): Remove redundant replacement.
65073         * modules/regex (Depends-on): Add mempcpy.
65074
65075 2007-01-31  Bruno Haible  <bruno@clisp.org>
65076
65077         New module description field 'Link'.
65078         * gnulib-tool (func_usage): Document --extract-link-directive.
65079         (sed_extract_prog): Recognize 'Link' directive.
65080         (func_get_link_directive): New function.
65081         (func_import): Show summary of link directives.
65082         Handle --extract-link-directive option.
65083         * modules/acl (Link): New section.
65084         * modules/clock-time (Link): New section.
65085         * modules/euidaccess (Link): New section.
65086         * modules/gettext (Link): New section.
65087         * modules/iconv (Link): New section.
65088         * modules/lock (Link): New section.
65089         * modules/nanosleep (Link): New section.
65090         * modules/readline (Link): New section.
65091
65092 2007-01-27  Bruno Haible  <bruno@clisp.org>
65093
65094         Enforce the use of gnulib modules for unportable <string.h> functions.
65095         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
65096         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
65097         (gl_HEADER_STRING_H_BODY): Require it.
65098         * lib/string_.h: If the gnulib module XYZ is not present, redefine
65099         the symbol XYZ to one that gives a link error.
65100         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
65101         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
65102         * modules/mempcpy (configure.ac): Likewise.
65103         * modules/memrchr (configure.ac): Likewise.
65104         * modules/stpcpy (configure.ac): Likewise.
65105         * modules/stpncpy (configure.ac): Likewise.
65106         * modules/strcase (configure.ac): Likewise.
65107         * modules/strcasestr (configure.ac): Likewise.
65108         * modules/strchrnul (configure.ac): Likewise.
65109         * modules/strdup (configure.ac): Likewise.
65110         * modules/strndup (configure.ac): Likewise.
65111         * modules/strnlen (configure.ac): Likewise.
65112         * modules/strpbrk (configure.ac): Likewise.
65113         * modules/strsep (configure.ac): Likewise.
65114         * modules/strstr (configure.ac): Likewise.
65115         * modules/strtok_r (configure.ac): Likewise.
65116
65117 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
65118
65119         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
65120
65121 2007-01-30  Jim Meyering  <jim@meyering.net>
65122
65123         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
65124
65125 2007-01-29  Bruno Haible  <bruno@clisp.org>
65126
65127         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
65128         * lib/execute.c: Likewise.
65129         * lib/pipe.c: Likewise.
65130         * lib/printf-args.h: Likewise.
65131         * lib/printf-args.c: Likewise.
65132         * lib/printf-parse.c: Likewise.
65133         * lib/vasnprintf.c: Likewise.
65134
65135 2007-01-29  Eric Blake  <ebb9@byu.net>
65136
65137         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
65138         declaration.
65139
65140 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
65141
65142         * lib/strptime.h (strptime): Use 'restrict' for args where
65143         POSIX requires this.
65144         * lib/strptime.c (strptime): Likewise.
65145         Change license notice from LGPL to GPL, since gnulib-tool will
65146         change this as needed.
65147         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
65148         defined.
65149         Include "strptime.h" first, to check interface.
65150         Do not #undef _LIBC and _NL_CURRENT.
65151         Do not include <stdlib.h>; no longer needed.
65152         Include "time_r.h" and declare ptime_locale_status
65153         only if _LIBC is not defined.
65154         (__P): Remove unused macro.
65155         (match_string): Bring back glibc version, but use it only if _LIBC
65156         is defined.
65157         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
65158         Remove unnecessary assertion and abort() call.
65159         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
65160         * m4/strptime.m4: Fix serial number comment.
65161         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
65162         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
65163         (Depends-on): Add time_r.
65164
65165 2007-01-29  Bruno Haible  <bruno@clisp.org>
65166
65167         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
65168         strptime.
65169         * modules/strptime (Depends-on): Add stdbool.
65170         * lib/strptime.h: Include <time.h> always. Add comments.
65171
65172 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
65173
65174         * modules/strptime: New file.
65175         * lib/strptime.h: New file.
65176         * lib/strptime.c: New file.
65177         * m4/strptime.m4: New file.
65178
65179 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
65180
65181         * MODULES.html.sh: New module mpsort.
65182         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
65183
65184         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
65185         a circularity problem with HP-UX ia64 reported by Bob Proulx in
65186         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
65187         All uses changed.
65188         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
65189         All uses changed.
65190         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
65191         to _Restrict_.
65192         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
65193         the parameter matches the prototype.
65194
65195 2007-01-28  Jim Meyering  <jim@meyering.net>
65196
65197         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
65198         sys/time.h here, reverting that part of the previous patch:
65199         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
65200
65201 2007-01-28  Bruno Haible  <bruno@clisp.org>
65202
65203         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
65204         value of $(SYS_TIME_H).
65205         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
65206         remove it conditionally, too. [added by Jim Meyering]
65207         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
65208         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
65209         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
65210         GETTIMEOFDAY_REPLACEMENT to 1.
65211
65212 2007-01-28  Bruno Haible  <bruno@clisp.org>
65213
65214         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
65215         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
65216         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
65217         Set UNISTD_H instead of UNISTD_H2.
65218         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
65219
65220 2007-01-28  Bruno Haible  <bruno@clisp.org>
65221
65222         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
65223         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
65224
65225 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65226
65227         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
65228         (func_create_testdir): Ensure C locale for `grep' and `tr'
65229         character ranges.
65230         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
65231         ACLOCAL_AMFLAGS parsing state machine.
65232
65233 2007-01-27  Bruno Haible  <bruno@clisp.org>
65234
65235         * modules/unistr/base: Update.
65236
65237 2007-01-27  Bruno Haible  <bruno@clisp.org>
65238
65239         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
65240         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
65241         * modules/unistr/u32-mbtouc-unsafe: Renamed from
65242         modules/unistr/u32-mbtouc.
65243         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
65244         * lib/unistr.h: Update.
65245         * lib/linebreak.c: Update.
65246         * modules/unistr/u32-mbtouc: Renamed from
65247         modules/unistr/u32-mbtouc-safe.
65248         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
65249         * lib/unistr.h: Update.
65250         * lib/unistr/u32-to-u8.c: Update.
65251         * lib/unistr/u32-to-u16.c: Update.
65252
65253 2007-01-27  Bruno Haible  <bruno@clisp.org>
65254
65255         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
65256         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
65257         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
65258         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
65259         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
65260         * modules/unistr/u16-mbtouc-unsafe: Renamed from
65261         modules/unistr/u16-mbtouc.
65262         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
65263         * lib/unistr.h: Update.
65264         * lib/linebreak.c: Update.
65265         * modules/linebreak: Update.
65266         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
65267         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
65268         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
65269         * modules/unistr/u16-mbtouc: Renamed from
65270         modules/unistr/u16-mbtouc-safe.
65271         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
65272         * lib/unistr.h: Update.
65273         * lib/unistr/u16-to-u8.c: Update.
65274         * modules/unistr/u16-to-u8: Update.
65275         * lib/unistr/u16-to-u32.c: Update.
65276         * modules/unistr/u16-to-u32: Update.
65277
65278 2007-01-27  Bruno Haible  <bruno@clisp.org>
65279
65280         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
65281         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
65282         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
65283         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
65284         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
65285         * modules/unistr/u8-mbtouc-unsafe: Renamed from
65286         modules/unistr/u8-mbtouc.
65287         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
65288         * lib/unistr.h: Update.
65289         * lib/striconveh.c: Update.
65290         * modules/striconveh: Update.
65291         * lib/linebreak.c: Update.
65292         * modules/linebreak: Update.
65293         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
65294         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
65295         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
65296         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
65297         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
65298         * lib/unistr.h: Update.
65299         * lib/striconveh.c: Update.
65300         * modules/striconveh: Update.
65301         * lib/unistr/u8-to-u16.c: Update.
65302         * modules/unistr/u8-to-u16: Update.
65303         * lib/unistr/u8-to-u32.c: Update.
65304         * modules/unistr/u8-to-u32: Update.
65305
65306 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65307
65308         Sync from Libtool.
65309         * lib/argz.c: Do not include strings.h nor memory.h, include
65310         string.h unconditionally.  Patch by Simon Josefsson.
65311
65312 2007-01-27  Bruno Haible  <bruno@clisp.org>
65313
65314         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
65315         from gl_HEADER_STRING_H_BODY.
65316         (gl_HEADER_STRING_H_BODY): Require it.
65317         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
65318         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
65319         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
65320         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
65321         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65322         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
65323         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
65324         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
65325         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
65326         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
65327         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
65328         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
65329         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
65330         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
65331         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65332
65333 2007-01-27  Bruno Haible  <bruno@clisp.org>
65334
65335         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
65336         check_PROGRAMS into noinst_PROGRAMS.
65337         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
65338         check_PROGRAMS in this case.
65339         (func_import): Set for_test to false.
65340         (func_create_testdir): Set for_test to true.
65341
65342 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
65343             Bruno Haible  <bruno@clisp.org>
65344
65345         * modules/strcasestr (Files): Remove lib/strcasestr.h.
65346         (Depends-on): Add string.
65347         (Includes): Use <string.h> instead of strcasestr.h.
65348         * modules/string (Makefile.am): Also substitute the value of
65349         REPLACE_STRCASESTR.
65350         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
65351         assume strcasestr is declared in <string.h> not <strings.h>. Also
65352         set REPLACE_STRCASESTR.
65353         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
65354         REPLACE_STRCASESTR.
65355         * lib/strcasestr.h: Remove file.
65356         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
65357         * lib/string_.h (strcasestr): New declaration.
65358
65359 2007-01-27  Bruno Haible  <bruno@clisp.org>
65360
65361         * lib/string_.h: Use 'extern'.
65362
65363 2007-01-27  Jim Meyering  <jim@meyering.net>
65364
65365         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
65366         of set-but-not-used local, "q".
65367
65368         * lib/mempcpy.c: Include <config.h> before <string.h>.
65369         This fixes a compilation error on HP-UX, due to the system's
65370         "restrict"-using mempcpy prototype.
65371
65372 2007-01-26  Bruno Haible  <bruno@clisp.org>
65373
65374         Small optimization.
65375         * lib/javacomp.c: Include c-strstr.h.
65376          (is_envjavac_gcj): Use c_strstr instead of strstr.
65377         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
65378
65379 2007-01-26  Bruno Haible  <bruno@clisp.org>
65380
65381         * MODULES.html.sh (Unicode string functions): Add the new modules.
65382
65383         * modules/uniconv/u32-strconv-to-locale: New file.
65384         * lib/uniconv/u32-strconv-to-locale.c: New file.
65385
65386         * modules/uniconv/u16-strconv-to-locale: New file.
65387         * lib/uniconv/u16-strconv-to-locale.c: New file.
65388
65389         * modules/uniconv/u8-strconv-to-locale: New file.
65390         * lib/uniconv/u8-strconv-to-locale.c: New file.
65391
65392         * modules/uniconv/u32-strconv-from-locale: New file.
65393         * lib/uniconv/u32-strconv-from-locale.c: New file.
65394
65395         * modules/uniconv/u16-strconv-from-locale: New file.
65396         * lib/uniconv/u16-strconv-from-locale.c: New file.
65397
65398         * modules/uniconv/u8-strconv-from-locale: New file.
65399         * lib/uniconv/u8-strconv-from-locale.c: New file.
65400
65401         * modules/uniconv/u32-strconv-to-enc: New file.
65402         * lib/uniconv/u32-strconv-to-enc.c: New file.
65403         * modules/uniconv/u32-strconv-to-enc-tests: New file.
65404         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
65405
65406         * modules/uniconv/u16-strconv-to-enc: New file.
65407         * lib/uniconv/u16-strconv-to-enc.c: New file.
65408         * lib/uniconv/u-strconv-to-enc.h: New file.
65409         * modules/uniconv/u16-strconv-to-enc-tests: New file.
65410         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
65411
65412         * modules/uniconv/u8-strconv-to-enc: New file.
65413         * lib/uniconv/u8-strconv-to-enc.c: New file.
65414         * modules/uniconv/u8-strconv-to-enc-tests: New file.
65415         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
65416
65417         * modules/uniconv/u32-strconv-from-enc: New file.
65418         * lib/uniconv/u32-strconv-from-enc.c: New file.
65419         * modules/uniconv/u32-strconv-from-enc-tests: New file.
65420         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
65421
65422         * modules/uniconv/u16-strconv-from-enc: New file.
65423         * lib/uniconv/u16-strconv-from-enc.c: New file.
65424         * modules/uniconv/u16-strconv-from-enc-tests: New file.
65425         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
65426
65427         * modules/uniconv/u8-strconv-from-enc: New file.
65428         * lib/uniconv/u8-strconv-from-enc.c: New file.
65429         * lib/uniconv/u-strconv-from-enc.h: New file.
65430         * modules/uniconv/u8-strconv-from-enc-tests: New file.
65431         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
65432
65433         * modules/uniconv/u32-conv-from-enc: New file.
65434         * lib/uniconv/u32-conv-from-enc.c: New file.
65435         * modules/uniconv/u32-conv-from-enc-tests: New file.
65436         * tests/uniconv/test-u32-conv-from-enc.c: New file.
65437
65438         * modules/uniconv/u16-conv-from-enc: New file.
65439         * lib/uniconv/u16-conv-from-enc.c: New file.
65440         * lib/uniconv/u-conv-from-enc.h: New file.
65441         * modules/uniconv/u16-conv-from-enc-tests: New file.
65442         * tests/uniconv/test-u16-conv-from-enc.c: New file.
65443
65444         * modules/uniconv/u8-conv-from-enc: New file.
65445         * lib/uniconv/u8-conv-from-enc.c: New file.
65446         * modules/uniconv/u8-conv-from-enc-tests: New file.
65447         * tests/uniconv/test-u8-conv-from-enc.c: New file.
65448
65449         * modules/uniconv/base: New file.
65450         * lib/uniconv.h: New file.
65451
65452 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
65453
65454         * doc/gnulib-tool.texi (Initial import): Update to match current
65455         behavior with strdup module.
65456         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
65457         * lib/memmem.h: Remove; all uses removed.  This is now done
65458         by <string.h>.
65459         * lib/mempcpy.h: Likewise.
65460         * lib/memrchr.h: Likewise.
65461         * lib/stpcpy.h: Likewise.
65462         * lib/stpncpy.h: Likewise.
65463         * lib/strcase.h: Likewise.
65464         * lib/strchrnul.h: Likewise.
65465         * lib/strdup.h: Likewise.
65466         * lib/strndup.h: Likewise.
65467         * lib/strnlen.h: Likewise.
65468         * lib/strpbrk.h: Likewise.
65469         * lib/strsep.h: Likewise.
65470         * lib/strstr.h: Likewise.
65471         * lib/strtok_r.h: Likewise.
65472         * lib/string_.h: New file.
65473         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
65474         Rely on <string.h> instead.
65475         * lib/canon-host.c: Likewise.
65476         * lib/chdir-long.c: Likewise.
65477         * lib/concatpath.c: Likewise.
65478         * lib/exclude.c: Likewise.
65479         * lib/fchdir.c: Likewise.
65480         * lib/getaddrinfo.c: Likewise.
65481         * lib/getcwd.c: Likewise.
65482         * lib/getsubopt.c: Likewise.
65483         * lib/glob.c: Likewise.
65484         * lib/hard-locale.c: Likewise.
65485         * lib/iconvme.c: Likewise.
65486         * lib/javacomp.c: Likewise.
65487         * lib/mempcpy.c: Likewise.
65488         * lib/memrchr.c: Likewise.
65489         * lib/regex_internal.h: Likewise.
65490         * lib/stpncpy.c: Likewise.
65491         * lib/strcasecmp.c: Likewise.
65492         * lib/strchrnul.c: Likewise.
65493         * lib/strdup.c: Likewise.
65494         * lib/striconv.c: Likewise.
65495         * lib/striconveh.c: Likewise.
65496         * lib/striconveha.c: Likewise.
65497         * lib/strncasecmp.c: Likewise.
65498         * lib/strndup.c: Likewise.
65499         * lib/strnlen.c: Likewise.
65500         * lib/strsep.c: Likewise.
65501         * lib/strstr.c: Likewise.
65502         * lib/strtok_r.c: Likewise.
65503         * lib/userspec.c: Likewise.
65504         * lib/w32spawn.h: Likewise.
65505         * lib/xstrndup.c: Likewise.
65506         * lib/mountlist.c (strstr): Remove decl.
65507         * m4/string_h.m4: New file.
65508         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
65509         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
65510         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
65511         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
65512         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
65513         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
65514         Set REPLACE_STRCASECMP if necessary.
65515         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
65516         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
65517         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
65518         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
65519         HAVE_DECL_STRDUP if necessary.
65520         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
65521         since gl_FUNC_STRNDUP does that now.
65522         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
65523         Check for decl here...
65524         (gl_PREREQ_STRNLEN): ... not here.
65525         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
65526         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
65527         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
65528         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
65529         necessary.
65530         * modules/string: New file.
65531         * modules/memmem (Files): Remove special-purpose include file.
65532         (Depends-on): Add string.
65533         (Include): Include <string.h>, not the removed file.
65534         * modules/mempcpy: Likewise.
65535         * modules/memrchr: Likewise.
65536         * modules/stpcpy: Likewise.
65537         * modules/stpncpy: Likewise.
65538         * modules/strcase: Likewise.
65539         * modules/strchrnul: Likewise.
65540         * modules/strdup: Likewise.
65541         * modules/strndup: Likewise.
65542         * modules/strnlen: Likewise.
65543         * modules/strpbrk: Likewise.
65544         * modules/strsep: Likewise.
65545         * modules/strstr: Likewise.
65546         * modules/strtok_r: Likewise.
65547         * tests/test-dirname.c: Don't include "strdup.h", since
65548         <string.h> now suffices.
65549         * tests/test-memmem.c: Don't include "memmem.h", since
65550         <string.h> now suffices.
65551
65552 2007-01-25  Bruno Haible  <bruno@clisp.org>
65553
65554         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
65555         *resultp is 0.
65556
65557         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
65558         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
65559         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
65560         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
65561
65562         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
65563         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
65564         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
65565         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
65566         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
65567         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
65568
65569 2007-01-24  Bruno Haible  <bruno@clisp.org>
65570
65571         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
65572         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
65573         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
65574         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
65575         gl_FUNC_FTS_CORE.
65576         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
65577         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
65578         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
65579         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
65580         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
65581         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
65582         gl_FUNC_FCHOWNAT.
65583         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
65584         gl_FUNC_STRFTIME.
65585         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
65586         Reported by Ralf Wildenhues.
65587
65588 2007-01-24  Bruno Haible  <bruno@clisp.org>
65589
65590         Drop AC_REQUIRE calls that are redundant with the module dependencies.
65591         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
65592         gl_GETADDRINFO.
65593         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
65594         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
65595         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
65596
65597 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
65598
65599         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
65600         Don't use 'exit'; just return from 'main'.
65601         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
65602
65603         * lib/fnmatch_.h: Readjust white space and comments to match
65604         glibc, to avoid spurious diffs.
65605
65606 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65607
65608         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
65609         2004-12-01 change by Jakub Jelinek, since this code won't compile
65610         if !LIBC.  Problem reported by Bob Proulx.
65611
65612 2007-01-23  Bruno Haible  <bruno@clisp.org>
65613
65614         * lib/striconveh.c: Include c-strcaseeq.h.
65615         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
65616         * modules/striconveh (Depends-on): Add c-strcaseeq.
65617
65618 2007-01-23  Bruno Haible  <bruno@clisp.org>
65619
65620         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
65621
65622         * modules/c-strcaseeq: New file.
65623         * lib/c-strcaseeq.h: New file.
65624
65625         * modules/streq: New file.
65626         * lib/streq.h: New file.
65627
65628 2007-01-23  Bruno Haible  <bruno@clisp.org>
65629
65630         * modules/striconveha-tests: New file.
65631         * tests/test-striconveha.c: New file.
65632
65633         * lib/striconveha.h: Include <stdbool.h>.
65634         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
65635         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
65636         (mem_iconveha_notranslit): Renamed from mem_iconveha.
65637         (mem_iconveha): New function.
65638         (str_iconveha_notranslit): Renamed from str_iconveha.
65639         (str_iconveha): New function.
65640         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
65641         c-strcase.
65642
65643 2007-01-23  Bruno Haible  <bruno@clisp.org>
65644
65645         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
65646         encodings without forgiving before trying any encoding with handler.
65647         (str_iconveha): Try all encodings without forgiving before trying any
65648         encoding with handler.
65649
65650 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
65651
65652         Import the following changes from libc.
65653
65654         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
65655
65656         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
65657
65658         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
65659
65660         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
65661         normal_bracket label.
65662
65663         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
65664
65665         [BZ #361]
65666         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
65667         to normal_bracket after fetching the next character.
65668
65669 2007-01-22  Bruno Haible  <bruno@clisp.org>
65670
65671         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
65672         argument.
65673         * lib/striconveh.c (iconv_carefully_1): New function.
65674         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
65675         argument.
65676         (str_cd_iconveh): Update.
65677         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
65678         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
65679         * tests/test-striconveh.c (MAGIC): New macro.
65680         (new_offsets): New function.
65681         (main): Test call with and without offsets.
65682
65683 2007-01-22  Bruno Haible  <bruno@clisp.org>
65684
65685         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
65686         * modules/sys_select (Makefile.am): Likewise.
65687         * modules/sys_socket (Makefile.am): Likewise.
65688         * modules/sys_time (Makefile.am): Likewise.
65689
65690 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
65691
65692         * modules/gettimeofday (License): Change from GPL to LGPL, since
65693         gettimeofday is a library function.
65694
65695 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65696
65697         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
65698
65699 2007-01-21  Bruno Haible  <bruno@clisp.org>
65700
65701         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
65702
65703 2007-01-21  Bruno Haible  <bruno@clisp.org>
65704
65705         * modules/striconveha: New file.
65706         * lib/striconveha.h: New file.
65707         * lib/striconveha.c: New file.
65708         * MODULES.html.sh (Internationalization functions): Add striconveha.
65709         * lib/striconv.c (str_iconv): Optimize the case of an empty input
65710         string.
65711         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
65712
65713 2007-01-21  Bruno Haible  <bruno@clisp.org>
65714
65715         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
65716         * lib/striconveh.c (str_iconveh): Likewise.
65717
65718 2007-01-21  Bruno Haible  <bruno@clisp.org>
65719
65720         * lib/striconveh.h (mem_iconveh): New declaration.
65721         * lib/striconveh.c (mem_iconveh): New function.
65722         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
65723
65724 2007-01-21  Bruno Haible  <bruno@clisp.org>
65725
65726         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
65727
65728         * lib/striconveh.h (mem_cd_iconveh): Change specification.
65729         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
65730         original result buffer.
65731         (str_cd_iconveh): Update.
65732         * tests/test-striconveh.c (main): Update.
65733
65734         * lib/striconv.h (mem_cd_iconv): Change specification.
65735         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
65736         result buffer.
65737         (str_cd_iconv): Update.
65738         * tests/test-striconv.c (main): Update.
65739
65740 2007-01-21  Bruno Haible  <bruno@clisp.org>
65741
65742         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
65743
65744 2007-01-20  Jim Meyering  <jim@meyering.net>
65745
65746         * lib/userspec.c (parse_with_separator): If a user or group string
65747         starts with "+", skip the corresponding name-to-ID look-up, since
65748         such a look-up must fail: user and group names may not include "+".
65749
65750 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
65751
65752         * lib/poll.c: Include sys/time.h and time.h unconditionally,
65753         since we now assume the sys_time module.
65754         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
65755         check for sys/time.h; no longer needed.
65756         * modules/poll (Depends-on): Depend on sys_time.
65757
65758 2007-01-18  Bruno Haible  <bruno@clisp.org>
65759
65760         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
65761         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
65762
65763         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
65764         gettimeofday.
65765
65766         * tests/test-gettimeofday.c: Include <time.h>.
65767         (dummy): Remove variable.
65768
65769         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
65770         gl_HEADER_SYS_TIME_H.
65771         (gl_HEADER_SYS_TIME_H): New macro.
65772
65773         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
65774         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65775         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
65776         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
65777         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65778         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
65779         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
65780         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65781         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
65782         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
65783         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65784
65785         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
65786         last change; it caused a compilation error when cross-compiling to
65787         Cygwin.
65788
65789 2007-01-18  Jim Meyering  <jim@meyering.net>
65790
65791         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
65792         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
65793         than the race-prone "test -d sys || mkdir sys".
65794         (configure.ac): Use AC_PROG_MKDIR_P.
65795         * modules/sys_select: Likewise.
65796         * modules/sys_socket: Likewise.
65797         * modules/sys_time: Likewise.
65798
65799 2007-01-18  Eric Blake  <ebb9@byu.net>
65800
65801         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
65802         replace gettimeofday.
65803         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
65804         name, to avoid infinite recursion.
65805
65806 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
65807
65808         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
65809         module sys_time.
65810         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
65811         assume timespec.h defines struct timeval.
65812         * lib/settime.c: Likewise.
65813         * lib/utimens.c: Likewise.
65814         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
65815         since we now assume the gettimeofday module.
65816         * lib/tempname.c (__gen_tempname): Likewise.
65817         * lib/gettimeofday.h: Remove.
65818         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
65819         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
65820         Include <time.h>, for 'time()'.
65821         (localtime_buffer_addr): Also use this workaround if
65822         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
65823         to simplify the uses.  All uses changed.
65824         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
65825         that #undef is inside {}, and 'const' follows type name consistently.
65826         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
65827         (gettimeofday): Do not use the maximum possible value for
65828         tv->tv_usec, since that might break usages other than ls.c.
65829         Instead, we'll leave ls.c alone.  This undoes today's patch
65830         by Bruno.  Add a compile-time warning for 1s-clock resolution;
65831         we've never observed the problem but might as well keep the
65832         canary.
65833         * lib/nanosleep.c: Include timespec.h first, for interface check.
65834         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
65835         now assume the sys_time module.
65836         * lib/tempname.c: Likewise.
65837         * lib/timespec.h: Likewise.
65838         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
65839         needed.
65840         * lib/strftime.c: Likewise.
65841         * lib/timespec.h: Likewise.
65842         * lib/posixtm.c: Include posixtm.h first, for interface check.
65843         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
65844         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
65845         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
65846         * lib/sys_time_.h: New file.
65847         * lib/timespec.h (struct timespec): Use long int, not long.
65848         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
65849         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
65850         Remove obsolescent call to AC_HEADER_TIME.
65851         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
65852         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
65853         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
65854         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
65855         Likewise.
65856         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
65857         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
65858         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
65859         into the sys_time module.  Check for gettimeofday just once.
65860         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
65861         for gettimeofday signature to just check the signature.  Merely
65862         compile it, since linking doesn't test signature.  Improve test for
65863         whether gettimeofday.o is actually needed.
65864         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
65865         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
65866         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
65867         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65868         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
65869         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
65870         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
65871         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
65872         than worrying about sys/time.h.
65873         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65874         Don't bother worrying about TIME_WITH_SYS_TIME.
65875         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
65876         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
65877         * m4/sys_time_h.m4: New file.
65878         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
65879         Don't include sys/time.h.  Return from main rather than exiting.
65880         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
65881         all uses changed.
65882         * modules/gethrxtime (Depends-on): Add sys_time.
65883         * modules/gettime (Depends-on): Likewise.
65884         * modules/gettimeofday (Depends-on): Likewise.
65885         * modules/nanosleep (Depends-on): Likewise.
65886         * modules/settime (Depends-on): Likewise.
65887         * modules/tempname (Depends-on): Likewise.
65888         * modules/utimens (Depends-on): Likewise.
65889         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
65890         (Include): Change back to <sys/time.h>.
65891         (Maintainer): Add self.
65892         * modules/sys_time: New file.
65893         * modules/tempname (Depends-on): Add gettimeofday.
65894         * tests/test-gettimeofday.c: Include <sys/time.h>
65895         rather than gettimeofday.h.
65896
65897 2007-01-17  Bruno Haible  <bruno@clisp.org>
65898
65899         * gnulib-tool (func_get_license): Revert last patch. Instead, let
65900         the license default to GPL.
65901         (func_create_testdir): Don't complain if a module is LGPL and its
65902         tests module depends on GPLed modules.
65903
65904 2007-01-17  Bruno Haible  <bruno@clisp.org>
65905
65906         * lib/gettimeofday.c (gettimeofday): Add code for the case
65907         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
65908         maximum possible value for tv->tv_usec, rather than the minimum one.
65909
65910 2005-10-08  Martin Lambers  <marlam@marlam.de>
65911 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
65912 2007-01-16  Bruno Haible  <bruno@clisp.org>
65913
65914         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
65915         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
65916         gl_FUNC_GETTIMEOFDAY.
65917         (Include): Add gettimeofday.h.
65918         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
65919         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
65920         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
65921         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
65922         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
65923         * lib/gettimeofday.h: New file.
65924         * lib/gettimeofday.c: Include <sys/timeb.h>.
65925         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
65926         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
65927         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
65928         fall back on time().
65929
65930         * tests/test-gettimeofday.c: New file.
65931         * modules/gettimeofday-tests: New file.
65932
65933 2007-01-16  Eric Blake  <ebb9@byu.net>
65934
65935         * modules/fnmatch (Depends-on): Depend on wchar.
65936         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
65937         * m4/fnmatch.m4: Likewise.
65938         * modules/mbchar (Makefile.am): Assume <wchar.h>.
65939         * m4/mbchar.m4: Likewise.
65940         * modules/mbswidth (Depends-on): Depend on wchar.
65941         * lib/mbswidth.c: Assume <wchar.h>.
65942         * m4/mbswidth.m4: Likewise.
65943         * modules/quotearg (Depends-on): Depend on wchar.
65944         * lib/quotearg.c: Assume <wchar.h>.
65945         * m4/quotearg.m4: Likewise.
65946         * modules/regex (Depends-on): Depend on wchar.
65947         * lib/regex_internal.h: Assume <wchar.h>.
65948         * m4/regex.m4: Likewise.
65949         * modules/stdint (Depends-on): Depend on wchar.
65950         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
65951         * m4/stdint.m4: Likewise.
65952         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
65953         * modules/strftime (Depends-on): Depend on wchar.
65954         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
65955         * modules/strtol (Depends-on): Depend on wchar.
65956         * lib/strtol.c: Assume <wchar.h>.
65957         * modules/wcwidth (Depends-on): Depend on wchar.
65958         * lib/wcwidth.h: Assume <wchar.h>.
65959         * m4/wcwidth.m4: Likewise.
65960
65961 2007-01-16  Bruno Haible  <bruno@clisp.org>
65962
65963         * modules/csharpexec-script: New, created from...
65964         * modules/csharpexec: ... this.
65965
65966 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
65967
65968         * modules/javaexec-script: New, created from...
65969         * modules/javaexec: ... this.
65970
65971 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65972
65973         * modules/poll (Dependencies): Add sys_select.
65974
65975 2007-01-15  Jim Meyering  <jim@meyering.net>
65976
65977         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
65978         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
65979         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
65980         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
65981
65982 2007-01-15  Bruno Haible  <bruno@clisp.org>
65983
65984         * modules/striconveh: New file.
65985         * lib/striconveh.h: New file.
65986         * lib/striconveh.c: New file.
65987         * MODULES.html.sh (Internationalization functions): Add striconveh.
65988
65989         * modules/striconveh-tests: New file.
65990         * tests/test-striconveh.c: New file.
65991
65992 2007-01-15  Bruno Haible  <bruno@clisp.org>
65993
65994         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
65995         not from GNU libiconv or GNU libc.
65996
65997 2007-01-15  Bruno Haible  <bruno@clisp.org>
65998
65999         * doc/gnulib-intro.texi (Copyright): Explain the different license
66000         terms for module descriptions, autoconf macros, tests, documentation.
66001
66002 2007-01-14  Bruno Haible  <bruno@clisp.org>
66003
66004         * modules/striconv-tests: New file.
66005         * tests/test-striconv.c: New file.
66006
66007 2007-01-14  Bruno Haible  <bruno@clisp.org>
66008
66009         * modules/iconv-tests: New file.
66010         * tests/test-iconv.c: New file.
66011
66012 2007-01-14  Bruno Haible  <bruno@clisp.org>
66013
66014         * gnulib-tool (func_get_license): For test modules, use the license of
66015         the main module.
66016
66017 2007-01-14  Bruno Haible  <bruno@clisp.org>
66018
66019         * modules/iconv (Include): Clarify that <iconv.h> can only be included
66020         if iconv is found to exist.
66021
66022 2007-01-14  Bruno Haible  <bruno@clisp.org>
66023
66024         * modules/c-ctype-tests: New file.
66025         * tests/test-c-ctype.c: New file.
66026
66027 2007-01-14  Bruno Haible  <bruno@clisp.org>
66028
66029         * modules/binary-io-tests: New file.
66030         * tests/test-binary-io.sh: New file.
66031         * tests/test-binary-io.c: New file.
66032
66033 2007-01-14  Bruno Haible  <bruno@clisp.org>
66034
66035         * modules/array-oset-tests: New file.
66036         * tests/test-array_oset.c: New file.
66037
66038 2007-01-14  Bruno Haible  <bruno@clisp.org>
66039
66040         * modules/array-list-tests: New file.
66041         * tests/test-array_list.c: New file.
66042
66043 2007-01-14  Bruno Haible  <bruno@clisp.org>
66044
66045         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
66046         and make.
66047         Reported by Simon Josefsson in
66048         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
66049
66050 2007-01-14  Bruno Haible  <bruno@clisp.org>
66051
66052         * modules/allocsa-tests: New file.
66053         * tests/test-allocsa.c: New file.
66054
66055 2007-01-14  Bruno Haible  <bruno@clisp.org>
66056
66057         * modules/fchdir (Depends-on): Add absolute-header.
66058         * modules/unistd (Depends-on): Likewise.
66059
66060 2006-12-30  Bruno Haible  <bruno@clisp.org>
66061
66062         * modules/fchdir: New file.
66063         * modules/unistd (Files): Add lib/unistd_.h.
66064         (Makefile.am): Generate unistd.h from unistd_.h.
66065         * lib/fchdir.c: New file.
66066         * lib/dirent_.h: New file.
66067         * lib/unistd_.h: New file.
66068         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
66069         * m4/fchdir.m4: New file.
66070         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
66071         (gl_HEADER_UNISTD): Invoke it.
66072         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
66073         function.
66074         * lib/backupfile.c (opendir, closedir): Undefine.
66075         * lib/chown.c (open, close): Undefine.
66076         * lib/clean-temp.c (open, close): Undefine.
66077         * lib/copy-file.c (open, close): Undefine.
66078         * lib/execute.c (open, close): Undefine.
66079         * lib/fsusage.c (open, close): Undefine.
66080         * lib/gc-gnulib.c (open, close): Undefine.
66081         * lib/getcwd.c (opendir, closedir): Undefine.
66082         * lib/glob.c (opendir, closedir): Undefine.
66083         * lib/javacomp.c (open, close): Undefine.
66084         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
66085         * lib/openat-proc.c (open, close): Undefine.
66086         * lib/pagealign_alloc.c (open, close): Undefine.
66087         * lib/pipe.c (open, close): Undefine.
66088         * lib/progreloc.c (open, close): Undefine.
66089         * lib/savedir.c (opendir, closedir): Undefine.
66090         * lib/utime.c (open, close): Undefine.
66091         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
66092
66093 2007-01-10  Bruno Haible  <bruno@clisp.org>
66094
66095         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
66096
66097 2007-01-12  Eric Blake  <ebb9@byu.net>
66098
66099         Provide a robust <wchar.h>.  Further simplifications are now
66100         possible in other modules, but not included here.
66101         * modules/wchar: New module.
66102         * m4/wchar.m4: New file.
66103         * lib/wchar_.h: Likewise.
66104         * modules/mbchar (Depends-on): Depend on wchar, as the first use
66105         of the new module.
66106         * MODULES.html.sh (Extended multibyte and wide character utilities):
66107         New section.
66108
66109 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
66110
66111         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
66112         to a reasonable default for memory allocation.
66113         (xreadlink): Don't allocate a huge buffer, to work around a buggy
66114         file system that reports garbage st_size values for symlinks.
66115         Problem reported by Liyang Hu.
66116
66117 2007-01-11  Simon Josefsson  <simon@josefsson.org>
66118
66119         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
66120         Emacs .#* auto-save files).
66121
66122 2007-01-11  Bruno Haible  <bruno@clisp.org>
66123
66124         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
66125         directory.
66126
66127 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
66128
66129         Use @...@ consistently in lib/wctype_.h.
66130         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
66131         on it being set to 1 or 0.
66132         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
66133         go back to AC_SUBSTing it.
66134         * modules/wctype (Makefile.am): Undo previous change.
66135
66136 2007-01-10  Eric Blake  <ebb9@byu.net>
66137
66138         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
66139         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
66140         * modules/wctype (Makefile.am): Likewise.
66141         Reported by Chris McGuire.
66142
66143 2007-01-10  Jim Meyering  <jim@meyering.net>
66144
66145         fts.c: a small readability/maintainability improvement
66146         * lib/fts.c (fts_read): Make this code slightly more readable and
66147         maintainable by hoisting the "sp->fts_cur = p" assignments to
66148         immediately follow the statements that set P.  Derived from
66149         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
66150
66151 2007-01-10  Eric Blake  <ebb9@byu.net>
66152
66153         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
66154         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
66155         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66156         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
66157         Reported by Chris McGuire.
66158
66159 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66160
66161         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
66162         in sed script.
66163
66164 2007-01-09  Bruno Haible  <bruno@clisp.org>
66165
66166         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
66167         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
66168         variables.
66169         (func_module): Use them.
66170
66171 2007-01-09  Bruno Haible  <bruno@clisp.org>
66172
66173         * modules/unistr/base: New file.
66174         * lib/unistr.h: New file.
66175
66176         * modules/unistr/u8-to-u16: New file.
66177         * lib/unistr/u8-to-u16.c: New file.
66178
66179         * modules/unistr/u8-to-u32: New file.
66180         * lib/unistr/u8-to-u32.c: New file.
66181
66182         * modules/unistr/u16-to-u8: New file.
66183         * lib/unistr/u16-to-u8.c: New file.
66184
66185         * modules/unistr/u16-to-u32: New file.
66186         * lib/unistr/u16-to-u32.c: New file.
66187
66188         * modules/unistr/u32-to-u8: New file.
66189         * lib/unistr/u32-to-u8.c: New file.
66190
66191         * modules/unistr/u32-to-u16: New file.
66192         * lib/unistr/u32-to-u16.c: New file.
66193
66194         * modules/unistr/u8-check: New file.
66195         * modules/unistr/u16-check: New file.
66196         * modules/unistr/u32-check: New file.
66197         * lib/unistr/u8-check.c: New file.
66198         * lib/unistr/u16-check.c: New file.
66199         * lib/unistr/u32-check.c: New file.
66200
66201         * modules/unistr/u8-chr: New file.
66202         * modules/unistr/u16-chr: New file.
66203         * modules/unistr/u32-chr: New file.
66204         * lib/unistr/u8-chr.c: New file.
66205         * lib/unistr/u16-chr.c: New file.
66206         * lib/unistr/u32-chr.c: New file.
66207
66208         * modules/unistr/u8-cmp: New file.
66209         * modules/unistr/u16-cmp: New file.
66210         * modules/unistr/u32-cmp: New file.
66211         * lib/unistr/u8-cmp.c: New file.
66212         * lib/unistr/u16-cmp.c: New file.
66213         * lib/unistr/u32-cmp.c: New file.
66214
66215         * modules/unistr/u8-cpy: New file.
66216         * modules/unistr/u16-cpy: New file.
66217         * modules/unistr/u32-cpy: New file.
66218         * lib/unistr/u8-cpy.c: New file.
66219         * lib/unistr/u16-cpy.c: New file.
66220         * lib/unistr/u32-cpy.c: New file.
66221         * lib/unistr/u-cpy.h: New file.
66222
66223         * modules/unistr/u8-cpy-alloc: New file.
66224         * modules/unistr/u16-cpy-alloc: New file.
66225         * modules/unistr/u32-cpy-alloc: New file.
66226         * lib/unistr/u8-cpy-alloc.c: New file.
66227         * lib/unistr/u16-cpy-alloc.c: New file.
66228         * lib/unistr/u32-cpy-alloc.c: New file.
66229         * lib/unistr/u-cpy-alloc.h: New file.
66230
66231         * modules/unistr/u8-endswith: New file.
66232         * modules/unistr/u16-endswith: New file.
66233         * modules/unistr/u32-endswith: New file.
66234         * lib/unistr/u8-endswith.c: New file.
66235         * lib/unistr/u16-endswith.c: New file.
66236         * lib/unistr/u32-endswith.c: New file.
66237         * lib/unistr/u-endswith.h: New file.
66238
66239         * modules/unistr/u8-mblen: New file.
66240         * modules/unistr/u16-mblen: New file.
66241         * modules/unistr/u32-mblen: New file.
66242         * lib/unistr/u8-mblen.c: New file.
66243         * lib/unistr/u16-mblen.c: New file.
66244         * lib/unistr/u32-mblen.c: New file.
66245
66246         * modules/unistr/u8-mbtouc: New file.
66247         * modules/unistr/u16-mbtouc: New file.
66248         * modules/unistr/u32-mbtouc: New file.
66249         * lib/unistr/u8-mbtouc.c: New file.
66250         * lib/unistr/u16-mbtouc.c: New file.
66251         * lib/unistr/u32-mbtouc.c: New file.
66252
66253         * modules/unistr/u8-mbtouc-safe: New file.
66254         * modules/unistr/u16-mbtouc-safe: New file.
66255         * modules/unistr/u32-mbtouc-safe: New file.
66256         * lib/unistr/u8-mbtouc-safe.c: New file.
66257         * lib/unistr/u16-mbtouc-safe.c: New file.
66258         * lib/unistr/u32-mbtouc-safe.c: New file.
66259
66260         * modules/unistr/u8-move: New file.
66261         * modules/unistr/u16-move: New file.
66262         * modules/unistr/u32-move: New file.
66263         * lib/unistr/u8-move.c: New file.
66264         * lib/unistr/u16-move.c: New file.
66265         * lib/unistr/u32-move.c: New file.
66266         * lib/unistr/u-move.h: New file.
66267
66268         * modules/unistr/u8-next: New file.
66269         * modules/unistr/u16-next: New file.
66270         * modules/unistr/u32-next: New file.
66271         * lib/unistr/u8-next.c: New file.
66272         * lib/unistr/u16-next.c: New file.
66273         * lib/unistr/u32-next.c: New file.
66274
66275         * modules/unistr/u8-prev: New file.
66276         * modules/unistr/u16-prev: New file.
66277         * modules/unistr/u32-prev: New file.
66278         * lib/unistr/u8-prev.c: New file.
66279         * lib/unistr/u16-prev.c: New file.
66280         * lib/unistr/u32-prev.c: New file.
66281
66282         * modules/unistr/u8-set: New file.
66283         * modules/unistr/u16-set: New file.
66284         * modules/unistr/u32-set: New file.
66285         * lib/unistr/u8-set.c: New file.
66286         * lib/unistr/u16-set.c: New file.
66287         * lib/unistr/u32-set.c: New file.
66288         * lib/unistr/u-set.h: New file.
66289
66290         * modules/unistr/u8-startswith: New file.
66291         * modules/unistr/u16-startswith: New file.
66292         * modules/unistr/u32-startswith: New file.
66293         * lib/unistr/u8-startswith.c: New file.
66294         * lib/unistr/u16-startswith.c: New file.
66295         * lib/unistr/u32-startswith.c: New file.
66296         * lib/unistr/u-startswith.h: New file.
66297
66298         * modules/unistr/u8-stpcpy: New file.
66299         * modules/unistr/u16-stpcpy: New file.
66300         * modules/unistr/u32-stpcpy: New file.
66301         * lib/unistr/u8-stpcpy.c: New file.
66302         * lib/unistr/u16-stpcpy.c: New file.
66303         * lib/unistr/u32-stpcpy.c: New file.
66304         * lib/unistr/u-stpcpy.h: New file.
66305
66306         * modules/unistr/u8-stpncpy: New file.
66307         * modules/unistr/u16-stpncpy: New file.
66308         * modules/unistr/u32-stpncpy: New file.
66309         * lib/unistr/u8-stpncpy.c: New file.
66310         * lib/unistr/u16-stpncpy.c: New file.
66311         * lib/unistr/u32-stpncpy.c: New file.
66312         * lib/unistr/u-stpncpy.h: New file.
66313
66314         * modules/unistr/u8-strcat: New file.
66315         * modules/unistr/u16-strcat: New file.
66316         * modules/unistr/u32-strcat: New file.
66317         * lib/unistr/u8-strcat.c: New file.
66318         * lib/unistr/u16-strcat.c: New file.
66319         * lib/unistr/u32-strcat.c: New file.
66320         * lib/unistr/u-strcat.h: New file.
66321
66322         * modules/unistr/u8-strchr: New file.
66323         * modules/unistr/u16-strchr: New file.
66324         * modules/unistr/u32-strchr: New file.
66325         * lib/unistr/u8-strchr.c: New file.
66326         * lib/unistr/u16-strchr.c: New file.
66327         * lib/unistr/u32-strchr.c: New file.
66328
66329         * modules/unistr/u8-strcmp: New file.
66330         * modules/unistr/u16-strcmp: New file.
66331         * modules/unistr/u32-strcmp: New file.
66332         * lib/unistr/u8-strcmp.c: New file.
66333         * lib/unistr/u16-strcmp.c: New file.
66334         * lib/unistr/u32-strcmp.c: New file.
66335
66336         * modules/unistr/u8-strcpy: New file.
66337         * modules/unistr/u16-strcpy: New file.
66338         * modules/unistr/u32-strcpy: New file.
66339         * lib/unistr/u8-strcpy.c: New file.
66340         * lib/unistr/u16-strcpy.c: New file.
66341         * lib/unistr/u32-strcpy.c: New file.
66342         * lib/unistr/u-strcpy.h: New file.
66343
66344         * modules/unistr/u8-strcspn: New file.
66345         * modules/unistr/u16-strcspn: New file.
66346         * modules/unistr/u32-strcspn: New file.
66347         * lib/unistr/u8-strcspn.c: New file.
66348         * lib/unistr/u16-strcspn.c: New file.
66349         * lib/unistr/u32-strcspn.c: New file.
66350         * lib/unistr/u-strcspn.h: New file.
66351
66352         * modules/unistr/u8-strdup: New file.
66353         * modules/unistr/u16-strdup: New file.
66354         * modules/unistr/u32-strdup: New file.
66355         * lib/unistr/u8-strdup.c: New file.
66356         * lib/unistr/u16-strdup.c: New file.
66357         * lib/unistr/u32-strdup.c: New file.
66358         * lib/unistr/u-strdup.h: New file.
66359
66360         * modules/unistr/u8-strlen: New file.
66361         * modules/unistr/u16-strlen: New file.
66362         * modules/unistr/u32-strlen: New file.
66363         * lib/unistr/u8-strlen.c: New file.
66364         * lib/unistr/u16-strlen.c: New file.
66365         * lib/unistr/u32-strlen.c: New file.
66366         * lib/unistr/u-strlen.h: New file.
66367
66368         * modules/unistr/u8-strmblen: New file.
66369         * modules/unistr/u16-strmblen: New file.
66370         * modules/unistr/u32-strmblen: New file.
66371         * lib/unistr/u8-strmblen.c: New file.
66372         * lib/unistr/u16-strmblen.c: New file.
66373         * lib/unistr/u32-strmblen.c: New file.
66374
66375         * modules/unistr/u8-strmbtouc: New file.
66376         * modules/unistr/u16-strmbtouc: New file.
66377         * modules/unistr/u32-strmbtouc: New file.
66378         * lib/unistr/u8-strmbtouc.c: New file.
66379         * lib/unistr/u16-strmbtouc.c: New file.
66380         * lib/unistr/u32-strmbtouc.c: New file.
66381
66382         * modules/unistr/u8-strncat: New file.
66383         * modules/unistr/u16-strncat: New file.
66384         * modules/unistr/u32-strncat: New file.
66385         * lib/unistr/u8-strncat.c: New file.
66386         * lib/unistr/u16-strncat.c: New file.
66387         * lib/unistr/u32-strncat.c: New file.
66388         * lib/unistr/u-strncat.h: New file.
66389
66390         * modules/unistr/u8-strncmp: New file.
66391         * modules/unistr/u16-strncmp: New file.
66392         * modules/unistr/u32-strncmp: New file.
66393         * lib/unistr/u8-strncmp.c: New file.
66394         * lib/unistr/u16-strncmp.c: New file.
66395         * lib/unistr/u32-strncmp.c: New file.
66396
66397         * modules/unistr/u8-strncpy: New file.
66398         * modules/unistr/u16-strncpy: New file.
66399         * modules/unistr/u32-strncpy: New file.
66400         * lib/unistr/u8-strncpy.c: New file.
66401         * lib/unistr/u16-strncpy.c: New file.
66402         * lib/unistr/u32-strncpy.c: New file.
66403         * lib/unistr/u-strncpy.h: New file.
66404
66405         * modules/unistr/u8-strnlen: New file.
66406         * modules/unistr/u16-strnlen: New file.
66407         * modules/unistr/u32-strnlen: New file.
66408         * lib/unistr/u8-strnlen.c: New file.
66409         * lib/unistr/u16-strnlen.c: New file.
66410         * lib/unistr/u32-strnlen.c: New file.
66411         * lib/unistr/u-strnlen.h: New file.
66412
66413         * modules/unistr/u8-strpbrk: New file.
66414         * modules/unistr/u16-strpbrk: New file.
66415         * modules/unistr/u32-strpbrk: New file.
66416         * lib/unistr/u8-strpbrk.c: New file.
66417         * lib/unistr/u16-strpbrk.c: New file.
66418         * lib/unistr/u32-strpbrk.c: New file.
66419         * lib/unistr/u-strpbrk.h: New file.
66420
66421         * modules/unistr/u8-strrchr: New file.
66422         * modules/unistr/u16-strrchr: New file.
66423         * modules/unistr/u32-strrchr: New file.
66424         * lib/unistr/u8-strrchr.c: New file.
66425         * lib/unistr/u16-strrchr.c: New file.
66426         * lib/unistr/u32-strrchr.c: New file.
66427
66428         * modules/unistr/u8-strspn: New file.
66429         * modules/unistr/u16-strspn: New file.
66430         * modules/unistr/u32-strspn: New file.
66431         * lib/unistr/u8-strspn.c: New file.
66432         * lib/unistr/u16-strspn.c: New file.
66433         * lib/unistr/u32-strspn.c: New file.
66434         * lib/unistr/u-strspn.h: New file.
66435
66436         * modules/unistr/u8-strstr: New file.
66437         * modules/unistr/u16-strstr: New file.
66438         * modules/unistr/u32-strstr: New file.
66439         * lib/unistr/u8-strstr.c: New file.
66440         * lib/unistr/u16-strstr.c: New file.
66441         * lib/unistr/u32-strstr.c: New file.
66442         * lib/unistr/u-strstr.h: New file.
66443
66444         * modules/unistr/u8-strtok: New file.
66445         * modules/unistr/u16-strtok: New file.
66446         * modules/unistr/u32-strtok: New file.
66447         * lib/unistr/u8-strtok.c: New file.
66448         * lib/unistr/u16-strtok.c: New file.
66449         * lib/unistr/u32-strtok.c: New file.
66450         * lib/unistr/u-strtok.h: New file.
66451
66452         * modules/unistr/u8-uctomb: New file.
66453         * modules/unistr/u16-uctomb: New file.
66454         * modules/unistr/u32-uctomb: New file.
66455         * lib/unistr/u8-uctomb.c: New file.
66456         * lib/unistr/u16-uctomb.c: New file.
66457         * lib/unistr/u32-uctomb.c: New file.
66458
66459         * MODULES.html.sh (Unicode string functions): Add the new modules.
66460
66461 2007-01-08  Bruno Haible  <bruno@clisp.org>
66462
66463         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
66464         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
66465         subdirectories.
66466
66467 2007-01-08  Karl Berry  <karl@gnu.org>
66468
66469         * doc/error.texi: mention that main() fns must set program_name
66470         when progname is used.
66471
66472 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
66473
66474         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
66475         WCTYPE_H is empty, for the benefit of builds from non-distclean
66476         directories.  Problem reported by Eric Blake in
66477         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
66478
66479 2007-01-08  Bruno Haible  <bruno@clisp.org>
66480
66481         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
66482         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
66483         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
66484         PROVIDE_CANONICALIZE_FILENAME_MODE.
66485         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
66486
66487 2007-01-08  Bruno Haible  <bruno@clisp.org>
66488
66489         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
66490         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
66491         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
66492         * lib/fts.c: Likewise.
66493         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
66494
66495 2006-12-25  Bruno Haible  <bruno@clisp.org>
66496
66497         * modules/utf8-ucs4-safe: New file.
66498         * lib/utf8-ucs4-safe.h: New file.
66499         * lib/unistr/utf8-ucs4-safe.c: New file.
66500
66501         * modules/utf16-ucs4-safe: New file.
66502         * lib/utf16-ucs4-safe.h: New file.
66503         * lib/unistr/utf16-ucs4-safe.c: New file.
66504
66505         * MODULES.html.sh (Unicode string functions): Add the new modules.
66506
66507 2007-01-08  Bruno Haible  <bruno@clisp.org>
66508
66509         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
66510         (Depends-on): Add unitypes.
66511         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
66512         (u8_mbtouc_aux): Move out to separate file.
66513         (u8_mbtouc): Use ucs4_t, uint8_t types.
66514         * lib/unistr/utf8-ucs4.c: New file.
66515
66516         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
66517         (Depends-on): Add unitypes.
66518         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
66519         (u16_mbtouc_aux): Move out to separate file.
66520         (u16_mbtouc): Use ucs4_t, uint16_t types.
66521         * lib/unistr/utf16-ucs4.c: New file.
66522
66523         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
66524         (Depends-on): Add unitypes.
66525         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
66526         (u8_uctomb_aux): Move out to separate file.
66527         (u8_uctomb): Use ucs4_t, uint8_t types.
66528         * lib/unistr/ucs4-utf8.c: New file.
66529
66530         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
66531         (Depends-on): Add unitypes.
66532         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
66533         (u16_uctomb_aux): Move out to separate file.
66534         (u16_uctomb): Use ucs4_t, uint16_t types.
66535         * lib/unistr/ucs4-utf16.c: New file.
66536
66537 2006-12-25  Bruno Haible  <bruno@clisp.org>
66538
66539         * modules/unitypes: New file.
66540         * lib/unitypes.h: New file.
66541         * MODULES.html.sh (func_all_modules): New section "Unicode string
66542         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
66543         this section. Add unitypes.
66544
66545 2007-01-08  Bruno Haible  <bruno@clisp.org>
66546
66547         Avoid variable names that conflict with those from libtool.
66548         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
66549         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
66550         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
66551         library_names_spec to acl_library_names_spec, hardcode_* to
66552         acl_hardcode_*.
66553         Reported by Ralf Wildenhues.
66554
66555 2007-01-08  Bruno Haible  <bruno@clisp.org>
66556
66557         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
66558         definition.
66559         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
66560         definition.
66561         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
66562         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
66563         definition.
66564         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
66565         definition.
66566         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
66567         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
66568         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
66569         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
66570         definition.
66571         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
66572         definition.
66573         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
66574         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
66575         GC_USE_<algorithm>.
66576         * lib/gc-libgcrypt.c: Likewise.
66577         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
66578         * modules/gc-arctwo (configure.ac): Likewise.
66579         * modules/gc-des (configure.ac): Likewise.
66580         * modules/gc-hmac-md5 (configure.ac): Likewise.
66581         * modules/gc-hmac-sha1 (configure.ac): Likewise.
66582         * modules/gc-md2 (configure.ac): Likewise.
66583         * modules/gc-md4 (configure.ac): Likewise.
66584         * modules/gc-md5 (configure.ac): Likewise.
66585         * modules/gc-random (configure.ac): Likewise.
66586         * modules/gc-rijndael (configure.ac): Likewise.
66587         * modules/gc-sha1 (configure.ac): Likewise.
66588
66589 2007-01-08  Bruno Haible  <bruno@clisp.org>
66590
66591         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
66592         macro definition.
66593         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
66594         definition.
66595         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
66596         definition.
66597         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
66598         * modules/fcntl-safer (configure.ac): Likewise.
66599         * modules/fopen-safer (configure.ac): Likewise.
66600         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
66601         GNULIB_FWRITEERROR macro definition.
66602
66603 2007-01-08  Bruno Haible  <bruno@clisp.org>
66604
66605         * m4/gnulib-common.m4: New file.
66606         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
66607         (func_get_filelist): Add m4/gnulib-common.m4.
66608
66609 2007-01-08  Bruno Haible  <bruno@clisp.org>
66610
66611         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
66612         command.
66613
66614 2007-01-08  Jim Meyering  <jim@meyering.net>
66615
66616         Use a more robust test for a "can't happen" condition.
66617         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
66618         narrowed the st_size value.  Presuming the "can't happen" condition
66619         is true, that narrowing could conceivably convert an invalid st_size
66620         value into a valid one.  Instead, use a change based on Matthew
66621         Woehlke's original patch.
66622
66623         Slight readability improvement: use an assert-like macro
66624         in place of literal "abort ()" uses.
66625         * lib/fts.c (fts_assert): Define.
66626         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
66627         Use this macro instead of a bare 'abort'.
66628
66629 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
66630
66631         Don't worry about using IRIX 5.3's wctype.h broken definitions;
66632         simply work around them.
66633         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
66634         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
66635         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
66636         declaring.
66637         Don't bother to define as macros, since the standard doesn't require it.
66638         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
66639         longer worry about IRIX 5.3.
66640         (HAVE_WCTYPE_CTMP_BUG): Remove.
66641
66642 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
66643
66644         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
66645         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
66646         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
66647         Problems reported by Georg Schwarz for IRIX 5.3.
66648
66649         * gnulib-tool (autoconf_minversion): Take the maximum version number
66650         found, not the minimum.  Problem reported by James Youngman.
66651
66652 2007-01-03  Karl Berry  <karl@gnu.org>
66653
66654         * doc/error.texi: new file, explaining interaction with progname.
66655         * doc/gnulib.texi: include it.  Update copyright.
66656
66657 2007-01-03  Simon Josefsson  <simon@josefsson.org>
66658
66659         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
66660         AC_CANONICAL_HOST, to improve autobuild outputs.
66661
66662 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
66663             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
66664
66665         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
66666         sockets, server sockets, and other file descriptors.  Count errors
66667         to compute the return value.  Reorder the code a bit to be easier
66668         to follow.  Don't set event bits that were not requested (except
66669         POLLERR and POLLHUP).
66670
66671 2007-01-01  Bruno Haible  <bruno@clisp.org>
66672
66673         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
66674
66675 2007-01-03  Jim Meyering  <jim@meyering.net>
66676
66677         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
66678
66679 2007-01-02  Bruno Haible  <bruno@clisp.org>
66680
66681         * modules/settime (Include): Require timespec.h.
66682         * modules/nanosleep (Include): Likewise.
66683
66684 2007-01-01  Bruno Haible  <bruno@clisp.org>
66685
66686         * gnulib-tool (func_emit_copyright_notice): Bump year.
66687         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
66688
66689 2007-01-01  Bruno Haible  <bruno@clisp.org>
66690
66691         Improve support for OpenBSD.
66692         * build-aux/config.rpath (libname_spec): Export.
66693         (library_names_spec): New variable. Export.
66694         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
66695         library_names_spec from the config.rpath output. Locate shared library
66696         through the name pattern in library_names_spec.
66697
66698 2007-01-01  Eric Blake  <ebb9@byu.net>
66699
66700         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
66701
66702 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
66703
66704         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
66705         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
66706         assume the C locale, and avoid an "eval" that could cause trouble.
66707         Problem with SORT reported by Bob Proulx.
66708
66709         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
66710         Define.  Trivial patch from Henning Nielsen Lund, originally
66711         sent to bug-grep@gnu.org today.
66712
66713 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
66714
66715         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
66716         struct stat.  Problem reported by Henning Nielsen Lund.
66717         * lib/acl.c: Include acl.h first, to check interface.  Don't
66718         bother to include sys/types.h and sys/stat.h again.
66719
66720 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
66721
66722         Import the following change from libc; problem reported by
66723         Sven Verdoolaege.
66724
66725         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
66726
66727         [BZ #1373]
66728         * lib/argp.h: Remove __NTH for __argp_usage inline function.
66729
66730 2006-12-28  Jim Meyering  <jim@meyering.net>
66731
66732         * build-aux/announce-gen: Do not assume that the package
66733         builds any of tar.gz, tar.bz2, and .xdelta files.
66734         Suggestion from Simon Josefsson.
66735
66736 2006-12-28  Simon Josefsson  <simon@josefsson.org>
66737
66738         * modules/announce-gen: New file.
66739
66740 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
66741
66742         * lib/mbchar.h: Just include <wctype.h>; the wctype module
66743         handles its gotchas now.
66744         * lib/mbswidth.c: Likewise.
66745         * lib/wcwidth.h: Likewise.
66746         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
66747         and iswcntrl; the wctype module does this stuff now.
66748         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66749         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66750         * modules/mbchar (Depends-on): Add wctype.
66751         * modules/mbswidth (Depends-on): Likewise.
66752         * modules/wcwidth (Depends-on): Likewise.
66753
66754 2006-12-27  Eric Blake  <ebb9@byu.net>
66755
66756         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
66757         module uses more than what <wctype.h> is required to provide.
66758
66759 2006-12-26  Eric Blake  <ebb9@byu.net>
66760
66761         * gnulib-tool (sed_extract_prog): Avoid space-tab.
66762
66763 2006-12-26  Eric Blake  <ebb9@byu.net>
66764
66765         * modules/absolute-header: New module.
66766         * modules/fcntl (Depends-on): Depend on it.
66767         * modules/inttypes (Depends-on): Likewise.
66768         * modules/stdint (Depends-on): Likewise.
66769         * modules/sys_stat (Depends-on): Likewise.
66770         * modules/wctype (Depends-on): Likewise.
66771         * MODULES.html.sh (Support for building libraries and
66772         executables): Document it.
66773
66774 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
66775
66776         * gnulib-tool (SED): Remove, undoing previous change.
66777         The problem was that it broke coreutils on Solaris, because
66778         "sed --posix" leaked into a makefile.
66779         (sed): New alias, if 'alias' and GNU sed.
66780
66781 2006-12-24  Jim Meyering  <jim@meyering.net>
66782
66783         Work around an fchownat bug in glibc-2.4:
66784         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
66785         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
66786         in spite of the -P option.
66787         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
66788         New macros.
66789         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
66790         * modules/openat (Files): Add lib/fchownat.c.
66791         * lib/openat.c (fchownat): Don't define here.  Move to...
66792         * lib/fchownat.c: ...this new file.
66793
66794 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
66795
66796         Fix bug reported by Bruno Haible in
66797         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
66798         where quotearg.c didn't compile on Mac OS X 10.2 because it
66799         lacks <wchar.h> and wint_t.
66800         * lib/wctype_.h (__wctype_wint_t): New type.
66801         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
66802         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
66803         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
66804         Arg is now of type __wctype_wint_t, not wint_t.
66805         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
66806         substitute HAVE_WINT_T.
66807         * modules/wctype (Files): Add m4/wint_t.m4.
66808         (wctype.h): Substitute HAVE_WINT_T.
66809
66810 2006-12-23  Bruno Haible  <bruno@clisp.org>
66811
66812         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
66813
66814 2006-12-23  Bruno Haible  <bruno@clisp.org>
66815
66816         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
66817         S_ISLNK.
66818         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
66819         mingw.
66820
66821 2006-12-22  Bruno Haible  <bruno@clisp.org>
66822
66823         * lib/copy-file.c: Include acl.h.
66824         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
66825         Close the file descriptors only after being done with copy_acl.
66826         * modules/copy-file (Depends-on): Add acl.
66827
66828 2006-12-22  Bruno Haible  <bruno@clisp.org>
66829
66830         * gnulib-tool (SED): New variable.
66831         Use $SED instead of sed everywhere.
66832
66833 2006-12-22  Bruno Haible  <bruno@clisp.org>
66834
66835         * modules/no-c++: New file.
66836         * m4/no-c++.m4: New file.
66837         * MODULES.html.sh (Support for building libraries and executables):
66838         Add no-c++.
66839
66840 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
66841
66842         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
66843         Include <limits.h>, and use its INT_MAX to rewrite the
66844         j loop so that it does not overflow 'int'.  Problem reported by
66845         Ralf Wildenhues in
66846         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
66847         Play it safe by shifting left by 1 rather than multiplying by 2,
66848         as GCC is less likely to optimize this away when the value
66849         is signed (when it assumes overflow leads to undefined behavior).
66850         Also, don't assume time_t uses two's complement.
66851
66852 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
66853
66854         * MODULES.html.sh: New module wctype.
66855         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
66856         * lib/fnmatch.c: Don't bother to include <wchar.h> before
66857         <wctype.h>, since the new wctype module should fix this.
66858         * lib/quotearg.c: Include <wctype.h> unconditionally, since
66859         the wctype module should arrange for it.
66860         * lib/regex_internal.h: Likewise.
66861         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
66862         since the wctype module should handle this now.
66863         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
66864         * modules/fnmatch (Depends-on): Add wctype.
66865         * modules/quotearg (Depends-on): Likewise.
66866         * modules/regex (Depends-on): Likewise.
66867
66868 2006-12-19  Bruno Haible  <bruno@clisp.org>
66869
66870         * lib/strdup.h [C++]: Wrap definitions in extern "C".
66871         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
66872
66873 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66874
66875         * modules/savewd (Depends-on): Fix dependency on fcntl.
66876
66877 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
66878
66879         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
66880         conforms to C99, rather than relying on the user's environment
66881         setting of STDINT_H.
66882
66883 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
66884         and Eric Blake  <ebb9@byu.net>
66885
66886         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
66887         This is more consistent with the other defines here.
66888         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
66889         Port to z/OS.  Problem reported by Paul Gilmartin.
66890         Change local vars to use gl_ prefix rather than ac_.
66891         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
66892         with other defines.
66893         * modules/double-slash-root: New module.
66894         * modules/dirname (Files): Remove m4/double-slash-root.m4.
66895         (Depends-on): Add double-slash-root.
66896         * MODULES.html.sh (File system functions): Mention new module.
66897
66898 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
66899
66900         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
66901         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
66902         This is for the benefit of gzip, which doesn't do i18n.
66903
66904 2006-12-12  Jim Meyering  <jim@meyering.net>
66905
66906         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
66907         Reported by Andreas Schwab <schwab@suse.de>.
66908
66909 2006-12-12  Bruno Haible  <bruno@clisp.org>
66910
66911         Merge these changes.
66912         2006-09-05  Bruno Haible  <bruno@clisp.org>
66913         * lib/iconvme.c (iconv_string): No need to save and restore errno when
66914         iconv_alloc succeeded.
66915         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
66916         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
66917         test for " && dest " at the end - dest is always != NULL there. Call
66918         iconv with 4xNULL arguments initially, to reset the state. Call iconv
66919         with 2xNULL arguments, also to flush the state storage. Handle the
66920         IRIX iconv behaviour. Realloc the final result, to throw away unused
66921         memory.
66922
66923 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
66924
66925         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
66926         and fchmodat unconditionally, since glibc 2.4 has them.
66927         Problem reported by Arkadiusz Miskiewicz.
66928
66929 2006-12-10  Bruno Haible  <bruno@clisp.org>
66930
66931         * gnulib-tool (func_import): Show the include files only for those
66932         modules that are copied and specified.
66933         Reported by Karl Berry.
66934
66935 2006-12-08  Jim Meyering  <jim@meyering.net>
66936
66937         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
66938         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
66939
66940         * build-aux/announce-gen: Add two new options, both optional:
66941         --bootstrap-tools=TOOL_LIST
66942               a comma-separated list of tools, e.g.,
66943               autoconf,automake,bison,gnulib
66944         --gnulib-snapshot-date=DATE
66945               if gnulib is in the bootstrap tool list,
66946               then report this as the snapshot date.
66947               If not specified, use the current date/time.
66948               If you specify a date here, be sure it's UTC.
66949
66950 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66951
66952         * tests/test-argp-2.sh: Fix test to match actual output.
66953         (func_compare): Fix sed script to be portable.
66954
66955 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
66956
66957         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
66958         workaround for this case.  It is not autoconfigured now; offhand
66959         it's hard to see how to autoconfigure it.
66960
66961 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
66962
66963         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
66964         a directory that is about to be chowned.  Such a directory's
66965         initial file permissions should permit the owner only and this
66966         should not be changed until after the chown, since the group and
66967         other bits would be incorrect if they granted permission before
66968         the chown.
66969
66970         Fix porting problem for iswctype reported by Georg Schwarz in:
66971         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
66972         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
66973         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
66974         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
66975         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66976
66977 2006-12-03  Jim Meyering  <jim@meyering.net>
66978
66979         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
66980         p->fts_statp may not yet be defined.
66981         (fts_read): Instead, set it in the caller, once p->fts_statp is
66982         sure to be defined, and corresponds to a top-level directory.
66983         This bug made du -x fail.  Here's the coreutils test case:
66984         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
66985         Reported by Mike Frysinger.
66986
66987 2006-12-01  Jim Meyering  <jim@meyering.net>
66988
66989         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
66990         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
66991         Reported by Simon Josefsson.
66992
66993 2006-11-30  Jim Meyering  <jim@meyering.net>
66994
66995         * m4/warning.m4: Use the all-permissive copyright notice
66996         recommended by RMS (rather than LGPL).
66997         * m4/vararrays.m4: Likewise.
66998         * m4/flexmember.m4: Likewise.
66999
67000 2006-11-29  Bruno Haible  <bruno@clisp.org>
67001
67002         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67003         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
67004         using +=.
67005         Reported by Simon Josefsson <simon@josefsson.org>.
67006
67007 2006-11-28  James Youngman <jay@gnu.org>
67008
67009         * README: Advise users that they might find the bug-gnulib@gnu.org
67010         and autotools-announce@gnu.org mailing lists useful.
67011
67012 2006-11-28  Bruno Haible  <bruno@clisp.org>
67013
67014         * m4/ptrdiff_max.m4: Remove file.
67015
67016 2006-11-21  Bruno Haible  <bruno@clisp.org>
67017
67018         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
67019         _AC_COMPUTE_INT.
67020         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67021         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
67022         _AC_COMPUTE_INT.
67023         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67024         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
67025         _AC_COMPUTE_INT.
67026         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67027
67028 2006-11-28  Jim Meyering  <jim@meyering.net>
67029
67030         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
67031         warning from "gcc -Wshadow" about shadowing the builtin.
67032
67033 2006-11-27  Bruno Haible  <bruno@clisp.org>
67034
67035         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
67036         _AC_COMPUTE_INT.
67037         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67038
67039 2006-11-27  Bruno Haible  <bruno@clisp.org>
67040             Paul Eggert  <eggert@cs.ucla.edu>
67041
67042         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
67043
67044 2006-11-26  Bruno Haible  <bruno@clisp.org>
67045
67046         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67047         noinst_LTLIBRARIES.
67048
67049 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
67050             Bruno Haible  <bruno@clisp.org>
67051
67052         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
67053         if compiling with "gcc -ansi".
67054
67055 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
67056
67057         Fix some incompatibilities with gcc -ansi -pedantic.
67058         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
67059         if compiling pedantically with GCC, unless it's C99 or later.
67060         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
67061         it mishandles gcc -ansi -pedantic as well.
67062         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
67063         if gcc -pedantic.
67064         * lib/regexec.c (check_node_accept_bytes): Don't use auto
67065         initializers for struct if -pedantic, unless it's C99 or later.
67066
67067 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
67068
67069         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
67070         Don't close an fd more than once. Identical atimes indicate
67071         success, not failure.
67072
67073 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
67074
67075         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
67076
67077 2006-11-23  Jim Meyering  <jim@meyering.net>
67078
67079         * build-aux/announce-gen: New file.  From coreutils.
67080
67081 2006-11-22  Jim Meyering  <jim@meyering.net>
67082
67083         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
67084         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
67085         (fts_read): Use a temporary to narrow the overused st_size member
67086         before using it in a switch statement.  Reported by Matthew Woehlke.
67087
67088         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
67089         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
67090
67091 2006-11-20  Bruno Haible  <bruno@clisp.org>
67092
67093         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
67094         changequote instead of pairs of brackets.
67095         Reported by Andreas Schwab <schwab@suse.de>.
67096
67097 2006-11-21  Jim Meyering  <jim@meyering.net>
67098
67099         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
67100         so as to remain compatible with older compilers.
67101         Patch from Michael Deutschmann.
67102
67103 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67104
67105         * MODULES.html.sh (File system functions): Add openat.
67106
67107         * lib/openat.h (rpl_fstatat): New macro, if
67108         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
67109         (fstatat): Define to rpl_fstatat under the same conditions,
67110         unless COMPILING_FSTATAT.
67111         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
67112         seems to have the bug.
67113         * lib/fstatat.c: New file.
67114         * modules/openat (Files): Add it.
67115
67116 2006-11-20  Bruno Haible  <bruno@clisp.org>
67117
67118         * Makefile: New file.
67119
67120 2006-11-20  Jim Meyering  <jim@meyering.net>
67121
67122         The beginnings of syntax-related checks for gnulib.
67123         * lib/Makefile: New file.
67124         * lib/t-idcache: New script.  Ensure that the two halves of
67125         idcache.c stay in sync.
67126
67127         * lib/idcache.c: Adjust comments in user- and group- portions to
67128         be more accurate, and to be consistent with one another.
67129
67130 2006-11-20  Jim Meyering  <jim@meyering.net>
67131
67132         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
67133         continue using the flexible array member (thus, this module performs
67134         half as many malloc calls), with the addition that...
67135         (getgroup, getuser): Consistently record a non-match via an empty
67136         "name" string, and map an empty string match to a NULL return value.
67137         * modules/idcache (Depends-on): Re-add flexmember.
67138
67139         * lib/idcache.c (getuser): Remove all uses of the register keyword.
67140         (getuidbyname, getgroup, getgidbyname): Likewise.
67141
67142         Use cleaner syntax: NULL rather than 0.
67143         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
67144
67145 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67146
67147         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
67148         It mishandled the case where the group was missing.
67149         Problem reported by Greg Schafer.
67150         * modules/idcache: Likewise.
67151
67152 2006-11-18  Jim Meyering  <jim@meyering.net>
67153
67154         * check-module (%exempt_header): Add exception for some
67155         conditionally-included headers.
67156
67157         * modules/i-ring (Depends-on): Add verify.
67158         (License): Change to LGPL.
67159
67160 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
67161
67162         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
67163         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
67164         and inttostr.h.  Use snprintf rather than uinttostr, so that
67165         LGPLed code doesn't depend on GPLed.
67166
67167 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
67168
67169         * modules/inline (License): Change from GPL to LGPL.
67170
67171 2006-11-17  Jim Meyering  <jim@meyering.net>
67172
67173         * modules/d-type (License): Switch to LGPL.
67174
67175 2006-11-15  Bruno Haible  <bruno@clisp.org>
67176
67177         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
67178
67179 2006-11-15  Eric Blake  <ebb9@byu.net>
67180
67181         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
67182         the module dependency.
67183
67184 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67185             Bruno Haible  <bruno@clisp.org>
67186
67187         * gnulib-tool (func_create_testdir): Add license consistency check.
67188
67189 2006-11-15  Eric Blake  <ebb9@byu.net>
67190
67191         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
67192         random "(cached)" in configure output.
67193
67194 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67195
67196         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
67197         test for conforming inttypes.h is both announced and cached.
67198
67199         * MODULES.html.sh (seen_modules, seen_files): New variables.
67200         (func_module): Rewrite to use a few less gnulib-tool and sed
67201         invocations.  Avoid a couple of quadratic algorithms for ...
67202         (missed_modules, missed_files): ... these, with ...
67203         (func_append, func_tmpdir): ... these new functions, from
67204         gnulib-tool.  Analogously, install traps for cleanup.
67205
67206         * tests/test-gc.c (main): Remove unused variables.
67207         * tests/test-read-file.c: Include stdlib.h, for 'free'.
67208
67209 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
67210
67211         * modules/inttostr (License): Change to LGPL.
67212
67213 2006-11-14  Eric Blake  <ebb9@byu.net>
67214
67215         * modules/tempname (License): Change to LGPL.
67216
67217 2006-11-14  Eric Blake  <ebb9@byu.net>
67218
67219         * doc/functions.texi (Function Portability): *printf functions on
67220         Cygwin now understand all POSIX size specifiers.
67221
67222 2006-11-14  Bruno Haible  <bruno@clisp.org>
67223
67224         * modules/c-ctype (License): Change to LGPL.
67225
67226 2006-11-12  Bruno Haible  <bruno@clisp.org>
67227
67228         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
67229         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
67230         for GNOME libraries, for which the include files are installed in
67231         subdirectories of $prefix/include.
67232
67233 2006-11-12  Bruno Haible  <bruno@clisp.org>
67234
67235         * m4/lib-link.m4: Require at least autoconf-2.54.
67236         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
67237         name to underscores for the --with option.
67238
67239 2006-11-13  Bruno Haible  <bruno@clisp.org>
67240
67241         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
67242         the tests directory.
67243         Reported by Ralf Wildenhues.
67244
67245 2006-11-13  Bruno Haible  <bruno@clisp.org>
67246
67247         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
67248         (func_emit_initmacro_end): Undo the override here.
67249         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
67250         Works around the famous automake error in coreutils.
67251
67252 2006-11-13  Eric Blake  <ebb9@byu.net>
67253
67254         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
67255         element, not its node.
67256
67257 2006-11-12  Bruno Haible  <bruno@clisp.org>
67258
67259         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
67260         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
67261
67262 2006-11-12  Bruno Haible  <bruno@clisp.org>
67263
67264         * gnulib-tool: New option --local-symlink.
67265         (func_usage): Document it.
67266         (lsymbolic): New variable.
67267         (func_import, func_create_testdir): If --symlink was not specified,
67268         test whether --local-symlink was specified and the file comes from
67269         the local_gnulib_dir.
67270
67271 2006-11-12  Bruno Haible  <bruno@clisp.org>
67272
67273         * gnulib-tool (func_ln): New function.
67274         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
67275
67276 2006-11-12  Bruno Haible  <bruno@clisp.org>
67277
67278         Finish support for source files in subdirectories.
67279         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
67280         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
67281         AUTOMAKE_OPTIONS.
67282         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
67283
67284 2006-11-12  Bruno Haible  <bruno@clisp.org>
67285
67286         * gnulib-tool (func_get_automake_snippet): Synthesize also an
67287         EXTRA_lib_SOURCES augmentation.
67288         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
67289
67290 2006-11-12  Jim Meyering  <jim@meyering.net>
67291
67292         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
67293         file descriptors.  This also averts a failure on systems with
67294         native openat support when a traversed directory lacks "x" access.
67295         * lib/fts_.h: Include "i-ring.h"
67296         (struct FTS) [fts_fd_ring]: New member.
67297         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
67298         (FCHDIR): Add parentheses.
67299         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
67300         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
67301         When descending, rather than simply closing the previous
67302         fts_cwd_fd value, push that file descriptor onto the ring.
67303         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
67304         (fts_open): Initialize the new fd_ring member.
67305         (fts_close): Clear the ring.
67306         (fts_safe_changedir): When possible, use our new fd_ring to skip
67307         the diropen and fstat and dev/ino comparison that would normally
67308         accompany a virtual `chdir ("..")'.
67309
67310         * modules/fts (Depends-on): Add i-ring.
67311         * modules/i-ring: New module.
67312         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
67313         * m4/i-ring.m4: New file.
67314
67315 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67316
67317         * gnulib-tool (func_create_testdir): Fix replacement of
67318         `build-aux' in configure.ac.  Run autotools in gltests
67319         subdirectory.
67320         (func_create_testdir, func_create_megatestdir, test): There is
67321         no need for '--force' in most autotool invocations in a new
67322         tree.  Actually fail the whole test if any of the tools, or the
67323         configure or make stages fail.
67324
67325         Sync from Automake.
67326         * build-aux/gnupload: Revert last change.  Add pointer to upload
67327         instructions of the GNU Maintenance Instructions.
67328         Suggestion by Karl Berry.
67329
67330 2006-11-10  Jim Meyering  <jim@meyering.net>
67331
67332         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
67333
67334 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67335
67336         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
67337         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
67338         (bind_textdomain_codeset) [! ENABLE_NLS]:
67339         Evaluate all the arguments.  That way, callers get compatible behavior
67340         if the arguments have side effects.  Also, it avoids some GCC
67341         diagnostics in some cases; Joel E. Denny reported problems when Bison
67342         was configured with --enable-gcc-warnigs.
67343
67344 2006-11-10  Jim Meyering  <jim@meyering.net>
67345
67346         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
67347         relevant options in CFLAGS (like -O, -fno-inline) are taken into
67348         account.
67349
67350 2006-11-10  Jim Meyering  <jim@meyering.net>
67351
67352         * modules/inline: New file/module.
67353         * modules/xalloc (Files): Remove m4/inline.m4.
67354         (Depends-on): Add inline, instead.
67355         * modules/oset: Likewise.
67356         * modules/list: Likewise.
67357
67358 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
67359
67360         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
67361         Problem reported by Matthew Woehlke.
67362
67363 2006-11-09  Bruno Haible  <bruno@clisp.org>
67364
67365         * lib/tempname.c (gen_tempname): Remove variant that invokes
67366         __gen_tempname.
67367         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
67368         __gen_tempname.
67369
67370 2006-11-08  Bruno Haible  <bruno@clisp.org>
67371
67372         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
67373         to 'yes' instead of 'cross-compiling'.
67374
67375 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
67376
67377         * lib/quotearg.h (quotearg_free): New decl.
67378         * lib/quotearg.c (quotearg_free): New function.
67379         (slot0, nslots, slotvec0, slotvec):
67380         Now file-scope so that quotearg_free can get at them.
67381
67382 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67383
67384         Sync from Automake.
67385         * build-aux/gnupload: Add missing 'gnu' to example URL.
67386         Report by Karl Berry.
67387
67388 2006-11-08  Bruno Haible  <bruno@clisp.org>
67389
67390         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
67391         Suggested by Paul Eggert.
67392
67393 2006-11-08  Jim Meyering  <jim@meyering.net>
67394
67395         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
67396         It's already included if !_LIBC.
67397         (fts_safe_changedir): Add a comment.
67398
67399 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
67400
67401         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
67402         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
67403         Matthew Woehlke.
67404
67405         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
67406         definitions up, to avoid colliding with change below.
67407         (static_inline) [HAVE_INLINE]: New macro.
67408         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
67409         Provide extern decls when !HAVE_INLINE.  Do not define unless
67410         static_inline is defined, either by us or by xmalloc.c.  Use
67411         static_inline rather than static inline.
67412         (XCALLOC): Optimize sizeof(T) = 1 case.
67413         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
67414
67415 2006-11-07  Bruno Haible  <bruno@clisp.org>
67416
67417         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
67418         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
67419         AC_C_INLINE.
67420         * modules/xalloc (Files): Add m4/inline.m4.
67421
67422 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67423
67424         * README: Fix typo.
67425         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
67426         (Miscellanous Notes): ...from this.
67427
67428 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
67429
67430         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
67431         Mention that offsetof should be used instead of sizeof.
67432         From Bruno Haible.
67433
67434 2006-11-07  Bruno Haible  <bruno@clisp.org>
67435
67436         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
67437
67438 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
67439
67440         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
67441         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
67442         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
67443         (gl_tree_add_before, gl_tree_add_after):
67444         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
67445         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
67446         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
67447         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
67448         (gl_linked_add_after, gl_linked_add_at): Likewise.
67449         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
67450         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
67451         (gl_tree_add_before, gl_tree_add_after): Likewise.
67452         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
67453         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
67454         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
67455
67456 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67457
67458         * lib/gl_oset.h: Use C comment style, not C++ comment style.
67459
67460 2006-11-06  Bruno Haible  <bruno@clisp.org>
67461
67462         * m4/inline.m4: New file.
67463         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
67464         * modules/list (Files): Add m4/inline.m4.
67465         * modules/oset (Files): Likewise.
67466
67467 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
67468
67469         * lib/idcache.c: Include <stddef.h>, for offsetof.
67470         (struct userid.name): Change from char * to a flexible array member.
67471         All uses changed.
67472         * modules/idcache (Depends-on): Add flexmember.
67473
67474         * MODULES.html.sh (Core language properties): New module flexmember.
67475         * modules/flexmember, m4/flexmember.m4: New files.
67476
67477         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
67478         inline functions that are identical with the old xnmalloc_inline,
67479         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
67480         that we can avoid some unnecessary integer multiplications and
67481         divisions in the common case where the element size is known at
67482         compile time.
67483         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
67484         needed.
67485         (xnboundedmalloc): Remove.
67486         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
67487         arguments, for consistency with rest of this header.
67488         (xcharalloc): Rewrite using XNMALLOC.
67489         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
67490         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
67491         versions have been moved to lib/xalloc.h and renamed to be the
67492         non-*_inline versions.
67493         (xmalloc, xrealloc): Implement without reference to the xnmalloc
67494         and xnrealloc functions, since those functions are now inline and
67495         now call us.
67496         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
67497         renaming described above.
67498         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
67499         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
67500         captures the dependency in AC_C_INLINE.
67501
67502         New module canonicalize-lgpl, proposed by Charles Wilson in
67503         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
67504         with a few small changes afterwards.
67505         * MODULES.html.sh (File system functions): New module
67506         canonicalize-lgpl.
67507         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
67508         and canonicalize_file_name.
67509         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
67510         * modules/canonicalize-lgpl: New files.
67511
67512 2006-11-05  Bruno Haible  <bruno@clisp.org>
67513
67514         * gnulib-tool (func_import, func_create_testdir): Create directories
67515         also for files in subdirectories of lib/.
67516
67517 2006-11-05  Bruno Haible  <bruno@clisp.org>
67518
67519         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
67520         ANSI C compliant.
67521
67522 2006-11-03  Bruno Haible  <bruno@clisp.org>
67523
67524         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
67525         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
67526         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
67527         (xnboundedmalloc): New inline function.
67528         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
67529         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
67530         xmalloc.
67531         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
67532         xmalloc.
67533         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
67534         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
67535         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
67536         xmalloc.
67537         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
67538         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
67539         xmalloc.
67540         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
67541         gl_tree_add_after): Use XMALLOC instead of xmalloc.
67542         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
67543         xmalloc.
67544         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
67545         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
67546         gl_tree_add_after): Use XMALLOC instead of xmalloc.
67547         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
67548         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
67549         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
67550         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
67551
67552 2006-11-03  Bruno Haible  <bruno@clisp.org>
67553
67554         * lib/c-ctype.h [C++]: Define functions without name mangling.
67555         * lib/fwriteerror.h [C++]: Likewise.
67556         * lib/gcd.h [C++]: Likewise.
67557         * lib/linebreak.h [C++]: Likewise.
67558
67559 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
67560
67561         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
67562         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
67563         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
67564         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
67565         Check for functions and headers just once.
67566         Check for declaration of canonicalize_file_name.
67567         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
67568
67569 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67570
67571         * gnulib-tool (func_import): Fix typo in actioncmd.
67572
67573 2006-11-02  Bruno Haible  <bruno@clisp.org>
67574
67575         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
67576         newline sequence in the Makefile.am snippet as a space, like "make"
67577         does.
67578         Reported by Roger Persson <perrog@gmail.com>.
67579
67580 2006-11-01  Bruno Haible  <bruno@clisp.org>
67581
67582         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
67583         already declared in <string.h>.
67584         * lib/strcase.h (strncasecmp): Don't declare it if yes.
67585
67586 2006-11-01  Bruno Haible  <bruno@clisp.org>
67587
67588         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
67589         * lib/strcase.h: Include <string.h>.
67590         (strcasecmp): Define to rpl_strcasecmp here.
67591
67592 2006-11-01  Bruno Haible  <bruno@clisp.org>
67593
67594         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
67595
67596 2006-11-01  Eric Blake  <ebb9@byu.net>
67597
67598         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
67599
67600         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
67601
67602 2006-10-29  Bruno Haible  <bruno@clisp.org>
67603
67604         Make it compile in C++ mode.
67605         * lib/full-write.c (full_rw): Add a cast.
67606
67607 2006-11-01  Bruno Haible  <bruno@clisp.org>
67608
67609         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
67610         be POSIX compliant.
67611         Reported by Roger Persson <perrog@gmail.com>.
67612
67613 2006-11-01  Eric Blake  <ebb9@byu.net>
67614
67615         * lib/getopt_.h: Fix comments.
67616
67617 2006-10-31  Eric Blake  <ebb9@byu.net>
67618
67619         * modules/tmpdir (Depends-on): Add sys_stat.
67620         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
67621         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
67622         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
67623         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
67624         tempname.
67625
67626 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
67627
67628         Avoid some C++ diagnostics reported by Bruno Haible.
67629         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
67630         xmalloc.
67631         (quotearg_alloc): Use xcharalloc rather than xmalloc.
67632         (struct slotvec): Move to top level.
67633         (quotearg_n_options): Rewrite to avoid xmalloc.
67634         * lib/xalloc.h (xcharalloc): New function.
67635         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
67636         [defined __cplusplus]: Add function template that provides result
67637         type propagation.  This part of the change is from Bruno Haible.
67638
67639 2006-10-29  Bruno Haible  <bruno@clisp.org>
67640
67641         Make it compile in C++ mode.
67642         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
67643         * lib/strnlen1.c (strnlen1): Cast memchr result.
67644         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
67645         * lib/clean-temp.c (string_equals, string_hash): Add casts.
67646         (create_temp_dir): Rename local variable 'template'.
67647         (compile_csharp_using_sscli): Add cast.
67648         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
67649         * lib/findprog.c (find_in_path): Likewise.
67650         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
67651         * lib/wait-process.c (register_slave_subprocess): Likewise.
67652
67653 2006-10-22  Bruno Haible  <bruno@clisp.org>
67654
67655         * modules/tsearch: New file.
67656         * lib/tsearch.h: New file.
67657         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
67658         * m4/tsearch.m4: New file.
67659         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
67660
67661 2006-10-29  Eric Blake  <ebb9@byu.net>
67662
67663         * lib/arcfour.c: Assume config.h.
67664         * lib/arctwo.c: Likewise.
67665         * lib/base64.c: Likewise.
67666         * lib/check-version.c: Likewise.
67667         * lib/crc.c: Likewise.
67668         * lib/des.c: Likewise.
67669         * lib/gc-gnulib.c: Likewise.
67670         * lib/gc-libgcrypt.c: Likewise.
67671         * lib/gc-pbkdf2-sha1.c: Likewise.
67672         * lib/getaddrinfo.c: Likewise.
67673         * lib/getdelim.c: Likewise.
67674         * lib/getline.c: Likewise.
67675         * lib/hmac-md5.c: Likewise.
67676         * lib/hmac-sha1.c: Likewise.
67677         * lib/iconvme.c: Likewise.
67678         * lib/md2.c: Likewise.
67679         * lib/md4.c: Likewise.
67680         * lib/memxor.c: Likewise.
67681         * lib/read-file.c: Likewise.
67682         * lib/readline.c: Likewise.
67683         * lib/rijndael-alg-fst.c: Likewise.
67684         * lib/rijndael-api-fst.c: Likewise.
67685         * lib/xgetdomainname.c: Likewise.
67686
67687 2006-10-28  Eric Blake  <ebb9@byu.net>
67688
67689         * lib/xstrndup.c: Assume config.h.
67690
67691 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
67692
67693         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
67694         stat-macros.h is now for our own macros, whereas stat_h is for
67695         macros in the <sys/stat.h> name space.
67696         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
67697         (STAT_MACROS_H): Remove.
67698         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
67699         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
67700         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
67701         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
67702         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
67703         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
67704         Move these macros to ...
67705         * lib/stat_.h: here.  Don't include stat-macros.h.
67706         * lib/canonicalize.c: Don't include stat-macros.h.
67707         * lib/chown.c: Likewise.
67708         * lib/euidaccess.c: Likewise.
67709         * lib/file-type.c: Likewise.
67710         * lib/filemode.c: Likewise.
67711         * lib/glob.c: Likewise.
67712         * lib/isapipe.c: Likewise.
67713         * lib/lchown.c: Likewise.
67714         * lib/lstat.c: Likewise.
67715         * lib/mkdir-p.c: Likewise.
67716         * lib/rmdir.c: Likewise.
67717         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
67718         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
67719         unless mkdir isn't declared, to speed up 'configure'.
67720         Always create sys/stat.h, since it's unlikely any real sys/stat.h
67721         would define all the S_* symbols.
67722         * modules/canonicalize (Depends-on):
67723         Depend on sys_stat, not stat-macros.
67724         * modules/chown: Likewise.
67725         * modules/euidaccess: Likewise.
67726         * modules/filemode: Likewise.
67727         * modules/file-type: Likewise.
67728         * modules/glob: Likewise.
67729         * modules/isapipe: Likewise.
67730         * modules/lchown: Likewise.
67731         * modules/lstat: Likewise.
67732         * modules/mkancesdirs: Likewise.
67733         * modules/rmdir: Likewise.
67734         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
67735         * modules/modechange: Likewise.
67736         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
67737         (configure.ac): Remove gl_STAT_MACROS.
67738         * modules/sys_stat (Depends-on): Remove stat-macros.
67739
67740 2006-10-27  Bruno Haible  <bruno@clisp.org>
67741
67742         * m4/signed.m4: Remove file.
67743         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
67744         invocation.
67745         * modules/vasnprintf (Files): Remove m4/signed.m4.
67746
67747 2006-10-27  Bruno Haible  <bruno@clisp.org>
67748
67749         Update to GNU gettext 0.16.
67750         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
67751         m4/inttypes-h.m4, m4/signed.m4.
67752         * m4/gettext.m4: Update to GNU gettext 0.16.
67753         * m4/intl.m4: New file, from GNU gettext.
67754         * m4/intldir.m4: New file, from GNU gettext.
67755         * config/srclist.txt: Update
67756
67757 2006-10-27  Eric Blake  <ebb9@byu.net>
67758
67759         * MODULES.html.sh: Document tempname.
67760         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
67761         dependencies.
67762         (Files): Move lib/tempname.c...
67763         * modules/tempname: ...to this new module.
67764         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
67765         (gl_PREREQ_TEMPNAME): Move...
67766         * m4/tempname.m4: ...to this new file.
67767         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
67768         * modules/sys_stat (Depends-on): Add stat-macros.
67769         * lib/stat_.h (includes): Pick up stat macros.
67770         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
67771         if stat macros are broken.
67772         * lib/tempname.c (includes): No need to include "stat-macros.h".
67773         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
67774         (direxists, __path_search) [!_LIBC]: Don't compile these in
67775         gnulib; the tmpdir module covers that.
67776         * lib/tempname.h: New file.
67777
67778 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
67779
67780         * COPYING: Explain how gnulib-tool converts licence headers.
67781         Almost all wording by Eric Blake.
67782
67783 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
67784
67785         * lib/mbchar.h (is_basic_table): Make read-only.
67786         * lib/mbchar.c (is_basic_table): Likewise.
67787         Reported by John Darrington.
67788
67789 2006-10-25  Bruno Haible  <bruno@clisp.org>
67790
67791         * lib/progname.h (set_program_name): Undefine before defining.
67792
67793 2006-10-25  Bruno Haible  <bruno@clisp.org>
67794
67795         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
67796         false for non-gcc C++ compilers.
67797         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
67798
67799 2006-10-24  Bruno Haible  <bruno@clisp.org>
67800
67801         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
67802         iconv implementations like Irix iconv.
67803
67804 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67805
67806         * modules/vararrays: New file.
67807         * m4/vararrays.m4: New file, taken from diffutils.
67808         * MODULES.html.sh: New module vararrays.
67809
67810 2006-10-24  Karl Berry  <karl@gnu.org>
67811
67812         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
67813         Don't call GNU Unix.
67814
67815 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67816
67817         * users.txt: Add Libtool.
67818
67819         Sync from Libtool:
67820
67821         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67822
67823         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
67824         to gnulib's policy of including config.h unconditionally.
67825
67826 2006-10-24  Bruno Haible  <bruno@clisp.org>
67827
67828         * modules/wcwidth (Files): Add m4/wint_t.m4.
67829         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
67830         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
67831
67832 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
67833
67834         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
67835         to pacify GCC with some -W flags enabled.  Problem reported by
67836         Bruno Haible.
67837
67838 2006-10-24  Jim Meyering  <jim@meyering.net>
67839
67840         * MODULES.html.sh: Remove uinttostr.  It's not a module.
67841         Reported by Karl Berry.
67842
67843 2006-10-23  Bruno Haible  <bruno@clisp.org>
67844
67845         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
67846
67847 2006-10-24  Bruno Haible  <bruno@clisp.org>
67848
67849         * lib/gl_list.h: Use C comment style, not C++ comment style.
67850
67851 2006-10-23  Eric Blake  <ebb9@byu.net>
67852
67853         * lib/getaddrinfo.c (includes): Add missing include.
67854
67855 2006-10-23  Bruno Haible  <bruno@clisp.org>
67856             Paul Eggert  <eggert@cs.ucla.edu>
67857
67858         Ability to rename obstack_free.
67859         * lib/obstack.h (__obstack_free): New macro. Declare instead of
67860         obstack_free.
67861         (obstack_free): Invoke the __obstack_free macro.
67862         * lib/obstack.c (obstack_free): Use __obstack_free macro.
67863
67864 2006-10-23  Bruno Haible  <bruno@clisp.org>
67865             Paul Eggert  <eggert@cs.ucla.edu>
67866
67867         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
67868         __argc, __argv from the declaration. (They are defined as macros on
67869         mingw.)
67870
67871 2006-10-22  Bruno Haible  <bruno@clisp.org>
67872
67873         * doc/gnulib-intro.texi: New file.
67874         * doc/gnulib.texi: Include it.
67875
67876 2006-10-21  Bruno Haible  <bruno@clisp.org>
67877
67878         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
67879         "Introduction", "Miscellanous Notes", "Particular Modules".
67880
67881 2006-10-21  Bruno Haible  <bruno@clisp.org>
67882
67883         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67884         Change mostlyclean-local rule to avoid sh syntax error from bash
67885         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
67886
67887 2006-10-23  Jim Meyering  <jim@meyering.net>
67888
67889         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
67890         in place of snprintf.
67891
67892         * modules/inttostr (Files): Add lib/uinttostr.c.
67893         * lib/uinttostr.c (inttostr): New file/function.
67894         * lib/inttostr.h (uinttostr): Declare.
67895         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
67896         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
67897         Add uinttostr.
67898         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
67899
67900 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
67901
67902         * lib/canonicalize.c (ELOOP): Define if not already defined.
67903         Problem reported by Bruno Haible in
67904         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
67905
67906 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
67907
67908         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
67909         Problem reported by Perry Smith and Ville Laurikari.
67910
67911         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
67912         uses.
67913
67914 2006-10-19  Bruno Haible  <bruno@clisp.org>
67915
67916         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
67917         for mingw.
67918
67919 2006-10-19  Bruno Haible  <bruno@clisp.org>
67920
67921         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
67922         Needed for mingw.
67923
67924 2006-10-19  Bruno Haible  <bruno@clisp.org>
67925
67926         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
67927
67928 2006-10-19  Bruno Haible  <bruno@clisp.org>
67929
67930         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
67931         it.
67932
67933 2006-10-19  Bruno Haible  <bruno@clisp.org>
67934
67935         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
67936         invocation.
67937
67938 2006-10-19  Bruno Haible  <bruno@clisp.org>
67939
67940         * gnulib-tool (func_create_testdir): Don't include ftruncate and
67941         mountlist by default.
67942
67943 2006-10-16  Bruno Haible  <bruno@clisp.org>
67944
67945         * lib/c-strstr.c: Include c-strstr.h.
67946
67947 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
67948
67949         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
67950         in a slash.
67951
67952 2006-10-18  Bruno Haible  <bruno@clisp.org>
67953
67954         * lib/lock.h [C++]: Wrap definitions in extern "C".
67955
67956 2006-10-18  Bruno Haible  <bruno@clisp.org>
67957
67958         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
67959         gl_LIBOBJS list.
67960
67961 2006-10-18  Bruno Haible  <bruno@clisp.org>
67962
67963         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
67964
67965 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
67966
67967         * lib/xstrtol.h: Include gettext.h.
67968         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
67969         Problem reported by Eric Blake.
67970         * modules/xstrtol (Depends-on): Add gettext-h.
67971
67972 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
67973
67974         * lib/strftime.c (advance): New macro.
67975         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
67976         incomplete type, so you can't add 0 to it.  Problem and patch
67977         reported by Eelco Dolstra for dietlibc.
67978
67979 2006-10-18  Jim Meyering  <jim@meyering.net>
67980
67981         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
67982         type for a local, and rename it: s/up/user_proc/.
67983
67984 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
67985
67986         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
67987         READ_UTMP_USER_PROCESS.
67988         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
67989
67990 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
67991
67992         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
67993         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
67994
67995 2006-10-17  Eric Blake  <ebb9@byu.net>
67996
67997         * lib/sigprocmask.c (sigprocmask): Fix typo.
67998
67999         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
68000
68001         * modules/clean-temp (Makefile.am): Don't add to make output...
68002         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
68003         config.h.
68004
68005 2006-10-17  Bruno Haible  <bruno@clisp.org>
68006
68007         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
68008         differently if DEFAULT_TEXT_DOMAIN is set.
68009
68010 2006-10-16  Bruno Haible  <bruno@clisp.org>
68011
68012         * lib/clean-temp.c: Include fwriteerror.h.
68013
68014 2006-10-16  Bruno Haible  <bruno@clisp.org>
68015
68016         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
68017
68018 2006-10-16  Bruno Haible  <bruno@clisp.org>
68019
68020         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
68021         * lib/sigprocmask.h: Include <sys/types.h>.
68022         (sigset_t): Use the system's definition if present.
68023
68024 2006-10-17  Eric Blake  <ebb9@byu.net>
68025
68026         * lib/xvasprintf.c (includes): Assume config.h.
68027         * lib/xasprintf.c (includes): Likewise.
68028
68029 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
68030
68031         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
68032         at least as wide as intmax_t.
68033
68034 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
68035
68036         (Imported from Automake.)
68037         * build-aux/gnupload: Update to version 1.1 of directive file.
68038
68039 2006-10-16  Eric Blake  <ebb9@byu.net>
68040
68041         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
68042         match Automake 1.10a.
68043
68044 2006-10-14  Bruno Haible  <bruno@clisp.org>
68045
68046         * modules/sigprocmask: New file.
68047         * lib/sigprocmask.h: New file.
68048         * lib/sigprocmask.c: New file.
68049         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
68050         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
68051         request sigprocmask.o.
68052         (gl_PREREQ_SIGPROCMASK): New macro.
68053         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
68054         (Depends-on): Add sigprocmask.
68055         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
68056         gt_SIGNALBLOCKING. Test for 'raise' only once.
68057         * lib/fatal-signal.c: Include sigprocmask.h.
68058         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
68059         unblock_fatal_signals): Define always.
68060         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68061         sigprocmask.
68062
68063 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68064
68065         Sync from Automake.
68066         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
68067         which incorrectly sets the mode of an existing destination
68068         directory.  In some cases the unpatched install-sh could do the
68069         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
68070         system.  We hope this is rare in practice, but it's clearly worth
68071         fixing.  Problem reported by Alex Unleashed in
68072         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
68073         Also, don't bother to check for -m bugs unless we're using -m;
68074         suggested by Stepan Kasal.
68075
68076 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68077
68078         Sync from Automake.
68079         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
68080         `-c' flag, so they appear at the same position as in %FASTDEP%
68081         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
68082         which ignores unknown options only after the first non-option.
68083         Bug report against M4 by Nelson H. F. Beebe.
68084
68085 2006-10-13  Jim Meyering  <jim@meyering.net>
68086
68087         Fix a bug in yesterday's change.
68088         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
68089         p->fts_statp->st_dev would be used uninitialized.
68090         Ensures that we always call fts_stat on the very first entry.
68091         Miklos Szeredi reported that find -xdev stopped working.
68092
68093 2006-10-12  Bruno Haible  <bruno@clisp.org>
68094
68095         * gnulib-tool (func_get_automake_snippet): Append an automatically
68096         computed EXTRA_DIST augmentation.
68097         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
68098         * modules/alloca-opt (Makefile.am): Likewise.
68099         * modules/allocsa (Makefile.am): Likewise.
68100         * modules/arcfour (Makefile.am): Likewise.
68101         * modules/arctwo (Makefile.am): Likewise.
68102         * modules/argmatch (Makefile.am): Likewise.
68103         * modules/argz (Makefile.am): Likewise.
68104         * modules/atexit (Makefile.am): Likewise.
68105         * modules/backupfile (Makefile.am): Likewise.
68106         * modules/byteswap (Makefile.am): Likewise.
68107         * modules/c-strtod (Makefile.am): Likewise.
68108         * modules/c-strtold (Makefile.am): Likewise.
68109         * modules/calloc (Makefile.am): Likewise.
68110         * modules/canon-host (Makefile.am): Likewise.
68111         * modules/canonicalize (Makefile.am): Likewise.
68112         * modules/chdir-long (Makefile.am): Likewise.
68113         * modules/chdir-safer (Makefile.am): Likewise.
68114         * modules/check-version (Makefile.am): Likewise.
68115         * modules/chown (Makefile.am): Likewise.
68116         * modules/cloexec (Makefile.am): Likewise.
68117         * modules/close-stream (Makefile.am): Likewise.
68118         * modules/closeout (Makefile.am): Likewise.
68119         * modules/crc (Makefile.am): Likewise.
68120         * modules/csharpexec (Makefile.am): Likewise.
68121         * modules/cycle-check (Makefile.am): Likewise.
68122         * modules/des (Makefile.am): Likewise.
68123         * modules/dev-ino (Makefile.am): Likewise.
68124         * modules/dirfd (Makefile.am): Likewise.
68125         * modules/dirname (Makefile.am): Likewise.
68126         * modules/dup2 (Makefile.am): Likewise.
68127         * modules/eealloc (Makefile.am): Likewise.
68128         * modules/error (Makefile.am): Likewise.
68129         * modules/euidaccess (Makefile.am): Likewise.
68130         * modules/exclude (Makefile.am): Likewise.
68131         * modules/exitfail (Makefile.am): Likewise.
68132         * modules/fcntl-safer (Makefile.am): Likewise.
68133         * modules/fcntl (Makefile.am): Likewise.
68134         * modules/file-type (Makefile.am): Likewise.
68135         * modules/fileblocks (Makefile.am): Likewise.
68136         * modules/filemode (Makefile.am): Likewise.
68137         * modules/filenamecat (Makefile.am): Likewise.
68138         * modules/fnmatch (Makefile.am): Likewise.
68139         * modules/fopen-safer (Makefile.am): Likewise.
68140         * modules/fpending (Makefile.am): Likewise.
68141         * modules/fprintftime (Makefile.am): Likewise.
68142         * modules/free (Makefile.am): Likewise.
68143         * modules/fsusage (Makefile.am): Likewise.
68144         * modules/ftruncate (Makefile.am): Likewise.
68145         * modules/fts (Makefile.am): Likewise.
68146         * modules/gc-arcfour (Makefile.am): Likewise.
68147         * modules/gc-des (Makefile.am): Likewise.
68148         * modules/gc-hmac-md5 (Makefile.am): Likewise.
68149         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
68150         * modules/gc-md4 (Makefile.am): Likewise.
68151         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
68152         * modules/gc-sha1 (Makefile.am): Likewise.
68153         * modules/gc (Makefile.am): Likewise.
68154         * modules/getaddrinfo (Makefile.am): Likewise.
68155         * modules/getcwd (Makefile.am): Likewise.
68156         * modules/getdelim (Makefile.am): Likewise.
68157         * modules/getdomainname (Makefile.am): Likewise.
68158         * modules/getgroups (Makefile.am): Likewise.
68159         * modules/gethostname (Makefile.am): Likewise.
68160         * modules/gethrxtime (Makefile.am): Likewise.
68161         * modules/getline (Makefile.am): Likewise.
68162         * modules/getloadavg (Makefile.am): Likewise.
68163         * modules/getlogin_r (Makefile.am): Likewise.
68164         * modules/getndelim2 (Makefile.am): Likewise.
68165         * modules/getopt (Makefile.am): Likewise.
68166         * modules/getpagesize (Makefile.am): Likewise.
68167         * modules/getpass-gnu (Makefile.am): Likewise.
68168         * modules/getpass (Makefile.am): Likewise.
68169         * modules/getsubopt (Makefile.am): Likewise.
68170         * modules/gettime (Makefile.am): Likewise.
68171         * modules/gettimeofday (Makefile.am): Likewise.
68172         * modules/getugroups (Makefile.am): Likewise.
68173         * modules/getusershell (Makefile.am): Likewise.
68174         * modules/glob (Makefile.am): Likewise.
68175         * modules/group-member (Makefile.am): Likewise.
68176         * modules/hard-locale (Makefile.am): Likewise.
68177         * modules/hash (Makefile.am): Likewise.
68178         * modules/hmac-md5 (Makefile.am): Likewise.
68179         * modules/hmac-sha1 (Makefile.am): Likewise.
68180         * modules/human (Makefile.am): Likewise.
68181         * modules/idcache (Makefile.am): Likewise.
68182         * modules/imaxabs (Makefile.am): Likewise.
68183         * modules/imaxdiv (Makefile.am): Likewise.
68184         * modules/inet_ntop (Makefile.am): Likewise.
68185         * modules/inet_pton (Makefile.am): Likewise.
68186         * modules/intprops (Makefile.am): Likewise.
68187         * modules/inttostr (Makefile.am): Likewise.
68188         * modules/inttypes (Makefile.am): Likewise.
68189         * modules/isapipe (Makefile.am): Likewise.
68190         * modules/javaversion (Makefile.am): Likewise.
68191         * modules/lchmod (Makefile.am): Likewise.
68192         * modules/lchown (Makefile.am): Likewise.
68193         * modules/localcharset (Makefile.am): Likewise.
68194         * modules/long-options (Makefile.am): Likewise.
68195         * modules/lstat (Makefile.am): Likewise.
68196         * modules/malloc (Makefile.am): Likewise.
68197         * modules/mathl (Makefile.am): Likewise.
68198         * modules/mbchar (Makefile.am): Likewise.
68199         * modules/md2 (Makefile.am): Likewise.
68200         * modules/md4 (Makefile.am): Likewise.
68201         * modules/md5 (Makefile.am): Likewise.
68202         * modules/memcasecmp (Makefile.am): Likewise.
68203         * modules/memchr (Makefile.am): Likewise.
68204         * modules/memcmp (Makefile.am): Likewise.
68205         * modules/memcoll (Makefile.am): Likewise.
68206         * modules/memcpy (Makefile.am): Likewise.
68207         * modules/memmem (Makefile.am): Likewise.
68208         * modules/memmove (Makefile.am): Likewise.
68209         * modules/mempcpy (Makefile.am): Likewise.
68210         * modules/memrchr (Makefile.am): Likewise.
68211         * modules/memset (Makefile.am): Likewise.
68212         * modules/memxor (Makefile.am): Likewise.
68213         * modules/mkancesdirs (Makefile.am): Likewise.
68214         * modules/mkdir-p (Makefile.am): Likewise.
68215         * modules/mkdir (Makefile.am): Likewise.
68216         * modules/mkdtemp (Makefile.am): Likewise.
68217         * modules/mkstemp (Makefile.am): Likewise.
68218         * modules/mktime (Makefile.am): Likewise.
68219         * modules/modechange (Makefile.am): Likewise.
68220         * modules/mountlist (Makefile.am): Likewise.
68221         * modules/nanosleep (Makefile.am): Likewise.
68222         * modules/obstack (Makefile.am): Likewise.
68223         * modules/openat (Makefile.am): Likewise.
68224         * modules/pagealign_alloc (Makefile.am): Likewise.
68225         * modules/pathmax (Makefile.am): Likewise.
68226         * modules/physmem (Makefile.am): Likewise.
68227         * modules/poll (Makefile.am): Likewise.
68228         * modules/posixtm (Makefile.am): Likewise.
68229         * modules/posixver (Makefile.am): Likewise.
68230         * modules/putenv (Makefile.am): Likewise.
68231         * modules/quote (Makefile.am): Likewise.
68232         * modules/quotearg (Makefile.am): Likewise.
68233         * modules/raise (Makefile.am): Likewise.
68234         * modules/read-file (Makefile.am): Likewise.
68235         * modules/readline (Makefile.am): Likewise.
68236         * modules/readlink (Makefile.am): Likewise.
68237         * modules/readtokens (Makefile.am): Likewise.
68238         * modules/readutmp (Makefile.am): Likewise.
68239         * modules/realloc (Makefile.am): Likewise.
68240         * modules/regex (Makefile.am): Likewise.
68241         * modules/rename-dest-slash (Makefile.am): Likewise.
68242         * modules/rename (Makefile.am): Likewise.
68243         * modules/rijndael (Makefile.am): Likewise.
68244         * modules/rmdir (Makefile.am): Likewise.
68245         * modules/rpmatch (Makefile.am): Likewise.
68246         * modules/safe-read (Makefile.am): Likewise.
68247         * modules/safe-write (Makefile.am): Likewise.
68248         * modules/same-inode (Makefile.am): Likewise.
68249         * modules/same (Makefile.am): Likewise.
68250         * modules/save-cwd (Makefile.am): Likewise.
68251         * modules/savedir (Makefile.am): Likewise.
68252         * modules/setenv (Makefile.am): Likewise.
68253         * modules/settime (Makefile.am): Likewise.
68254         * modules/sha1 (Makefile.am): Likewise.
68255         * modules/sig2str (Makefile.am): Likewise.
68256         * modules/snprintf (Makefile.am): Likewise.
68257         * modules/stat-macros (Makefile.am): Likewise.
68258         * modules/stat-time (Makefile.am): Likewise.
68259         * modules/stdbool (Makefile.am): Likewise.
68260         * modules/stdint (Makefile.am): Likewise.
68261         * modules/stdlib-safer (Makefile.am): Likewise.
68262         * modules/stpcpy (Makefile.am): Likewise.
68263         * modules/stpncpy (Makefile.am): Likewise.
68264         * modules/strcase (Makefile.am): Likewise.
68265         * modules/strcasestr (Makefile.am): Likewise.
68266         * modules/strchrnul (Makefile.am): Likewise.
68267         * modules/strcspn (Makefile.am): Likewise.
68268         * modules/strdup (Makefile.am): Likewise.
68269         * modules/strerror (Makefile.am): Likewise.
68270         * modules/strftime (Makefile.am): Likewise.
68271         * modules/strndup (Makefile.am): Likewise.
68272         * modules/strnlen (Makefile.am): Likewise.
68273         * modules/strpbrk (Makefile.am): Likewise.
68274         * modules/strsep (Makefile.am): Likewise.
68275         * modules/strstr (Makefile.am): Likewise.
68276         * modules/strtod (Makefile.am): Likewise.
68277         * modules/strtoimax (Makefile.am): Likewise.
68278         * modules/strtok_r (Makefile.am): Likewise.
68279         * modules/strtol (Makefile.am): Likewise.
68280         * modules/strtoll (Makefile.am): Likewise.
68281         * modules/strtoul (Makefile.am): Likewise.
68282         * modules/strtoull (Makefile.am): Likewise.
68283         * modules/strtoumax (Makefile.am): Likewise.
68284         * modules/strverscmp (Makefile.am): Likewise.
68285         * modules/sys_socket (Makefile.am): Likewise.
68286         * modules/sys_stat (Makefile.am): Likewise.
68287         * modules/sysexits (Makefile.am): Likewise.
68288         * modules/time_r (Makefile.am): Likewise.
68289         * modules/timegm (Makefile.am): Likewise.
68290         * modules/timespec (Makefile.am): Likewise.
68291         * modules/tmpfile-safer (Makefile.am): Likewise.
68292         * modules/trim (Makefile.am): Likewise.
68293         * modules/unistd-safer (Makefile.am): Likewise.
68294         * modules/unlinkdir (Makefile.am): Likewise.
68295         * modules/unlocked-io (Makefile.am): Likewise.
68296         * modules/userspec (Makefile.am): Likewise.
68297         * modules/utime (Makefile.am): Likewise.
68298         * modules/utimecmp (Makefile.am): Likewise.
68299         * modules/utimens (Makefile.am): Likewise.
68300         * modules/vasnprintf (Makefile.am): Likewise.
68301         * modules/vasprintf (Makefile.am): Likewise.
68302         * modules/vsnprintf (Makefile.am): Likewise.
68303         * modules/xalloc (Makefile.am): Likewise.
68304         * modules/xgetcwd (Makefile.am): Likewise.
68305         * modules/xnanosleep (Makefile.am): Likewise.
68306         * modules/xreadlink (Makefile.am): Likewise.
68307         * modules/xstrtod (Makefile.am): Likewise.
68308         * modules/xstrtol (Makefile.am): Likewise.
68309         * modules/xstrtold (Makefile.am): Likewise.
68310         * modules/yesno (Makefile.am): Likewise.
68311         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
68312
68313 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
68314
68315         * modules/error (Makefile.am): Distribute files through
68316         EXTRA_DIST, not lib_SOURCES.
68317
68318 2006-10-12  Eric Blake  <ebb9@byu.net>
68319
68320         * modules/error (Makefile.am): Distribute files in /lib.
68321         * modules/obstack (Makefile.am): Likewise.
68322
68323 2006-10-12  Bruno Haible  <bruno@clisp.org>
68324
68325         * modules/acl (Makefile.am): Distribute all files in lib/ through
68326         EXTRA_DIST.
68327         * modules/arcfour (Makefile.am): Likewise.
68328         * modules/arctwo (Makefile.am): Likewise.
68329         * modules/argmatch (Makefile.am): Likewise.
68330         * modules/argz (Makefile.am): Likewise.
68331         * modules/atexit (Makefile.am): Likewise.
68332         * modules/backupfile (Makefile.am): Likewise.
68333         * modules/c-strtod (Makefile.am): Likewise.
68334         * modules/c-strtold (Makefile.am): Likewise.
68335         * modules/calloc (Makefile.am): Likewise.
68336         * modules/canon-host (Makefile.am): Likewise.
68337         * modules/canonicalize (Makefile.am): Likewise.
68338         * modules/chdir-long (Makefile.am): Likewise.
68339         * modules/chdir-safer (Makefile.am): Likewise.
68340         * modules/check-version (Makefile.am): Likewise.
68341         * modules/chown (Makefile.am): Likewise.
68342         * modules/cloexec (Makefile.am): Likewise.
68343         * modules/close-stream (Makefile.am): Likewise.
68344         * modules/closeout (Makefile.am): Likewise.
68345         * modules/crc (Makefile.am): Likewise.
68346         * modules/cycle-check (Makefile.am): Likewise.
68347         * modules/des (Makefile.am): Likewise.
68348         * modules/dirfd (Makefile.am): Likewise.
68349         * modules/dirname (Makefile.am): Likewise.
68350         * modules/dup2 (Makefile.am): Likewise.
68351         * modules/euidaccess (Makefile.am): Likewise.
68352         * modules/exclude (Makefile.am): Likewise.
68353         * modules/exitfail (Makefile.am): Likewise.
68354         * modules/fcntl-safer (Makefile.am): Likewise.
68355         * modules/file-type (Makefile.am): Likewise.
68356         * modules/fileblocks (Makefile.am): Likewise.
68357         * modules/filemode (Makefile.am): Likewise.
68358         * modules/filenamecat (Makefile.am): Likewise.
68359         * modules/fnmatch (Makefile.am): Likewise.
68360         * modules/fopen-safer (Makefile.am): Likewise.
68361         * modules/fpending (Makefile.am): Likewise.
68362         * modules/fprintftime (Makefile.am): Likewise.
68363         * modules/free (Makefile.am): Likewise.
68364         * modules/fsusage (Makefile.am): Likewise.
68365         * modules/ftruncate (Makefile.am): Likewise.
68366         * modules/fts (Makefile.am): Likewise.
68367         * modules/gc (Makefile.am): Likewise.
68368         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
68369         * modules/getaddrinfo (Makefile.am): Likewise.
68370         * modules/getcwd (Makefile.am): Likewise.
68371         * modules/getdelim (Makefile.am): Likewise.
68372         * modules/getdomainname (Makefile.am): Likewise.
68373         * modules/getgroups (Makefile.am): Likewise.
68374         * modules/gethostname (Makefile.am): Likewise.
68375         * modules/gethrxtime (Makefile.am): Likewise.
68376         * modules/getline (Makefile.am): Likewise.
68377         * modules/getloadavg (Makefile.am): Likewise.
68378         * modules/getlogin_r (Makefile.am): Likewise.
68379         * modules/getopt (Makefile.am): Likewise.
68380         * modules/getpass (Makefile.am): Likewise.
68381         * modules/getpass-gnu (Makefile.am): Likewise.
68382         * modules/getsubopt (Makefile.am): Likewise.
68383         * modules/gettime (Makefile.am): Likewise.
68384         * modules/gettimeofday (Makefile.am): Likewise.
68385         * modules/getugroups (Makefile.am): Likewise.
68386         * modules/getusershell (Makefile.am): Likewise.
68387         * modules/glob (Makefile.am): Likewise.
68388         * modules/group-member (Makefile.am): Likewise.
68389         * modules/hard-locale (Makefile.am): Likewise.
68390         * modules/hash (Makefile.am): Likewise.
68391         * modules/hmac-md5 (Makefile.am): Likewise.
68392         * modules/hmac-sha1 (Makefile.am): Likewise.
68393         * modules/human (Makefile.am): Likewise.
68394         * modules/idcache (Makefile.am): Likewise.
68395         * modules/imaxabs (Makefile.am): Likewise.
68396         * modules/imaxdiv (Makefile.am): Likewise.
68397         * modules/inet_ntop (Makefile.am): Likewise.
68398         * modules/inet_pton (Makefile.am): Likewise.
68399         * modules/inttostr (Makefile.am): Likewise.
68400         * modules/isapipe (Makefile.am): Likewise.
68401         * modules/lchown (Makefile.am): Likewise.
68402         * modules/long-options (Makefile.am): Likewise.
68403         * modules/lstat (Makefile.am): Likewise.
68404         * modules/malloc (Makefile.am): Likewise.
68405         * modules/mathl (Makefile.am): Likewise.
68406         * modules/mbchar (Makefile.am): Likewise.
68407         * modules/md2 (Makefile.am): Likewise.
68408         * modules/md4 (Makefile.am): Likewise.
68409         * modules/md5 (Makefile.am): Likewise.
68410         * modules/memcasecmp (Makefile.am): Likewise.
68411         * modules/memchr (Makefile.am): Likewise.
68412         * modules/memcmp (Makefile.am): Likewise.
68413         * modules/memcoll (Makefile.am): Likewise.
68414         * modules/memcpy (Makefile.am): Likewise.
68415         * modules/memmem (Makefile.am): Likewise.
68416         * modules/memmove (Makefile.am): Likewise.
68417         * modules/mempcpy (Makefile.am): Likewise.
68418         * modules/memrchr (Makefile.am): Likewise.
68419         * modules/memset (Makefile.am): Likewise.
68420         * modules/memxor (Makefile.am): Likewise.
68421         * modules/mkancesdirs (Makefile.am): Likewise.
68422         * modules/mkdir (Makefile.am): Likewise.
68423         * modules/mkdir-p (Makefile.am): Likewise.
68424         * modules/mkdtemp (Makefile.am): Likewise.
68425         * modules/mkstemp (Makefile.am): Likewise.
68426         * modules/mktime (Makefile.am): Likewise.
68427         * modules/modechange (Makefile.am): Likewise.
68428         * modules/mountlist (Makefile.am): Likewise.
68429         * modules/nanosleep (Makefile.am): Likewise.
68430         * modules/openat (Makefile.am): Likewise.
68431         * modules/pagealign_alloc (Makefile.am): Likewise.
68432         * modules/physmem (Makefile.am): Likewise.
68433         * modules/poll (Makefile.am): Likewise.
68434         * modules/posixtm (Makefile.am): Likewise.
68435         * modules/posixver (Makefile.am): Likewise.
68436         * modules/putenv (Makefile.am): Likewise.
68437         * modules/quote (Makefile.am): Likewise.
68438         * modules/quotearg (Makefile.am): Likewise.
68439         * modules/raise (Makefile.am): Likewise.
68440         * modules/read-file (Makefile.am): Likewise.
68441         * modules/readline (Makefile.am): Likewise.
68442         * modules/readlink (Makefile.am): Likewise.
68443         * modules/readtokens (Makefile.am): Likewise.
68444         * modules/readutmp (Makefile.am): Likewise.
68445         * modules/realloc (Makefile.am): Likewise.
68446         * modules/regex (Makefile.am): Likewise.
68447         * modules/rename (Makefile.am): Likewise.
68448         * modules/rename-dest-slash (Makefile.am): Likewise.
68449         * modules/rijndael (Makefile.am): Likewise.
68450         * modules/rmdir (Makefile.am): Likewise.
68451         * modules/rpmatch (Makefile.am): Likewise.
68452         * modules/safe-read (Makefile.am): Likewise.
68453         * modules/safe-write (Makefile.am): Likewise.
68454         * modules/same (Makefile.am): Likewise.
68455         * modules/save-cwd (Makefile.am): Likewise.
68456         * modules/savedir (Makefile.am): Likewise.
68457         * modules/setenv (Makefile.am): Likewise.
68458         * modules/settime (Makefile.am): Likewise.
68459         * modules/sha1 (Makefile.am): Likewise.
68460         * modules/sig2str (Makefile.am): Likewise.
68461         * modules/snprintf (Makefile.am): Likewise.
68462         * modules/stdlib-safer (Makefile.am): Likewise.
68463         * modules/stpcpy (Makefile.am): Likewise.
68464         * modules/stpncpy (Makefile.am): Likewise.
68465         * modules/strcase (Makefile.am): Likewise.
68466         * modules/strcasestr (Makefile.am): Likewise.
68467         * modules/strchrnul (Makefile.am): Likewise.
68468         * modules/strcspn (Makefile.am): Likewise.
68469         * modules/strdup (Makefile.am): Likewise.
68470         * modules/strerror (Makefile.am): Likewise.
68471         * modules/strftime (Makefile.am): Likewise.
68472         * modules/strndup (Makefile.am): Likewise.
68473         * modules/strnlen (Makefile.am): Likewise.
68474         * modules/strpbrk (Makefile.am): Likewise.
68475         * modules/strsep (Makefile.am): Likewise.
68476         * modules/strstr (Makefile.am): Likewise.
68477         * modules/strtod (Makefile.am): Likewise.
68478         * modules/strtoimax (Makefile.am): Likewise.
68479         * modules/strtok_r (Makefile.am): Likewise.
68480         * modules/strtol (Makefile.am): Likewise.
68481         * modules/strtoll (Makefile.am): Likewise.
68482         * modules/strtoul (Makefile.am): Likewise.
68483         * modules/strtoull (Makefile.am): Likewise.
68484         * modules/strtoumax (Makefile.am): Likewise.
68485         * modules/strverscmp (Makefile.am): Likewise.
68486         * modules/time_r (Makefile.am): Likewise.
68487         * modules/timegm (Makefile.am): Likewise.
68488         * modules/tmpfile-safer (Makefile.am): Likewise.
68489         * modules/unistd-safer (Makefile.am): Likewise.
68490         * modules/unlinkdir (Makefile.am): Likewise.
68491         * modules/userspec (Makefile.am): Likewise.
68492         * modules/utime (Makefile.am): Likewise.
68493         * modules/utimecmp (Makefile.am): Likewise.
68494         * modules/utimens (Makefile.am): Likewise.
68495         * modules/vasnprintf (Makefile.am): Likewise.
68496         * modules/vasprintf (Makefile.am): Likewise.
68497         * modules/vsnprintf (Makefile.am): Likewise.
68498         * modules/xalloc (Makefile.am): Likewise.
68499         * modules/xgetcwd (Makefile.am): Likewise.
68500         * modules/xnanosleep (Makefile.am): Likewise.
68501         * modules/xreadlink (Makefile.am): Likewise.
68502         * modules/xstrtod (Makefile.am): Likewise.
68503         * modules/xstrtol (Makefile.am): Likewise.
68504         * modules/xstrtold (Makefile.am): Likewise.
68505         * modules/yesno (Makefile.am): Likewise.
68506
68507 2006-10-12  Jim Meyering  <jim@meyering.net>
68508
68509         * m4/getloadavg.m4: Revert the change below.
68510
68511         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
68512         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
68513         fail with a symlink, which is what coreutils' ./bootstrap now
68514         creates by default.
68515
68516 2006-10-12  Bruno Haible  <bruno@clisp.org>
68517
68518         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
68519         mingw.
68520         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
68521         MSVC and mingw explicitly.
68522
68523 2006-10-11  Simon Josefsson  <jas@extundo.com>
68524             Bruno Haible  <bruno@clisp.org>
68525
68526         Add support for multiple gnulib-tool invocations in the scope of a
68527         single configure.ac file.
68528         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
68529         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
68530         with the same contents as the _LIBADD variable.
68531         (func_emit_initmacro_start, func_emit_initmacro_end,
68532         func_emit_initmacro_done): New functions.
68533         (func_import, func_create_testdir): Invoke them. Allow the identifiers
68534         gl_LIBOBJS and gl_LTLIBOBJS.
68535
68536 2006-10-11  Bruno Haible  <bruno@clisp.org>
68537
68538         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
68539         (func_create_testdir): Don't create po/Makefile.am, don't invoke
68540         autoreconf. Instead, invoke autopoint explicitly but move back the
68541         *.m4 files from gnulib.
68542
68543 2006-10-11  Bruno Haible  <bruno@clisp.org>
68544
68545         * gnulib-tool (func_usage): Make module names after --create-testdir
68546         optional.
68547         (func_create_testdir): If no module was specified, use nearly all
68548         modules.
68549
68550 2006-10-12  Jim Meyering  <jim@meyering.net>
68551
68552         Big performance improvement for fts-based tools that use FTS_NOSTAT.
68553         Avoid spurious inode-mismatch problems on non-POSIX file systems.
68554         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
68555         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
68556         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
68557         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
68558         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
68559         (fts_set_stat_required): New function.
68560         (fts_open): Defer the calls to fts_stat, if possible or requested.
68561         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
68562         into fts_stat itself.
68563         (fts_read): Perform any required (deferred) fts_stat call.
68564         (fts_build): Likewise, for the directory we're about to open and read.
68565         In the readdir loop, carefully decide whether each entry will require
68566         an eventual call to fts_stat, using dirent.d_type info if available.
68567         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
68568         a command line argument into this function.  Update all callers.
68569         Map a return value of FTS_DOT to FTS_D for a command line argument.
68570         * modules/fts (Depends-on): Add d-type.  Alphabetize.
68571         Thanks to Miklos Szeredi for his tenacity and for the initial
68572         bug report about "find" failing on a FUSE-based file system.
68573
68574         * lib/fts.c (fts_open): Use consistent indentation.
68575
68576 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
68577
68578         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
68579         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
68580         reported by Jim Meyering.  All uses of cache variables renamed
68581         to match Autoconf's.
68582         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
68583         the other one.
68584
68585         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
68586         Fix misspelling in diagnostic.
68587
68588 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
68589
68590         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
68591         defined.  Problem reported by Matthew Woehlke.
68592
68593         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
68594         Add support for Tandem NonStop R series.
68595         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
68596         Use new macro.
68597
68598         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
68599         (has_trailing_slash): Omit size arg; all callers changed.
68600         Omit 'inline', since it doesn't help performance and we'd
68601         need to configure it.
68602         Don't count //, ///, etc. as having a trailing slash.
68603         As a side effect, this removes a C99ism reported by Matthew Woehlke.
68604         (rpl_rename_dest_slash): On failure, use rename's errno rather
68605         than (in some cases) an incorrect or junk errno.
68606         Simplify code by removing need to compute length; this does
68607         cause it to make two passes instead of one over the file name,
68608         but it's worth it.
68609
68610         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
68611         change, since Autoconf's version may no longer be appropriate now
68612         that we are using CVS Autoconf's version.  Add support for Tandem.
68613
68614 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
68615             Bruno Haible  <bruno@clisp.org>
68616
68617         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
68618         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
68619         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
68620         gl_AC_TYPE_LONG_LONG.
68621
68622         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
68623         instead of HAVE_LONG_LONG.
68624         * lib/printf-args.c (printf_fetchargs): Likewise.
68625         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
68626         * lib/vasnprintf.c (VASNPRINTF): Likewise.
68627         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
68628         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
68629         gl_AC_TYPE_LONG_LONG.
68630
68631 2006-10-11  Bruno Haible  <bruno@clisp.org>
68632
68633         * m4/longlong.m4: Add comments.
68634         * m4/ulonglong.m4: Likewise.
68635
68636 2006-10-10  Bruno Haible  <bruno@clisp.org>
68637
68638         Make it possible to #define stpcpy, strdup to aliases.
68639         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
68640         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
68641
68642 2006-10-10  Bruno Haible  <bruno@clisp.org>
68643
68644         Make it possible to #define gcd to an alias.
68645         * lib/gcd.c: Include config.h.
68646
68647 2006-10-10  Bruno Haible  <bruno@clisp.org>
68648
68649         Make it possible to #define c_isascii to an alias.
68650         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
68651         defined. Undefine the macros before defining them, to avoid gcc
68652         warnings.
68653         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
68654         define NO_C_CTYPE_MACROS early.
68655
68656 2006-10-10  Bruno Haible  <bruno@clisp.org>
68657
68658         Make it possible to #define set_program_name to an alias.
68659         * lib/progname.c: Don't undefine set_program_name; instead, undefine
68660         ENABLE_RELOCATABLE early.
68661
68662 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
68663
68664         Port to Tandem NSK OSS, which has 64-bit signed int but at most
68665         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
68666         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
68667         More generally, don't assume that 64-bit signed int is available
68668         if unsigned int is, and vice versa.
68669         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
68670         unsigned symbols, not on their signed counterparts.
68671         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
68672         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
68673         (UINT64_C, UINTMAX_C):
68674         Likewise.
68675         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
68676         unsigned counterparts.
68677         (Have_long_long, Unsigned): New macros.
68678         (Int): Renamed from INT.
68679         (strtoimax): Use the new macros.
68680         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
68681         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
68682         * modules/inttypes (inttypes.h): Substitute
68683         HAVE_UNSIGNED_LONG_LONG_INT.
68684         * modules/stdint (stdint.h): Likewise.
68685         (Files): Add m4/ulonglong.m4.
68686
68687 2006-10-10  Bruno Haible  <bruno@clisp.org>
68688
68689         Fix a gcc -Wshadow warning.
68690         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
68691         to 'bucket'.
68692         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
68693         gl_linked_indexof_from_to): Likewise.
68694         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
68695         Likewise.
68696         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
68697         Likewise.
68698         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
68699         Reported by Eric Blake.
68700
68701 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
68702
68703         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
68704         for NetBSD.  Problem reported by Bruno Haible.
68705
68706 2006-10-09  Jim Meyering  <jim@meyering.net>
68707
68708         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
68709         Patch from Bruno Haible.
68710
68711 2006-10-09  Jim Meyering  <jim@meyering.net>
68712
68713         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
68714         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
68715         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
68716
68717 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
68718
68719         Don't include <config.h> twice; this doesn't work in some cases,
68720         e.g., when config.h has "#define intmax_t long long int" and
68721         we include <config.h>, <inttypes.h>, <config.h> in that order.
68722         Problem reported by Matthew Woehlke in:
68723         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
68724         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
68725         * lib/fts-cycle.c: Don't include config.h.
68726         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
68727         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
68728         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
68729         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
68730         inttypes.h.
68731         * lib/xstrtoumax.c: Likewise.
68732         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
68733         __strtol and the like, so that this module is more like its siblings.
68734         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
68735         Remove; no longer needed now that we assume gnulib inttypes.h.
68736
68737 2006-10-08  Bruno Haible  <bruno@clisp.org>
68738
68739         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
68740         option.
68741
68742 2006-10-07  Jim Meyering  <jim@meyering.net>
68743
68744         * modules/inttypes (inttypes.h): Revert what seems to have been
68745         an inadvertent part of today's change: use "|", not "/" in the
68746         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
68747
68748 2006-10-07  Bruno Haible  <bruno@clisp.org>
68749
68750         * modules/sublist: New file.
68751
68752 2006-10-07  Bruno Haible  <bruno@clisp.org>
68753
68754         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
68755         * modules/argz (argz.h): Likewise.
68756         * modules/arpa_inet (arpa/inet.h): Likewise.
68757         * modules/byteswap (byteswap.h): Likewise.
68758         * modules/configmake (configmake.h): Likewise.
68759         * modules/fcntl (fcntl.h): Likewise.
68760         * modules/fnmatch (fnmatch.h): Likewise.
68761         * modules/getopt (getopt.h): Likewise.
68762         * modules/glob (glob.h): Likewise.
68763         * modules/inttypes (inttypes.h): Likewise.
68764         * modules/netinet_in (netinet/in.h): Likewise.
68765         * modules/poll (poll.h): Likewise.
68766         * modules/stdbool (stdbool.h): Likewise.
68767         * modules/stdint (stdint.h): Likewise.
68768         * modules/sys_select (sys/select.h): Likewise.
68769         * modules/sys_socket (sys/socket.h): Likewise.
68770         * modules/sys_stat (sys/stat.h): Likewise.
68771         * modules/sysexits (sysexits.h): Likewise.
68772         * modules/unistd (unistd.h): Likewise.
68773         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68774         Add a "DO NOT EDIT" comment to the generated file.
68775         (func_import): Likewise for gnulib-comp.m4.
68776
68777 2006-10-07  Bruno Haible  <bruno@clisp.org>
68778
68779         * lib/gl_sublist.h: New file.
68780         * lib/gl_sublist.c: New file.
68781
68782 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
68783
68784         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
68785         name (relative to the original working directory) and the file
68786         name component (relative to the temporary working directory).  All
68787         callers changed.
68788         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
68789         * lib/mkdir-p.c (make_dir_parents): Likewise.
68790         * lib/mkdir-p.h (make_dir_parents): Likewise.
68791
68792 2006-10-06  Eric Blake  <ebb9@byu.net>
68793
68794         Define several macros for use by the clean-temp module.
68795         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
68796         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
68797         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
68798
68799         * lib/clean-temp.h (close_stream_temp): New declaration.
68800         * lib/clean-temp.c (includes): Pull in headers according to what
68801         other modules are in use.
68802         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
68803
68804 2006-10-06  Bruno Haible  <bruno@clisp.org>
68805
68806         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
68807         instead of fopen, fwriteerror.
68808
68809 2006-10-06  Bruno Haible  <bruno@clisp.org>
68810
68811         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
68812         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
68813         int.
68814         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
68815         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
68816         Return an error indicator.
68817         Suggested by Eric Blake.
68818
68819 2006-10-06  Bruno Haible  <bruno@clisp.org>
68820
68821         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
68822         Reported by Eric Blake.
68823
68824 2006-10-06  Bruno Haible  <bruno@clisp.org>
68825
68826         * modules/closeout (Description): Mention stderr too.
68827
68828 2006-10-06  Bruno Haible  <bruno@clisp.org>
68829         and Paul Eggert  <eggert@cs.ucla.edu>
68830
68831         * lib/closeout.c (close_stdout): Also close stderr.
68832         * lib/closeout.h: Update comment.
68833
68834 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
68835
68836         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
68837         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
68838         * lib/dirchownmod.c: Include lchown.h.
68839         * lib/lchown.c: Don't include files that lchown.h now includes.
68840         Don't declare chown, since lchown.h now does that.
68841         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
68842         (lchown): Define to rpl_chown if lchown is declared but
68843         does not exist.  Declare using a prototype if lchown is not
68844         declared.  Add a copyright notice.
68845         * lib/mkstemp.h: Include <unistd.h>.
68846         * lib/openat.c: Include lchown.h.
68847
68848         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
68849         we now test for that separately.
68850         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
68851         rather than O_NOFOLLOW, when testing whether it's possible to
68852         avoid a race condition reliably.
68853         * lib/savewd.c (savewd_chdir): Likewise.
68854
68855         Remove macros that are no longer needed now that stdint.h is
68856         reliable.
68857         * lib/fsusage.c (UINTMAX_MAX): Remove.
68858         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
68859         * lib/utimecmp.c (SIZE_MAX): Remove.
68860
68861         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
68862
68863         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
68864         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
68865         O_NOATIME works.
68866
68867 2006-10-05  Bruno Haible  <bruno@clisp.org>
68868
68869         * lib/gl_list.h (gl_sortedlist_search_from_to,
68870         gl_sortedlist_indexof_from_to): New declarations.
68871         (gl_list_implementation): New fields sortedlist_search_from_to,
68872         sortedlist_indexof_from_to.
68873         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
68874         inline functions.
68875         * lib/gl_list.c (gl_sortedlist_search_from_to,
68876         gl_sortedlist_indexof_from_to): New functions.
68877         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
68878         function.
68879         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
68880         (gl_array_sortedlist_search_from_to): New function.
68881         (gl_array_list_implementation): Update.
68882         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
68883         function.
68884         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
68885         (gl_carray_sortedlist_search_from_to): New function.
68886         (gl_carray_list_implementation): Update.
68887         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
68888         gl_linked_sortedlist_indexof_from_to): New functions.
68889         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
68890         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
68891         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
68892         gl_tree_sortedlist_indexof_from_to): New functions.
68893         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
68894         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
68895         Update.
68896         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
68897         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
68898         Update.
68899
68900 2006-10-05  Bruno Haible  <bruno@clisp.org>
68901
68902         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
68903         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
68904         (struct gl_list_implementation): Add fields search_from_to,
68905         indexof_from_to. Remove fields search, indexof.
68906         (gl_list_search): Use the search_from_to method.
68907         (gl_list_search_from, gl_list_search_from_to): New functions.
68908         (gl_list_indexof): Use the indexof_from_to method.
68909         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
68910         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
68911         (gl_list_search_from, gl_list_search_from_to): New functions.
68912         (gl_list_indexof): Use the indexof_from_to method.
68913         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
68914         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
68915         gl_array_indexof. Add start_index, end_index arguments.
68916         (gl_array_search_from_to): Renamed from gl_array_search. Add
68917         start_index, end_index arguments.
68918         (gl_array_remove, gl_array_list_implementation): Update.
68919         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
68920         gl_carray_indexof. Add start_index, end_index arguments.
68921         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
68922         start_index, end_index arguments.
68923         (gl_carray_remove, gl_carray_list_implementation): Update.
68924         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
68925         gl_linked_search. Add start_index, end_index arguments.
68926         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
68927         start_index, end_index arguments.
68928         (gl_linked_remove): Update.
68929         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
68930         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
68931         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
68932         field to 'size_t'.
68933         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
68934         gl_tree_search. Add start_index, end_index arguments.
68935         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
68936         start_index, end_index arguments.
68937         (gl_tree_remove): Update.
68938         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
68939         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
68940         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
68941         function.
68942         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
68943         gl_tree_search. Add start_index, end_index arguments.
68944         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
68945         start_index, end_index arguments.
68946         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
68947         Update.
68948         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
68949
68950 2006-10-05  Bruno Haible  <bruno@clisp.org>
68951
68952         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
68953
68954         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
68955         fwriteerror_temp): New declarations.
68956         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
68957         (descriptors): New variable.
68958         (cleanup): First, close the descriptors.
68959         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
68960         fclose_temp, fwriteerror_temp): New functions.
68961
68962 2006-10-04  Jim Meyering  <jim@meyering.net>
68963
68964         * lib/fts.c (fts_open): Tiny comment change.
68965
68966 2006-10-04  Bruno Haible  <bruno@clisp.org>
68967
68968         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
68969         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
68970         gl_LOCK_BODY.
68971         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
68972         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
68973         gl_LOCK_EARLY_BODY.
68974         (gl_LOCK): Require gl_LOCK_BODY.
68975
68976 2006-10-04  Bruno Haible  <bruno@clisp.org>
68977
68978         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
68979         (gl_oset_search_atleast): New declaration.
68980         (struct gl_oset_implementation): Add field 'search_atleast'.
68981         (gl_oset_search_atleast): New inline function.
68982         * lib/gl_oset.c (gl_oset_search_atleast): New function.
68983         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
68984         (gl_array_oset_implementation): Update.
68985         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
68986         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
68987         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
68988
68989 2006-10-04  Bruno Haible  <bruno@clisp.org>
68990
68991         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
68992
68993 2006-10-03  Bruno Haible  <bruno@clisp.org>
68994
68995         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
68996         from gl_avltreehash_list_implementation.
68997
68998 2006-10-03  Bruno Haible  <bruno@clisp.org>
68999
69000         * lib/gl_oset.c (gl_oset_add): Fix return type.
69001
69002 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
69003
69004         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
69005
69006 2006-10-02  Eric Blake  <ebb9@byu.net>
69007
69008         * modules/strnlen (Depends-on): Add extensions.
69009
69010 2006-10-02  Eric Blake  <ebb9@byu.net>
69011
69012         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
69013         definition in 2.60+.
69014
69015 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
69016
69017         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
69018         checks.
69019
69020 2006-10-02  Bruno Haible  <bruno@clisp.org>
69021
69022         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
69023         to the AUTOMAKE_OPTIONS.
69024         Reported by Jim Meyering.
69025
69026 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
69027
69028         Work around bug in Solaris 10 /proc file system:
69029         /proc/self/fd/NNN/.. isn't the parent directory of
69030         the directory whose file descriptor is NNN.  This needs to
69031         be worked around at run time, not compile time, since a
69032         program might be built on Solaris 8, where things work, and
69033         run on Solaris 10.
69034         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
69035         to use the following interface instead:
69036         (OPENAT_BUFFER_SIZE): New macro.
69037         (openat_proc_name): New function.
69038         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
69039         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
69040         Likewise.
69041         * lib/openat-proc.c: New file.
69042         * modules/openat (Files): Add lib/openat-proc.c.
69043         (Depends-on): Add same-inode, stdbool.
69044         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
69045
69046 2006-09-29  Bruno Haible  <bruno@clisp.org>
69047
69048         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
69049         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
69050         argument. Set stdout_closed before testing for ferror, not after.
69051         (fwriteerror, fwriteerror_no_ebadf): New functions.
69052
69053 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69054
69055         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
69056
69057 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
69058
69059         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
69060         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
69061
69062 2006-09-28  Jim Meyering  <jim@meyering.net>
69063
69064         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
69065         Include <unistd.h>.
69066
69067 2006-09-28  Bruno Haible  <bruno@clisp.org>
69068
69069         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
69070         * modules/linkedhash-list (Depends-on): Likewise.
69071         * modules/rbtreehash-list (Depends-on): Likewise.
69072
69073 2006-09-28  Bruno Haible  <bruno@clisp.org>
69074
69075         * lib/strndup.h: Simplify the redefinition of strndup.
69076         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
69077         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
69078
69079 2006-09-28  Bruno Haible  <bruno@clisp.org>
69080
69081         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
69082         * lib/gl_linkedhash_list.c: Likewise.
69083         * lib/gl_rbtreehash_list.c: Likewise.
69084
69085 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
69086
69087         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
69088         getaddrinfo.
69089
69090         * lib/__fpending.h: Don't include <stdio_ext.h> unless
69091         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
69092         it causes <stdio_ext.h> to cause a compile-time error.
69093         Problem reported by Nelson H. F. Beebe.
69094         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
69095         of HAVE_DECL___PENDING.
69096
69097         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
69098         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
69099         declaration.
69100
69101 2006-09-27  Jim Meyering  <jim@meyering.net>
69102
69103         This file could end up with a definition for a function
69104         named __strndup, rather than rpl_strndup on a system with
69105         incomplete weak_alias support.
69106         * lib/strndup.c (strndup): Rename from __strndup.
69107         Remove #defines that used to map __strndup to strndup.
69108         Don't use K&R prototypes.
69109         Remove LIBC-related code, since this file is not sync'd with glibc.
69110         * lib/strndup.h: Revamp, accordingly.
69111         * m4/strndup.m4: Modernize.
69112
69113 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
69114
69115         * modules/savewd (Depends-on): Add 'raise'.
69116         * lib/savewd.c: Include <signal.h>, for 'raise'.
69117
69118 2006-09-26  Jim Meyering  <jim@meyering.net>
69119
69120         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
69121         when we detect Darwin 8.7.0's acl_get_file bug.
69122         Rearrange to perform the new (below) run-test while $LIBS
69123         contains any acl-related library.  Set USE_ACL at the end.
69124         (gl_ACL_GET_FILE): New function.
69125
69126 2006-09-26  Eric Blake  <ebb9@byu.net>
69127
69128         * lib/verror.c: Include <config.h> unconditionally.
69129
69130 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
69131
69132         * modules/clock-time (Maintainer): Add self.
69133         * modules/getlogin_r (Depends-on): Add extensions.
69134
69135 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69136
69137         * modules/clock-time: New module.
69138         * modules/nanosleep (Depends-on): Add clock-time.
69139         * modules/gethrxtime (Depends-on): Likewise.
69140         * modules/gettime (Depends-on): Likewise.
69141         * modules/settime (Depends-on): Likewise.
69142
69143         * modules/fts-lgpl: Depend on openat.
69144         * modules/mkancesdirs: Depend on savewd.
69145         * modules/mkdir-p: Likewise.
69146
69147 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69148
69149         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
69150
69151         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
69152         `gl_have_arbitrary_file_name_length_limit' to
69153         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
69154         actually works between configure runs.
69155
69156 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69157             Bruno Haible  <bruno@clisp.org>
69158
69159         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
69160
69161 2006-09-25  Jim Meyering  <jim@meyering.net>
69162
69163         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
69164         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
69165
69166 2006-09-25  Eric Blake  <ebb9@byu.net>
69167
69168         * gnulib-tool (func_import, func_create_testdir): Fix typos in
69169         exec's in 2006-09-18 patch when shuffling fds.
69170
69171 2006-09-25  Bruno Haible  <bruno@clisp.org>
69172
69173         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
69174         Reported by Jim Meyering.
69175
69176 2006-09-24  Jim Meyering  <jim@meyering.net>
69177
69178         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
69179         compare a pointer against a literal "0".  That caused failures with
69180         at least HP-UX's hpcc.
69181
69182 2006-09-22  Simon Josefsson  <jas@extundo.com>
69183
69184         * modules/gc-sha1:
69185         * modules/gc-md4:
69186         * modules/gc-hmac-sha1:
69187         * modules/gc-hmac-md5:
69188         * modules/gc-des:
69189         * modules/gc-arcfour: Distribute more files.
69190
69191 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69192
69193         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
69194         (gl_linked_iterator_from_to): Initialize struct completely.
69195         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
69196         (gl_tree_iterator_from_to): Likewise
69197         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
69198         * lib/gl_array_list.c [lint] (gl_array_iterator)
69199         (gl_array_iterator_from_to): Likewise.
69200         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
69201         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
69202         (gl_carray_iterator_from_to): Likewise.
69203
69204         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
69205         * lib/md4.c (md4_process_block): Remove unused variable.
69206         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
69207         parentheses for clarity.
69208
69209 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69210
69211         * modules/bison-i18n (Depends-on): Add gettext.
69212
69213 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69214
69215         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
69216         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
69217         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
69218         also add missing comma that caused broken test.
69219         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
69220         stdlib.h, for `abort'.
69221         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
69222         variables.
69223         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
69224         include unistd.h if present, for `rmdir'.
69225         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
69226         variables.
69227         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
69228         in the process include standard headers for prototypes.
69229         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
69230         gets declared on GNU/Linux.
69231         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
69232         unistd.h, for `rmdir'.
69233         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
69234
69235         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
69236         always true.
69237         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
69238
69239         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
69240
69241 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69242
69243         * gnulib-tool (func_version): Create output all at once.  This
69244         may help avoid triggering unnecessary SIGPIPEs, and at any
69245         rate it doesn't hurt.
69246
69247 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69248             Bruno Haible  <bruno@clisp.org>
69249
69250         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
69251         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
69252         * m4/signed.m4 (bh_C_SIGNED): Likewise.
69253
69254         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
69255         (gl_FUNC_VASPRINTF): Invoke it.
69256
69257 2006-09-22  Bruno Haible  <bruno@clisp.org>
69258
69259         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
69260         getloadavg.c as first argument.
69261
69262 2006-09-22  Bruno Haible  <bruno@clisp.org>
69263
69264         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
69265         at the beginning of the gl_INIT macro.
69266         * modules/getloadavg (configure.ac): Pass $gl_source_base to
69267         gl_GETLOADAVG.
69268
69269 2006-09-22  Bruno Haible  <bruno@clisp.org>
69270
69271         * gnulib-tool (func_create_megatestdir): Don't include the config-h
69272         module.
69273         Suggested by Ralf Wildenhues.
69274
69275 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
69276
69277         Import this patch from libc:
69278
69279         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
69280
69281         * lib/regex_internal.c (re_string_reconstruct): Handle
69282         offset < pstr->valid_raw_len && pstr->offsets_needed case.
69283         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
69284         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
69285         re_string_context_at.
69286
69287         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
69288         now requires it.
69289         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
69290         gl_REGEX now does it for us.
69291         (gl_REGEX): Add test taken from
69292         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
69293
69294         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
69295         Check that large offsets work.  Modernize Autoconf usages.
69296         Prefer "yes" to mean a good thing rather than a bad.
69297         Don't put "#define mkstemp" in config.h, as this might interfere
69298         with standard system headers that "#define mkstemp mkstemp64".
69299
69300         * modules/mkstemp (Depends-on): Add extensions, so that
69301         mkstemp is visible on some platforms.
69302         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
69303         (Include): Change to "mkstemp.h" from <stdlib.h>.
69304         (Files): Add mkstemp.h.
69305
69306         * lib/mkstemp.h: New file, since some standard headers
69307         #define mkstemp.
69308         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
69309         Include "mkstemp.h".
69310         Make the _LIBC code resemble glibc original more,
69311         e.g., use K&R style.
69312         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
69313         (mkstemp): Remove, since mkstemp.h does this for us.
69314         * lib/stdlib--.h: Include mkstemp.h.
69315
69316         Import this patch from libc:
69317
69318         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
69319
69320         * lib/tempname.c (__gen_tempname): Change attempts_min
69321         into a macro.  Use preprocessor to decide how to initialize
69322         attempts [Coverity CID 67].
69323
69324 2006-09-20  Bruno Haible  <bruno@clisp.org>
69325
69326         * lib/mkdtemp.c: Import from libc.
69327         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
69328                 * sysdeps/posix/tempname.c (__gen_tempname): Change
69329                 attempts_min into a macro.  Use preprocessor to decide how to
69330                 initialize attempts [Coverity CID 67].
69331         2001-11-27  Paul Eggert  <eggert@twinsun.com>
69332                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
69333                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
69334
69335 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69336
69337         * gnulib-tool (func_exit): New function, to allow to pass the
69338         exit status portably through the trap.  Use everywhere.
69339         (--help, --version): Signal a write error.
69340         (trap): catch SIGPIPE, for write errors.
69341         Exit at the end of the trap, with the correct exit status.
69342
69343 2006-09-19  Karl Berry  <karl@gnu.org>
69344
69345         * doc/gnulib.texi: note about the license texinfo files.
69346
69347 2006-09-19  Eric Blake  <ebb9@byu.net>
69348
69349         * gnulib-tool: Avoid space-tab.
69350
69351 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
69352
69353         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
69354         that prevented coreutils 6.1 from building.  Problem reported
69355         by Petter Reinholdtsen.
69356
69357 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
69358
69359         * gnulib-tool (avoidlist): Fix typo that broke options like
69360         --avoid=lock that are used by coreutils bootstrap.
69361
69362 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
69363
69364         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
69365         more systematically.
69366
69367 2006-09-18  Jim Meyering  <jim@meyering.net>
69368
69369         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
69370
69371 2006-09-18  Bruno Haible  <bruno@clisp.org>
69372
69373         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
69374
69375 2006-09-18  Bruno Haible  <bruno@clisp.org>
69376
69377         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
69378         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
69379         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
69380         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
69381         * m4/gettext.m4: Require autoconf >= 2.52.
69382         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
69383         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
69384         of gl_cv_header_inttypes_h.
69385
69386 2006-09-18  Bruno Haible  <bruno@clisp.org>
69387
69388         * lib/javaversion.c: Include configmake.h.
69389
69390 2006-09-18  Bruno Haible  <bruno@clisp.org>
69391
69392         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
69393         avoid that the while loops be executed in a subshell.
69394
69395 2006-09-18  Bruno Haible  <bruno@clisp.org>
69396
69397         * MODULES.html.sh (func_module): Break long lines.
69398         Suggested by Bruce Korb <bkorb@gnu.org>.
69399
69400 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69401
69402         Speed up by a factor of 1.12.
69403         * gnulib-tool (nl): New variable.
69404         (func_import): Rewrite include directive extraction to only read each
69405         directive once.
69406
69407 2006-09-17  Bruno Haible  <bruno@clisp.org>
69408
69409         * modules/javaversion (Makefile.am): Remove DEFS setting.
69410         (Depends-on): Add configmake, for PKGDATADIR definition.
69411
69412 2006-09-17  Bruno Haible  <bruno@clisp.org>
69413
69414         * gnulib-tool (func_create_testdir): Rewrite all files at once.
69415
69416 2006-09-17  Bruno Haible  <bruno@clisp.org>
69417
69418         * gnulib-tool (func_append): New function, stolen from libtool.m4.
69419         (func_modules_transitive_closure, func_modules_add_dummy,
69420         func_modules_to_filelist, func_import, func_create_testdir,
69421         func_create_megatestdir, ...): Use it wherever possible.
69422         Suggested by Ralf Wildenhues.
69423
69424 2006-09-16  Karl Berry  <karl@gnu.org>
69425
69426         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
69427         to avoid sectioning errors.
69428         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
69429         [ifinfo]: blank line after @center-ed titles.
69430         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
69431         Spell FSF address consistently with others.
69432         (These changes approved by rms.)
69433
69434 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69435
69436         Speed up by a factor of 1.61.
69437         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
69438         already checked module names again.
69439
69440 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69441
69442         Speed up by a factor of 1.13.
69443         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
69444         for new_files, and the input to func_add_or_update.
69445
69446 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69447
69448         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
69449         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
69450
69451 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69452
69453         * modules/mkancesdirs (Depends-on): Add fcntl.
69454         * modules/savewd: New file.
69455         * MODULES.html.sh (File system functions): Add savewd.
69456
69457         * modules/configmake (Makefile.am): Add support for the
69458         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
69459
69460 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69461
69462         * m4/savewd.m4: New file.
69463
69464 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
69465
69466         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
69467         (dirchownmod): New arg FD.  All callers changed.
69468         Use FD rather than opening the directory ourself, as opening is
69469         now the caller's responsibility.
69470         * lib/dirchownmod.h: Likewise.
69471         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
69472         hosts that require <sys/types.h> before <sys/stat.h>.  Include
69473         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
69474         (test_dir): Remove.
69475         (mkancesdirs): Return length of prefix of FILE that has already
69476         been made, or -2 if there is a child doing the work.  Redo
69477         algorithm so that it is O(N) rather than O(N**2).  Optimize away
69478         ".", and treat ".." specially since it might stray back into
69479         already-created areas.  Use a subprocess if necessary.  New arg
69480         WD; all users changed.  MAKE_DIR function should now return 1
69481         if it creates a directory that is not readable.  Return -2 if
69482         a child process is spun off.
69483         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
69484         Adjust signature to match code.
69485         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
69486         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
69487         all users changed.
69488         * lib/savewd.c, lib/savewd.h: New files.
69489
69490 2006-09-15  Jim Meyering  <jim@meyering.net>
69491
69492         * modules/rename-dest-slash: New module.
69493         * MODULES.html.sh (posix_compat): Add it here.
69494
69495         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
69496
69497 2006-09-15  Jim Meyering  <jim@meyering.net>
69498
69499         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
69500         file.
69501
69502         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
69503
69504 2006-09-15  Jim Meyering  <jim@meyering.net>
69505
69506         * lib/rename-dest-slash.c (has_trailing_slash): Use
69507         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
69508         (rpl_rename_dest_slash): Perform the cheaper trailing slash
69509         test before testing whether SRC is a directory.
69510         Suggestions from Bruno Haible.
69511
69512         Avoid a warning about an unused variable.
69513         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
69514         into the #ifdef block where it's used.
69515
69516         * lib/rename-dest-slash.c: New file.
69517
69518 2006-09-14  Bruno Haible  <bruno@clisp.org>
69519
69520         * lib/allocsa.c: Include <config.h> unconditionally.
69521         * lib/asnprintf.c: Likewise.
69522         * lib/asprintf.c: Likewise.
69523         * lib/c-strcasecmp.c: Likewise.
69524         * lib/c-strcasestr.c: Likewise.
69525         * lib/c-strncasecmp.c: Likewise.
69526         * lib/c-strstr.c: Likewise.
69527         * lib/classpath.c: Likewise.
69528         * lib/clean-temp.c: Likewise.
69529         * lib/concatpath.c: Likewise.
69530         * lib/copy-file.c: Likewise.
69531         * lib/csharpcomp.c: Likewise.
69532         * lib/csharpexec.c: Likewise.
69533         * lib/execute.c: Likewise.
69534         * lib/fatal-signal.c: Likewise.
69535         * lib/findprog.c: Likewise.
69536         * lib/fwriteerror.c: Likewise.
69537         * lib/gl_array_list.c: Likewise.
69538         * lib/gl_array_oset.c: Likewise.
69539         * lib/gl_avltree_list.c: Likewise.
69540         * lib/gl_avltree_oset.c: Likewise.
69541         * lib/gl_avltreehash_list.c: Likewise.
69542         * lib/gl_carray_list.c: Likewise.
69543         * lib/gl_linked_list.c: Likewise.
69544         * lib/gl_linkedhash_list.c: Likewise.
69545         * lib/gl_list.c: Likewise.
69546         * lib/gl_oset.c: Likewise.
69547         * lib/gl_rbtree_list.c: Likewise.
69548         * lib/gl_rbtree_oset.c: Likewise.
69549         * lib/gl_rbtreehash_list.c: Likewise.
69550         * lib/imaxabs.c: Likewise.
69551         * lib/imaxdiv.c: Likewise.
69552         * lib/javacomp.c: Likewise.
69553         * lib/javaexec.c: Likewise.
69554         * lib/javaversion.c: Likewise.
69555         * lib/linebreak.c: Likewise.
69556         * lib/localcharset.c: Likewise.
69557         * lib/lock.c: Likewise.
69558         * lib/mbchar.c: Likewise.
69559         * lib/mbswidth.c: Likewise.
69560         * lib/mkdtemp.c: Likewise.
69561         * lib/pipe.c: Likewise.
69562         * lib/printf-args.c: Likewise.
69563         * lib/printf-parse.c: Likewise.
69564         * lib/progname.c: Likewise.
69565         * lib/progreloc.c: Likewise.
69566         * lib/readlink.c: Likewise.
69567         * lib/sh-quote.c: Likewise.
69568         * lib/stpcpy.c: Likewise.
69569         * lib/stpncpy.c: Likewise.
69570         * lib/strcasecmp.c: Likewise.
69571         * lib/strcasestr.c: Likewise.
69572         * lib/strcspn.c: Likewise.
69573         * lib/striconv.c: Likewise.
69574         * lib/strncasecmp.c: Likewise.
69575         * lib/strnlen1.c: Likewise.
69576         * lib/strstr.c: Likewise.
69577         * lib/strtok_r.c: Likewise.
69578         * lib/tls.c: Likewise.
69579         * lib/tmpdir.c: Likewise.
69580         * lib/unicodeio.c: Likewise.
69581         * lib/unsetenv.c: Likewise.
69582         * lib/vasnprintf.c: Likewise.
69583         * lib/vasprintf.c: Likewise.
69584         * lib/wait-process.c: Likewise.
69585         * lib/xallocsa.c: Likewise.
69586         * lib/xsetenv.c: Likewise.
69587         * lib/xstriconv.c: Likewise.
69588
69589 2006-09-13  Simon Josefsson  <jas@extundo.com>
69590
69591         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
69592         that internally, suggested by Ralf Wildenhues
69593         <Ralf.Wildenhues@gmx.de>.
69594
69595 2006-09-13  Simon Josefsson  <jas@extundo.com>
69596
69597         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
69598         @LIBOBJS@.
69599         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69600
69601 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
69602
69603         * lib/_fpending.c: Include <config.h> unconditionally, since we no
69604         longer worry about uses that don't define HAVE_CONFIG_H.
69605         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
69606         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
69607         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
69608         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
69609         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
69610         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
69611         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
69612         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
69613         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
69614         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
69615         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
69616         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
69617         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
69618         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
69619         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
69620         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
69621         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
69622         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
69623         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
69624         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
69625         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
69626         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
69627         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
69628         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
69629         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
69630         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
69631         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
69632         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
69633         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
69634         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
69635         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
69636         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
69637         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
69638         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
69639         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
69640         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
69641         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
69642         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
69643         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
69644         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
69645         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
69646         Likewise.
69647
69648 2006-09-13  Eric Blake  <ebb9@byu.net>
69649
69650         * lib/getopt.c: Fix typo in last commit.
69651
69652 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
69653
69654         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
69655         dgettext.
69656
69657 2006-09-12  Jim Meyering  <jim@meyering.net>
69658
69659         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
69660         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
69661         Reported by Nelson H. F. Beebe.
69662
69663 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69664
69665         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
69666         program_invocation_name and program_invocation_short_name are
69667         initialized.
69668         * lib/argp-namefrob.h: Move declarations of program_invocation_name
69669         and program_invocation_short_name to argp.h, so they are visible
69670         to user programs.
69671         * lib/argp.h: Likewise
69672
69673 2006-09-10  Bruno Haible  <bruno@clisp.org>
69674
69675         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
69676         m4/inttypes_h.m4, m4/uintmax_t.m4.
69677
69678 2006-09-10  Bruno Haible  <bruno@clisp.org>
69679
69680         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
69681         gl_AC_TYPE_UINTMAX_T.
69682
69683 2006-09-10  Bruno Haible  <bruno@clisp.org>
69684
69685         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
69686
69687 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69688
69689         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
69690         convention.  Text proposed by Bruno Haible.
69691         (struct argp_option): Document the use of N_() wrappers.
69692
69693         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
69694         '\v', and translate the two parts separately, instead of feeding
69695         the whole string to gettext.  This allows to exclude
69696         '\v' from the strings visible to the translator by writing doc
69697         strings as N_("..") "\v" N_("..").
69698
69699 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
69700
69701         * config/srclist.txt: Undo latest change; the bug was fixed.
69702
69703 2006-09-09  Bruno Haible  <bruno@clisp.org>
69704
69705         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
69706         assignments if building a library without libtool.
69707         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
69708         in func_emit_lib_Makefile_am.
69709         (func_import): When building a static library libfoo.a, arrange to
69710         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
69711         (func_create_testdir): Likewise.
69712         * modules/gc (configure.ac, Makefile.am): If building statically,
69713         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
69714         * modules/iconvme (configure.ac, Makefile.am): Likewise.
69715         * modules/striconv (configure.ac, Makefile.am): Likewise.
69716         Based on a suggestion by Ralf Wildenhues.
69717
69718 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69719
69720         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
69721         Check for unistd.h too, since Autoconf doesn't assume POSIX.
69722         Also:
69723
69724         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69725         Add year_2050_test to catch glibc bug 2821
69726         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
69727
69728         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
69729         Prefer #ifdef to #if.
69730
69731         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
69732         Return from 'main' instead of calling 'exit'.
69733
69734 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69735
69736         * lib/mktime.c (guess_time_tm): Fix bug where mktime
69737         returned the maximum time_t value rather than (time_t) -1.
69738         Problem originally reported by William Bardwell
69739         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
69740
69741         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
69742         Moved to here ...
69743         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
69744         ... from here.
69745
69746 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
69747
69748         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
69749         2821 is fixed.
69750
69751 2006-09-08  Jim Meyering  <jim@meyering.net>
69752
69753         Don't make generated files read-only.  That would bother too many
69754         people.  However, do retain the ability to work when targets are
69755         read-only: remove the destination and temporary files before writing
69756         them (when generated via sed or echo), or by using the -f option for
69757         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
69758         * modules/alloca-opt, modules/argz, modules/arpa_inet:
69759         * modules/byteswap, modules/configmake, modules/fcntl:
69760         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
69761         * modules/localcharset, modules/netinet_in, modules/poll:
69762         * modules/stdbool, modules/stdint, modules/sys_select:
69763         * modules/sys_socket, modules/sys_stat, modules/sysexits:
69764
69765 2006-09-08  Jim Meyering  <jim@meyering.net>
69766
69767         Avoid new build failure on FreeBSD 6.0.
69768         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
69769         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
69770         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
69771
69772 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69773
69774         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
69775
69776 2006-09-07  Jim Meyering  <jim@meyering.net>
69777
69778         Fix global typo in last change: use chmod u-w, not chmod u-x.
69779         Spotted by Paul Eggert and Bruce Korb.
69780         * modules/alloca-opt, modules/argz, modules/arpa_inet:
69781         * modules/byteswap, modules/configmake, modules/fcntl:
69782         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
69783         * modules/localcharset, modules/netinet_in, modules/poll:
69784         * modules/stdbool, modules/stdint, modules/sys_select:
69785         * modules/sys_socket, modules/sys_stat, modules/sysexits:
69786
69787 2006-09-06  Jim Meyering  <jim@meyering.net>
69788
69789         Make generated files be read-only.
69790         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
69791         Ensure that each generated file is now read-only.
69792         * modules/argz: Likewise.
69793         * modules/arpa_inet: Likewise.
69794         * modules/byteswap: Likewise.
69795         * modules/configmake: Likewise.
69796         * modules/fcntl: Likewise.
69797         * modules/fnmatch: Likewise.
69798         * modules/getopt: Likewise.
69799         * modules/glob: Likewise.
69800         * modules/inttypes: Likewise.
69801         * modules/netinet_in: Likewise.
69802         * modules/poll: Likewise.
69803         * modules/stdbool: Likewise.
69804         * modules/stdint: Likewise.
69805         * modules/sys_select: Likewise.
69806         * modules/sys_socket: Likewise.
69807         * modules/sys_stat: Likewise.
69808         * modules/sysexits: Likewise.
69809         * modules/localcharset: Same as above, but continue using temporary
69810         file named "t-$@" (why different?) rather than the "$@-t" used
69811         everywhere else.
69812
69813         * modules/sysexits (Makefile.am): Replace literal occurrences
69814         of "sysexit.h" more readable, and more consistent, "$@".
69815
69816 2006-09-06  Bruno Haible  <bruno@clisp.org>
69817
69818         * modules/striconv: New file.
69819         * modules/xstriconv: New file.
69820         * MODULES.html.sh (Internationalization functions): Add striconv,
69821         xstriconv.
69822
69823 2006-09-06  Bruno Haible  <bruno@clisp.org>
69824
69825         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
69826         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
69827         not using libtool correctly.
69828
69829 2006-09-06  Bruno Haible  <bruno@clisp.org>
69830
69831         * lib/striconv.h: New file.
69832         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
69833         iconvstring.c.
69834         * lib/xstriconv.h: New file.
69835         * lib/xstriconv.c: New file.
69836
69837 2006-09-06  Bruno Haible  <bruno@clisp.org>
69838
69839         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
69840         lib_..._LDFLAGS.
69841
69842 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69843
69844         * lib/argz_.h: Sync from Libtool.
69845
69846         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
69847                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
69848
69849         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
69850
69851 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
69852
69853         * modules/trim: New file.
69854
69855 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
69856
69857         * lib/trim.h: New file.
69858         * lib/trim.c: New file.
69859
69860 2006-09-05  Bruno Haible  <bruno@clisp.org>
69861
69862         * MODULES.html.sh (String handling): Add trim.
69863
69864 2006-09-04  Karl Berry  <karl@gnu.org>
69865
69866         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
69867         until next release.
69868
69869 2006-09-03  Bruno Haible  <bruno@clisp.org>
69870
69871         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
69872         correctly.
69873
69874 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69875
69876         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
69877         not gl_GETLOADAVG.  Omit unneeded semicolons.
69878         Problems reported by Ralf Wildenhues in
69879         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
69880         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
69881         at the end, which is the usual gnulib style.
69882
69883         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
69884         of doing all the work ourselves.
69885         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
69886         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
69887
69888 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69889
69890         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
69891         Problem reported by Ralf Wildenhues in
69892         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
69893
69894         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
69895         HAVE_STRUCT_STATFS_F_FSTYPENAME.
69896
69897 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
69898
69899         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
69900         yesterday's patch by changing test -n to test -z.
69901
69902 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69903
69904         * modules/getloadavg (Files): Add m4/getloadavg.m4.
69905         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
69906         the former is now obsolescent.
69907
69908         * modules/chdir-long (Depends-on): Add fcntl.
69909
69910 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69911
69912         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
69913         obsolescent, and programs should use gnulib instead.
69914         * m4/getloadavg.m4: New file, with contents taken from Autoconf
69915         but with prefixes changed.
69916
69917 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
69918
69919         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
69920         or stdbool.h, because they might not exist while configuring.
69921
69922         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
69923         Don't include unistd.h or limits.h; not needed, since chdir-long.h
69924         does that for us.
69925         (O_DIRECTORY): Remove.
69926
69927 2006-08-31  Eric Blake  <ebb9@byu.net>
69928
69929         * gnulib-tool: Don't let emacs change spaces to TAB.
69930
69931 2006-08-31  Bruno Haible  <bruno@clisp.org>
69932
69933         * gnulib-tool: When calling func_import more than once, do it in a
69934         subshell.
69935         Reported by Eric Blake <ebb9@byu.net>.
69936
69937 2006-08-31  Bruno Haible  <bruno@clisp.org>
69938
69939         * gnulib-tool (nl): Remove variable.
69940         (sed_transform_lib_file): Use more robust test for config-h module.
69941         (func_import): Fix typo in 2006-08-25 patch.
69942
69943 2006-08-31  Bruno Haible  <bruno@clisp.org>
69944
69945         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
69946         specified, augment Makefile.am variables instead of assigning them.
69947
69948 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69949
69950         Work around a bug in both the Linux and SunOS 64-bit kernels:
69951         nanosleep mishandles sleeps for longer than 2**31 seconds.
69952         Problem reported by Frank v Waveren in
69953         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69954         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
69955         Check for nanosleep bug.
69956         (LIB_NANOSLEEP): Append clock_gettime library if needed.
69957
69958 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69959
69960         Work around a bug in both the Linux and SunOS 64-bit kernels:
69961         nanosleep mishandles sleeps for longer than 2**31 seconds.
69962         Problem reported by Frank v Waveren in
69963         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
69964         * lib/nanosleep.c (BILLION): New constant.
69965         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
69966         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
69967         implementation.
69968
69969 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69970
69971         * modules/nanosleep (Depends-on): Add gettime.
69972
69973 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
69974         and Simon Josefsson  <jas@extundo.com>
69975         and Oskar Liljeblad  <oskar@osk.mine.nu>
69976
69977         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
69978         * gnulib-tool (func_import): New license type 'unmodifiable license
69979         text'.
69980         * modules/fdl: Use it.  Longer description.
69981         * module/gpl, module/lgpl: New files.
69982
69983 2006-08-30  Jim Meyering  <jim@meyering.net>
69984
69985         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
69986         shadowing the parameter.
69987
69988 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69989
69990         Sync from Libtool:
69991
69992         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69993
69994         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
69995         sharing with gnulib.  Report by Eric Blake.
69996
69997 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
69998
69999         * modules/isapipe: New file.
70000         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
70001
70002 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70003
70004         * modules/configmake (Makefile.am): Add a comment, and omit
70005         the CONFIGMAKE_ prefix from generated macro names.  Suggested
70006         by Bruno Haible.
70007
70008 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70009
70010         * m4/isapipe.m4: New file.
70011
70012 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70013
70014         * lib/isapipe.c, lib/isapipe.h: New files.
70015
70016 2006-08-29  Jim Meyering  <jim@meyering.net>
70017
70018         * modules/configmake (Makefile.am): Make configmake.h depend on
70019         Makefile.  Otherwise, a stale configmake.h could hang around.
70020
70021 2006-08-29  Eric Blake  <ebb9@byu.net>
70022
70023         * lib/error.c (error_at_line, print_errno_message): Match libc, after
70024         resolution of upstream bug 3044.
70025
70026 2006-08-29  Bruno Haible  <bruno@clisp.org>
70027
70028         * modules/localcharset (Depends-on): Add configmake.
70029         (Makefile.am): Remove setting of LIBDIR through DEFS.
70030
70031 2006-08-29  Bruno Haible  <bruno@clisp.org>
70032
70033         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
70034         defined.
70035
70036 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70037
70038         * modules/fcntl: New file.
70039         * modules/chdir-safer (Depends-on): Add fcntl.
70040         * modules/fts: Likewise.
70041         * modules/mkdir-p: Likewise.
70042
70043         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
70044         This undoes the most recent change, since we're now addressing the
70045         problem in a different way.
70046
70047         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
70048         into output, since the output might be called Makefile.am even
70049         if $makefile_name is something different.
70050         (func_import): Use $makefile_am rather than
70051         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
70052         empty.
70053
70054         * modules/inttypes (Files): Add m4/inttypes-h.m4.
70055
70056 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70057
70058         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
70059         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
70060         recent change to stdint.m4, since we're now addressing the problem in a
70061         different way.
70062
70063 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70064
70065         * m4/fcntl_h.m4: New file.
70066
70067 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70068
70069         * lib/fcntl_.h: New file.
70070         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
70071         the fcntl module.
70072         * lib/dirchownmod.c: Likewise.
70073         * lib/fts.c: Likewise.
70074
70075         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
70076         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
70077         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
70078         just before including <inttypes.h>, to avoid circular inclusion.
70079
70080 2006-08-28  Jim Meyering  <jim@meyering.net>
70081
70082         * doc/visibility.texi: Actually read and correct the grammar of the
70083         sentence affected by yesterday's change.
70084
70085 2006-08-28  Eric Blake  <ebb9@byu.net>
70086
70087         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
70088         needs wrapper.
70089
70090 2006-08-28  Eric Blake  <ebb9@byu.net>
70091
70092         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
70093
70094 2006-08-28  Eric Blake  <ebb9@byu.net>
70095
70096         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
70097
70098 2006-08-28  Bruno Haible  <bruno@clisp.org>
70099
70100         * modules/c-strstr: New file, from GNU gettext.
70101         * MODULES.html.sh (String handling): Add c-strstr.
70102
70103 2006-08-28  Bruno Haible  <bruno@clisp.org>
70104
70105         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
70106         macros.
70107         Reported by Eric Blake.
70108
70109 2006-08-28  Bruno Haible  <bruno@clisp.org>
70110
70111         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
70112         (VASNPRINTF): Return a string of length > INT_MAX without failing.
70113         * lib/vasprintf.c: Include errno.h, limits.h.
70114         (EOVERFLOW): New fallback definition.
70115         (vasprintf): Test here whether the string length is > INT_MAX.
70116         * lib/vsnprintf.c: Include errno.h, limits.h.
70117         (EOVERFLOW): New fallback definition.
70118         (vsnprintf): Fix bug when generated string was too long for the buffer.
70119         Test here whether the string length is > INT_MAX.
70120
70121 2006-08-28  Bruno Haible  <bruno@clisp.org>
70122
70123         * lib/inttypes_.h (SCNX*): Remove definitions.
70124         Reported by Eric Blake.
70125
70126 2006-08-28  Bruno Haible  <bruno@clisp.org>
70127
70128         * lib/c-strstr.h: New file, from GNU gettext.
70129         * lib/c-strstr.c: New file, from GNU gettext.
70130
70131 2006-08-28  Bruno Haible  <bruno@clisp.org>
70132
70133         * gnulib-tool: Reorder some statements.
70134
70135 2006-08-28  Bruno Haible  <bruno@clisp.org>
70136
70137         * gnulib-tool: New option --makefile-name.
70138         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
70139         $makefile_name.
70140         (func_import): Write $makefile_name to the cache file, and read it from
70141         there unless explicitly specified. Use $makefile_name as file name
70142         instead of Makefile.am. Adjust the recommendations accordingly.
70143
70144 2006-08-28  Bruno Haible  <bruno@clisp.org>
70145
70146         * gnulib-tool (func_verify_module): Check against misapplying patch.
70147
70148 2006-08-28  Bruno Haible  <bruno@clisp.org>
70149
70150         * gnulib-tool (func_relativize, func_relconcat): New functions.
70151         Give an error if --local-dir is given with --update.
70152         Remove trailing slashes from $local_gnulib_dir.
70153         (func_import): Store the relativized $local_gnulib_dir in
70154         gnulib-cache.m4, and read it from there if not specified explicitly.
70155
70156 2006-08-28  Bruno Haible  <bruno@clisp.org>
70157
70158         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
70159         is the current directory. Respect also $local_gnulib_dir.
70160
70161 2006-08-28  Bruno Haible  <bruno@clisp.org>
70162             Simon Josefsson  <jas@extundo.com>
70163
70164         BeOS portability.
70165         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
70166
70167 2006-08-27  Jim Meyering  <jim@meyering.net>
70168
70169         * doc/visibility.texi: Remove duplicate word: "pointer".
70170
70171 2006-08-26  Bruno Haible  <bruno@clisp.org>
70172
70173         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
70174         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
70175         (Makefile.am): Create inttypes.h from inttypes_.h.
70176         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
70177
70178         * modules/imaxabs: New file.
70179
70180         * modules/imaxdiv: New file.
70181
70182 2006-08-26  Bruno Haible  <bruno@clisp.org>
70183
70184         * m4/inttypes.m4: New file.
70185         * m4/_inttypes_h.m4: Remove file.
70186         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
70187         PRI_MACROS_BROKEN.
70188         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
70189
70190         * m4/imaxabs.m4: New file.
70191
70192         * m4/imaxdiv.m4: New file.
70193
70194 2006-08-26  Bruno Haible  <bruno@clisp.org>
70195
70196         * lib/inttypes_.h: New file.
70197         * lib/inttypes.h: Remove file.
70198         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
70199
70200         * lib/imaxabs.c: New file.
70201
70202         * lib/imaxdiv.c: New file.
70203
70204 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70205
70206         New config-h module, so that "make" output needn't be cluttered
70207         by -DHAVE_CONFIG_H.
70208         * MODULES.html.sh (Support for building libraries and executables):
70209         Add config-h.
70210         * modules/config-h: New file.
70211         * gnulib-tool (nl, sed_transform_lib_file): New vars.
70212         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
70213         the config-h module is used.
70214
70215         New configmake module, so that "make" output needn't be cluttered
70216         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
70217         * MODULES.html.sh (Support for building libraries and executables):
70218         Add configmake.
70219         * modules/configmake: New file.
70220
70221 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
70222
70223         * m4/config-h.m4: New file.
70224
70225 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70226
70227         * config/srclist.txt: Add elisp-comp.
70228
70229 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
70230
70231         * MODULES.html.sh (Support for building libraries and executables):
70232         Add elisp-comp.
70233         * build-aux/elisp-comp: New file.
70234         * modules/elisp-comp: New file.
70235
70236 2006-08-24  Bruno Haible  <bruno@clisp.org>
70237
70238         * gnulib-tool (func_create_testdir): Use non-default values of
70239         sourcebase and m4base.
70240
70241 2006-08-24  Bruno Haible  <bruno@clisp.org>
70242
70243         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
70244         HTML structure.
70245
70246 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
70247
70248         * modules/openat (Depends-on): Add lchown.
70249
70250 2006-08-23  Bruno Haible  <bruno@clisp.org>
70251
70252         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
70253         of gl_LOCK_EARLY instead of gl_LOCK.
70254
70255 2006-08-23  Bruno Haible  <bruno@clisp.org>
70256
70257         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
70258         on OSF/1 to no.
70259         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
70260
70261 2006-08-23  Bruno Haible  <bruno@clisp.org>
70262
70263         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
70264         as unusable.
70265
70266         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
70267         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
70268         (gl_LOCK): New macro.
70269
70270 2006-08-22  Simon Josefsson  <jas@extundo.com>
70271
70272         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
70273         to md5 module.
70274
70275 2006-08-22  Simon Josefsson  <jas@extundo.com>
70276
70277         * MODULES.html.sh: Add "Support for maintaining and release
70278         projects".
70279
70280         * build-aux/gnupload: New file, from coreutils.
70281
70282 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70283
70284         Avoid the need for AC_LIBSOURCES in m4 macros.
70285         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
70286         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
70287         * modules/check-version (EXTRA_DIST): Add check-version.h.
70288         * modules/crc (EXTRA_DIST): Add crc.h.
70289         * modules/des (EXTRA_DIST): Add des.h.
70290         * modules/gc (EXTRA_DIST): Add gc.h.
70291         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
70292         * modules/getline (EXTRA_DIST): Add getline.h.
70293         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
70294         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
70295         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
70296         * modules/md2 (EXTRA_DIST): Add md2.h.
70297         * modules/md4 (EXTRA_DIST): Add md4.h.
70298         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
70299         * modules/read-file (EXTRA_DIST): Add read-file.h.
70300         * modules/readline (EXTRA_DIST): Add readline.h.
70301         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
70302         rijndael-api-fst.h.
70303
70304 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70305
70306         * m4/rijndael.m4 (gl_ARCFOUR):
70307         * m4/arctwo.m4 (gl_ARCTWO):
70308         * m4/check-version.m4 (gl_CHECK_VERSION):
70309         * m4/crc.m4 (gl_CRC):
70310         * m4/des.m4 (gl_DES):
70311         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
70312         * m4/gc.m4 (gl_GC):
70313         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
70314         * m4/getline.m4 (gl_FUNC_GETLINE):
70315         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
70316         * m4/hmac-md5.m4 (gl_HMAC_MD5):
70317         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
70318         * m4/md2.m4 (gl_MD2):
70319         * m4/md4.m4 (gl_MD4):
70320         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
70321         * m4/read-file.m4 (gl_FUNC_READ_FILE):
70322         * m4/readline.m4 (gl_FUNC_READLINE):
70323         * m4/rijndael.m4 (gl_RIJNDAEL):
70324         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
70325         to get the necessary .h files and whatnot.
70326
70327 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
70328
70329         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
70330         gnulib rather than the other way around.
70331         * config/srclistvars.sh (COREUTILS): Remove.
70332
70333 2006-08-22  Jim Meyering  <jim@meyering.net>
70334
70335         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
70336
70337         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
70338
70339 2006-08-22  Eric Blake  <ebb9@byu.net>
70340
70341         * modules/regexprops-generic: New file.
70342         * MODULES.html.sh (Support for building documentation): List it.
70343
70344 2006-08-22  Eric Blake  <ebb9@byu.net>
70345
70346         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
70347         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
70348         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
70349         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
70350
70351 2006-08-22  Bruno Haible  <bruno@clisp.org>
70352
70353         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
70354         and lib_LTLIBRARIES like the other lib_* variables.
70355
70356 2006-08-22  Bruno Haible  <bruno@clisp.org>
70357
70358         * build-aux/x-to-1.in: New file, from GNU gettext.
70359
70360 2006-08-22  Bruno Haible  <bruno@clisp.org>
70361
70362         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
70363         <utmpx.h> exists.
70364
70365 2006-08-22  Bruno Haible  <bruno@clisp.org>
70366
70367         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
70368         <utmpx.h> exists.
70369
70370 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70371
70372         BeOS portability.
70373         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
70374         exist.
70375         Problem reported by Bruno Haible.
70376
70377 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70378
70379         Avoid the need for AC_LIBSOURCES in m4 macros.
70380         * modules/acl (EXTRA_DIST): Add acl.h.
70381         * modules/argmatch (Files): Add m4/argmatch.m4.
70382         (configure.ac): Add gl_ARGMATCH.
70383         (EXTRA_DIST): Renamed from lib_SOURCES, for
70384         consistency with the other modules.  Remove argmatch.c.
70385         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
70386         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
70387         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
70388         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
70389         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
70390         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
70391         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
70392         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
70393         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
70394         * modules/closeout (EXTRA_DIST): Add closeout.h.
70395         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
70396         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
70397         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
70398         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
70399         dirname.h; remove basename.c and stripslash.c.
70400         * modules/exclude (EXTRA_DIST): Add exclude.h.
70401         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
70402         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
70403         * modules/file-type (EXTRA_DIST): Add file-type.h.
70404         * modules/filemode (EXTRA_DIST): Add filemode.h.
70405         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
70406         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
70407         * modules/fpending (EXTRA_DIST): Add __fpending.h.
70408         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
70409         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
70410         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
70411         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
70412         * modules/getdate (EXTRA_DIST): Add getdate.c.
70413         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
70414         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
70415         * modules/getpass (EXTRA_DIST): Add getpass.h.
70416         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
70417         * modules/group-member (EXTRA_DIST): Add group-member.h.
70418         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
70419         * modules/hash (EXTRA_DIST): Add hash.h.
70420         * modules/human (EXTRA_DIST): Add human.h.
70421         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
70422         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
70423         * modules/lchown (EXTRA_DIST): Add lchown.h.
70424         * modules/long-options (EXTRA_DIST): Add long-options.h.
70425         * modules/lstat (EXTRA_DIST): Add lstat.h.
70426         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
70427         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
70428         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
70429         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
70430         * modules/memxor (EXTRA_DIST): Add memxor.h.
70431         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
70432         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
70433         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
70434         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
70435         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
70436         * modules/physmem (EXTRA_DIST): Add physmem.h.
70437         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
70438         * modules/posixver (EXTRA_DIST): Add posixver.h.
70439         * modules/quote (EXTRA_DIST): Add quote.h.
70440         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
70441         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
70442         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
70443         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
70444         regex_internal.h regexec.c.
70445         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
70446         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
70447         * modules/same (EXTRA_DIST): Add same.h.
70448         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
70449         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
70450         * modules/savedir (EXTRA_DIST): Add savedir.h.
70451         * modules/sha1 (EXTRA_DIST): Add sha1.h.
70452         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
70453         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
70454         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
70455         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
70456         * modules/strdup (EXTRA_DIST): Add strdup.h.
70457         * modules/strftime (EXTRA_DIST): Add strftime.h.
70458         * modules/strndup (EXTRA_DIST): Add strndup.h.
70459         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
70460         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
70461         * modules/time_r (EXTRA_DIST): Add time_r.h.
70462         * modules/timespec (EXTRA_DIST): Add timespec.h.
70463         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
70464         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
70465         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
70466         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
70467         * modules/userspec (EXTRA_DIST): Add userspec.h.
70468         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
70469         * modules/utimens (EXTRA_DIST): Add utimens.h.
70470         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
70471         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
70472         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
70473         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
70474         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
70475         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
70476         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
70477         * modules/yesno (EXTRA_DIST): Add yesno.h.
70478
70479 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
70480
70481         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
70482
70483         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
70484         * m4/dev-ino.m4, same-inode.m4: Remove.
70485
70486         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
70487         * m4/acl.m4 (AC_FUNC_ACL):
70488         * m4/backupfile.m4 (gl_BACKUPFILE):
70489         * m4/c-strtod.m4 (gl_C99_STRTOLD):
70490         * m4/canon-host.m4 (gl_CANON_HOST):
70491         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
70492         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
70493         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
70494         * m4/cloexec.m4 (gl_CLOEXEC):
70495         * m4/close-stream.m4 (gl_CLOSE_STREAM):
70496         * m4/closeout.m4 (gl_CLOSEOUT):
70497         * m4/dirfd.m4 (gl_FUNC_DIRFD):
70498         * m4/dirname.m4 (gl_DIRNAME):
70499         * m4/exclude.m4 (gl_EXCLUDE):
70500         * m4/exitfail.m4 (gl_EXITFAIL):
70501         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
70502         * m4/file-type.m4 (gl_FILE_TYPE):
70503         * m4/filemode.m4 (gl_FILEMODE):
70504         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
70505         * m4/fpending.m4 (gl_FUNC_FPENDING):
70506         * m4/fprintftime.m4 (gl_FPRINTFTIME):
70507         * m4/fts.m4 (gl_FUNC_FTS):
70508         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
70509         * m4/getdate.m4 (gl_GETDATE):
70510         * m4/gethrxtime.m4 (gl_GETHRXTIME):
70511         * m4/getpagesize.m4 (gl_GETPAGESIZE):
70512         * m4/getpass.m4 (gl_FUNC_GETPASS):
70513         * m4/gettime.m4 (gl_GETTIME):
70514         * m4/getugroups.m4 (gl_GETUGROUPS):
70515         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
70516         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
70517         * m4/hard-locale.m4 (gl_HARD_LOCALE):
70518         * m4/hash.m4 (gl_HASH):
70519         * m4/idcache.m4 (gl_IDCACHE):
70520         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
70521         * m4/lchown.m4 (gl_FUNC_LCHOWN):
70522         * m4/long-options.m4 (gl_LONG_OPTIONS):
70523         * m4/lstat.m4 (gl_FUNC_LSTAT):
70524         * m4/md5.m4 (gl_MD5):
70525         * m4/memcasecmp.m4 (gl_MEMCASECMP):
70526         * m4/memcoll.m4 (gl_MEMCOLL):
70527         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
70528         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
70529         * m4/memxor.m4 (gl_MEMXOR):
70530         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
70531         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
70532         * m4/modechange.m4 (gl_MODECHANGE):
70533         * m4/mountlist.m4 (gl_MOUNTLIST):
70534         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70535         * m4/openat.m4 (gl_FUNC_OPENAT):
70536         * m4/pathmax.m4 (gl_PATHMAX):
70537         * m4/physmem.m4 (gl_PHYSMEM):
70538         * m4/posixtm.m4 (gl_POSIXTM):
70539         * m4/posixver.m4 (gl_POSIXVER):
70540         * m4/quote.m4 (gl_QUOTE):
70541         * m4/quotearg.m4 (gl_QUOTEARG):
70542         * m4/readtokens.m4 (gl_READTOKENS):
70543         * m4/readutmp.m4 (gl_READUTMP):
70544         * m4/regex.m4 (gl_REGEX):
70545         * m4/safe-read.m4 (gl_SAFE_READ):
70546         * m4/safe-write.m4 (gl_SAFE_WRITE):
70547         * m4/same.m4 (gl_SAME):
70548         * m4/save-cwd.m4 (gl_SAVE_CWD):
70549         * m4/savedir.m4 (gl_SAVEDIR):
70550         * m4/settime.m4 (gl_SETTIME):
70551         * m4/sha1.m4 (gl_SHA1):
70552         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
70553         * m4/stat-macros.m4 (gl_STAT_MACROS):
70554         * m4/stat-time.m4 (gl_STAT_TIME):
70555         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
70556         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
70557         * m4/strdup.m4 (gl_FUNC_STRDUP):
70558         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
70559         * m4/strndup.m4 (gl_FUNC_STRNDUP):
70560         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
70561         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
70562         * m4/time_r.m4 (gl_TIME_R):
70563         * m4/timespec.m4 (gl_TIMESPEC):
70564         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
70565         * m4/unlinkdir.m4 (gl_UNLINKDIR):
70566         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
70567         * m4/userspec.m4 (gl_USERSPEC):
70568         * m4/utimecmp.m4 (gl_UTIMECMP):
70569         * m4/utimens.m4 (gl_UTIMENS):
70570         * m4/xalloc.m4 (gl_XALLOC):
70571         * m4/xgetcwd.m4 (gl_XGETCWD):
70572         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
70573         * m4/xreadlink.m4 (gl_XREADLINK):
70574         * m4/xstrtod.m4 (gl_XSTRTOD):
70575         * m4/yesno.m4 (gl_YESNO):
70576         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
70577         to get the necessary .h files and whatnot.
70578
70579 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
70580             Bruno Haible  <bruno@clisp.org>
70581
70582         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
70583         /bin/sh understanding of '!' conditional negation.
70584
70585 2006-08-21  Jim Meyering  <jim@meyering.net>
70586
70587         * modules/openat (Depends-on): Really alphabetize.
70588
70589         * modules/acl (Depends-on): Add error and quote.
70590
70591         * check-module (find_included_lib_files): Add at-func.c to the
70592         ok-to-include-more-than-once white list.
70593
70594         * modules/openat (Depends-on): Add lstat.  Alphabetize.
70595
70596 2006-08-21  Bruno Haible  <bruno@clisp.org>
70597
70598         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70599         Emit a pkgdata_DATA variable only if some snippets add contents to it.
70600         Reported by Martin Lambers <marlam@marlam.de>.
70601
70602 2006-08-21  Bruno Haible  <bruno@clisp.org>
70603
70604         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
70605         specify an installation location, don't emit a noinst_LIBRARIES or
70606         noinst_LTLIBRARIES assignment.
70607
70608 2006-08-21  Bruno Haible  <bruno@clisp.org>
70609
70610         BeOS portability.
70611         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
70612         BeOS has mbrtowc() but no <wctype.h>.
70613
70614 2006-08-21  Bruno Haible  <bruno@clisp.org>
70615
70616         BeOS portability.
70617         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
70618         exist.
70619
70620 2006-08-21  Bruno Haible  <bruno@clisp.org>
70621
70622         BeOS portability.
70623         * lib/mbchar.h: Include <wctype.h> only if it exists.
70624
70625 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70626
70627         Remove files that are no longer needed by their respective modules.
70628         * m4/obstack.m4: Remove.
70629         * m4/strerror_r.m4: Remove.
70630         * m4/uint32_t.m4: Remove.
70631         * m4/uintptr_t.m4: Remove.
70632         * m4/ullong_max.m4: Remove.
70633         * m4/xstrtoimax.m4: Remove.
70634         * m4/xstrtoumax.m4: Remove.
70635
70636         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
70637         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
70638         dependencies now capture this.
70639
70640         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
70641         Do not use AC_LIBSOURCES, since gnulib modules now do this.
70642         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
70643         * m4/human.m4 (gl_HUMAN): Likewise.
70644         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
70645         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
70646
70647         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
70648
70649         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
70650         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
70651         stdint.
70652         * m4/human.m4 (gl_HUMAN): Likewise.
70653         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
70654         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
70655         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
70656         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
70657         * m4/xstrtol (gl_XSTRTOL): Likewise.
70658
70659         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
70660         AC_TYPE_LONG_LONG_INT.
70661         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
70662         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
70663         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
70664         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
70665
70666         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
70667         on stdbool.
70668
70669         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
70670         (gl_PREREQ_XSTRTOUL): Remove.
70671
70672         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
70673
70674         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
70675         mode.
70676
70677 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70678
70679         Add and change modules to make it easier for coreutils to use
70680         gnulib-tool.
70681         * modules/backupfile (Files): Remove m4/d-ino.m4.
70682         (Depends-on): Add d-ino.
70683         * modules/cycle-check (Depends-on): Add stdint.
70684         (lib_SOURCES): Add cycle-check.h.
70685         * modules/d-ino: New module.
70686         * modules/d-type: New module.
70687         * modules/error (Files): Remove m4/strerror_r.m4.
70688         * modules/filemode (Files): Add m4/st_dm_mode.m4.
70689         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
70690         m4/inttypes_h.m4, m4/uintmax_t.m4.
70691         (Depends-on): Add stdint.
70692         (lib_SOURCES): Add fsusage.h.
70693         * modules/getcwd (Files): Remove d-ino.m4.
70694         (Depends-on): Add d-ino.
70695         * modules/getndelim2 (Depends-on): Add stdint.
70696         * modules/glob (Files): Remove m4/d-type.m4.
70697         (Depends-on): Add d-type.
70698         * modules/host-os: New module.
70699         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
70700         m4/inttypes_h.m4, m4/uintmax_t.m4.
70701         * Depends-on: Add stdint.
70702         (lib_SOURCES): Add human.h.
70703         * modules/inttostr (Files): Remove m4/intmax_t.m4,
70704         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
70705         m4/uintmax_t.m4, m4/ulonglong.m4.
70706         (Depends-on): Add stdint.
70707         (EXTRA_DIST): Add inttostr.h.
70708         * modules/lchmod: New module.
70709         * modules/link-follow: New module.
70710         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
70711         (Depends-on): Add lchmod.
70712         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
70713         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
70714         (Depends-on): Add stdint.
70715         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
70716         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
70717         (Depends-on): Add stdint.
70718         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
70719         * modules/perl: New module.
70720         * modules/regex (Depends-on): Add stdint.
70721         * modules/rmdir-errno: New module.
70722         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
70723         m4/intmax_t.m4.
70724         (Depends-on): Add stdint.
70725         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
70726         m4/uintmax_t.m4.
70727         (Depends-on): Add stdint.
70728         * modules/unlink-busy: New module.
70729         * modules/utimecmp (Depends-on): Add stdint.
70730         * modules/uptime: New module.
70731         * modules/winsz-ioctl: New module.
70732         * modules/winsz-termios: New module.
70733         * modules/xnanosleep (Depends-on): Add nanosleep.
70734         * modules/ullong_max: Remove.
70735         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
70736         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
70737         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
70738         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
70739         (Depends-on): Add inttypes.
70740         (lib_SOURCES): Add xstrtol.h.
70741         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
70742         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
70743         * MODULES.html.sh: Move 'assert' into the assert section.
70744         Move 'dummy' into the linking section.
70745         Remove ullong_max.
70746         Add section for compatibility checks for POSIX:2001 functions,
70747         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
70748         winsz-ioctl, and winsz-termios into it.
70749         Add lchmod.
70750         Add top-level Misc section and put host-os, perl, and uptime
70751         into it.
70752
70753 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
70754
70755         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
70756         now assume the stdint module.  Do not include inttypes.h.
70757         * lib/fsusage.h: Likewise.
70758         * lib/getndelim2.c: Likewise.
70759         * lib/human.h: Likewise.
70760         * lib/inttostr.h: Likewise.
70761         * lib/obstack.c: Likewise.
70762         * lib/regex_internal.h: Likewise.
70763         * lib/tempname.c: Likewise.
70764         * lib/utimecmp.c: Likewise.
70765         * lib/xstrtol.h: Likewise.
70766
70767         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
70768
70769         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
70770         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
70771         * lib/xtime.h: Likewise.
70772
70773 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70774
70775         * modules/openat (Files): Add lib/fchmodat.c.
70776         Fixes problem reported by Jay Youngman.
70777
70778 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
70779
70780         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
70781         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
70782
70783 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
70784             Bruno Haible  <bruno@clisp.org>
70785
70786         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
70787         and is a script that invokes bison. Tighten the code. Add comments.
70788
70789 2006-08-18  Jim Meyering  <jim@meyering.net>
70790
70791         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
70792         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
70793         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
70794         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
70795
70796 2006-08-18  Bruno Haible  <bruno@clisp.org>
70797
70798         * modules/bison-i18n: New file.
70799         * MODULES.html.sh (Internationalization functions): Add it.
70800
70801 2006-08-18  Bruno Haible  <bruno@clisp.org>
70802
70803         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
70804         sys/statvfs.h. When getmntinfo was found, check its declaration and
70805         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
70806
70807 2006-08-18  Bruno Haible  <bruno@clisp.org>
70808
70809         * m4/bison-i18n.m4: New file, from bison.
70810
70811 2006-08-18  Bruno Haible  <bruno@clisp.org>
70812
70813         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
70814         (ME_DUMMY): Treat "kernfs" as a dummy.
70815         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
70816
70817 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70818
70819         Update from coreutils.
70820
70821         2006-08-15  Jim Meyering  <jim@meyering.net>
70822
70823         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
70824
70825         2006-01-17  Jim Meyering  <jim@meyering.net>
70826
70827         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
70828
70829         2006-01-11  Jim Meyering  <jim@meyering.net>
70830
70831         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
70832         Check for the lchmod function.
70833
70834 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
70835
70836         Update from coreutils.
70837
70838         * lib/__fpending.h: Add copyright notice.
70839         * lib/fprintftime.h: Likewise.
70840         * lib/savedir.c: Use (C) in copyright notice.
70841         * lib/savedir.h: Likewise.
70842
70843         2006-08-15  Jim Meyering  <jim@meyering.net>
70844
70845         * lib/at-func.c: New file, with the logic of all emulated at-functions.
70846         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
70847         in support of the EXPECTED_ERRNO macro.
70848         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
70849         definitions.  Instead, define the appropriate symbols and include
70850         "at-func.c".
70851         * lib/mkdirat.c (mkdirat): Likewise.
70852         * lib/fchmodat.c (fchmodat): Likewise.
70853         (ENOSYS): Remove definition.
70854         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
70855         it.  Don't include "unistd--.h" -- it wasn't ever used.
70856
70857         2006-01-17  Jim Meyering  <jim@meyering.net>
70858
70859         Rewrite fts.c not to change the current working directory,
70860         by using openat, fstatat, fdopendir, etc..
70861
70862         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
70863         (HAVE_OPENAT_SUPPORT): Define.
70864         [_LIBC] (fchdir): Don't undef or define; no longer used.
70865         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
70866         Now, this `function' always succeeds, and consumes its file descriptor
70867         parameter -- so callers must not close such FDs.  Update callers.
70868         (diropen_fd, opendirat, cwd_advance_fd): New functions.
70869         (diropen): Add parameter, SP.  Adjust all callers.
70870         Implement using diropen_fd, rather than open.
70871         (fts_open): Initialize new member, fts_cwd_fd.
70872         Remove fts_rft-setting code.
70873         (fts_close): Close fts_cwd_fd, if necessary.
70874         (__opendir2): Define in terms of opendir or opendirat,
70875         depending on whether the FST_NOCHDIR flag is set.
70876         (fts_build): Since fts_safe_changedir consumes its FD, and since
70877         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
70878         and close the dup'd file descriptor upon failure.
70879         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
70880         (fts_safe_changedir): Tweak semantics to reflect that this function
70881         now calls cwd_advance_fd and hence consumes its FD argument.
70882         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
70883         [struct FTS] (fts_rft): Remove now-unused member.
70884         [struct FTS] (fts_cycle.state): Improve comment.
70885
70886         * lib/openat.c (openat_needs_fchdir): New function.
70887         * lib/openat.h (openat_needs_fchdir): Declare it.
70888
70889 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
70890
70891         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
70892         Problem and fix reported by Pádraig Brady in
70893         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
70894
70895 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70896
70897         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
70898
70899 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70900
70901         * lib/memcoll.c (memcoll): Optimize for the common case where the
70902         arguments are bytewise equal.
70903
70904 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70905
70906         * doc/regexprops-generic.texi: Add a copyright notice.
70907
70908 2006-08-15  Bruno Haible  <bruno@clisp.org>
70909
70910         * modules/tmpdir (License): Change to LGPL.
70911
70912 2006-08-15  Bruno Haible  <bruno@clisp.org>
70913
70914         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
70915         module.
70916
70917 2006-08-14  Simon Josefsson  <jas@extundo.com>
70918
70919         * config/srclist.txt: Add gnupload.
70920
70921 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70922
70923         Change copyright notice from LGPL 2 to GPL 2, since that's the
70924         standard form used in the gnulib repository.
70925         * tests/test-lock.c: Likewise.
70926         * tests/test-stdint.c: Likewise.
70927         * tests/test-tls.c: Likewise.
70928
70929         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
70930         prelude-manager.  User shorter URLs for GNU projects, without '?'.
70931         Add copyright notice.
70932
70933         * check-module: Add copyright notice.  Output a copyright
70934         notice if "--version" is specified.
70935         * modules/COPYING: New file.
70936         * tests/test-getaddrinfo.c: Add copyright notice.
70937         * tests/test-verify.c: Likewise.
70938
70939 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70940
70941         Change copyright notice from LGPL 2 to GPL 2, since that's the
70942         standard form used in the gnulib repository.
70943         * lib/lock.c: LGPL -> GPL.
70944         * lib/lock.h: Likewise.
70945         * lib/strnlen1.c: Likewise.
70946         * lib/strnlen1.h: Likewise.
70947         * lib/tls.c: Likewise.
70948         * lib/tls.h: Likewise.
70949         * lib/tmpdir.c: Likewise.
70950
70951         * lib/TODO: Remove; this belongs only in coreutils.
70952
70953 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70954
70955         Add copyright notices to long-enough files that lack them, since
70956         otherwise the files aren't clearly free.  Use the same notice that
70957         getdate.texi already uses.
70958         * doc/alloca-opt.texi: Add copyright notice.
70959         * doc/alloca.texi: Likewise.
70960         * doc/ctime.texi: Likewise.
70961         * doc/functions.texi: Likewise.
70962         * doc/gcd.texi: Likewise.
70963         * doc/gnulib-tool.texi: Likewise.
70964         * doc/inet_ntoa.texi: Likewise.
70965         * doc/visibility.texi: Likewise.
70966
70967         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
70968         * doc/quote.texi: Add copyright notice.
70969
70970         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
70971         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
70972         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
70973         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
70974         is now obsolete, and give a pointer to the Sun list.
70975         Add copyright notice.
70976
70977 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
70978
70979         * config/srclistvars.sh: Add copyright notice.
70980
70981 2006-08-14  Eric Blake  <ebb9@byu.net>
70982
70983         Import the following change from libc:
70984
70985         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
70986
70987         Upstream bug 2997.
70988         * lib/misc/error.c: Add space between program name and message if file
70989         name is missing.
70990
70991 2006-08-12  Karl Berry  <karl@gnu.org>
70992
70993         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
70994         remove, these originate in gnulib now.
70995
70996 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70997
70998         * doc/Makefile (standards.info standards.html standards.dvi):
70999         Also depend on make-stds.texi.
71000
71001 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71002
71003         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
71004         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
71005
71006         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
71007         in wchar_t.  Problem reported by Eric Blake.
71008
71009         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
71010         LEN is smaller than SIZE.  Suggested by Bruno Haible.
71011         Also, help the compiler to keep LEN in a register.
71012
71013 2006-08-11  Eric Blake  <ebb9@byu.net>
71014
71015         * users.txt: Sort.  Add tar.
71016
71017 2006-08-11  Bruno Haible  <bruno@clisp.org>
71018
71019         * users.txt: New file.
71020
71021 2006-08-11  Bruno Haible  <bruno@clisp.org>
71022
71023         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
71024         before <wchar.h>. Needed for OSF/1 and BSD/OS.
71025
71026 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
71027
71028         * modules/snprintf (Depends-on): Remove minmax.
71029         (Maintainer): Add self and Bruno.
71030
71031 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
71032
71033         * lib/.cppi-disable: Add snprintf.h, socket_.h.
71034         * lib/snprintf.c: Include <errno.h> and <limits.h>.
71035         (EOVERFLOW): Define if the system does not.
71036         Do not include "minmax.h"; it wasn't used.
71037         (snprintf): Don't assume size_t promotes to an unsigned type.
71038         Fix bug when generated string was too long for the buffer: the
71039         buffer's contents are supposed to be the initial prefix of the
71040         output.  Don't assume vasnprintf returns EOVERFLOW if the size
71041         exceeds INT_MAX; do the check ourselves.
71042
71043         Import the following changes from libc:
71044
71045         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
71046
71047         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
71048         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
71049         set wc to the byte which couldn't be converted.
71050         (re_string_reconstruct): Don't clear valid_raw_len before calling
71051         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
71052         tip_context using re_string_context_at.
71053
71054         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
71055
71056         * lib/posix/regex.h: g++ still cannot handled [restrict].
71057
71058         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
71059
71060         * lib/posix/regex.h: Remove special handling for VMS.
71061
71062 2006-08-10  Jim Meyering  <jim@meyering.net>
71063
71064         * modules/same-inode: New module.
71065         * modules/dev-ino: New module.
71066         * modules/cycle-check: Depend on these modules, rather than simply
71067         including their .h files.
71068         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
71069         required via m4/cycle-check.m4.
71070         * modules/same: Depend on new same-inode module, rather than
71071         including same-inode.h.
71072         * modules/chdir-safer: New file.
71073
71074         * modules/chown (Depends-on): Add stat-macros.
71075
71076 2006-08-10  Jim Meyering  <jim@meyering.net>
71077
71078         * m4/cycle-check.m4: New file.
71079         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
71080         * m4/dev-ino.m4, m4/same-inode.m4: New files.
71081
71082 2006-08-10  Eric Blake  <ebb9@byu.net>
71083
71084         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
71085         in from original proposal.
71086
71087 2006-08-10  Eric Blake  <ebb9@byu.net>
71088         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
71089
71090         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
71091         namespace.
71092
71093 2006-08-10  Bruno Haible  <bruno@clisp.org>
71094
71095         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
71096         as well.
71097
71098 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71099
71100         Sync from coreutils.
71101
71102         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
71103
71104         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
71105         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
71106
71107 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71108
71109         * modules/restrict: Remove; no longer needed now that we assume
71110         Autoconf 2.59 or later.
71111         * MODULES.html.sh: Remove 'restrict'.
71112         * modules/argp (Depends-on): Remove 'restrict'.
71113         * modules/base64 (Depends-on): Likewise.
71114         * modules/gc (Depends-on): Likewise.
71115         * modules/getaddrinfo (Depends-on): Likewise.
71116         * modules/glob (Depends-on): Likewise.
71117         * modules/inet_ntop (Depends-on): Likewise.
71118         * modules/inet_pton (Depends-on): Likewise.
71119         * modules/memxor (Depends-on): Likewise.
71120         * modules/regex (Depends-on): Likewise.
71121         * modules/strtok_r (Depends-on): Likewise.
71122         * modules/time_r (Depends-on): Likewise.
71123
71124 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71125
71126         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
71127         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
71128         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
71129         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
71130         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
71131         * m4/memxor.m4 (gl_MEMXOR): Likewise.
71132         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
71133         gl_C_RESTRICT replaced by AC_C_RESTRICT.
71134
71135         Merge from coreutils.
71136         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
71137         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
71138         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
71139         * m4/time_r.m4 (gl_TIME_R): Likewise.
71140
71141 2006-08-09  Karl Berry  <karl@gnu.org>
71142
71143         * config/srclist.txt: no more gettext-tools, per Bruno.
71144
71145 2006-08-08  Eric Blake  <ebb9@byu.net>
71146
71147         * modules/verror: New module.
71148         * MODULES.html.sh: Document it.
71149
71150 2006-08-08  Eric Blake  <ebb9@byu.net>
71151
71152         * lib/verror.h, lib/verror.c: New files.
71153
71154 2006-08-08  Eric Blake  <ebb9@byu.net>
71155
71156         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
71157         verror_at_line output complies with GNU Coding Standards even when
71158         file is NULL.
71159
71160 2006-08-07  Bruno Haible  <bruno@clisp.org>
71161
71162         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
71163         versions of AIX.
71164         Reported by Ralf Wildenhues.
71165
71166 2006-08-07  Bruno Haible  <bruno@clisp.org>
71167
71168         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
71169         in an AC_DEFUN. Needed so that the autoconf snippets can use
71170         AC_REQUIRE.
71171
71172 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71173
71174         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71175         Initialize pkgdata_DATA.
71176         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
71177         overriding it.
71178
71179 2006-08-06  Eric Blake  <ebb9@byu.net>
71180
71181         * lib/error.h: Fold in some upstream changes from glibc.
71182         * lib/error.c: Likewise.
71183
71184 2006-08-04  Bruno Haible  <bruno@clisp.org>
71185
71186         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71187         Make the mostlyclean-local rule depend on mostlyclean-generic.
71188         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
71189
71190 2006-07-31  Bruno Haible  <bruno@clisp.org>
71191
71192         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
71193         <stdlib.h>, <string.h>.
71194
71195 2006-07-30  Bruno Haible  <bruno@clisp.org>
71196
71197         * modules/readlink (License): Change to LGPL.
71198
71199 2006-07-30  Bruno Haible  <bruno@clisp.org>
71200
71201         * modules/javaversion (Makefile.am): Distribute javaversion.java and
71202         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
71203         set PKGDATADIR to point to it.
71204
71205 2006-07-30  Bruno Haible  <bruno@clisp.org>
71206
71207         * modules/csharpexec (configure.ac): Comment out macro invocation.
71208         * modules/javaexec (configure.ac): Likewise.
71209         * modules/javacomp-script (configure.ac): Likewise.
71210
71211         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
71212
71213 2006-07-30  Bruno Haible  <bruno@clisp.org>
71214
71215         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
71216         linked-list.
71217
71218 2006-07-30  Bruno Haible  <bruno@clisp.org>
71219
71220         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
71221
71222 2006-07-30  Bruno Haible  <bruno@clisp.org>
71223
71224         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71225         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
71226         get removed.
71227
71228 2006-07-29  Bruno Haible  <bruno@clisp.org>
71229
71230         Make it possible for gnulib-tool to work with locally modified or
71231         augmented gnulib repositories.
71232         * gnulib-tool (func_usage): Document --local-dir option.
71233         (local_gnulib_dir): New variable.
71234         Handle --local-dir option.
71235         (func_lookup_file): New function.
71236         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
71237         (func_get_description, func_get_filelist, func_get_description,
71238         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
71239         func_get_automake_snippet, func_get_include_directive,
71240         func_get_license, func_get_maintainer): Use func_lookup_file.
71241         (func_import, func_create_testdir): Use func_lookup_file.
71242
71243 2006-07-29  Bruno Haible  <bruno@clisp.org>
71244
71245         * modules/setenv (Depends-on): Add unistd.
71246
71247 2006-07-29  Bruno Haible  <bruno@clisp.org>
71248
71249         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
71250
71251 2006-07-29  Bruno Haible  <bruno@clisp.org>
71252
71253         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
71254
71255 2006-07-29  Bruno Haible  <bruno@clisp.org>
71256
71257         * gnulib-tool (import, update): If there is no Makefile.am, look at
71258         aclocal.m4, instead of bailing out.
71259
71260 2006-07-29  Bruno Haible  <bruno@clisp.org>
71261
71262         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
71263         Categorize the options by when they are useful.
71264
71265 2006-07-29  Bruno Haible  <bruno@clisp.org>
71266
71267         * gnulib-tool (func_usage): Document option --no-libtool.
71268         Handle option --no-libtool.
71269         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
71270         for changed semantics of $libtool variable.
71271         (func_import): Likewise. If libtool is not used, show this through
71272         an option --no-libtool.
71273         (func_create_testdir): Update.
71274
71275 2006-07-29  Bruno Haible  <bruno@clisp.org>
71276
71277         * gnulib-tool (func_import): Extend error message about missing
71278         --doc-base.
71279
71280 2006-07-29  Bruno Haible  <bruno@clisp.org>
71281
71282         * gnulib-tool (func_import): Don't create the $docbase directory if
71283         there is no file to store there.
71284
71285 2006-07-29  Bruno Haible  <bruno@clisp.org>
71286
71287         * gnulib-tool (autoconf_minversion): If a --dir option is given and
71288         relevant, look for configure.ac there, not in the current directory.
71289         Also use a simple search for AC_PREREQ, not "autoconf --trace".
71290
71291 2006-07-29  Bruno Haible  <bruno@clisp.org>
71292
71293         * gnulib-tool (SORT): New variable.
71294         (func_usage): Undocument --assume-autoconf option.
71295         Remove --assume-autoconf option handling.
71296         (autoconf_minversion): Determine from the contents of configure.ac.
71297         (func_import): Remove autoconf_minversion handling.
71298         Suggested by Eric Blake.
71299
71300 2006-07-29  Bruno Haible  <bruno@clisp.org>
71301
71302         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
71303
71304 2006-07-29  Bruno Haible  <bruno@clisp.org>
71305
71306         * config/srclist.txt (*setenv.[ch]): Remove rules.
71307
71308 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71309
71310         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
71311
71312 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71313
71314         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
71315         arpa/inet.h.
71316
71317 2006-07-28  Simon Josefsson  <jas@extundo.com>
71318
71319         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
71320         * modules/inet_pton (Depends-on): Likewise.
71321
71322 2006-07-28  Simon Josefsson  <jas@extundo.com>
71323
71324         * m4/netinet_in_h.m4: New file.
71325
71326 2006-07-28  Simon Josefsson  <jas@extundo.com>
71327
71328         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
71329         #include's.
71330
71331 2006-07-28  Simon Josefsson  <jas@extundo.com>
71332
71333         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
71334         #include's.
71335
71336 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
71337
71338         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
71339         setgid on directories only if they set these bits.
71340         * lib/modechange.h: Remove obsolete comment about masks.
71341
71342 2006-07-28  Eric Blake  <ebb9@byu.net>
71343
71344         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
71345         macro expansion.
71346
71347 2006-07-28  Bruno Haible  <bruno@clisp.org>
71348
71349         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
71350
71351 2006-07-28  Bruno Haible  <bruno@clisp.org>
71352
71353         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
71354
71355 2006-07-28  Bruno Haible  <bruno@clisp.org>
71356
71357         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
71358         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
71359         Define fallbacks.
71360         Avoids link error on FreeBSD 4.x.
71361         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71362
71363         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
71364         encoding.
71365         * lib/mbswidth.c (iswcntrl): Likewise.
71366
71367 2006-07-27  Bruno Haible  <bruno@clisp.org>
71368
71369         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
71370         test.
71371
71372 2006-07-27  Bruno Haible  <bruno@clisp.org>
71373
71374         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
71375         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
71376         defined.
71377
71378 2006-07-26  Eric Blake  <ebb9@byu.net>
71379
71380         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
71381
71382 2006-07-26  Eric Blake  <ebb9@byu.net>
71383
71384         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
71385         like mingw that lack mkstemp.
71386         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
71387         avoid compilation warning on mingw.
71388
71389 2006-07-26  Bruno Haible  <bruno@clisp.org>
71390
71391         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
71392         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
71393         INT_FAST*_MIN, INTPTR_MIN.
71394
71395 2006-07-25  Bruno Haible  <bruno@clisp.org>
71396
71397         * modules/version-etc (Depends-on): Add stdarg.
71398
71399 2006-07-25  Bruno Haible  <bruno@clisp.org>
71400
71401         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
71402         complex commands.
71403
71404 2006-07-25  Bruno Haible  <bruno@clisp.org>
71405
71406         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
71407         defined in <stdarg.h> or config.h.
71408
71409 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
71410
71411         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
71412         (gl_STDIO_SAFER): Remove.
71413
71414 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
71415
71416         * MODULES.html.sh (File stream based Input/Output):
71417         Add fopen-safer, tmpfile-safer; remove stdio-safer.
71418         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
71419         * modules/fopen-safer, modules/tmpfile-safer: New files.
71420         * modules/stdio-safer: Remove.
71421
71422 2006-07-24  Bruno Haible  <bruno@clisp.org>
71423
71424         * modules/tmpdir: New file.
71425         * MODULES.html.sh (File system functions): Add it.
71426
71427 2006-07-24  Bruno Haible  <bruno@clisp.org>
71428
71429         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
71430         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
71431
71432 2006-07-24  Bruno Haible  <bruno@clisp.org>
71433
71434         * modules/clean-temp: New file.
71435
71436 2006-07-24  Bruno Haible  <bruno@clisp.org>
71437
71438         * m4/tmpdir.m4: New file, from GNU gettext.
71439
71440 2006-07-24  Bruno Haible  <bruno@clisp.org>
71441
71442         * lib/tmpdir.h: New file, from GNU gettext.
71443         * lib/tmpdir.c: New file, from GNU gettext.
71444
71445 2006-07-24  Bruno Haible  <bruno@clisp.org>
71446
71447         * lib/clean-temp.h: New file, from GNU gettext.
71448         * lib/clean-temp.c: New file, from GNU gettext.
71449
71450 2006-07-23  Eric Blake  <ebb9@byu.net>
71451
71452         * modules/stdio-safer (Files): Add tmpfile-safer.c.
71453         (Depends-on): Add binary-io.
71454
71455 2006-07-23  Eric Blake  <ebb9@byu.net>
71456
71457         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
71458
71459 2006-07-23  Eric Blake  <ebb9@byu.net>
71460
71461         * lib/tmpfile-safer.c: New file.
71462         * lib/stdio-safer.h (fopen_safer): Add prototype.
71463         * lib/stdio--.h (tmpfile): Make safer.
71464
71465 2006-07-23  Bruno Haible  <bruno@clisp.org>
71466
71467         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
71468         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
71469         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
71470         gl_linked_remove_at): Use it.
71471
71472 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71473         and Simon Josefsson <jas@extundo.com>
71474
71475         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
71476
71477         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
71478
71479 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71480
71481         * modules/close-stream: New file.
71482         * modules/closeout (Description): Make it clear that it exits
71483         with a diagnostic on error.
71484         (Depends-on): Add close-stream.  Remove fpending, stdbool.
71485         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
71486
71487 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71488
71489         * m4/close-stream.m4: New file.
71490
71491 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
71492
71493         * lib/close-stream.c, lib/close-stream.h: New files.
71494
71495 2006-07-22  Bruno Haible  <bruno@clisp.org>
71496
71497         Merge from GNU gettext 0.15.
71498
71499         2006-05-01  Bruno Haible  <bruno@clisp.org>
71500
71501                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
71502
71503         2006-07-22  Bruno Haible  <bruno@clisp.org>
71504
71505                 * modules/javaversion: New file.
71506                 * MODULES.html.sh (Java): Add javaversion.
71507
71508         2006-03-12  Bruno Haible  <bruno@clisp.org>
71509
71510                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
71511
71512         2005-12-04  Bruno Haible  <bruno@clisp.org>
71513
71514                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
71515                 (untested).
71516
71517         2006-06-21  Bruno Haible  <bruno@clisp.org>
71518
71519                 Avoid warnings from recent versions of mcs.
71520                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
71521                 -o, -L, -r any more. Use options documented since mcs-1.0
71522                 instead. Similarly for -g.
71523
71524         2005-12-04  Bruno Haible  <bruno@clisp.org>
71525
71526                 * build-aux/csharpcomp.sh.in: Suffix for resources is
71527                 .resources, not .resource.
71528
71529         2005-07-09  Bruno Haible  <bruno@clisp.org>
71530
71531                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
71532                 add a .dll suffix.
71533                 Reported by Mark Junker <mjscod@gmx.de>.
71534
71535         2006-07-22  Bruno Haible  <bruno@clisp.org>
71536
71537                 * modules/gettext: Upgrade to gettext-0.15.
71538                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
71539                 m4/visibility.m4.
71540                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
71541
71542 2006-07-22  Bruno Haible  <bruno@clisp.org>
71543
71544         Merge from GNU gettext 0.15.
71545
71546         2006-03-25  Bruno Haible  <bruno@clisp.org>
71547
71548                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
71549
71550         2006-07-21  Bruno Haible  <bruno@clisp.org>
71551
71552                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
71553                 "1.1".
71554
71555         2006-05-09  Bruno Haible  <bruno@clisp.org>
71556
71557                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
71558                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
71559                 for the conftestver execution.
71560
71561         2006-05-01  Bruno Haible  <bruno@clisp.org>
71562
71563                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
71564                 optional target-version argument. Verify that the compiler
71565                 groks source of the specified source-version, or add -source
71566                 option as necessary. Verify that the compiler produces
71567                 bytecode in the specified target-version, or add -target and
71568                 -source options as necessary. Make the result of the test
71569                 available as variable CONF_JAVAC. Also log error output in
71570                 config.log.
71571
71572         2006-03-11  Bruno Haible  <bruno@clisp.org>
71573
71574                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
71575
71576         2006-05-09  Bruno Haible  <bruno@clisp.org>
71577
71578                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
71579                 CLASSPATH_SEPARATOR to a semicolon.
71580
71581         2006-03-12  Bruno Haible  <bruno@clisp.org>
71582
71583                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
71584                 available as variable CONF_JAVA, for subsequent autoconf
71585                 tests. Also log error output in config.log.
71586
71587         2006-07-19  Bruno Haible  <bruno@clisp.org>
71588
71589                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
71590                 that getline works on glibc2 systems. Needed to avoid trouble
71591                 in relocatable.c.
71592                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
71593
71594         2005-12-04  Bruno Haible  <bruno@clisp.org>
71595
71596                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
71597                 launcher (untested).
71598
71599         2005-12-04  Bruno Haible  <bruno@clisp.org>
71600
71601                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
71602
71603         2006-07-22  Bruno Haible  <bruno@clisp.org>
71604
71605                 * gettext.m4: Update from GNU gettext-0.15.
71606                 * nls.m4: Likewise.
71607                 * po.m4: Likewise.
71608                 * inttypes-pri.m4: Likewise.
71609                 * inttypes-h.m4: Renamed from inttypes.m4.
71610                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
71611
71612 2006-07-22  Bruno Haible  <bruno@clisp.org>
71613
71614         Merge from GNU gettext 0.15.
71615
71616         2005-07-05  Bruno Haible  <bruno@clisp.org>
71617
71618                 * printf-args.c (printf_fetchargs): Work around broken
71619                 definition of wint_t on mingw.
71620
71621         2005-02-12  Bruno Haible  <bruno@clisp.org>
71622
71623                 * xallocsa.h: Add extern "C" for C++.
71624
71625         2006-05-17  Bruno Haible  <bruno@clisp.org>
71626
71627                 Cygwin portability.
71628                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
71629
71630         2006-04-30  Bruno Haible  <bruno@clisp.org>
71631
71632                 * progreloc.c: Include <mach-o/dyld.h> if available.
71633                 (find_executable): Use _NSGetExecutablePath when possible.
71634
71635         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71636
71637                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
71638                 function.
71639
71640         2005-12-29  Bruno Haible  <bruno@clisp.org>
71641
71642                 * progreloc.c (set_program_name_and_installdir): Fix
71643                 compilation error.
71644
71645         2005-12-04  Bruno Haible  <bruno@clisp.org>
71646
71647                 Cygwin portability.
71648                 * progreloc.c: Include <windows.h> also on Cygwin.
71649                 (find_executable): Add support for Cygwin.
71650                 (set_program_name_and_installdir): Handle also platforms with
71651                 nonempty EXEEXT.
71652
71653         2006-07-11  Bruno Haible  <bruno@clisp.org>
71654
71655                 * javacomp.c: Fix a comment.
71656                 Reported by Jim Meyering.
71657
71658         2006-04-30  Bruno Haible  <bruno@clisp.org>
71659
71660                 * javacomp.h (compile_java_class): Add source_version,
71661                 target_version arguments.
71662                 * javacomp.c: Rewritten to choose only a compiler that
71663                 respects the specified source_version and target_version.
71664
71665         2006-06-27  Bruno Haible  <bruno@clisp.org>
71666
71667                 Assume correct S_ISDIR macro.
71668                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
71669
71670         2006-07-22  Bruno Haible  <bruno@clisp.org>
71671
71672                 * javaversion.h: New file, from GNU gettext.
71673                 * javaversion.c: New file, from GNU gettext.
71674                 * javaversion.java: New file, from GNU gettext.
71675                 * javaversion.class: New file, from GNU gettext.
71676
71677         2006-05-17  Bruno Haible  <bruno@clisp.org>
71678
71679                 Cygwin portability.
71680                 * javaexec.c (execute_java_class): Test for jview program
71681                 also on Cygwin.
71682
71683         2006-04-09  Bruno Haible  <bruno@clisp.org>
71684
71685                 * fatal-signal.c: Don't include string.h.
71686                 (at_fatal_signal): Use a copying loop instead of memcpy.
71687
71688         2005-12-04  Bruno Haible  <bruno@clisp.org>
71689
71690                 * csharpexec.c: Add support for 'clix' launcher (untested).
71691                 (execute_csharp_using_sscli): New function.
71692                 (execute_csharp_program): Call it.
71693
71694         2006-06-21  Bruno Haible  <bruno@clisp.org>
71695
71696                 Avoid warnings from recent versions of mcs.
71697                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
71698                 -o, -L, -r any more. Use options documented since mcs-1.0
71699                 instead. Similarly for -g.
71700
71701         2005-07-09  Bruno Haible  <bruno@clisp.org>
71702
71703                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
71704                 add a .dll suffix.
71705                 Reported by Mark Junker <mjscod@gmx.de>.
71706
71707         2006-06-17  Bruno Haible  <bruno@clisp.org>
71708
71709                 * config.charset: Update for NetBSD 3.0.
71710
71711         2006-05-17  Bruno Haible  <bruno@clisp.org>
71712
71713                 Cygwin portability.
71714                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
71715
71716         2006-05-16  Bruno Haible  <bruno@clisp.org>
71717
71718                 * localcharset.c [CYGWIN]: Include <windows.h>.
71719                 (get_charset_aliases): For Cygwin, return the same CPxxx
71720                 aliases list as under WIN32.
71721                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
71722                 the environment variables. Fall back to GetACP().
71723
71724         2006-04-05  Bruno Haible  <bruno@clisp.org>
71725
71726                 * config.charset: Update Juan Manuel Guerrero's address.
71727
71728         2005-02-12  Bruno Haible  <bruno@clisp.org>
71729
71730                 * allocsa.h: Add extern "C" for C++.
71731
71732         2005-02-10  Bruno Haible  <bruno@clisp.org>
71733
71734                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
71735                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
71736
71737         2006-07-22  Bruno Haible  <bruno@clisp.org>
71738
71739                 * gettext.h: Update to GNU gettext-0.15.
71740
71741 2006-07-22  Bruno Haible  <bruno@clisp.org>
71742
71743         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
71744         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
71745         lib-prefix.m4, longdouble.m4, ssize_t.m4.
71746
71747 2006-07-21  Eric Blake  <ebb9@byu.net>
71748
71749         * modules/stdlib-safer: New file.
71750         * MODULES.html.sh (File stream based Input/Output): Add
71751         stdlib-safer.
71752
71753 2006-07-21  Eric Blake  <ebb9@byu.net>
71754
71755         * lib/stdlib-safer.h: New file from coreutils, required by
71756         stdlib--.h.
71757
71758 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
71759
71760         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
71761
71762 2006-07-20  Bruno Haible  <bruno@clisp.org>
71763
71764         * gnulib-tool: Recognize new option --assume-autoconf.
71765         (autoconf_minversion): New variable.
71766         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
71767
71768 2006-07-20  Bruno Haible  <bruno@clisp.org>
71769
71770         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
71771
71772 2006-07-19  Derek R. Price  <derek@ximbiot.com>
71773
71774         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
71775         Reindent and repaginate.
71776
71777 2006-07-19  Derek Price  <derek@ximbiot.com>
71778
71779         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
71780         Correct grammar.
71781
71782 2006-07-17  Bruno Haible  <bruno@clisp.org>
71783
71784         * modules/list: New file.
71785         * modules/array-list: New file.
71786         * modules/carray-list, modules/carray-list-tests: New files.
71787         * modules/linked-list, modules/linked-list-tests: New files.
71788         * modules/avltree-list, modules/avltree-list-tests: New files.
71789         * modules/rbtree-list, modules/rbtree-list-tests: New files.
71790         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
71791         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
71792         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
71793         * modules/oset: New file.
71794         * modules/array-oset: New file.
71795         * modules/avltree-oset, modules/avltree-oset-tests: New files.
71796         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
71797         * tests/test-carray_list.c: New file.
71798         * tests/test-linked_list.c: New file.
71799         * tests/test-avltree_list.c: New file.
71800         * tests/test-rbtree_list.c: New file.
71801         * tests/test-linkedhash_list.c: New file.
71802         * tests/test-avltreehash_list.c: New file.
71803         * tests/test-rbtreehash_list.c: New file.
71804         * tests/test-avltree_oset.c: New file.
71805         * tests/test-rbtree_oset.c: New file.
71806         * MODULES.html.sh (Container data structures): New section.
71807
71808 2006-07-17  Bruno Haible  <bruno@clisp.org>
71809
71810         * m4/gl_list.m4: New file.
71811
71812 2006-07-17  Bruno Haible  <bruno@clisp.org>
71813
71814         * lib/gl_list.h: New file.
71815         * lib/gl_list.c: New file.
71816         * lib/gl_array_list.h: New file.
71817         * lib/gl_array_list.c: New file.
71818         * lib/gl_carray_list.h: New file.
71819         * lib/gl_carray_list.c: New file.
71820         * lib/gl_linked_list.h: New file.
71821         * lib/gl_linked_list.c: New file.
71822         * lib/gl_anylinked_list1.h: New file.
71823         * lib/gl_anylinked_list2.h: New file.
71824         * lib/gl_avltree_list.h: New file.
71825         * lib/gl_avltree_list.c: New file.
71826         * lib/gl_anyavltree_list1.h: New file.
71827         * lib/gl_anyavltree_list2.h: New file.
71828         * lib/gl_rbtree_list.h: New file.
71829         * lib/gl_rbtree_list.c: New file.
71830         * lib/gl_anyrbtree_list1.h: New file.
71831         * lib/gl_anyrbtree_list2.h: New file.
71832         * lib/gl_anytree_list1.h: New file.
71833         * lib/gl_anytree_list2.h: New file.
71834         * lib/gl_linkedhash_list.h: New file.
71835         * lib/gl_linkedhash_list.c: New file.
71836         * lib/gl_anyhash_list1.h: New file.
71837         * lib/gl_anyhash_list2.h: New file.
71838         * lib/gl_avltreehash_list.h: New file.
71839         * lib/gl_avltreehash_list.c: New file.
71840         * lib/gl_rbtreehash_list.h: New file.
71841         * lib/gl_rbtreehash_list.c: New file.
71842         * lib/gl_anytreehash_list1.h: New file.
71843         * lib/gl_anytreehash_list2.h: New file.
71844
71845         * lib/gl_oset.h: New file.
71846         * lib/gl_oset.c: New file.
71847         * lib/gl_array_oset.h: New file.
71848         * lib/gl_array_oset.c: New file.
71849         * lib/gl_avltree_oset.h: New file.
71850         * lib/gl_avltree_oset.c: New file.
71851         * lib/gl_rbtree_oset.h: New file.
71852         * lib/gl_rbtree_oset.c: New file.
71853         * lib/gl_anytree_oset.h: New file.
71854
71855 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71856
71857         * m4/mkancesdirs.m4: New file.
71858         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
71859         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
71860         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
71861         it.
71862
71863 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71864
71865         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
71866         * lib/mkancesdirs.h: New files.
71867         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
71868         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
71869         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
71870         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
71871         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
71872         callers changed.  Revamp internals significantly, by not
71873         attempting to create directories that are temporarily more
71874         permissive than the final results.  Do not attempt to use
71875         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
71876         This removes some race conditions, fixes some bugs, and simplifies
71877         things.  Use new dirchownmod function to do owner and mode changes.
71878         * lib/mkdir-p.h: Likewise.
71879         * lib/modechange.c (octal_to_mode): New function.
71880         (struct mode_change): New member mentioned.
71881         (make_node_op_equals): New arg mentioned.  All callers changed.
71882         (mode_compile): Keep track of which mode bits the user has explicitly
71883         mentioned.
71884         (mode_adjust): New arg DIR, so that we implement the X op correctly.
71885         New arg PMODE_BITS, to keep track of which mode bits the user
71886         mentioned; it treats S_ISUID and S_ISGID speciall.
71887         All callers changed.
71888         * lib/modechange.h: Likewise.
71889
71890 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
71891
71892         * MODULES.html.sh: Add mkancestors.
71893         * modules/mkancesdirs: New module.
71894         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
71895         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
71896         The chdir-safer and afs files are now orphans; I'll remove them
71897         unless someone speaks up.
71898         Add lib/dirchownmod.c, lib/dirchownmod.h.
71899         (Depends-on): Remove alloca, chown, save-cwd, dirname.
71900         Add lchown, mkancesdirs.
71901         (Maintainer): Add self.
71902
71903 2006-07-15  Karl Berry  <karl@gnu.org>
71904
71905         * gnulib-tool: help message wording/arrangement.
71906
71907 2006-07-14  Simon Josefsson  <jas@extundo.com>
71908
71909         * doc/gnulib.texi (Libtool and Windows): New section.
71910
71911 2006-07-12  Simon Josefsson  <jas@extundo.com>
71912
71913         * modules/gendocs (License): Fix license, approved by Karl.
71914
71915 2006-07-12  Eric Blake  <ebb9@byu.net>
71916
71917         * MODULES.html.sh: Add gendocs.
71918
71919 2006-07-11  Eric Blake  <ebb9@byu.net>
71920
71921         * modules/fdl: New module, to install doc/fdl.texi.
71922         * MODULES.html.sh: Add new section for documentation modules.
71923         * gnulib-tool: Avoid space-tab.
71924         (--doc-base): New option, to manage files from doc.
71925
71926 2006-07-11  Eric Blake  <ebb9@byu.net>
71927
71928         * m4/absolute-header.m4: Fix comments to match recent change.
71929
71930 2006-07-11  Eric Blake  <ebb9@byu.net>
71931
71932         * gnulib-tool: List --doc-base before --tests-base.
71933
71934 2006-07-11  Derek R. Price  <derek@ximbiot.com>
71935
71936         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
71937
71938 2006-07-11  Bruno Haible  <bruno@clisp.org>
71939
71940         * README: Mention where to put documentation.
71941
71942 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71943
71944         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
71945
71946 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71947
71948         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
71949         to stdint.m4.
71950
71951 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
71952
71953         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
71954         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
71955         "no/such/file/stdint.h" when there is no such file, so that
71956         the resulting C code can be parsed by dodgy compilers.
71957         Problems reported by Bob Proulx.
71958
71959 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71960
71961         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
71962         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
71963         macros into the GNU _D_EXACT_NAMLEN.
71964         * lib/savedir.c:  Likewise.
71965         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
71966
71967 2006-07-10  Derek R. Price  <derek@ximbiot.com>
71968         and Paul Eggert  <eggert@cs.ucla.edu>
71969
71970         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
71971         * m4/savedir.m4:
71972         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
71973         macros into the GNU _D_EXACT_NAMLEN.
71974
71975 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71976
71977         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
71978         around the absolute name, to work around a problem with the HP-UX
71979         11.23 native C compiler, reported by Bob Proulx.
71980
71981 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71982
71983         * doc/maintain.texi, make-stds.texi: Sync from
71984         <http://savannah.gnu.org/projects/gnustandards>.
71985
71986 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
71987
71988         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
71989
71990 2006-07-09  Jim Meyering  <jim@meyering.net>
71991
71992         * m4/glob.m4: Remove a doubled word in a comment.
71993
71994 2006-07-09  Jim Meyering  <jim@meyering.net>
71995
71996         * lib/argp-pv.c: Remove a doubled word in a comment.
71997         * lib/check-version.c (check_version): Likewise.
71998         * lib/javacomp.c (compile_java_class): Likewise.
71999
72000 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
72001
72002         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
72003         for the benefit of people using Autoconf 2.60.  If you want to
72004         support older Autoconf versions you can copy m4/onceonly_2_57.m4
72005         (or m4/onceonly.m4, if pre-2.57) manually.
72006
72007 2006-07-08  Jim Meyering  <jim@meyering.net>
72008
72009         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
72010         comment.
72011         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
72012         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
72013         comment.
72014
72015 2006-07-08  Jim Meyering  <jim@meyering.net>
72016
72017         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
72018
72019 2006-07-07  Simon Josefsson  <jas@extundo.com>
72020
72021         * tests/test-crc.c: Change expected crc value, the test vector
72022         were probably computed using the old broken crc.c?
72023
72024 2006-07-06  Simon Josefsson  <jas@extundo.com>
72025
72026         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
72027         now the canonical place for the M4 file).
72028
72029         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
72030         from the sys_socket dependency now.
72031
72032         * modules/inet_pton (Files): Ditto.
72033
72034         * modules/inet_ntop (Files): Ditto.
72035
72036 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72037
72038         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
72039         not gl_PREREQ_GETUSERSHELL.
72040
72041 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72042
72043         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
72044         with only one argument, for Autoconf 2.60.
72045         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
72046         expand to nothing, so add a shell command to avoid syntax error.
72047         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
72048
72049 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72050
72051         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
72052
72053 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72054
72055         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
72056         no longer needed.  Check for isblank decl.
72057         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
72058         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
72059         of existence.
72060
72061 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72062
72063         * lib/getloadavg.c: Use __VMS, not VMS.
72064         * lib/getopt.c: Likewise.
72065         * lib/getpagesize.h: Likewise.
72066         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
72067         and probably does not work.
72068
72069 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72070
72071         * lib/.cppi-disable: Add wcwidth.
72072         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
72073         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
72074         (ISGRAPH): Remove.  All uses changed to isgraph.
72075         (FOLD) [!defined _LIBC]: Remove special case.
72076         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
72077         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
72078         HAVE_ISBLANK.
72079         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
72080         case.
72081
72082 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
72083
72084         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
72085         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
72086         brackets.  Other minor changes to suppress some compiler
72087         warnings.
72088
72089 2006-07-06  Derek R. Price  <derek@ximbiot.com>
72090         and Paul Eggert  <eggert@cs.ucla.edu>
72091
72092         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
72093         of invoking obsolescent AC_HEADER_DIRENT macro.
72094         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
72095         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
72096         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
72097         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
72098         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
72099         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
72100         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
72101         * m4/readdir.m4: Remove; no longer needed.
72102
72103 2006-07-06  Derek R. Price  <derek@ximbiot.com>
72104         and Paul Eggert  <eggert@cs.ucla.edu>
72105
72106         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
72107         Don't worry about this obsolete case any more.
72108         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
72109         directories.
72110         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
72111         worry about this obsolete case any more.
72112         * lib/fts.c: Likewise.
72113         * lib/getcwd.c: Likewise.
72114         * lib/glob.h: Likewise.
72115         * lib/savedir.c: Likewise.
72116
72117 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72118
72119         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
72120         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
72121         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
72122         needed.
72123         All uses removed.
72124         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72125         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
72126         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
72127         needed.
72128         * m4/getdate.m4 (gl_GETDATE): Likewise.
72129         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
72130         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
72131         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
72132         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72133         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
72134         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72135         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
72136         needed.
72137
72138 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72139
72140         * lib/memcasecmp.c: Include <limits.h>.
72141         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
72142         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
72143         Don't assume isdigit succeeds only on '0' through '9'.
72144
72145 2006-07-05  Eric Blake  <ebb9@byu.net>
72146
72147         * modules/getaddrinfo (Depends-on): Add snprintf.
72148
72149 2006-07-05  Eric Blake  <ebb9@byu.net>
72150
72151         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
72152         to avoid 'header present but could not be compiled' on cygwin.
72153
72154 2006-07-05  Eric Blake  <ebb9@byu.net>
72155
72156         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
72157         missing from netdb.h.
72158         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
72159
72160 2006-07-05  Derek R. Price  <derek@ximbiot.com>
72161
72162         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
72163         no longer needed.
72164         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
72165         * m4/getdate.m4 (gl_GETDATE): Likewise.
72166         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
72167         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
72168         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
72169         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72170         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72171
72172 2006-07-05  Derek R. Price  <derek@ximbiot.com>
72173
72174         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
72175         All uses of is_space replaced by isspace.
72176         * lib/exit.h: Don't talk about STDC_HEADERS.
72177         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
72178         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
72179         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
72180         replaced by isprint etc.
72181         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
72182         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
72183         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
72184         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
72185         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
72186         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
72187
72188 2006-07-05  Bruno Haible  <bruno@clisp.org>
72189
72190         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
72191         the function exists, before testing against AIX.
72192         Reported by Martin Lambers <marlam@marlam.de>.
72193
72194 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
72195
72196         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
72197         From Mark D. Baushke.
72198
72199 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
72200
72201         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
72202         to the absolute name, not just one, to bypass Sun C 5.8's
72203         "warning: #include of /usr/include/... may be non-portable".
72204
72205 2006-07-04  Eric Blake  <ebb9@byu.net>
72206
72207         * modules/dirname-tests: New test module.
72208         * tests/test-dirname.c: New file, replacing dirname.c
72209         TEST_DIRNAME section that was recently deleted.
72210
72211 2006-07-04  Bruno Haible  <bruno@clisp.org>
72212
72213         Assume ANSI C header files and <ctype.h> functions.
72214         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
72215         (mbsnwidth): Use isprint, iscntrl instead.
72216
72217 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72218
72219         Merge from coreutils.
72220         * MODULES.html.sh: Add xstrtold.
72221         * modules/xstrtold: New file.
72222         * modules/cycle-check (Files): Add lib/same-inode.h.
72223         * modules/dirname (Files): Add m4/double-slash-root.m4.
72224         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
72225         * modules/mkdir-p (Files): Add lib/same-inode.h.
72226         * modules/same (Files): Add lib/same-inode.h.
72227
72228 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72229
72230         * m4/absolute-header.m4: Renamed from full-header-path.m4.
72231         This is to keep the terminology clean; POSIX talks about
72232         "absolute pathnames", not "full pathnames", but the GNU
72233         Coding Standards say to use "path" for something else;
72234         so use "absolute" to keep both sides happy.
72235         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
72236         Set gl_absolute_header, not gl_full_header_path.
72237         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
72238         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
72239         All uses changed.
72240
72241         Merge from coreutils.
72242
72243         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
72244
72245         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
72246         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
72247         want to require the building of c-strtod.o.
72248         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
72249         needs -lm directly.
72250         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
72251
72252         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
72253
72254         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
72255         --as-needed option if available.  Problem reported by Albert Chin in
72256         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
72257         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
72258         cc merely issues a bunch of annoying warnings for --as-needed
72259         (this problem was reported by Bob Proulx).  Also, try linking with
72260         -lm to detect a bug in binutils 2.16 (this problem was reported
72261         by Ralf Wildenhues).
72262
72263         2006-06-18  Jim Meyering  <jim@meyering.net>
72264
72265         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
72266         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
72267         macro.
72268         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
72269         also check for glibc-2.4's abort-inducing bug.
72270
72271         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
72272         Low-probability clean-up should be to use rmdir to get rid of
72273         the just-created directory, not unlink.
72274
72275         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
72276         configure fail, and request a bug report to inform us about it.
72277         Add a comment that, barring reports to the contrary, in 2007 we'll
72278         assume ftruncate is universally available.
72279
72280         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
72281
72282         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
72283
72284         2006-03-12  Jim Meyering  <jim@meyering.net>
72285
72286         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
72287         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
72288         * m4/same.m4 (gl_SAME): Likewise.
72289         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
72290
72291         2006-03-11  Eric Blake  <ebb9@byu.net>
72292
72293         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
72294         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
72295         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
72296         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
72297
72298 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72299
72300         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
72301         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
72302         reported by Mark D. Baushke, one in
72303         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
72304
72305         Merge from coreutils.
72306
72307         * lib/.cppi-disable: Add stdint_.h.
72308         * lib/.cvsignore: Add stdint.h.
72309
72310         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
72311
72312         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
72313         both double and long double versions.
72314         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
72315         * lib/xstrtold.c: New file.
72316         * lib/xstrtod.h (xstrtold): New decl.
72317
72318         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
72319
72320         * lib/filemode.c (setst): Remove.
72321         (strmode): Rewrite to avoid setst.  This makes the code shorter,
72322         (arguably) clearer, and the generated code is a bit smaller on my
72323         Debian GNU/Linux stable x86 host.
72324
72325         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
72326
72327         * lib/filemode.c: Include "filemode.h" first, to test the interface.
72328         Assume that filemode.h includes sys/types.h and sys/stat.h.
72329         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
72330         (ftypelet): Reorder to put common cases first, for efficiency.
72331         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
72332         to do 'M'.
72333         (strmode): Renamed from mode_string, and now stores 12 bytes instead
72334         of 10, for compatibility with FreeBSD.  All callers changed.
72335         (filemodestring): Now stores 12 bytes instead of 10, and sets file
72336         types that can't be deduced solely from st_mode.  First arg is now a
72337         const pointer.
72338         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
72339         (strmode): Renamed from mode_string.
72340         (filemodestring): New decl.
72341         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
72342         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
72343         needed.
72344         (S_ISPORT, S_ISWHT): New macros, if not already defined.
72345
72346         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
72347
72348         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
72349         fsusage.h now does that.  Include fsusage.h first, to test interface.
72350         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
72351         at most one method (the old code could have generated decls that
72352         didn't conform to C89, not that this was ever exercised).
72353         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
72354
72355         2006-03-19  Jim Meyering  <jim@meyering.net>
72356
72357         Work even in a chroot where d_ino values for entries in "/"
72358         don't match the stat.st_ino values for the same names.
72359         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
72360         number, iterate through all entries again, using lstat instead.
72361         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
72362         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
72363
72364         * lib/getcwd.c (__getcwd): Clarify a comment.
72365         Use memcpy in place of a call to strcpy.
72366
72367         2006-03-12  Jim Meyering  <jim@meyering.net>
72368
72369         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
72370         matches that of the current directory (which we're about to chdir ".."
72371         out of), then save the dev-ino of the parent, instead.
72372
72373         * lib/same-inode.h (SAME_INODE): New file/macro.
72374         * lib/chdir-safer.c (SAME_INODE): Remove definition.
72375         Include "same-inode.h", instead.
72376         * lib/same.c: Likewise.
72377         * lib/cycle-check.h: Include "same-inode.h".
72378         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
72379         * lib/cycle-check.c (SAME_INODE): Remove definition.
72380         * lib/root-dev-ino.h: Include "same-inode.h".
72381
72382         2006-03-11  Eric Blake  <ebb9@byu.net>
72383
72384         * lib/same.c (same_name): s/base_name/last_component/
72385         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
72386         * lib/filenamecat.c (file_name_concat): Likewise.
72387
72388         2006-03-11  Eric Blake  <ebb9@byu.net>,
72389                     Paul Eggert  <eggert@cs.ucla.edu>
72390
72391         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
72392         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
72393         drive prefix.
72394         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
72395         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
72396         (last_component): New method.
72397         * lib/dirname.c (dir_len): Determine when drive letters need a
72398         subsequent slash.  Preserve // when it is special.
72399         (dir_name): Don't append dot when drive letter is absolute.
72400         [TEST_DIRNAME]: Move into a full-blown gnulib test.
72401         * lib/basename.c (base_name): New semantics - malloc the result.
72402         Preserve // when it is special.  Preserve relative files that look
72403         like drive letters.
72404         (base_len): Preserve // when it is special.
72405         (last_component): New method, similar to old base_name semantics.
72406         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
72407         base_name.  Strip redundant slashes from ///.
72408
72409 2006-07-03  Jim Meyering  <jim@meyering.net>
72410
72411         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
72412         macro is used before the first cycle_check call.
72413
72414 2006-07-03  Eric Blake  <ebb9@byu.net>
72415
72416         * modules/dirname (Depends-on): Add xstrndup.
72417
72418 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
72419
72420         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
72421         test cases, so that config.log is a bit easier to follow.
72422
72423 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
72424
72425         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
72426         both are 64 bits, since this seems to be the tradition, and this
72427         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
72428         we ever run into a host that prefers long long to long in this
72429         case, we'll need another configure-time test.  Problem reported by
72430         Jim Meyering.
72431
72432 2006-07-02  Eric Blake  <ebb9@byu.net>
72433
72434         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
72435
72436 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72437
72438         * modules/inttypes (Depends-on): No longer depends on stdint.
72439         * modules/stdint (Description): Say more about assumptions.
72440         Say that the fast types might differ.  Say macros are used.
72441         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
72442         (Makefile.am): Revise list of substituted symbols to match
72443         new stdint.m4.
72444         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
72445         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
72446         * tests/test-stdint.c (verify_same_types)
72447         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
72448         the code conforms to C99/C89.
72449         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
72450         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
72451
72452 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72453
72454         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
72455         but fix a bug, by requiring at least 64 bits.
72456         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
72457         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
72458         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
72459         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
72460
72461         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
72462         changes.  Make 2.59 a prerequisite.  Check and substitute for
72463         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
72464         inttypes.h.  Do not use special include files; just use the
72465         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
72466         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
72467         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
72468         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
72469         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
72470         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
72471         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
72472         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
72473         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
72474         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
72475         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
72476         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
72477         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
72478         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
72479         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
72480         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
72481         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
72482         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
72483         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
72484         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
72485         WINT_MAX.  Check for C99 conformance more strictly, by detecting
72486         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
72487         not check for things that C99 does not require, e.g., int8_t.  If
72488         a test isn't needed unless <stdint.h> isn't working, and is
72489         unlikely to be needed for any other reason, then don't do it
72490         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
72491         size_t, since we assume C89 freestanding at least.  Do not check
72492         for sig_atomic_t, wchar_t, or wint_t, since the code now does
72493         the right thing even if the types are not defined.  Instead use:
72494         (gl_STDINT_TYPE_PROPERTIES): New macro.
72495         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
72496         testing whether <sys/types.h> clashes, as Autoconf does this for
72497         us now.  All uses removed.
72498         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
72499         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
72500         (gl_CHECK_TYPE_SAME):
72501         Remove; no longer needed.
72502         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
72503         exists, since we'll return 0 anyway in that case.
72504         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
72505
72506 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72507
72508         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
72509         possible collision with system files.
72510         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
72511         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
72512         WCHAR_MIN and WCHAR_MAX in this case.
72513         (<stddef.h>): Do not include; no longer needed.
72514         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
72515         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
72516         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
72517         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
72518         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
72519         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
72520         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
72521         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
72522         !defined(__c99))]: Include in this case too, since it's harmless
72523         now.
72524         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
72525         dangerous to do so.
72526         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
72527         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
72528         (_STDINT_MIN, _STDINT_MAX): New macros.
72529         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
72530         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
72531         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
72532         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
72533         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
72534         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
72535         macros, not typedefs; this simplifies things quite a bit.
72536         Use long int for all types narrower than int64_t.
72537         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
72538         Define in terms of long long int or int64_t or long int,
72539         not int64_t or int32_t.  This saves some compile-time testing.
72540         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
72541         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
72542         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
72543         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
72544         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
72545         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
72546         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
72547         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
72548         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
72549         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
72550         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
72551         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
72552         undef any previous version and define our own version, for
72553         simplicity and consistency with the new macros for types.
72554         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
72555         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
72556         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
72557         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
72558         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
72559         @WINT_T_SUFFIX@ to keep things simple here.
72560         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
72561         Simplify by assuming typical 8/16/32/64 host, since we're
72562         already doing that elsewhere anyway.
72563         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
72564         and assume long long int is 64 bits if available.  This
72565         speeds up 'configure'.
72566
72567 2006-07-01  Eric Blake  <ebb9@byu.net>
72568
72569         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
72570         Reported by Andreas Buening.
72571
72572 2006-07-01  Eric Blake  <ebb9@byu.net>
72573
72574         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
72575
72576 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
72577
72578         * lib/getaddrinfo.c: fixed typo
72579
72580 2006-06-29  Jim Meyering  <jim@meyering.net>
72581
72582         * modules/strftime (Maintainer): Add my name, since with the
72583         FPRINTFTIME changes strftime.c has forked from glibc.
72584
72585 2006-06-29  Eric Blake  <ebb9@byu.net>
72586
72587         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
72588
72589 2006-06-29  Eric Blake  <ebb9@byu.net>
72590
72591         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
72592
72593 2006-06-29  Eric Blake  <ebb9@byu.net>
72594
72595         * lib/stat_.h: New file.
72596
72597 2006-06-29  Eric Blake  <ebb9@byu.net>
72598
72599         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
72600         unused static function.
72601
72602 2006-06-29  Eric Blake  <ebb9@byu.net>
72603
72604         * doc/functions.texi (Function Portability): Document missing lstat
72605         on mingw.
72606
72607 2006-06-29  Eric Blake  <ebb9@byu.net>
72608
72609         * MODULES.html.sh: Add sys_stat.
72610         * modules/sys_stat: New module.
72611         * modules/mkstemp (Depends-on): Add sys_stat.
72612
72613 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72614
72615         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
72616
72617 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72618
72619         * m4/c-bs-a.m4: Removed.
72620
72621 2006-06-29  Derek R. Price  <derek@ximbiot.com>
72622
72623         * lib/strftime.c: Assume strftime() exists.
72624
72625 2006-06-29  Derek Price  <derek@ximbiot.com>
72626
72627         * modules/c-bs-a: Removed - \a is C89.
72628         * MODULES.html.sh: Remove c-bs-a.
72629
72630 2006-06-29  Bruno Haible  <bruno@clisp.org>
72631
72632         * modules/wcwidth (License): Change to LGPL.
72633
72634 2006-06-28  Simon Josefsson  <jas@extundo.com>
72635
72636         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
72637         on _WIN32.
72638
72639         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
72640         getnameinfo.
72641
72642 2006-06-28  Simon Josefsson  <jas@extundo.com>
72643
72644         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
72645
72646 2006-06-28  Simon Josefsson  <jas@extundo.com>
72647
72648         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
72649         functions there.  It will succeed on Windows XP, but on Windows
72650         2000 and (presumably) earlier, it will fail, and use the internal
72651         re-implementation.
72652         (use_win32_p): New function.
72653         (getaddrinfo): Use strtoul on servname, to support numeric ports.
72654         Support AI_NUMERICSERV to disable getservbyname.
72655         (getnameinfo): New function, only supports
72656         NI_NUMERICHOST|NI_NUMERICSERV for now.
72657
72658         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
72659         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
72660         getnameinfo.
72661
72662 2006-06-28  Eric Blake  <ebb9@byu.net>
72663
72664         * modules/wcwidth: New file.
72665         * modules/mbchar (Depends-on): Add wcwidth.
72666         * modules/mbswidth (Depends-on): Add wcwidth.
72667         * MODULES.html.sh: Add wcwidth.
72668
72669 2006-06-28  Eric Blake  <ebb9@byu.net>
72670
72671         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
72672         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
72673
72674 2006-06-28  Eric Blake  <ebb9@byu.net>
72675
72676         * lib/xvasprintf.h: Fix comments.
72677
72678 2006-06-28  Eric Blake  <ebb9@byu.net>
72679
72680         * lib/mbchar.h (wcwidth): Include wcwidth.h.
72681         * lib/mbswidth.c (wcwidth): Move from here...
72682         * lib/wcwidth.h: ...to this new file.
72683
72684 2006-06-28  Derek R. Price  <derek@ximbiot.com>
72685
72686         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
72687
72688         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
72689         it's obsolete.
72690         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
72691
72692 2006-06-28  Derek R. Price  <derek@ximbiot.com>
72693
72694         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
72695         Autoconf 2.60 says this stuff was obsolete.
72696
72697 2006-06-28  Bruno Haible  <bruno@clisp.org>
72698
72699         * modules/wcwidth (Files): Add m4/wchar_t.m4.
72700
72701 2006-06-28  Bruno Haible  <bruno@clisp.org>
72702
72703         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
72704         gt_TYPE_WCHAR_T.
72705
72706 2006-06-28  Bruno Haible  <bruno@clisp.org>
72707
72708         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
72709         declaration for wcwidth.
72710         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
72711
72712 2006-06-28  Bruno Haible  <bruno@clisp.org>
72713
72714         * lib/mkdtemp.c [MINGW]: Include <io.h>.
72715         (mkdir): Define using _mkdir.
72716
72717 2006-06-28  Bruno Haible  <bruno@clisp.org>
72718
72719         * lib/getaddrinfo.h: Fix POSIX URL.
72720         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
72721         _WIN32.
72722         (use_win32_p): Make static.
72723         (getaddrinfo): Reject service name if it is empty or does not consist
72724         solely of decimal digits, or if its value is > 65535.
72725         (getnameinfo): Remove useless casts.
72726
72727 2006-06-27  Simon Josefsson  <jas@extundo.com>
72728
72729         * modules/sys_select: New file, suggested by Bruno Haible, Paul
72730         Eggert and Martin Lambers.
72731
72732 2006-06-27  Simon Josefsson  <jas@extundo.com>
72733
72734         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
72735         Eggert and Martin Lambers.
72736
72737 2006-06-27  Bruno Haible  <bruno@clisp.org>
72738
72739         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
72740         result to 0, not to empty.
72741         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
72742
72743 2006-06-27  Bruno Haible  <bruno@clisp.org>
72744
72745         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
72746
72747 2006-06-26  Simon Josefsson  <jas@extundo.com>
72748
72749         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
72750         present.
72751
72752 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
72753
72754         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
72755         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
72756         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
72757
72758 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
72759
72760         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
72761
72762 2006-06-26  Bruno Haible  <bruno@clisp.org>
72763
72764         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
72765
72766 2006-06-26  Bruno Haible  <bruno@clisp.org>
72767
72768         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
72769
72770 2006-06-26  Bruno Haible  <bruno@clisp.org>
72771
72772         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
72773         SGI C compiler in pre-C99 mode.
72774         Suggested by Mark D. Baushke and Larry Jones.
72775
72776 2006-06-26  Bruno Haible  <bruno@clisp.org>
72777
72778         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
72779         WCHAR_MAX.
72780         Reported by Mark D. Baushke and Larry Jones.
72781
72782 2006-06-26  Bruno Haible  <bruno@clisp.org>
72783
72784         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
72785         in pre-C99 mode.
72786         Suggested by Mark D. Baushke and Larry Jones.
72787
72788 2006-06-23  Simon Josefsson  <jas@extundo.com>
72789             Bruno Haible  <bruno@clisp.org>
72790
72791         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
72792         Emit mostlyclean-local rule.
72793         (func_emit_tests_Makefile_am): Likewise.
72794         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
72795
72796 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
72797
72798         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
72799
72800 2006-06-23  Bruno Haible  <bruno@clisp.org>
72801
72802         * tests/test-stdint.c: Update to match ISO C 99 Technical
72803         Corrigendum 1.
72804
72805 2006-06-23  Bruno Haible  <bruno@clisp.org>
72806
72807         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
72808
72809 2006-06-23  Bruno Haible  <bruno@clisp.org>
72810
72811         * lib/stdint_.h: Treat IRIX like OpenBSD.
72812
72813 2006-06-23  Bruno Haible  <bruno@clisp.org>
72814
72815         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
72816         ISO C 99 Technical Corrigendum 1.
72817
72818 2006-06-22  Simon Josefsson  <jas@extundo.com>
72819
72820         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
72821         MinGW.
72822
72823 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72824
72825         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
72826         needed.  Some compiler complained about some of them.  Problem reported
72827         by Larry Jones in
72828         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
72829
72830 2006-06-21  Simon Josefsson  <jas@extundo.com>
72831
72832         * tests/test-getaddrinfo.c: New file.
72833
72834         * modules/getaddrinfo-tests: New file.
72835
72836         * MODULES.html.sh: Add inet_pton.
72837
72838         * modules/inet_pton: New file.
72839
72840 2006-06-21  Simon Josefsson  <jas@extundo.com>
72841
72842         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
72843         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
72844         of using the (limited) gnulib implementation on Windows XP.
72845
72846         * m4/inet_pton.m4: New file.
72847
72848 2006-06-21  Simon Josefsson  <jas@extundo.com>
72849
72850         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
72851         variable.
72852
72853         * lib/socket_.h: Don't define WINVER.
72854
72855         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
72856         slightly modified to work in gnulib.
72857
72858 2006-06-21  Simon Josefsson  <jas@extundo.com>
72859
72860         * doc/gnulib.texi (Windows sockets): Add.
72861
72862 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
72863
72864         * lib/read-file.c (fread_file): Start with buffer allocation of
72865         0 bytes rather than 1 byte; this simplifies the code.
72866         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
72867         code to free buffer and save/restore errno.
72868         (internal_read_file): Remove unused local.
72869
72870 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
72871
72872         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
72873         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
72874         Problem reported by Denis Excoffier in
72875         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
72876
72877 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72878
72879         * modules/sys_socket, modules/socklen: Include sys/types since
72880         FreeBSD 4.x's sys/socket.h needs it.
72881
72882 2006-06-19  Simon Josefsson  <jas@extundo.com>
72883
72884         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
72885
72886 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
72887
72888         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
72889
72890 2006-06-19  Bruno Haible  <bruno@clisp.org>
72891
72892         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
72893         and FULL_PATH_INTTYPES_H in angle brackets.
72894         Reported by Mark D. Baushke <mdb@gnu.org>.
72895
72896 2006-06-17  Eric Blake  <ebb9@byu.net>
72897
72898         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
72899         errno.
72900
72901 2006-06-17  Bruno Haible  <bruno@clisp.org>
72902
72903         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
72904         <sys/inttypes.h>.
72905
72906 2006-06-17  Bruno Haible  <bruno@clisp.org>
72907
72908         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
72909         whether errno is declared. Assume <errno.h> declares errno.
72910
72911 2006-06-17  Bruno Haible  <bruno@clisp.org>
72912
72913         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
72914
72915 2006-06-17  Bruno Haible  <bruno@clisp.org>
72916
72917         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
72918         problem on Solaris 2.5.1.
72919
72920 2006-06-16  Eric Blake  <ebb9@byu.net>
72921
72922         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
72923         * lib/unicodeio.c [!defined errno]: Likewise.
72924         * lib/strtol.c [!defined errno]: Likewise.
72925         * lib/strtod.c [!defined errno]: Likewise.
72926
72927 2006-06-15  Eric Blake  <ebb9@byu.net>
72928
72929         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
72930
72931 2006-06-15  Eric Blake  <ebb9@byu.net>
72932
72933         * config/srclist.txt (ssize_t.m4): Lose sync.
72934
72935 2006-06-15  Bruno Haible  <bruno@clisp.org>
72936
72937         * modules/stdint (Files): Include m4/full-header-path.m4,
72938         m4/size_max.m4, m4/wchar_t.m4.
72939         (Makefile.am): Many more substitutions.
72940         * modules/stdint-tests: New file.
72941         * tests/test-stdint.c: New file.
72942
72943 2006-06-15  Bruno Haible  <bruno@clisp.org>
72944
72945         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
72946         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
72947         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
72948         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
72949         gl_CHECK_TYPE_SAME): New macros.
72950
72951 2006-06-15  Bruno Haible  <bruno@clisp.org>
72952
72953         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
72954
72955 2006-06-15  Bruno Haible  <bruno@clisp.org>
72956
72957         * lib/stdint_.h: Rewritten to be fully auto-configured.
72958         Fixes bug on HP-UX/IA64.
72959
72960 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
72961
72962         * lib/getdate.y (__attribute__): Don't define if already defined.
72963         Problem reported by Larry Jones.
72964         * lib/utimens.c (__attribute__): Likewise.
72965
72966 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
72967
72968         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
72969         reported by Andreas Schwab.
72970
72971 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72972             Bruno Haible  <bruno@clisp.org>
72973
72974         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
72975         check for the declaration of strnlen and a run test that exposes the
72976         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
72977         rpl_strndup.
72978
72979 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72980             Bruno Haible  <bruno@clisp.org>
72981
72982         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
72983
72984 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72985
72986         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
72987         compile test, for Tru64 4.0D.
72988
72989 2006-05-28  Karl Berry  <karl@gnu.org>
72990
72991         * config/srclist.txt (printf-args.c): lose sync.
72992
72993 2006-05-26  Martin Lambers  <marlam@marlam.de>
72994
72995         * lib/getpass.c: Updates the test for the native W32 API, and adds
72996         missing includes, thus fixing compilation warnings.
72997
72998 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
72999
73000         * lib/exclude.c (exclude_fnmatch): New function.
73001         (excluded_file_name): Call exclude_fnmatch.
73002         * lib/exclude.h (excluded_file_name): New prototype
73003
73004 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
73005
73006         * lib/tempname.c (small_open, large_open): New macros.
73007         (__open, __open64) [!_LIBC]: Remove.
73008         (__gen_tempname): Use small_open and large_open instead of __open
73009         and __open64.  This fixes a portability bug on HP-UX 11.11i
73010         reported by Simon Wing-Tang in
73011         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
73012
73013 2006-05-24  Bruno Haible  <bruno@clisp.org>
73014
73015         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
73016         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
73017         Reported by Thorsten Maerz <torte@netztorte.de> via
73018         Aaron Stone <aaron@serendipity.cx>.
73019
73020 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
73021
73022         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
73023         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
73024         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
73025         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
73026         not really conditional on the cache.
73027         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
73028
73029 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
73030
73031         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
73032         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
73033         (my_usleep): Don't mishandle maximum value.
73034
73035 2006-05-19  Jim Meyering  <jim@meyering.net>
73036
73037         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
73038
73039 2006-05-17  Bruno Haible  <bruno@clisp.org>
73040
73041         Cygwin portability.
73042         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
73043
73044 2006-05-17  Bruno Haible  <bruno@clisp.org>
73045
73046         * lib/stdint_.h: Fix recognition of Cygwin.
73047
73048 2006-05-15  Bruno Haible  <bruno@clisp.org>
73049
73050         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
73051         on libtool patch by Ralf Wildenhues.
73052
73053 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73054
73055         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
73056         test for C99 conformance; (bool) 0.5 is an integer constant
73057         expression, but (bool) -0.5 is not.  Problem reported by Fedor
73058         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
73059
73060 2006-05-11  Simon Josefsson  <jas@extundo.com>
73061
73062         * m4/xvasprintf.m4: Fix obvious typo.
73063
73064 2006-05-11  Jim Meyering  <jim@meyering.net>
73065
73066         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
73067         James Lemley.
73068
73069 2006-05-10  Simon Josefsson  <jas@extundo.com>
73070
73071         * lib/md4.c: Typo fix, update copyright years.
73072         (K1, K2): Don't use L because it turn computations into 64-bit on
73073         64-bit platforms.
73074
73075 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
73076
73077         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
73078         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
73079         unwanted sign propagation, e.g., on hosts with 64-bit int.
73080         There still are some problems with reeelly weird theoretical hosts
73081         (e.g., 33-bit int) but it's not worth worrying about now.
73082         * lib/sha1.c (rol): Likewise.
73083         (K1, K2, K3, K4): Remove unnecessary L suffix.
73084
73085 2006-05-10  Bruno Haible  <bruno@clisp.org>
73086
73087         * lib/des.c: Cast to avoid warnings.
73088
73089 2006-05-09  Bruno Haible  <bruno@clisp.org>
73090
73091         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
73092         (Depends-on): Depend also on xsize, stdarg.
73093         (configure.ac): Add gl_XVASPRINTF.
73094
73095 2006-05-09  Bruno Haible  <bruno@clisp.org>
73096
73097         * m4/xvasprintf.m4: New file.
73098
73099 2006-05-09  Bruno Haible  <bruno@clisp.org>
73100
73101         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
73102         (EOVERFLOW): Define fallback value.
73103         (xstrcat): New function.
73104         (xvasprintf): Recognize the special case of a string concatenation.
73105
73106 2006-05-08  Eric Blake  <ebb9@byu.net>
73107
73108         * gnulib-tool (func_version): Base copyright year on CVS date.
73109         (func_emit_copyright_notice): New function.
73110         (func_emit_lib_Makefile_am): Use it.
73111         (func_emit_tests_Makefile_am): Likewise.
73112         (func_import): Likewise.
73113
73114 2006-05-08  Bruno Haible  <bruno@clisp.org>
73115
73116         * modules/stdarg: New file.
73117         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
73118
73119 2006-05-08  Bruno Haible  <bruno@clisp.org>
73120
73121         * m4/stdarg.m4: New file, from GNU gettext.
73122
73123 2006-05-08  Bruno Haible  <bruno@clisp.org>
73124
73125         * config/srclist.txt (build-aux/config.rpath): different from latest
73126         release.
73127
73128 2006-05-08  Bruno Haible  <bruno@clisp.org>
73129
73130         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
73131
73132 2006-05-05  Jim Meyering  <jim@meyering.net>
73133
73134         * m4/warning.m4: New file, derived from bison's file by the same name.
73135
73136 2006-05-03  Bruno Haible  <bruno@clisp.org>
73137
73138         * lib/stdint_.h: Shorter URL.
73139         * lib/inttypes.h: Likewise.
73140
73141 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73142
73143         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
73144
73145 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73146
73147         * lib/verify.h: Document the internals better.  Most of this change
73148         was written by Bruno Haible.
73149
73150 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73151
73152         * doc/verify.texi: New file, partly based on a proposal by
73153         Bruno Haible.
73154
73155 2006-05-02  Bruno Haible  <bruno@clisp.org>
73156
73157         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
73158         test from here...
73159         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
73160
73161 2006-04-29  Bruno Haible  <bruno@clisp.org>
73162
73163         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
73164         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
73165
73166 2006-04-29  Bruno Haible  <bruno@clisp.org>
73167
73168         * gnulib-tool: Make --update option actually work.
73169
73170 2006-04-29  Bruno Haible  <bruno@clisp.org>
73171
73172         * doc/gcd.texi: New file.
73173         * doc/gnulib.texi: Include it.
73174
73175 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
73176
73177         * lib/getdate.y (get_date): When adding relative date, start with the
73178         initial time, not with the result of the first mktime call.
73179
73180 2006-04-25  Bruno Haible  <bruno@clisp.org>
73181
73182         * gnulib-tool (func_import): Output the include directives in three
73183         blocks, sorted separately.
73184         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73185
73186 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
73187
73188         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
73189         to define main with arguments, for C++.  Reported by Eric Blake.
73190         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
73191         Prefer 'int main ()' to 'int main (void)', for C++.
73192         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
73193         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
73194         for 'main', for C99 and C++.
73195
73196 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
73197
73198         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
73199         Don't assume that exit status -1 is valid.
73200         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73201         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
73202         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
73203         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
73204         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
73205         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
73206         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
73207         functions can be used without declaring them, or that you can
73208         exit with status -1.
73209         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
73210
73211 2006-04-24  Karl Berry  <karl@gnu.org>
73212
73213         * config/srclist.txt (longdouble.m4): sync lost.
73214
73215 2006-04-24  Eric Blake  <ebb9@byu.net>
73216
73217         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
73218
73219 2006-04-24  Bruno Haible  <bruno@clisp.org>
73220
73221         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
73222         poll() implementation in AIX.
73223         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73224
73225 2006-04-24  Bruno Haible  <bruno@clisp.org>
73226
73227         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
73228         assigned exactly once.
73229
73230 2006-04-23  Claudio Fontana  <claudio@gnu.org>
73231             Bruno Haible  <bruno@clisp.org>
73232
73233         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
73234         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
73235         for AM_CPPFLAGS.
73236
73237 2006-04-23  Bruno Haible  <bruno@clisp.org>
73238
73239         * modules/copy-file: Depend on unistd.
73240         * modules/execute: Likewise.
73241         * modules/fatal-signal: Likewise.
73242         * modules/findprog: Likewise.
73243         * modules/mkdtemp : Likewise.
73244         * modules/pipe: Likewise.
73245         * modules/wait-process: Likewise.
73246
73247 2006-04-23  Bruno Haible  <bruno@clisp.org>
73248
73249         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
73250         condition was already detected.
73251         Reported by Ben Pfaff <blp@cs.stanford.edu>.
73252
73253 2006-04-23  Bruno Haible  <bruno@clisp.org>
73254
73255         * lib/copy-file.c: Include <unistd.h> unconditionally.
73256         * lib/execute.c: Likewise.
73257         * lib/fatal-signal.c: Likewise.
73258         * lib/findprog.c: Likewise.
73259         * lib/mkdtemp.c: Likewise.
73260         * lib/pipe.h: Likewise.
73261         * lib/pipe.c: Likewise.
73262         * lib/wait-process.h: Likewise.
73263
73264 2006-04-23  Bruno Haible  <bruno@clisp.org>
73265
73266         * gnulib-tool (func_usage): Fix --import description. Document
73267         --update.
73268         (func_import): Create temporary file in a temporary directory, if
73269         --dry-run is specified. Silence errors from 'grep' when there are no
73270         m4 files in $m4dir.
73271         (func_create_testdir): Silence errors from 'grep' when there are no
73272         m4 files in $m4dir.
73273         Reported by Karl Berry <karl@freefriends.org>.
73274
73275 2006-04-20  Bruno Haible  <bruno@clisp.org>
73276
73277         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
73278         one argument, so that the code will be portable to Autoconf 2.60.
73279         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
73280         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
73281         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
73282
73283 2006-04-19  Derek Price  <derek@ximbiot.com>
73284             Eric Blake  <ebb9@byu.net>
73285
73286         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
73287         rather than "/full/path.h".  Update comment to match.  Shorten &
73288         generalize m4_translit call via AS_TR_CPP.
73289
73290 2006-04-19  Derek Price  <derek@ximbiot.com>
73291             Eric Blake  <ebb9@byu.net>
73292
73293         * lib/inttypes.h: Correct grammar in comment.
73294
73295 2006-04-18  Derek Price  <derek@ximbiot.com>
73296             Paul Eggert  <eggert@cs.ucla.edu>
73297
73298         * modules/inttypes: New file.
73299         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
73300
73301 2006-04-18  Derek Price  <derek@ximbiot.com>
73302             Paul Eggert  <eggert@cs.ucla.edu>
73303
73304         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
73305         New files.
73306
73307 2006-04-18  Derek Price  <derek@ximbiot.com>
73308             Paul Eggert  <eggert@cs.ucla.edu>
73309
73310         * lib/inttypes.h: New file.
73311         * lib/strtoimax.c: Assume <inttypes.h>.
73312
73313 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
73314
73315         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
73316         isn't mounted.  Problem reported by Kir Kolyshkin.
73317
73318 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
73319
73320         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
73321         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
73322         Derek R. Price.
73323         * lib/regex.h (RE_DUP_MAX): Update comment to match current
73324         implementation.
73325
73326 2006-04-12  Eric Blake  <ebb9@byu.net>
73327
73328         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
73329         is now done automatically by the corresponding Autoconf macro.
73330
73331 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
73332
73333         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
73334         time_r.h.
73335
73336 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73337
73338         Merge regex changes from libc, removing some of our
73339         POSIX-conformance changes that were rejected and redoing them in a
73340         less-intrusive way.
73341
73342         * lib/regcomp.c (re_compile_internal, init_dfa):
73343         Length arg is now size_t, not Idx.  All uses changed.
73344         (peek_token): Forward decl now says internal_function.
73345         (__re_error_msgid, __re_error_msgid_idx):
73346         Now static rather than extern with attribute_hidden.
73347         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
73348         For some reason libc prefers K&R style defns for external functions.
73349         (regerror) [!defined _LIBC]: Likewise.
73350         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
73351         (seek_collating_symbol_entry, lookup_collation_sequence_value):
73352         (build_range_exp, build_collating_symbol):
73353         Use K&R-style defn.
73354         (re_compile_fastmap): Use '\0' to memset, not 0.
73355         (utf8_sb_map): Make the calculations more obvious.
73356         (init_dfa, parse_bracket_exp, build_charclass_op):
73357         Call calloc and cast result, as glibc does.
73358         (init_word_char, fetch_token, peek_token, peek_token_bracket):
73359         (build_range_exp, build_collating_symbol):
73360         Now internal functions.
73361
73362         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
73363
73364         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
73365         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
73366         Don't depend on VMS; depend on __VMS instead, for POSIX
73367         namespace cleanness.
73368         (regoff_t): Define to ssize_t, not long int.
73369
73370         Remove the REG_ macros named below.  Instead, make the old names
73371         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
73372         __USE_GNU_REGEX.
73373         (REG_BACKSLASH_ESCAPE_IN_LISTS):
73374         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
73375         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
73376         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
73377         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
73378         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
73379         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
73380         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
73381         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
73382         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
73383         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
73384         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
73385         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
73386         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
73387         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
73388         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
73389         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
73390         (REG_NREGS):
73391         Remove.  All uses replaced by the old RE_* names.
73392         (RE_BACKSLASH_ESCAPE_IN_LISTS):
73393         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
73394         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
73395         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
73396         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
73397         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
73398         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
73399         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
73400         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
73401         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
73402         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
73403         Don't bother having these macros be independent of each others'
73404         values, since they no longer exist in the POSIX name space.
73405
73406         Rename the following member names back to their old names,
73407         unless !__USE_GNU_REGEX.  All uses changed back.
73408         (buffer): Renamed from re_buffer.
73409         (allocated): Renamed from re_allocated.
73410         (used): Renamed from re_used.
73411         (syntax): Renamed from re_syntax.
73412         (fastmap): Renamed from re_fastmap.
73413         (translate): Renamed from re_translate.
73414         (can_be_null): Renamed from re_can_be_null.
73415         (regs_allocated): Renamed from re_regs_allocated.
73416         (fastmap_accurate): Renamed from re_fastmap_accurate.
73417         (no_sub): Renamed from re_no_sub.
73418         (not_bol): Renamed from re_not_bol.
73419         (not_eol): Renamed from re_not_eol.
73420         (newline_anchor): Renamed from re_newline_anchor.
73421         (num_regs): Renamed from rm_num_regs.
73422         (start): Renamed from rm_start.
73423         (end): Renamed from rm_end.
73424
73425         (free_state): Move up a bit.
73426
73427         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
73428         #define to be empty.
73429         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
73430         when that is what is intended.
73431         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
73432         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
73433         (MAX): New macro.
73434         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
73435         All uses changed back to re_malloc, etc.  It's now the caller's
73436         responsibility to check for overflow; all callers changed.
73437         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
73438         (re_x2nrealloc): Remove.
73439         (free_state): Remove decl.
73440
73441         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
73442         (re_set_registers, re_exec):
73443         Use K&R-style defn.
73444
73445         2006-01-31  Roland McGrath  <roland@redhat.com>
73446
73447         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
73448         Reported by Mike Frysinger <vapier@gentoo.org>.
73449
73450         2006-01-15  Andreas Jaeger  <aj@suse.de>
73451
73452         [BZ #1950]
73453         * lib/regex_internal.c (re_string_reconstruct): Adjust for
73454         build_wcs_upper_buffer change.
73455         (build_wcs_upper_buffer): Change return type.
73456
73457         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
73458
73459         * lib/regex_internal.h: Include <stdint.h> if available.
73460
73461         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
73462
73463         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
73464
73465         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
73466
73467         * lib/regcomp.c: Adjust for changed secondary hash function.
73468
73469         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
73470
73471         * lib/regex.h: Pretty printing.
73472         Clean up namespace a bit.
73473
73474         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
73475
73476         * lib/regexec.c (update_cur_sifted_state, check_arrival,
73477         check_arrival_add_next_nodes): Avoid using uninitialized variable.
73478
73479         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
73480                     Ulrich Drepper  <drepper@redhat.com>
73481
73482         [BZ #1302]
73483         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
73484         changed.
73485         (bitset_word_t): Renamed from bitset_word.  All uses changed.
73486
73487         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
73488
73489         [BZ #281]
73490         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
73491         * lib/regcomp.c: Remove unnecessary uses of
73492         unsigned RE_TRANSLATE_TYPE.
73493         * lib/regex_internal.h: Likewise.
73494         * lib/regex_internal.c: Likewise.
73495         * lib/regexec.c: Likewise.
73496         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
73497
73498         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
73499
73500         * lib/regexec.c (find_recover_state): Remove unnecessary
73501         initialization.
73502         (transit_state_bkref): Make DFA a const pointer.
73503         (get_subexp): Likewise.
73504         (check_arrival): Likewise.
73505         (update_cur_sifted_state): Likewise.
73506         (re_search_internal): Likewise.
73507         (prune_impossible_nodes): Likewise.
73508         (acquire_init_state_context): Likewise.
73509         (proceed_next_node): Likewise.
73510         (set_regs): Likewise.
73511         (free_fail_stack_return): Likewise.
73512         (check_arrival_expand_ecl): Mark DFA parameter as const.
73513         (check_arrival_expand_ecl_sub): Likewise.
73514         (check_subexp_limits): Likewise.
73515         (sub_epsilon_src_nodes):  Likewise.
73516         (add_epsilon_src_nodes):  Likewise.
73517         (merge_state_array): Likewise.
73518         (update_regs): Likewise.
73519         (build_trtable): Likewise.
73520         (sift_states_backward): Mark MCTX parameter as const.
73521         (build_sifted_states): Likewise.
73522         (update_cur_sifted_state): Likewise.
73523         (sift_states_mkref): Likewise.
73524         (check_arrival_expand_ecl): Mark eclosure as const.
73525         (check_dst_limits_calc_pos_1): Likewise.
73526         * lib/regex_internal.h (re_match_context_t): Make dfa a const
73527         pointer.
73528
73529         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
73530
73531         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
73532         (transit_state_sb): Likewise.
73533         (transit_state_mb): Likewise.
73534         (sift_states_iter_mb): Likewise.
73535         (check_arrival_add_next_nodes): Likewise.
73536         (check_node_accept_bytes): Change first parameter to pointer-to-const.
73537         [_LIBC] (re_search_2_stub): Use mempcpy.
73538
73539         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
73540         mbrtowc for very simple UTF-8 case.
73541
73542         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
73543         a pointer-to-const.
73544         (re_acquire_state_context): Likewise.
73545         * lib/regex_internal.h: Adjust prototypes.
73546
73547         * lib/regex.c: Prevent using C++ compilers.
73548
73549         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
73550         (re_acquire_state_context): Likewise.
73551
73552 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73553
73554         * modules/regex (Depends-on): Add ssize_t.
73555
73556 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73557
73558         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
73559         translation table.
73560
73561 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
73562
73563         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
73564
73565 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
73566             Bruno Haible  <bruno@clisp.org>
73567
73568         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
73569         <sys/types.h> and <inttypes.h>.
73570
73571 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73572
73573         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
73574         `__error_t_defined', so argp.h will not typedef the former.
73575
73576 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
73577
73578         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
73579         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
73580         glibc names.  Even if glibc is changed to conform to POSIX, the
73581         traditional names will be available anyway, since regex depends on
73582         the extensions module.  Also, fix a longstanding typo in the
73583         implementation of Spencer ERE test #75 from grep 2.3.  Problems
73584         reported by Emanuele Giaquinta.  Also, change sense of cached
73585         variable, so that the message makes sense.
73586
73587 2006-03-24  Simon Josefsson  <jas@extundo.com>
73588
73589         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
73590         including some doc fixes.
73591         (base64_encode_alloc): Fix +1 bug on allocation failures.
73592
73593 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73594
73595         * lib/base64.c (base64_encode): Do not read past end of array with
73596         unsanitized input on systems with CHAR_BIT > 8.
73597
73598 2006-03-24  Eric Blake  <ebb9@byu.net>
73599
73600         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
73601
73602 2006-03-22  Karl Berry  <karl@gnu.org>
73603
73604         * config/srclist.txt (*setenv.[ch]): get from coreutils.
73605         * config/srclistvars.sh (COREUTILS): new var.
73606
73607 2006-03-17  Jim Meyering  <jim@meyering.net>
73608
73609         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
73610         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
73611
73612 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
73613
73614         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
73615         no longer needs it.  Instead, check that regoff_t is as least
73616         as wide as ptrdiff_t.
73617
73618         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
73619         so that our regex.h stays compatible with the installed regex.
73620         This is helpful for installers who configure --without-included-regex.
73621         Problem reported by Emanuele Giaquinta.
73622
73623 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
73624
73625         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
73626         Typedef to long int, not to off_, as POSIX will likely change
73627         in that direction.
73628
73629 2006-03-15  Eric Blake  <ebb9@byu.net>
73630
73631         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
73632
73633 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
73634
73635         * lib/argp-help.c (validate_uparams): Fix typo
73636         * lib/argp-parse.c (argp_default_options): Consistently begin help
73637         messages with a lowercase letter.
73638
73639 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
73640
73641         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
73642         overrun buffers and shouldn't be used (much as gets shouldn't be
73643         used).
73644         * lib/time_r.c (asctime_r, ctime_r): Likewise.
73645
73646 2006-03-08  Simon Josefsson  <jas@extundo.com>
73647
73648         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
73649         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73650
73651 2006-03-08  Simon Josefsson  <jas@extundo.com>
73652
73653         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
73654         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73655
73656 2006-03-08  Simon Josefsson  <jas@extundo.com>
73657
73658         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
73659         signal that configure disabled the device.
73660
73661 2006-03-08  Simon Josefsson  <jas@extundo.com>
73662
73663         * build-aux/maint.mk: Fix refresh-po, to handle no translated
73664         languages.
73665
73666 2006-03-07  Simon Josefsson  <jas@extundo.com>
73667
73668         * modules/getopt (Depends-on): Add unistd.
73669
73670         * modules/unistd: New file.
73671
73672 2006-03-07  Simon Josefsson  <jas@extundo.com>
73673
73674         * modules/gc-random: New file.
73675
73676 2006-03-07  Simon Josefsson  <jas@extundo.com>
73677
73678         * m4/unistd_h.m4: New file.
73679
73680 2006-03-07  Simon Josefsson  <jas@extundo.com>
73681
73682         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
73683         test to be side-effect free by storing the result in the cache
73684         variable gl_cv_lib_readline, and moving the assignment of
73685         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
73686         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73687
73688 2006-03-07  Simon Josefsson  <jas@extundo.com>
73689
73690         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
73691         error on missing devices (the functions will return an error).
73692
73693         * m4/gc.m4: Move random stuff to gc-random.m4
73694
73695 2006-03-07  Simon Josefsson  <jas@extundo.com>
73696
73697         * lib/unistd_.h: New file.
73698
73699 2006-03-07  Simon Josefsson  <jas@extundo.com>
73700
73701         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
73702
73703 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73704
73705         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
73706         Problem reported by Juan Manuel Guerrero.
73707
73708 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73709
73710         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
73711         the unistd module.
73712         * lib/getlogin_r.c: Likewise.
73713         * lib/getlogin_r.h: Likewise.
73714         * lib/glob.c: Likewise.
73715         * lib/pagealign_alloc.c: Likewise.
73716         * lib/unistd_.h: Remove; no longer needed.
73717
73718 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
73719
73720         * MODULES.html.sh (Support for systems lacking POSIX:2001):
73721         Add unistd.
73722         * modules/c-stack (Depends-on): Add unistd.
73723         * modules/getlogin_r: Likewise.
73724         * modules/glob: Likewise.
73725         * modules/pagealign_alloc: Likewise.
73726         * modules/unistd (Files): Remove lib/unistd_.h.
73727         (EXTRA_DIST): Remove.
73728         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
73729         need unistd_.h.
73730         (MOSTLYCLEANFILES): Remove unistd.h-t.
73731
73732 2006-03-03  Simon Josefsson  <jas@extundo.com>
73733
73734         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
73735
73736 2006-03-03  Simon Josefsson  <jas@extundo.com>
73737
73738         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
73739         libidn and bison.
73740
73741 2006-03-03  Simon Josefsson  <jas@extundo.com>
73742
73743         * build-aux/maint.mk: Add indent target.
73744
73745 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
73746
73747         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
73748         our replacement poll.h in any case, to avoid a differing
73749         declaration from a system header.  Seen on AIX.
73750
73751 2006-03-01  Simon Josefsson  <jas@extundo.com>
73752
73753         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
73754         <kasal@ucw.cz>.
73755
73756 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73757
73758         * modules/gettime (Depends-on): Add extensions module.
73759         * modules/nanosleep (Depends-on): Likewise.
73760         * modules/settime (Depends-on): Likewise.
73761
73762 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73763
73764         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
73765         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
73766         pedantically.
73767         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73768         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
73769
73770         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
73771         not "==".  Reported by Ralf Wildenhues.
73772
73773 2006-03-01  Karl Berry  <karl@gnu.org>
73774
73775         * doc/Copyright/request-*: new files, synced from gnuorg.
73776
73777 2006-03-01  Karl Berry  <karl@gnu.org>
73778
73779         * config/srclist.txt (Copyright/*): new entries.
73780
73781 2006-02-28  Simon Josefsson  <jas@extundo.com>
73782
73783         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
73784
73785 2006-02-27  Simon Josefsson  <jas@extundo.com>
73786
73787         * lib/base64.h: Indent #define's.  From Jim Meyering
73788         <jim@meyering.net>.
73789
73790 2006-02-27  Jim Meyering  <jim@meyering.net>
73791
73792         Revert the change of 2006-02-24, so these files can continue
73793         to be sync'd from gettext.
73794         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
73795         of `config.h'.
73796
73797 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
73798
73799         * modules/intprops: New file.
73800         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
73801         Add intprops.
73802         * modules/getloadavg (Files): Remove lib/intprops.h.
73803         (Depends-on): Add intprops.
73804         * modules/human: Likewise.
73805         * modules/inttostr: Likewise.
73806         * modules/openat: Likewise.
73807         * modules/sig2str: Likewise.
73808         * modules/userspec: Likewise.
73809         * modules/utimecmp: Likewise.
73810         * modules/xnanosleep: Likewise.
73811         * modules/xstrtol: Likewise.
73812
73813 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
73814
73815         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
73816         * modules/lock-tests (TESTS): Use $(EXEEXT).
73817         * modules/tls-tests: Likewise.
73818         * modules/argp-tests: Likewise.
73819         (check_PROGRAMS): New var, replacing...
73820         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
73821
73822 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73823
73824         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
73825         `config.h'.
73826
73827 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
73828
73829         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
73830
73831 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73832
73833         Sync from coreutils.
73834         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
73835         gl_CHDIR_SAFER.
73836
73837 2006-02-22  Jim Meyering  <jim@meyering.net>
73838
73839         Sync from coreutils.
73840         * m4/chdir-safer.m4: New file.
73841
73842 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
73843
73844         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
73845         AT_FDCWD exceeds INT_MAX.
73846         * lib/openat.h (AT_FDCWD): Likewise.
73847
73848 2006-02-17  Eric Blake  <address@hidden>
73849
73850         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
73851
73852 2006-02-16  Simon Josefsson  <jas@extundo.com>
73853
73854         * modules/getaddrinfo (Depends-on): Add sys_socket.
73855
73856 2006-02-15  Simon Josefsson  <jas@extundo.com>
73857
73858         * build-aux/maint.mk: Add dsyntax-check rule.
73859
73860 2006-02-15  Eric Blake  <ebb9@byu.net>
73861
73862         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
73863         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
73864         'present but cannot compile' warnings on cygwin.
73865         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
73866         use ws2tcpip.h if sys/socket.h works.
73867         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
73868         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
73869
73870 2006-02-14  Simon Josefsson  <jas@extundo.com>
73871
73872         * modules/maintainer-makefile (Files): Rename.
73873
73874         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
73875         and (the local) Makefile.cfg to maint-cfg.mk.
73876
73877         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
73878         to the latter.
73879
73880         * modules/maintainer-makefile: New module.
73881
73882         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
73883         severaly stripped to make it possible to build it up from scratch
73884         with reliable tests.
73885
73886         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
73887         fixes to permit overriding the default actions when configure and
73888         makefile are not available.
73889
73890 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
73891
73892         Sync from coreutils.
73893         * modules/lstat (Depends-on): Don't depend on xalloc.
73894         (License): Change from GPL to LGPL, since this is now simply a
73895         replacement for a libc function.
73896
73897 2006-02-14  Jim Meyering  <jim@meyering.net>
73898
73899         Sync from coreutils.
73900
73901         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
73902         failure on deficient systems, and simplify gnulib lgpl dependencies.
73903         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
73904         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
73905
73906         * lib/xalloc-die.c: Remove unused definition of N_.
73907
73908 2006-02-14  Jim Meyering  <jim@meyering.net>
73909
73910         Sync from coreutils.
73911         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
73912         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
73913         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
73914         double-quote uses of that variable, to accommodate the rare case in
73915         which getmntent is available in none of the libraries checked.  This
73916         happens at least on FreeBSD 5.0.
73917
73918 2006-02-13  Simon Josefsson  <jas@extundo.com>
73919
73920         * gnulib-tool (Usage): Fix --import, from
73921         karl@freefriends.org (Karl Berry).
73922
73923 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
73924
73925         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
73926
73927 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
73928
73929         * lib/argp-namefrob.h: Restore changes accidentally lost during the
73930         "autoupdate" on 2005-12-12.
73931
73932 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73933
73934         * modules/closeout (Depends-on): Remove atexit.
73935
73936 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
73937
73938         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
73939         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
73940
73941 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
73942
73943         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
73944         __EXTENSIONS__ if this causes compilation to fail.  Problem
73945         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
73946         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
73947
73948 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
73949
73950         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
73951         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
73952         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
73953         All uses changed.
73954
73955 2006-01-26  Simon Josefsson  <jas@extundo.com>
73956
73957         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
73958         prototype is visible on mingw32.
73959
73960         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
73961         for mingw32.
73962
73963         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
73964         mingw32).
73965
73966 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
73967
73968         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
73969         attempt to open for write; this always fails, at least on POSIX
73970         hosts.  This reinstates the 2006-01-09 change, which was
73971         inadvertently removed.
73972
73973 2006-01-26  Bruno Haible  <bruno@clisp.org>
73974
73975         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
73976         Reported by Paul Eggert.
73977
73978 2006-01-26  Bruno Haible  <bruno@clisp.org>
73979             Paul Eggert  <eggert@cs.ucla.edu>
73980
73981         * lib/stdbool_.h (_Bool)
73982         [(! (defined __cplusplus || defined __BEOS__)
73983           && !defined __GNUC__
73984           && !(defined __HP_cc || defined __xlc__
73985                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
73986                || defined __sgi))]:
73987         #define to signed char in these cases too; this simplifies
73988         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
73989         etc., separately) and makes it more conservative.
73990
73991 2006-01-25  Simon Josefsson  <jas@extundo.com>
73992
73993         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
73994         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
73995         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
73996
73997 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
73998
73999         * lib/argp-namefrob.h: Bugfix. Remove stray #
74000
74001 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
74002
74003         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
74004         so that we test the test.
74005         Check for yet another HP-UX cc bug involving *bool |= bool.
74006
74007 2006-01-25  Karl Berry  <karl@gnu.org>
74008
74009         * config/srclist.txt (vasnprintf.c): sync lost.
74010
74011 2006-01-25  Jim Meyering  <jim@meyering.net>
74012
74013         Sync from the stable (b5) branch of coreutils:
74014
74015         * lib/fts.c (fts_children): Don't let close() clobber errno from
74016         failed fchdir().
74017
74018         * lib/fts.c (fts_stat): When following a symlink-to-directory,
74019         don't necessarily interpret stat-fails+lstat-succeeds as indicating
74020         a dangling symlink.  That can also happen at least for ELOOP.
74021         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
74022         FYI, this bug predates the inclusion of fts.c in coreutils.
74023
74024         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
74025         in their own block, so pre-c99 compilers don't object.
74026
74027         Avoid the double-free (first in fts_read, second in fts_close) that
74028         would occur when an `active' directory is made inaccessible (e.g.,
74029         via chmod a-x) during a traversal.
74030         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
74031         before returning.  Reproduce this failure by
74032         mkdir -p a/b; cd a; chmod a-x . b
74033         Reported by Stavros Passas.
74034
74035 2006-01-25  Jim Meyering  <jim@meyering.net>
74036
74037         * lib/fileblocks.c: Remove more useless parentheses.
74038         * lib/readutmp.h: Likewise.
74039
74040 2006-01-25  Bruno Haible  <bruno@clisp.org>
74041
74042         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
74043         warnings.
74044         Reported by Paul Eggert.
74045
74046 2006-01-25  Bruno Haible  <bruno@clisp.org>
74047
74048         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
74049         rid of a trap command. For Solaris sh.
74050         Reported by Mark D. Baushke <mdb@gnu.org>.
74051
74052 2006-01-24  Simon Josefsson  <jas@extundo.com>
74053
74054         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
74055         Bruno.
74056
74057 2006-01-24  Karl Berry  <karl@gnu.org>
74058
74059         * config/srclist.txt (argp-namefrob.h): sync lost.
74060
74061 2006-01-24  Jim Meyering  <jim@meyering.net>
74062
74063         * modules/openat (Files): Add lib/intprops.h.
74064         From Mark D. Baushke.
74065
74066 2006-01-24  Jim Meyering  <jim@meyering.net>
74067
74068         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
74069         Reported by Mark D. Baushke.
74070
74071 2006-01-24  Jim Meyering  <jim@meyering.net>
74072
74073         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
74074
74075 2006-01-24  Bruno Haible  <bruno@clisp.org>
74076
74077         * modules/strnlen (Maintainer): Change from glibc to all.
74078
74079 2006-01-24  Bruno Haible  <bruno@clisp.org>
74080
74081         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
74082         Patch by Paul Eggert.
74083
74084 2006-01-24  Bruno Haible  <bruno@clisp.org>
74085
74086         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
74087         already has it.
74088         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
74089         2005-11-26.
74090
74091         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
74092         'signed char' to avoid problems with the built-in _Bool type.
74093         Reported by Paul Eggert on 2005-11-26.
74094
74095 2006-01-24  Bruno Haible  <bruno@clisp.org>
74096
74097         * gnulib-tool (func_import): Avoid constructing complicated sed
74098         expressions inside backquote.
74099         Report and solution by Mark D. Baushke <mdb@gnu.org>.
74100
74101 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
74102
74103         These changes imported from libc.
74104         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
74105         test and two separate function calls.
74106         * lib/strndup.c (__strndup): Add libc_hidden_def.
74107
74108 2006-01-23  Simon Josefsson  <jas@extundo.com>
74109
74110         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
74111         Remove the test_*_SOURCES variable: automake infers it by default.
74112         * modules/tls-tests: Likewise.
74113
74114 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74115
74116         Work around porting bugs reported by Dieter in
74117         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
74118         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
74119         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
74120         Include "getopt.h" first, to check interface.
74121         (getenv): Declare only if defined HAVE_DECL_GETENV &&
74122         !HAVE_DECL_GETENV.
74123         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
74124         (__strndup): Revert to K&R-style function dfns, the glibc style.
74125         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
74126         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
74127         Include strnlen.h first, to get prototype properly.
74128         (strnlen): Renamed from __strnlen.
74129         Remove weak alias.
74130
74131 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74132
74133         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
74134
74135 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74136
74137         * config/srclist.txt: Adjust to reflect glibc reorganization.
74138         This affects only comments.
74139
74140 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74141
74142          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
74143          Reported by Bruce Korb <bkorb@gnu.org>.
74144
74145 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
74146
74147         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
74148         to pacify gcc -Wswitch-default.
74149
74150 2006-01-22  Bruno Haible  <bruno@clisp.org>
74151
74152         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
74153         temporary buffer for sprintf, take into account the precision also
74154         for 'd', 'i', 'u', 'o', 'x', 'X'.
74155
74156 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
74157
74158         * modules/argp-tests: New module
74159         * tests/test-argp.c: New file
74160         * tests/test-argp-2.sh: New file
74161
74162 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
74163
74164         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
74165         (__argp_base_name): Removed
74166         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
74167         typo.
74168         (__argp_base_name): Provide macro definition or extern declaration
74169         depending on the configuration
74170
74171 2006-01-20  Simon Josefsson  <jas@extundo.com>
74172
74173         * modules/inet_ntop (Depends-on): Depend on sys_socket.
74174
74175 2006-01-20  Simon Josefsson  <jas@extundo.com>
74176
74177         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
74178
74179 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74180
74181         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
74182         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
74183         Suggested by Bruno Haible.
74184
74185 2006-01-20  Karl Berry  <karl@gnu.org>
74186
74187         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
74188         until changes propagate, I guess.
74189
74190 2006-01-19  Simon Josefsson  <jas@extundo.com>
74191
74192         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
74193
74194 2006-01-19  Simon Josefsson  <jas@extundo.com>
74195
74196         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
74197
74198 2006-01-19  Simon Josefsson  <jas@extundo.com>
74199
74200         * gnulib-tool: Set check_PROGRAMS.
74201
74202         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
74203         modules/des-tests, modules/gc-arcfour-tests,
74204         modules/gc-arctwo-tests, modules/gc-des-tests,
74205         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
74206         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
74207         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
74208         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
74209         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
74210         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
74211         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
74212         test_*_SOURCES.
74213
74214 2006-01-18  Simon Josefsson  <jas@extundo.com>
74215
74216         * modules/socklen (Depends-on): Depend on sys_socket.
74217
74218 2006-01-18  Simon Josefsson  <jas@extundo.com>
74219
74220         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
74221         modules/des-tests, modules/gc-arcfour-tests,
74222         modules/gc-arctwo-tests, modules/gc-des-tests,
74223         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
74224         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
74225         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
74226         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
74227         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
74228         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
74229         $(EXEEXT) to automake TESTS variable, for mingw32.
74230
74231 2006-01-17  Simon Josefsson  <jas@extundo.com>
74232
74233         * modules/socklen (Include): Need sys/socket.h.
74234
74235 2006-01-17  Bruno Haible  <bruno@clisp.org>
74236
74237         * modules/ssize_t (Include): Add <sys/types.h>.
74238
74239 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
74240
74241         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
74242         it's not portable and it doesn't work with cross-compiles.
74243         Problem reported by Bruno Haible.  Fix missing-$ typo in
74244         'test "gl_cv_ignore_unused_libraries" ...' that prevented
74245         -zignore from being used with Sun's C compiler.
74246
74247 2006-01-12  Simon Josefsson  <jas@extundo.com>
74248
74249         * lib/base64.c: Fix warning, reported by Bruno Haible
74250         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
74251
74252 2006-01-12  Bruno Haible  <bruno@clisp.org>
74253
74254         * modules/ldd: New file.
74255         * build-aux/ldd.sh.in: New file.
74256         * MODULES.html.sh (Support for building libraries and executables): Add
74257         ldd.
74258
74259 2006-01-12  Bruno Haible  <bruno@clisp.org>
74260
74261         * m4/ldd.m4: New file.
74262
74263 2006-01-12  Bruno Haible  <bruno@clisp.org>
74264
74265         * gnulib-tool (func_import, func_create_testdir): Don't go into an
74266         endless loop while replacing $auxdir with build-aux.
74267
74268 2006-01-11  Simon Josefsson  <jas@extundo.com>
74269
74270         * lib/stdint_.h (SIZE_MAX): Add missing (.
74271
74272 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
74273
74274         Sync from coreutils.
74275         * lib/md5.c: Fix commentary typos.
74276         (alignof, UNALIGNED_P): No need for a GCC-specific version.
74277         * lib/md5.h (__attribute__): Remove; unused.
74278         * lib/sha1.c: Fix commentary to match md5 better.
74279         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
74280         so that we don't need to worry about alignment.  All uses changed.
74281         This merges the 2005-10-28 md5 change into sha1.
74282
74283 2006-01-11  Jim Meyering  <jim@meyering.net>
74284
74285         Sync from coreutils.
74286         * lib/md5.c (OP): Fix spacing.
74287
74288 2006-01-11  Bruno Haible  <bruno@clisp.org>
74289
74290         Ensure automatic ordering between gl_LOCK and gl_ARGP.
74291         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
74292         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
74293
74294 2006-01-11  Bruno Haible  <bruno@clisp.org>
74295
74296         Ensure automatic ordering between gl_LOCK and gl_ARGP.
74297         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
74298         the "early" section as well.
74299
74300 2006-01-11  Bruno Haible  <bruno@clisp.org>
74301
74302         Avoid "ar: no archive members specified" error on MacOS X.
74303         * gnulib-tool (func_modules_add_dummy): New function.
74304         (func_import, func_create_testdir): Invoke it.
74305
74306 2006-01-11  Bruno Haible  <bruno@clisp.org>
74307
74308         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
74309         with $auxdir in AC_CONFIG_FILES statements.
74310
74311 2006-01-11  Bruno Haible  <bruno@clisp.org>
74312
74313         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74314         Initialize also noinst_HEADERS to empty.
74315
74316 2006-01-11  Bruno Haible  <bruno@clisp.org>
74317
74318         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
74319         variables.
74320         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
74321         autoreconf.
74322
74323 2006-01-11  Bruno Haible  <bruno@clisp.org>
74324
74325         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
74326         overridable by the user.
74327         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74328
74329 2006-01-10  Simon Josefsson  <jas@extundo.com>
74330
74331         * modules/sys_socket: New file.
74332
74333 2006-01-10  Simon Josefsson  <jas@extundo.com>
74334
74335         * m4/sys_socket_h.m4: New file.
74336
74337 2006-01-10  Simon Josefsson  <jas@extundo.com>
74338
74339         * lib/socket_.h: New file.
74340
74341 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74342
74343         * modules/readutmp (Maintainer): Add myself.
74344
74345 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74346
74347         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
74348         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
74349         People who are still concerned with buggy memcmp implementations
74350         can invoke gl_FUNC_MEMCMP themselves.
74351
74352 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74353
74354         * lib/regex_internal.h (BITSET_WORD_BITS):
74355         Work around a bug in 64-bit PGC (before version 6.1-2), where the
74356         preprocessor mishandles large unsigned values as if they were signed.
74357         Problem reported by Claudio Fontana in
74358         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
74359
74360 2006-01-10  Jim Meyering  <jim@meyering.net>
74361
74362         Avoid the double-free (first in fts_read, second in fts_close) that
74363         would occur when an `active' directory is made inaccessible (e.g.,
74364         via chmod a-x) during a traversal.
74365         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
74366         before returning.  Reproduce this failure by
74367         mkdir -p a/b; cd a; chmod a-x . b
74368         Reported by Stavros Passas.
74369
74370         Sync from coreutils.
74371         * lib/sha1.c: Tweak grammar in a comment.
74372
74373 2006-01-10  Jim Meyering  <jim@meyering.net>
74374
74375         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
74376         Patch by Joerg Sonnenberger.
74377
74378 2006-01-10  Bruno Haible  <bruno@clisp.org>
74379
74380         * modules/readutmp: Depend on module free.
74381         * modules/strtok_r: Depend on module restrict.
74382
74383 2006-01-10  Bruno Haible  <bruno@clisp.org>
74384
74385         * modules/gettext (configure.ac): Add an invocation of
74386         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
74387
74388 2006-01-10  Bruno Haible  <bruno@clisp.org>
74389
74390         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
74391         Reported by Werner Lemberg <wl@gnu.org>.
74392
74393 2006-01-10  Bruno Haible  <bruno@clisp.org>
74394
74395         * lib/localcharset.c: Update from GNU gettext.
74396
74397 2006-01-10  Bruno Haible  <bruno@clisp.org>
74398
74399         * lib/argp.h (__const): Remove macro. Use const instead.
74400         * lib/argp-fmtstream.h (__const): Likewise.
74401         * lib/glob_.h (__const): Remove macro.
74402         * lib/glob-libc.h: Use const instead of __const.
74403
74404 2006-01-10  Bruno Haible  <bruno@clisp.org>
74405
74406         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
74407         variable.
74408         Needed to avoid an automake error regarding the 'gettext' module.
74409
74410 2006-01-09  Simon Josefsson  <jas@extundo.com>
74411
74412         * modules/inet_ntop (Depends-on): Add restrict.
74413
74414 2006-01-09  Simon Josefsson  <jas@extundo.com>
74415
74416         * modules/gc-rijndael-tests (License): Put under LGPL.
74417
74418         * modules/gc-des-tests (License): Likewise.
74419
74420         * modules/gc-arcfour-tests (License): Likewise.
74421
74422         * modules/gc-arctwo-tests (License): Likewise.
74423
74424         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
74425
74426         * modules/gc-hmac-sha1-tests (Files): Likewise.
74427
74428         * modules/gc-hmac-md5-tests (License): Likewise.
74429
74430         * modules/gc-sha1-tests (License): Likewise.
74431
74432         * modules/gc-md5-tests (License): Likewise.
74433
74434         * modules/gc-md4-tests (License): Likewise.
74435
74436         * modules/gc-md2-tests (License): Likewise.
74437
74438         * modules/gc-tests (License): Likewise.
74439
74440         * modules/des-tests (License): Likewise.
74441
74442         * modules/md4-tests (License): Likewise.
74443
74444         * modules/md2-tests (License): Likewise.
74445
74446 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74447
74448         Sync from coreutils:
74449
74450         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
74451         * modules/lib-ignore: New file.
74452         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
74453         chdir-safer.m4, lchmod.m4.
74454         * modules/openat: Add mkdirat.c, openat-priv.h.
74455
74456 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74457
74458         Sync from coreutils.
74459         * m4/lib-ignore.m4: New file.
74460         * m4/lchmod.m4: New file.
74461
74462 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74463
74464         Sync from coreutils.
74465         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
74466         for write access: POSIX says that must fail.
74467         * lib/fts.c (diropen): Likewise.
74468         * lib/save-cwd.c (save_cwd): Likewise.
74469         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
74470         well, for minor improvements on hosts that lack O_DIRECTORY.
74471         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
74472         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
74473         Fall back on chown if open failed with EACCES.
74474
74475         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
74476         Report an error at compile-time if only a 1-second nominal clock
74477         resolution is found.
74478
74479         * lib/lchmod.h: New file.
74480         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
74481         (make_dir_parents): Use lchown rather than chown, and
74482         lchmod rather than chmod.
74483
74484         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
74485         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
74486         "proc" reported by n0dalus.
74487
74488         * lib/mountlist.c: Include <limits.h>.
74489         (dev_from_mount_options)
74490         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
74491         New function.  It no longer assumes "dev=" has the System V meaning
74492         on Linux (since it doesn't).  It also parses "dev=" more carefully.
74493         (read_file_system_list)
74494         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
74495         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
74496         dev= in that case.
74497
74498         * lib/posixtm.h (PDS_PRE_2000): New macro.
74499         * lib/posixtm.c (year): Arg is now syntax_bits rather than
74500         allow_century.  All usages changed.  Reject dates outside the range
74501         1969-1999 if PDS_PRE_2000 is used.
74502
74503 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
74504
74505         Sync from coreutils.
74506         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
74507         (Time of day items): Mention the possibility of leap seconds.
74508         Problem reported by Dr. David Alan Gilbert.
74509
74510 2006-01-09  Jim Meyering  <jim@meyering.net>
74511
74512         Sync from coreutils.
74513
74514         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
74515
74516         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
74517
74518         * lib/modechange.c (mode_compile): Reject an invalid mode string
74519         that starts with an octal digit.  From Andreas Gruenbacher.
74520
74521         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
74522         and dup to open_safer and dup_safer, respectively.
74523         (openat_permissive): Fix typo in comment.
74524
74525         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
74526         "gettext.h"; either no longer needed or are guaranteed by openat.h.
74527         (_): Remove; no longer needed.
74528         (openat): Renamed from rpl_openat; no need for rpl_openat
74529         since openat.h renames openat for us.
74530         Replace most of the body with a call to openat_permissive,
74531         to avoid duplicate code.
74532         Port to (probably hypothetical) environments were mode_t is
74533         wider than int.
74534         (openat_permissive): Require mode arg, so that we can check
74535         types better.  Put it just after flags.  Change cwd failure
74536         indicator from pointer-to-bool to pointer-to-errno-value.
74537         All callers changed.
74538         Invoke openat_save_fail and/or openat_restore_fail if
74539         cwd_errno is null, so that openat can call us.
74540         (openat_permissive, fdopendir, fstatat, unlinkat):
74541         Simplify errno handling to avoid some duplicate code,
74542         as it's OK to set errno on success.
74543         * lib/openat.h: Revamp code so that function macros depend on
74544         __OPENAT_PREFIX only, not also on AT_FDCWD.
74545         (openat_ro): Remove.  Caller changed to use openat_permissive.
74546         (openat_permissive): Now a macro, if not a function.
74547         (openat_restore_fail, openat_save_fail): Now always functions,
74548         since mkdirat needs them even if __OPENAT_PREFIX is defined.
74549
74550         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
74551         and openat.c.
74552         * lib/mkdirat.c: Include openat-priv.h.
74553         Remove definitions of macros defined therein.
74554         * lib/openat.c: Likewise.
74555
74556         * lib/mkdirat.c (mkdirat): New file and function.
74557         * lib/openat.h (mkdirat): Declare.
74558
74559         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
74560
74561         * lib/openat.h (openat_permissive): Declare.
74562         (openat_ro): Define.
74563
74564         * lib/openat.c (EXPECTED_ERRNO): New macro.
74565         (openat_permissive): New function -- used in remove.c rewrite.
74566         (all functions): Set errno just before returning, only if there
74567         was an actual failure.
74568         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
74569
74570         Emulate openat-family functions using Linux's procfs, if possible.
74571         Idea and some code based on Ulrich Drepper's glibc changes.
74572
74573         * lib/openat.c: (BUILD_PROC_NAME): New macro.
74574         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
74575         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
74576         before falling back on save_cwd and restore_cwd.
74577         (fdopendir, fstatat, unlinkat): Likewise.
74578
74579         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
74580         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
74581
74582         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
74583         as second argument to va_arg.  Otherwise, some versions of gcc
74584         warn that `if this code is reached, the program will abort'.
74585
74586 2006-01-09  Jim Meyering  <jim@meyering.net>
74587
74588         Sync from coreutils.
74589         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
74590         Require openat-priv.h.
74591
74592 2006-01-09  Bruno Haible  <bruno@clisp.org>
74593
74594         * modules/strnlen (Include): Use strnlen.h.
74595
74596 2006-01-09  Bruno Haible  <bruno@clisp.org>
74597
74598         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
74599
74600 2006-01-09  Bruno Haible  <bruno@clisp.org>
74601
74602         * lib/sysexit_.h (EX_OK): New macro.
74603         Suggested by Martin Lambers <marlam@marlam.de>.
74604
74605 2006-01-09  Bruno Haible  <bruno@clisp.org>
74606
74607         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
74608         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
74609
74610 2006-01-09  Bruno Haible  <bruno@clisp.org>
74611
74612         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
74613         numbers.
74614
74615 2006-01-09  Bruno Haible  <bruno@clisp.org>
74616
74617         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
74618         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
74619         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
74620         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
74621
74622 2006-01-09  Bruno Haible  <bruno@clisp.org>
74623
74624         * build-aux/javacomp.sh.in: New file, moved from lib/.
74625         * modules/javacomp-script (Files): Update.
74626         (configure.ac): Add AC_CONFIG_FILES invocation.
74627         (EXTRA_DIST): Remove variable.
74628
74629         * build-aux/javaexec.sh.in: New file, moved from lib/.
74630         * modules/javaexec (Files): Update.
74631         (configure.ac): Add AC_CONFIG_FILES invocation.
74632         (EXTRA_DIST): Remove javaexec.sh.in.
74633
74634         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
74635         * modules/csharpcomp-script (Files): Update.
74636         (configure.ac): Add AC_CONFIG_FILES invocation.
74637         (EXTRA_DIST): Remove variable.
74638
74639         * build-aux/csharpexec.sh.in: New file, moved from lib/.
74640         * modules/csharpexec (Files): Update.
74641         (configure.ac): Add AC_CONFIG_FILES invocation.
74642         (EXTRA_DIST): Remove csharpexec.sh.in.
74643
74644 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
74645
74646         Sync from coreutils.
74647
74648         Add POSIX ACL support
74649         * lib/acl.h (copy_acl, set_acl): Add declarations.
74650         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
74651         systems other than Linux.
74652         (chmod_or_fchmod): New function: use fchmod when possible,
74653         and chmod otherwise.
74654         (file_has_acl): Add a POSIX ACL implementation, with a
74655         Linux-specific subcase.
74656         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
74657         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
74658         acls are unsupported.
74659         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
74660         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
74661         are unsupported.
74662
74663 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
74664
74665         Sync from coreutils.
74666         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
74667
74668 2006-01-07  Bruno Haible  <bruno@clisp.org>
74669
74670         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
74671         gl_EARLY.
74672
74673 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74674
74675         * lib/strftime.c (tzname): Don't declare if it is already #defined.
74676         Problem reported for Mingw by Mark Junker.
74677
74678 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74679
74680         * README: Gnulib normally doesn't generate a tarball.
74681
74682 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
74683
74684         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
74685         long int, not int, for nanosecond counts, so that people who are
74686         used to POSIX struct timespec won't be surprised.  Reported by Jim
74687         Meyering.
74688
74689 2005-12-28  Bruno Haible  <bruno@clisp.org>
74690
74691         * build-aux/config.rpath: Update from GNU gettext.
74692
74693 2005-12-16  Jim Meyering  <jim@meyering.net>
74694
74695         * modules/fprintftime: New module.
74696         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
74697
74698 2005-12-16  Jim Meyering  <jim@meyering.net>
74699
74700         * m4/fprintftime.m4: New file.
74701
74702 2005-12-16  Jim Meyering  <jim@meyering.net>
74703
74704         * lib/fprintftime.c, lib/fprintftime.h: New files.
74705
74706 2005-12-15  Simon Josefsson  <jas@extundo.com>
74707
74708         * modules/socklen (configure.ac): Fix M4 macro name, to align with
74709         new m4/socklen.m4.
74710
74711 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74712
74713         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
74714         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
74715
74716 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
74717
74718         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
74719         * lib/argp-help.c (fill_in_uparams): Check if the constructed
74720         struct uparams is valid. Fall back to the default values if it is
74721         not.
74722
74723 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74724
74725         * modules/argp (Files): Add argp-pin.c
74726         (Depends-on): dirname
74727         (lib_SOURCES): Add argp-pin.c
74728
74729 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74730
74731         * m4/argp.m4:  Check if program_invocation_name and
74732         program_invocation_short_name are declared and define appropriate
74733         macros if they are not.
74734
74735 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
74736
74737         * lib/argp-help.c (__argp_base_name): New function
74738         (__argp_short_program_name): Rewrite using __argp_base_name
74739         * lib/argp-namefrob.h: Define program_invocation_name and
74740         program_invocation_short_name if requested
74741         (__argp_base_name): Add prototype
74742         * lib/argp-parse.c (argp_def): Use gettext wrappers
74743         (argp_default_parser): Use __argp_base_name
74744         * lib/argp-pin.c: New file. Defines program_invocation_name and
74745         program_invocation_short_name on systems that lack them.
74746
74747 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74748
74749         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
74750         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
74751         porting problem reported by Georg Schwarz in
74752         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
74753
74754 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74755
74756         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
74757         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
74758         porting problem reported by Georg Schwarz in
74759         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
74760
74761 2005-12-05  Bruno Haible  <bruno@clisp.org>
74762
74763         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
74764         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
74765         Reported by Mark Junker <mjscod@gmx.de>.
74766
74767 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
74768
74769         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
74770         Use implementation from Albert Chin, with some
74771         comments/corrections by Stepan Kasal and myself.
74772
74773 2005-12-02  Bruno Haible  <bruno@clisp.org>
74774
74775         * gnulib-tool (func_import): Accept GPLed build tool modules when
74776         --lgpl is given.
74777         * modules/csharpcomp-script: New file.
74778         * modules/csharpcomp: Depend on it.
74779         * modules/javacomp-script: New file.
74780         * modules/javacomp: Depend on it.
74781         Suggested by Simon Josefsson.
74782
74783 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
74784
74785         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
74786         statement, to work around an HP-UX 10.20 compiler bug reported by
74787         Peter O'Gorman.
74788
74789 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
74790
74791         * modules/savedir (Depends-on): Add openat.
74792
74793 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
74794
74795         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
74796         (uintmax_t) [defined uintmax_t]: Do not declare.
74797         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
74798         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
74799         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
74800         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
74801         sake of portability to weird hosts that C allows (though we don't
74802         know of any practical examples).
74803
74804         * lib/savedir.h (fdsavedir): New decl.
74805         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
74806         contains most of the former guts of savedir.
74807         (savedir): Use savedirstream.
74808         Include "openat.h".
74809
74810 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74811
74812         * modules/obstack (Files): Add m4/ulonglong.m4.
74813         Problem reported by Davide Angelocola.
74814
74815 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
74816
74817         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
74818         coreutils no longer futzes with rounding modes.
74819
74820 2005-11-14  Jim Meyering  <jim@meyering.net>
74821
74822         * lib/mkstemp-safer.c: Include <config.h>, required for possible
74823         replacement of mkstemp.
74824
74825 2005-11-10  Simon Josefsson  <jas@extundo.com>
74826
74827         * lib/readline.c: Remove EOL.
74828
74829 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74830
74831         * modules/gethrxtime (Depends-on): Add gettime.
74832
74833 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74834
74835         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
74836         or gettimeofday; no longer needed.
74837
74838 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74839
74840         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
74841         time business.
74842         (gethrxtime) [! (HAVE_NANOUPTIME
74843         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
74844         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
74845         our own approximation.
74846
74847 2005-11-08  Eric Blake  <ebb9@byu.net>
74848
74849         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
74850
74851 2005-11-08  Eric Blake  <ebb9@byu.net>
74852
74853         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
74854
74855 2005-11-04  Bruno Haible  <bruno@clisp.org>
74856
74857         * gnulib-tool: Implement --update mode.
74858
74859 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74860
74861         Fix porting problem reported by Theodoros V. Kalamatianos.
74862         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
74863         Don't assume that futimes failing means we must fail.
74864
74865 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
74866
74867         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
74868         variables to suggest the intended function of the PATH_MAX check.
74869
74870 2005-10-30  Kean Johnston  <jkj@sco.com>
74871
74872         Trivial changes to support SCO systems.
74873         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
74874         as PATH_MAX.
74875         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
74876         where __ptr is null when no I/O is pending.
74877
74878 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
74879
74880         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
74881         leave errno alone.  Problem reported by Dmitry V. Levin.
74882
74883 2005-10-28  Simon Josefsson  <jas@extundo.com>
74884
74885         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
74886         Test more.
74887
74888         * tests/test-gc-md2.c, tests/test-md2.c: New files.
74889
74890         * modules/md2, modules/md2-tests: New files.
74891
74892 2005-10-28  Simon Josefsson  <jas@extundo.com>
74893
74894         * m4/inet_ntop.m4: More tests.
74895
74896         * m4/gc-md2.m4, md2.m4: New file.
74897
74898 2005-10-28  Simon Josefsson  <jas@extundo.com>
74899
74900         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
74901         "restrict" keywords, as per POSIX.  Protect the function
74902         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
74903         Don't use K&R prototypes.  Check the sprintf return values.
74904         Re-define EAFNOSUPPORT if not present.  Indent.
74905
74906         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
74907         suggested by Bruno Haible <bruno@clisp.org>.
74908
74909         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
74910
74911         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
74912
74913         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
74914         libgcrypt).
74915
74916         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
74917
74918         * lib/md2.h, lib/md2.c: New files.
74919
74920 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
74921
74922         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
74923         errno alone.  Problem reported by Frederic Jolliton.
74924
74925 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
74926
74927         * modules/verify (License): Change from GPL to LGPL.  This is a
74928         tiny module and there are apparently near-equivalents that are
74929         under the BSD license.
74930
74931 2005-10-24  Simon Josefsson  <jas@extundo.com>
74932
74933         * modules/sha1: Relicense to LGPL.
74934
74935 2005-10-24  Simon Josefsson  <jas@extundo.com>
74936
74937         * lib/md4.h: Shrink buffer size, now that we changed the type.
74938
74939 2005-10-23  Simon Josefsson  <jas@extundo.com>
74940
74941         * gnulib-tool (func_import): Fix --tests-base.
74942
74943 2005-10-22  Simon Josefsson  <jas@extundo.com>
74944
74945         * modules/arcfour (Depends-on): Need stdint.
74946
74947 2005-10-22  Simon Josefsson  <jas@extundo.com>
74948
74949         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
74950         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
74951
74952 2005-10-22  Simon Josefsson  <jas@extundo.com>
74953
74954         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
74955         suggested by Bruno Haible <bruno@clisp.org>.
74956
74957 2005-10-22  Simon Josefsson  <jas@extundo.com>
74958
74959         * lib/crc.h: Include stddef.h, for size_t.
74960
74961 2005-10-22  Simon Josefsson  <jas@extundo.com>
74962
74963         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
74964         arcfour_context struct (simplify test vector testing in GNU
74965         Shishi).
74966
74967 2005-10-21  Simon Josefsson  <jas@extundo.com>
74968
74969         * modules/des, modules/des-tests: New files.
74970
74971         * modules/gc-des, modules/gc-des-tests: New files.
74972
74973         * tests/test-des.c, tests/test-gc-des.c: New file.
74974
74975 2005-10-21  Simon Josefsson  <jas@extundo.com>
74976
74977         * modules/arctwo, modules/arctwo-tests: New files.
74978
74979         * tests/test-arctwo.c: New file.
74980
74981         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
74982
74983         * tests/test-gc-arctwo.c: New file.
74984
74985 2005-10-21  Simon Josefsson  <jas@extundo.com>
74986
74987         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
74988         Bruno Haible <bruno@clisp.org>.
74989
74990         * m4/gc-des.m4: New file.
74991
74992 2005-10-21  Simon Josefsson  <jas@extundo.com>
74993
74994         * m4/arctwo.m4: New file.
74995
74996         * m4/gc-arctwo.m4: New file.
74997
74998 2005-10-21  Simon Josefsson  <jas@extundo.com>
74999
75000         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
75001         block.
75002
75003 2005-10-21  Simon Josefsson  <jas@extundo.com>
75004
75005         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
75006         <bruno@clisp.org>.
75007
75008         * lib/hmac-sha1.c (hmac_sha1): Likewise.
75009
75010         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
75011         Bruno Haible <bruno@clisp.org>.
75012
75013         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
75014         <bruno@clisp.org>.
75015
75016 2005-10-21  Simon Josefsson  <jas@extundo.com>
75017
75018         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
75019
75020 2005-10-21  Simon Josefsson  <jas@extundo.com>
75021
75022         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
75023
75024 2005-10-21  Simon Josefsson  <jas@extundo.com>
75025
75026         * lib/des.h, lib/des.c: New files.
75027
75028         * lib/gc-gnulib.c: Support DES.c
75029
75030 2005-10-21  Simon Josefsson  <jas@extundo.com>
75031
75032         * lib/arctwo.h, lib/arctwo.c: New files.
75033
75034         * lib/gc-gnulib.c: Support ARCTWO.
75035
75036 2005-10-21  Simon Josefsson  <jas@extundo.com>
75037
75038         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
75039         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75040
75041 2005-10-21  Simon Josefsson  <jas@extundo.com>
75042
75043         * gnulib-tool (func_import, func_create_testdir): Define automake
75044         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
75045         Makefile.am snippet),
75046         suggested by Bruno Haible <bruno@clisp.org>.
75047
75048         * modules/gc (Makefile.am): Use it.
75049
75050 2005-10-21  Bruno Haible  <bruno@clisp.org>
75051
75052         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
75053         patch.
75054
75055 2005-10-19  Simon Josefsson  <jas@extundo.com>
75056
75057         * tests/test-gc-rijndael.c: New file.
75058
75059         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
75060
75061 2005-10-19  Simon Josefsson  <jas@extundo.com>
75062
75063         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
75064         interface too.
75065
75066 2005-10-19  Simon Josefsson  <jas@extundo.com>
75067
75068         * tests/test-gc-arcfour.c: New file.
75069
75070         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
75071
75072 2005-10-19  Simon Josefsson  <jas@extundo.com>
75073
75074         * modules/gc-md4, modules/gc-md4-tests: New file.
75075
75076         * tests/test-gc-md4.c: New file.
75077
75078 2005-10-19  Simon Josefsson  <jas@extundo.com>
75079
75080         * m4/gc-md4.m4: New file.
75081
75082 2005-10-19  Simon Josefsson  <jas@extundo.com>
75083
75084         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
75085         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
75086         <kasal@ucw.cz>.
75087
75088 2005-10-19  Simon Josefsson  <jas@extundo.com>
75089
75090         * m4/gc-arcfour.m4: New file.
75091
75092         * m4/gc-rijndael.m4: New file.
75093
75094 2005-10-19  Simon Josefsson  <jas@extundo.com>
75095
75096         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
75097
75098 2005-10-19  Simon Josefsson  <jas@extundo.com>
75099
75100         * lib/gc-gnulib.c: Support ARCFOUR.
75101
75102 2005-10-19  Simon Josefsson  <jas@extundo.com>
75103
75104         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
75105         support.
75106
75107         * lib/gc.h: Add ECB enum type.
75108
75109         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
75110
75111 2005-10-18  Simon Josefsson  <jas@extundo.com>
75112
75113         * tests/test-md5.c: New file.
75114
75115         * modules/md5-tests: New file.
75116
75117 2005-10-18  Simon Josefsson  <jas@extundo.com>
75118
75119         * tests/test-md4.c: New file.
75120
75121         * modules/md4, modules/md4-tests: New files.
75122
75123 2005-10-18  Simon Josefsson  <jas@extundo.com>
75124
75125         * m4/md4.m4: New file.
75126
75127 2005-10-18  Simon Josefsson  <jas@extundo.com>
75128
75129         * lib/md4.h, lib/md4.c: New files, based on md5.?.
75130
75131 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
75132
75133         * gnulib-tool (func_create_testdir): Omit the second check whether
75134         BUILT_SOURCES in nonempty.
75135
75136 2005-10-17  Simon Josefsson  <jas@extundo.com>
75137
75138         * tests/test-rijndael.c: New file.
75139
75140 2005-10-17  Simon Josefsson  <jas@extundo.com>
75141
75142         * modules/sha1: Depend on stdint instead of md5.
75143
75144         * modules/md5: Depend on stdint, remove uint32_t.
75145
75146 2005-10-17  Simon Josefsson  <jas@extundo.com>
75147
75148         * modules/gc-sha1-tests: New file.
75149
75150         * tests/test-gc-sha1.c: New file.
75151
75152 2005-10-17  Simon Josefsson  <jas@extundo.com>
75153
75154         * m4/md5.m4: Remove call to uint32_t.m4.
75155
75156 2005-10-17  Simon Josefsson  <jas@extundo.com>
75157
75158         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
75159
75160         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
75161         md5.h.
75162
75163         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
75164
75165         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
75166
75167 2005-10-17  Simon Josefsson  <jas@extundo.com>
75168
75169         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
75170
75171 2005-10-17  Simon Josefsson  <jas@extundo.com>
75172
75173         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
75174
75175 2005-10-17  Simon Josefsson  <jas@extundo.com>
75176
75177         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
75178
75179         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
75180
75181 2005-10-17  Bruno Haible  <bruno@clisp.org>
75182
75183         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
75184         that it can also be used in a test.
75185
75186 2005-10-16  Bruno Haible  <bruno@clisp.org>
75187
75188         * gnulib-tool (func_emit_tests_Makefile_am): Also define
75189         TESTS_ENVIRONMENT, so that individual tests can augment it.
75190
75191         * gnulib-tool (func_create_testdir): Use an intermediate target for
75192         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
75193         macros, like $(ALLOCA_H), which cannot be passed through the command
75194         line.
75195
75196 2005-10-15  Simon Josefsson  <jas@extundo.com>
75197
75198         * modules/rijndael-tests: New file.
75199
75200         * modules/rijndael: New file.
75201
75202 2005-10-15  Simon Josefsson  <jas@extundo.com>
75203
75204         * m4/rijndael.m4: New file.
75205
75206 2005-10-15  Simon Josefsson  <jas@extundo.com>
75207
75208         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
75209
75210         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
75211
75212 2005-10-14  Simon Josefsson  <jas@extundo.com>
75213
75214         * tests/test-arcfour.c: New file.
75215
75216         * modules/arcfour, modules/arcfour-tests: New files.
75217
75218 2005-10-14  Simon Josefsson  <jas@extundo.com>
75219
75220         * m4/arcfour.m4: New file.
75221
75222 2005-10-14  Simon Josefsson  <jas@extundo.com>
75223
75224         * lib/arcfour.h, lib/arcfour.c: New files.
75225
75226 2005-10-14  Roland McGrath  <roland@redhat.com>
75227
75228         Import from libc.  [BZ #1331]
75229         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
75230         macro argument.
75231         Reported by Matej Vela <vela@debian.org>.
75232
75233 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75234
75235         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
75236         include <wchar.h>; no longer needed.
75237
75238 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75239
75240         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
75241
75242 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
75243         and  Ulrich Drepper  <drepper@redhat.com>
75244
75245         Import from libc.
75246         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
75247         instead of inline stream orientation test and two separate
75248         function calls.  Pay no attention to USE_IN_LIBIO.
75249
75250 2005-10-13  Simon Josefsson  <jas@extundo.com>
75251
75252         * modules/gc-hmac-md5-tests: New file.
75253
75254         * tests/test-gc-hmac-sha1.c: New file.
75255
75256         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
75257
75258         * modules/gc-hmac-md5-tests: New file.
75259
75260         * tests/test-gc-md5.c: New file.
75261
75262         * modules/gc-md5-tests: New file.
75263
75264 2005-10-13  Simon Josefsson  <jas@extundo.com>
75265
75266         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
75267         Move memory allocation outside of loop.
75268
75269 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
75270
75271         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
75272         intermediate directory is in a read-only file system.  Problem
75273         reported by Eric Blake.
75274
75275 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
75276
75277         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
75278
75279 2005-10-12  Simon Josefsson  <jas@extundo.com>
75280
75281         * tests/test-hmac-sha1.c: New file.
75282
75283         * modules/hmac-sha1-tests: New file.
75284
75285         * modules/hmac-sha1: New file.
75286
75287 2005-10-12  Simon Josefsson  <jas@extundo.com>
75288
75289         * modules/gc-sha1: New file.
75290
75291 2005-10-12  Simon Josefsson  <jas@extundo.com>
75292
75293         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
75294
75295         * tests/test-gc-pbkdf2-sha1.c: New file.
75296
75297 2005-10-12  Simon Josefsson  <jas@extundo.com>
75298
75299         * modules/gc-md5, modules/gc-hmac-md5: New files.
75300
75301         * modules/gc (Files): Remove md5, memxor and hmac files.
75302
75303 2005-10-12  Simon Josefsson  <jas@extundo.com>
75304
75305         * m4/gc-pbkdf2-sha1.m4: New file.
75306
75307         * m4/gc-hmac-sha1.m4: New file.
75308
75309         * m4/gc-sha1: New file.
75310
75311         * m4/hmac-sha1.m4: New file.
75312
75313 2005-10-12  Simon Josefsson  <jas@extundo.com>
75314
75315         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
75316
75317         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
75318
75319 2005-10-12  Simon Josefsson  <jas@extundo.com>
75320
75321         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
75322         suggested by Bruno Haible <bruno@clisp.org>.
75323
75324 2005-10-12  Simon Josefsson  <jas@extundo.com>
75325
75326         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
75327
75328 2005-10-12  Simon Josefsson  <jas@extundo.com>
75329
75330         * lib/gc-pbkdf2-sha1.c: New file.
75331
75332         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
75333
75334 2005-10-12  Simon Josefsson  <jas@extundo.com>
75335
75336         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
75337
75338         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
75339
75340 2005-10-12  Simon Josefsson  <jas@extundo.com>
75341
75342         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
75343         GC_USE_HMAC_MD5, respectively.
75344
75345         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
75346         (gc_md5): Fix typo.
75347
75348         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
75349
75350         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
75351
75352         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
75353
75354 2005-10-12  Bruno Haible  <bruno@clisp.org>
75355
75356         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
75357         Reported by Stepan Kasal <kasal@ucw.cz>.
75358
75359 2005-10-11  Simon Josefsson  <jas@extundo.com>
75360
75361         * tests/test-crc.c: New file.
75362
75363         * modules/crc, modules/crc-tests: New files.
75364
75365 2005-10-11  Simon Josefsson  <jas@extundo.com>
75366
75367         * m4/crc.m4: New file.
75368
75369 2005-10-11  Simon Josefsson  <jas@extundo.com>
75370
75371         * lib/gc.h: Add gc_hash and gc_hash_buffer.
75372
75373         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
75374
75375         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
75376
75377 2005-10-11  Simon Josefsson  <jas@extundo.com>
75378
75379         * lib/crc.h, lib/crc.c: New files.
75380
75381         * lib/gc.h (gc_hash_buffer): Add doc.
75382
75383 2005-10-11  Bruno Haible  <bruno@clisp.org>
75384
75385         * modules/c-strcasestr: New file.
75386         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
75387
75388 2005-10-11  Bruno Haible  <bruno@clisp.org>
75389
75390         * modules/c-strcase: New file.
75391         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
75392
75393 2005-10-11  Bruno Haible  <bruno@clisp.org>
75394
75395         * lib/strcasecmp.c: Include limits.h.
75396         (strcasecmp): Avoid integer overflow on exotic platforms.
75397         * lib/strncasecmp.c: Include limits.h.
75398         (strncasecmp): Avoid integer overflow on exotic platforms.
75399         Reported by Paul Eggert.
75400
75401 2005-10-11  Bruno Haible  <bruno@clisp.org>
75402
75403         * lib/c-strcasestr.h: New file, from GNU gettext.
75404         * lib/c-strcasestr.c: New file, from GNU gettext.
75405
75406 2005-10-11  Bruno Haible  <bruno@clisp.org>
75407
75408         * lib/c-strcase.h: New file, from GNU gettext.
75409         * lib/c-strcasecmp.c: New file, from GNU gettext.
75410         * lib/c-strncasecmp.c: New file, from GNU gettext.
75411
75412 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75413
75414         * modules/mempcpy (License): GPL -> LGPL.
75415         * modules/strchrnul (License): Likewise.
75416         * modules/sysexits (License): Likewise.
75417
75418 2005-10-08  Simon Josefsson  <jas@extundo.com>
75419
75420         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
75421
75422 2005-10-07  Simon Josefsson  <jas@extundo.com>
75423
75424         * m4/memxor.m4: Remove gl_C_RESTRICT call.
75425
75426 2005-10-06  Simon Josefsson  <jas@extundo.com>
75427
75428         * tests/test-hmac-md5.c: New file.
75429
75430         * modules/hmac-md5-tests: New file.
75431
75432         * modules/hmac-md5: New file.
75433
75434 2005-10-06  Simon Josefsson  <jas@extundo.com>
75435
75436         * m4/hmac-md5.m4: New file.
75437
75438         * m4/memxor.m4: Require gl_C_RESTRICT.
75439
75440 2005-10-06  Simon Josefsson  <jas@extundo.com>
75441
75442         * lib/memxor.c (memxor): Avoid casts and warnings.
75443
75444 2005-10-06  Simon Josefsson  <jas@extundo.com>
75445
75446         * lib/hmac-md5.c: New file.
75447
75448         * lib/hmac.h: New file.
75449
75450 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75451
75452         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
75453         promotes to int, not unsigned int, to catch the AIX 5.3
75454         compiler bug.
75455
75456 2005-10-05  Simon Josefsson  <jas@extundo.com>
75457
75458         * modules/memxor: New file.
75459
75460         * modules/iconv (Files): Move config.rpath to havelib, it is used
75461         there.
75462
75463         * modules/havelib (Files): Add config.rpath.
75464
75465 2005-10-05  Simon Josefsson  <jas@extundo.com>
75466
75467         * m4/memxor.m4: New file.
75468
75469 2005-10-05  Simon Josefsson  <jas@extundo.com>
75470
75471         * lib/memxor.c (memxor): Fix compiler error.
75472
75473         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
75474         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
75475
75476         * lib/memxor.h, lib/memxor.c: New files.
75477
75478         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
75479         we assume all systems have it, suggested by Jim Meyering
75480         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
75481         any systems lack sys/socket.h; mingw32 is known to lack it, but we
75482         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
75483         same reasons.
75484
75485 2005-10-05  Simon Josefsson  <jas@extundo.com>
75486
75487         * config/srclist.txt: Add glibc bug 1423 for md5.h.
75488
75489 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
75490
75491         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
75492         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
75493         needed, since the source code now assumes these .h files.
75494
75495 2005-10-05  Derek Price  <derek@ximbiot.com>
75496
75497         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
75498
75499 2005-10-05  Bruno Haible  <bruno@clisp.org>
75500
75501         * modules/stdint (License): Change to LGPL.
75502
75503 2005-10-04  Simon Josefsson  <jas@extundo.com>
75504
75505         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
75506         D. Baushke" <mdb@gnu.org>.
75507
75508 2005-10-04  Bruno Haible  <bruno@clisp.org>
75509
75510         * lib/verify.h (verify_true): Provide alternative definition for C++.
75511
75512 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
75513
75514         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
75515         (SSIZE_MAX): New macro, if not already defined.
75516         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
75517         than 2 GiB.
75518
75519 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75520
75521         Sync from coreutils.
75522         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
75523         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
75524         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
75525         ULLONG_MAX doesn't work with 2.7.2.1.
75526
75527 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75528
75529         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
75530         From Ben Pfaff.
75531
75532         * modules/exclude (Depends-on): Depend on verify.
75533         * modules/strtoimax (Depends-on): Likewise.
75534         * modules/utimecmp (Depends-on): Likewise.
75535
75536 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
75537
75538         * lib/exclude.c: Include verify.h.
75539         (verify): Remove.  All callers changed to use verify.h's version.
75540         * lib/strtoimax.c: Likewise.
75541         * lib/utimecmp.c: Likewis.e
75542
75543         Sync from coreutils.
75544         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
75545         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
75546         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
75547         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
75548         bother returning ENOSYS if settimeofday or stime fails; just let
75549         them return whatever errno they want to return.
75550         * lib/utimens.c: Include unistd.h, for dup2.
75551         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
75552         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
75553
75554 2005-10-02  Jim Meyering  <jim@meyering.net>
75555
75556         Sync from coreutils.
75557         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
75558         from glibc-2.2.5 that fails for read-only files.
75559
75560 2005-10-02  Jim Meyering  <jim@meyering.net>
75561
75562         Sync from coreutils.
75563         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
75564         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
75565         `#if HAVE_CONFIG_H'.
75566         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
75567         Remove AT_FDCWD test.
75568         Do not consume the fd unless successful.
75569         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
75570         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
75571         block, so that we don't even try to compile it if settimeofday is
75572         available.  This works around a compilation failure on OSF1 V5.1,
75573         due to stime requiring a `long int*' while tv_sec is `int'.
75574
75575 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
75576
75577         Sync from coreutils.
75578         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
75579         against `yes', rather than just testing for nonempty.
75580
75581 2005-10-01  Simon Josefsson  <jas@extundo.com>
75582
75583         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
75584         and Darwin.
75585
75586         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
75587         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
75588         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
75589         freeaddrinfo and gai_strerror are declared by the POSIX headers.
75590         Check if struct addrinfo is declared.
75591
75592 2005-10-01  Simon Josefsson  <jas@extundo.com>
75593
75594         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
75595         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
75596         AI_* and EAI_* definitions.  Protect function declarations.
75597
75598 2005-10-01  Jim Meyering  <jim@meyering.net>
75599
75600         Sync from coreutils.
75601
75602         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
75603         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
75604         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
75605         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
75606         in the inet and nsl libraries.  Required on Solaris 5.7.
75607
75608 2005-10-01  Jim Meyering  <jim@meyering.net>
75609
75610         Sync from coreutils.
75611         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
75612         in the inet and nsl libraries.  Required on Solaris 5.7.
75613
75614 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
75615
75616         * lib/getdelim.c (getdelim): Remove unused variables.
75617
75618 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
75619
75620         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
75621         so that the code works even with ancient cpp.  Portability problem
75622         with GCC 2.7.2.1 reported by Thomas M.Ott.
75623
75624 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
75625
75626         * modules/regex (Depends-on): Add strcase.
75627
75628         * modules/gethostname (Licence): Change from GPL to LGPL, since
75629         gethostname.c is a trivial implementation of a standard library
75630         function.
75631         * modules/poll (License): Change from GPL to LGPL, since it's
75632         derived from LGPL code.
75633
75634 2005-09-27  Jim Meyering  <jim@meyering.net>
75635
75636         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
75637         HAVE_CONFIG_H.
75638
75639         * lib/intprops.h (signed_type_or_expr__): Define.
75640         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
75641         for unsigned types.
75642
75643 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
75644
75645         * lib/verify.h (verify_expr): Remove, replacing with:
75646         (verify_true): New macro that returns true instead of void.
75647         (verify_type__): Remove.
75648         (verify): Use verify_true rather than verify_type__.
75649
75650 2005-09-26  Bruno Haible  <bruno@clisp.org>
75651
75652         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
75653         is necessary.
75654         (lib_SOURCES): Remove mbchar.c.
75655         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
75656         (Files): Add m4/mbrtowc.m4.
75657         * modules/mbiter: Likewise.
75658         * modules/mbuiter: Likewise.
75659
75660 2005-09-26  Bruno Haible  <bruno@clisp.org>
75661
75662         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
75663         compile mbchar.c if they are not both present.
75664         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
75665         * m4/mbiter.m4 (gl_MBITER): Likewise.
75666         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
75667         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
75668         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
75669
75670 2005-09-25  Jim Meyering  <jim@meyering.net>
75671
75672         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
75673         also uses socklen_t.
75674
75675 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
75676
75677         * lib/utimens.c (ENOSYS): Define if not already defined.
75678         (futimens): Support having a null PATH if the file descriptor
75679         is nonnegative.
75680
75681         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
75682         Remove.
75683         (__attribute): Define to empty unless GCC 3.1 or later.
75684         This works around a core dump on OpenBSD 3.4, which has GCC
75685         2.95.3, which dumps core when given __attribute__(()).  It also
75686         simplifies other tests, since we really don't want to bother with
75687         worrying about which ancient version of GCC supported what.
75688         Original problem reported by Yoann Vandoorselaere, with part of
75689         the fix suggested by Derek Price.
75690
75691 2005-09-24  Jim Meyering  <jim@meyering.net>
75692
75693         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
75694         so we can once again use a positive bitfield width of 1 -- now we
75695         don't have to explain why we were using a bitfield width of 2.
75696
75697 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
75698
75699         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
75700         and similarly for the other external symbols.  Problem reported
75701         by James Gallager.
75702
75703         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
75704         bug reported by Jim Meyering.
75705
75706         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
75707         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
75708         not needed, since socklen is a prerequisite module.
75709
75710 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
75711
75712         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
75713         Problem reported by Eric Blake.
75714         (getaddrinfo): Initialize se so that it's not garbage.
75715         Redo internal storage allocation so that it doesn't make unportable
75716         assumptions about alignment.
75717         Fix a memory leak.
75718
75719         * lib/utimens.c (futimens): Use futimesat if available.
75720         Prefer it to futimes since it doesn't have the futimes bug.
75721
75722         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
75723         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
75724         Instead, declare a function that returns a pointer to an array,
75725         and use verify_type__ to declare the size of the array.
75726         Problem and germ of a solution reported by Bruno Haible.
75727         (verify_type__): Use 2, not 1, for bitfield size, to avoid
75728         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
75729
75730 2005-09-23  Jim Meyering  <jim@meyering.net>
75731
75732         Sync from coreutils.
75733         Correct build failure (socklen_t not defined) on at least
75734         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
75735         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
75736
75737 2005-09-23  Jim Meyering  <jim@meyering.net>
75738
75739         * modules/getaddrinfo (Depends-on): Add socklen.
75740
75741 2005-09-23  Bruno Haible  <bruno@clisp.org>
75742
75743         * tests/test-verify.c: New file.
75744
75745 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75746
75747         Sync from coreutils.
75748
75749         * modules/argmatch (Depends-on): Add verify.
75750         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
75751         unistd-safer.
75752         * modules/save-cwd (Depends-on): Likewise.
75753
75754         * modules/openat (Files): Add lib/openat-die.c.
75755         (Depends-on): Remove error, exitfail.
75756         Add dirname.
75757
75758         * modules/verify: New file.
75759         * MODULES.html.sh (Diagnostics <assert.h>): New section,
75760         with "verify" module.
75761
75762 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75763
75764         Sync from coreutils.
75765
75766         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
75767         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
75768         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
75769         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
75770         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
75771         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
75772         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
75773         Don't bother checking for string.h, stdlib.h, unistd.h.
75774         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
75775         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
75776         module's job.
75777         * m4/jm-macros.m4 (gl_MACROS): Likewise.
75778         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
75779
75780         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
75781         (gl_GETDATE): Use it.
75782
75783         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
75784
75785 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75786
75787         Sync from coreutils.
75788
75789         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
75790         stat-time.h.
75791         * lib/argmatch.h: Include verify.h
75792         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
75793         (ARGMATCH_ASSERT): Remove; unused.
75794         * lib/canonicalize.c: Assume STDC_HEADERS.
75795         * lib/exclude.c: Include "strcase.h".
75796         * lib/regex_internal.h [!defined _LIBC]: Likewise.
75797         * lib/getusershell.c: Include stdio--.h rather than stdio.h
75798         and stdio-safer.h.
75799         (getusershell): Call fopen, not fopen_safer.
75800         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
75801         Do not include unistd-safer.h.
75802         (save_cwd): Don't call fd_safer; no longer needed
75803         now that we include fcntl--.h.
75804
75805         * lib/getdate.y (relative_time): New type.
75806         (RELATIVE_TIME_0): New constant.
75807         (parser_control): Use relative_time instead of doing it ourselves.
75808         (%union): Add new relative_time rel member.
75809         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
75810         Now typeless.
75811         (relunit, relunit_snumber): Now of type rel.
75812         (zone, rel, relunit, get_date): Adjust to above changes.
75813
75814         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
75815         Do not include unistd-safer.h.
75816         (getloadavg): Don't call fd_safer; no longer needed
75817         now that we include fcntl--.h.
75818
75819         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
75820         (make_dir_parents): Treat ENOSYS like EEXIST.
75821
75822         Improve quality of diagnostics on restore_cwd failure.
75823         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
75824         (make_dir_parents): Last arg is now int * (for errno), not bool *.
75825         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
75826         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
75827         each time through the loop.  Do not diagnose restore_cwd failure;
75828         that is the caller's job (and perhaps the caller does not care).
75829
75830         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
75831         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
75832         If the file already exists but is not a directory, don't bother
75833         to try to make its parents.
75834         Close potential file descriptor leak if we can't chdir("/") (!).
75835         Don't always return true if chdir($PWD) fails; return true only
75836         if the requested action was done successfully (except for the
75837         chdir($PWD)).
75838         Don't log final directory unless we actually made it.
75839         Refactor to avoid duplicate code to fix up permissions.
75840         Don't attempt to fix up parent permissions if chdir($PWD) fails.
75841
75842         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
75843         to make it a bit faster and (I hope) clearer.
75844         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
75845         Fix bug in formats like %2N.
75846
75847         * lib/verify.h: New file.
75848
75849 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
75850
75851         Sync from coreutils.
75852         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
75853
75854 2005-09-22  Jim Meyering  <jim@meyering.net>
75855
75856         Sync from coreutils.
75857
75858         * m4/lstat.m4 (gl_FUNC_LSTAT):
75859         Use AC_LIBSOURCES to require lstat.c and lstat.h.
75860         Remove obsolete comment.
75861         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
75862         * m4/xstrtod.m4: Likewise.
75863
75864         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
75865
75866 2005-09-22  Jim Meyering  <jim@meyering.net>
75867
75868         Sync from coreutils.
75869
75870         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
75871
75872         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
75873         the .tm_year member, since otherwise gcc-4.0 would now warn about
75874         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
75875
75876         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
75877         order to avoid an unsuppressible warning from gcc on 64-bit systems.
75878
75879         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
75880         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
75881         when run in a time zone for which daylight savings time is in effect
75882         for the starting date.
75883
75884         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
75885         stop us from restricting permissions of just-created absolute-named
75886         directories.
75887         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
75888         to restore initial working directory.
75889         * lib/mkdir-p.c (make_dir_parents): New parameter:
75890         different_working_dir, to tell caller if/when we change the working
75891         directory and are unable to return to the initial one.
75892         * lib/mkdir-p.h (make_dir_parents): Update prototype.
75893         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
75894         `return false'.  This fixes a bug introduced on 2004-07-30.
75895
75896         * lib/openat.c (fdopendir): Be sure to close the supplied
75897         file descriptor before returning.  This makes our replacement
75898         implementation a little closer to Solaris's, where fdopendir
75899         ties the file descriptor to the returned DIR* pointer.
75900         * lib/openat.c (unlinkat): New function.
75901         * lib/openat.h (unlinkat): Add prototype.
75902         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
75903         (openat_restore_fail): Rename from openat_restore_die.
75904         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
75905
75906         Provide an alternative to exiting immediately upon save_cwd or
75907         restore_cwd failure.  Now, an application can arrange e.g.,
75908         to perform a longjump in that case.
75909         * lib/openat.c: Include dirname.h.
75910         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
75911         (rpl_openat, fdopendir, fstatat): Call openat_save_die
75912         and openat_restore_die rather than calling error directly.
75913         Don't include "error.h" or "exitfail.h"; they're no longer needed.
75914
75915         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
75916         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
75917         define.
75918
75919         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
75920         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
75921                             int utc, int nanoseconds);
75922         Background:
75923         date should not have to allocate a megabyte of virtual memory to
75924         handle a format argument like +%1048575T.  When implemented with
75925         strftime, it must allocate such a buffer, use strftime to fill it
75926         in, print it, then free it.
75927         With fprintftime, it simply prints everything and exits.
75928         With no need for memory allocation, that's one fewer way to fail.
75929         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
75930         optional field width, not before, so we accept %9:z, not %:9z.
75931         (my_strftime): Be sure to use L_('x') for literals.
75932
75933         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
75934         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
75935         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
75936         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
75937         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
75938         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
75939         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
75940         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
75941         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
75942         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
75943         * lib/xgethostname.c, lib/xreadlink.c:
75944         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
75945
75946         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
75947         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
75948         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
75949         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
75950         and don't include <sys/file.h>).
75951
75952 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
75953
75954         Sync from coreutils.
75955
75956         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
75957         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
75958         [!LDAV_DONE]: Avoid unused variable warning.
75959
75960 2005-09-21  Bruno Haible  <bruno@clisp.org>
75961
75962         * lib/unicodeio.h (unicode_to_mb): New declaration.
75963
75964 2005-09-20  Derek Price  <derek@ximbiot.com>
75965
75966         * lib/getaddrinfo.c: Don't include <netdb.h> included from
75967         getaddrinfo.h.
75968
75969 2005-09-20  Bruno Haible  <bruno@clisp.org>
75970
75971         * gnulib-tool: Remove trailing slashes from the values specified for
75972         --source-base, --m4-base, --tests-base, --aux-dir.
75973         Suggested by Simon Josefsson <jas@extundo.com>.
75974
75975 2005-09-20  Bruno Haible  <bruno@clisp.org>
75976
75977         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
75978         func_modules_to_filelist, func_import, func_create_testdir): Make all
75979         sorting results locale-independent, so that gnulib-cache.m4 doesn't
75980         change when gnulib-tool is invoked in a different locale.
75981
75982 2005-09-19  Simon Josefsson  <jas@extundo.com>
75983
75984         * m4/socklen.m4: Fix typo.
75985
75986 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75987
75988         Use a consistent style for including <config.h>.
75989         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
75990         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
75991         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
75992         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
75993         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
75994         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
75995         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
75996         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
75997         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
75998         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
75999         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
76000         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
76001         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
76002         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
76003         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
76004         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
76005         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
76006         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
76007         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
76008         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
76009         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
76010         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
76011         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
76012         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
76013         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
76014         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
76015         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
76016         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
76017         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
76018         lib/xstrtoumax.c, lib/yesno.c:
76019         Standardize inclusion of config.h.
76020         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
76021         lib/inttostr.h:  Removed inclusion of config.h from header files.
76022         * lib/inttostr.c:  Adjusted in-tree users.
76023         * lib/timespec.h: Remove superfluous warning to include config.h.
76024         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
76025         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
76026         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
76027         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
76028         config.h with HAVE_CONFIG_H.
76029
76030 2005-09-19  Jim Meyering  <jim@meyering.net>
76031
76032         * modules/pathmax (License): Change to LGPL.
76033
76034 2005-09-19  Derek Price  <derek@ximbiot.com>
76035
76036         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
76037
76038 2005-09-19  Bruno Haible  <bruno@clisp.org>
76039
76040         * gnulib-tool (import): Provide default for --tests-base.
76041
76042 2005-09-19  Bruno Haible  <bruno@clisp.org>
76043
76044         * doc/quote.texi: New file, extracted from gnulib.texi.
76045         * doc/ctime.texi: New file, extracted from gnulib.texi.
76046         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
76047         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
76048         * doc/gnulib.texi: Include them.
76049
76050 2005-09-18  Bruno Haible  <bruno@clisp.org>
76051
76052         Portability fix.
76053         * gnulib-tool (func_readlink): New function.
76054         (func_ln_if_changed): Use it.
76055
76056 2005-09-18  Bruno Haible  <bruno@clisp.org>
76057
76058         * gnulib-tool: Support --with-tests also with --import.
76059         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
76060         (func_import): Use variables $testsbase and $inctests. Emit a
76061         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
76062         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
76063         SUBDIRS += $testsdir.
76064         (func_create_testdir): Update.
76065
76066 2005-09-18  Bruno Haible  <bruno@clisp.org>
76067
76068         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
76069         instead of $dry_run.
76070         (func_cp_if_changed, func_mv_if_changed): Remove functions.
76071         (func_ln_if_changed): Don't handle dry-run here.
76072         (func_import): In dry-run mode, detect more precisely which actions
76073         would be performed, and don't use "...ing" verbs.
76074
76075 2005-09-18  Bruno Haible  <bruno@clisp.org>
76076
76077         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
76078         (func_import): Use join on two temporary files instead of three nested
76079         loops, in order to determine which files are new or old.
76080
76081 2005-09-18  Bruno Haible  <bruno@clisp.org>
76082
76083         * gnulib-tool (func_import): Comment out code that spits out the
76084         new files with --dry-run.
76085
76086 2005-09-18  Bruno Haible  <bruno@clisp.org>
76087
76088         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
76089
76090 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76091
76092         * lib/stat-time.h: New file.
76093         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
76094         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
76095         in a different way.
76096         (timespec_cmp): New function.
76097         * lib/utimecmp.c: Include stat-time.h.
76098         (SYSCALL_RESOLUTION): Depend on whether various struct stat
76099         members exist, not on the obsolescent ST_MTIM_NSEC.
76100         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
76101
76102 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76103
76104         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
76105
76106 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76107
76108         * MODULES.html.sh (File system functions): Add stat-time.
76109         * modules/stat-time: New file.
76110         * modules/timespec (Files): Remove m4/st_mtim.m4; this
76111         is now done in a different way, by the stat-time module.
76112         * modules/utimecmp (Depends-on): Add stat-time.
76113
76114 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76115
76116         * m4/st_mtim.m4: Remove.  Superseded by...
76117         * m4/stat-time.m4: New file.
76118         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
76119         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
76120
76121 2005-09-15  Derek Price  <derek@ximbiot.com>
76122
76123         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
76124
76125 2005-09-15  Derek Price  <derek@ximbiot.com>
76126
76127         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
76128         * lib/regex_internal.c: Ditto, using this...
76129         (__GNUC_PREREQ): ...new macro.
76130         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
76131         using...
76132         (__GNUC_PREREQ): ...this new macro.
76133
76134         * lib/strstr.h: Include string.h. Define strstr as a macro here.
76135
76136 2005-09-15  Derek Price  <derek@ximbiot.com>
76137             Paul Eggert  <eggert@cs.ucla.edu>
76138
76139         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
76140         changes, consolidating in...
76141         * lib/regex_internal.h: ...this file.
76142
76143 2005-09-13  Jim Meyering  <jim@meyering.net>
76144
76145         * lib/canon-host.c: Filter through gnu indent and reword comments
76146         slightly.
76147         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
76148
76149 2005-09-13  Derek Price  <derek@ximbiot.com>
76150
76151         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
76152         failure.
76153         Reported by Jim Meyering  <jim@meyering.net>.
76154
76155 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76156
76157         * lib/base64.c: Typo.
76158         (base64_encode): Put b64str in initialized data section.
76159
76160 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
76161
76162         Merge glibc and coreutils changes into gnulib, plus a few
76163         extra fixes.
76164         * lib/md5.c: Use #error rather than a string.
76165         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
76166         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
76167         (__attribute__): Define to empty for non recent-GCC.
76168         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
76169         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
76170         Renamed from their non-__ counterparts, with new macros replacing
76171         them if not _LIBC.  Add __THROW attribute.
76172         (rol): Remove.
76173         (struct md5_ctx): Align buffer if using GCC.
76174         * lib/sha1.h (struct sha1_ctx): Likewise.
76175         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
76176         The old name was backwards.
76177         (NOTSWAP): Remove; not used.
76178         (rol): New macro, moved here from md5.h.
76179         (sha1_process_block): Remove a FIXME that doesn't make sense.
76180
76181 2005-09-12  Derek Price  <derek@ximbiot.com>
76182
76183         Return usable errors from canon-host.
76184         * lib/canon-host.h: New file.
76185         * lib/canon-host.c (canon_host): Wrap...
76186         (canon_host_r): ...this new function, which now relies exclusively on
76187         getaddrinfo.
76188         (ch_strerror): New function.
76189         (last_cherror): New global.
76190         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
76191         interface.
76192         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
76193         void *.
76194         (freeaddrinfo): Free ai->ai_canonname when set.
76195
76196 2005-09-12  Derek Price  <derek@ximbiot.com>
76197
76198         Make canon-host require getaddrinfo.
76199         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
76200         AC_LIBSOURCE canon-host.h.  Call...
76201         (gl_PREREQ_CANON_HOST): ...this new function, which requires
76202         gl_GETADDRINFO.
76203         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
76204
76205 2005-09-12  Derek Price  <derek@ximbiot.com>
76206
76207         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
76208         LGPL.
76209         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
76210
76211 2005-09-12  Derek Price  <derek@ximbiot.com>
76212
76213         * lib/gai_strerror.c: Include config.h when available.  Include
76214         getaddrinfo.h before other headers to test interface.
76215         Reported by Larry Jones <lawrence.jones@ugs.com>.
76216
76217 2005-09-12  Derek Price  <derek@ximbiot.com>
76218             Paul Eggert  <eggert@cs.ucla.edu>
76219
76220         * modules/glob (Files): Add glob-libc.h.
76221
76222 2005-09-12  Derek Price  <derek@ximbiot.com>
76223             Paul Eggert  <eggert@cs.ucla.edu>
76224
76225         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
76226         glob_.h, glob-libc.h.
76227         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
76228
76229 2005-09-12  Derek Price  <derek@ximbiot.com>
76230             Paul Eggert  <eggert@cs.ucla.edu>
76231
76232         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
76233         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
76234         protecting things that should be done only in gnulib contexts.
76235         * lib/glob_.h: New file, containing only the glob things needed for
76236         gnulib.
76237         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
76238         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
76239         (glob, globfree, glob_pattern_p): Now defined simply in terms of
76240         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
76241         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
76242         and to respect the namespace rules better.
76243
76244 2005-09-08  Simon Josefsson  <jas@extundo.com>
76245
76246         * modules/socklen: New file.
76247
76248 2005-09-08  Simon Josefsson  <jas@extundo.com>
76249
76250         * m4/socklen.m4: New file.
76251
76252 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76253
76254         * modules/utimens (Files): Add m4/utimbuf.m4, since
76255         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
76256         Reported by Sergey Poznyakoff.
76257
76258 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76259
76260         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
76261         definitions, since that's the preferred style in glibc.
76262         Fix a minor spacing issue, and update copyright notice to match
76263         glibc's.
76264
76265 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76266
76267         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
76268
76269 2005-09-06  Simon Josefsson  <jas@extundo.com>
76270
76271         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
76272         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
76273
76274 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76275
76276         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
76277         warning.
76278
76279 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76280
76281         * config/srclist.txt: Add glibc bug 1302.
76282
76283 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
76284
76285         Change bitset word type from unsigned int to unsigned long int,
76286         as this has better performance on typical 64-bit hosts.
76287         Port bitset code to hosts with unusual word sizes.
76288         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
76289         (build_collating_symbol):
76290         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
76291         argument is a bitset.  This is merely a style issue, but it makes
76292         it clearer that an entire array is expected.
76293         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
76294         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
76295         Port to the case where bitset_word is not the same as unsigned int.
76296         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
76297         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
76298         Likewise.
76299         * lib/regexec.c (check_dst_limits_calc_pos_1,
76300         check_subexp_matching_top):
76301         (build_trtable, group_nodes_into_DFAstates):
76302         Likewise.
76303         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
76304         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
76305         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
76306         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
76307         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
76308         * lib/regcomp.c (optimize_subexps, lower_subexp):
76309         Work even if bitset_word has holes in its bitwise representation.
76310         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
76311         * lib/regexec.c (check_dst_limits_calc_pos_1,
76312         check_subexp_matching_top):
76313         Likewise.
76314         * lib/regex_internal.c (re_string_reconstruct):
76315         Don't assume UCHAR_MAX == 255.
76316         * lib/regex_internal.h (bitset_set_all): Likewise.
76317         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
76318         All uses changed.
76319         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
76320         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
76321         All uses changed.
76322         (BITSET_WORD_MAX): New macro.
76323         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
76324         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
76325         (bitset_empty, bitset_copy):
76326         Prefer sizeof (bitset) to multiplying it out ourselves.
76327         (bitset_not_merge): Remove; unused.
76328         (bitset_contain): Return bool, not unsigned int with one bit on.
76329         All callers changed.
76330         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
76331         alignment than re_node_set; do this by defining a new internal
76332         type struct dests_alloc and using it to allocate memory.
76333
76334 2005-09-05  Bruno Haible  <bruno@clisp.org>
76335
76336         * gnulib-tool (func_import): Fix comparison in handling of symbolic
76337         links.
76338
76339 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
76340
76341         * modules/size_max (Makefile.am): Add size_max.h
76342
76343 2005-09-04  Derek Price  <derek@ximbiot.com>
76344
76345         * gnulib-tool (func_import): Fix reversed $symbolic logic.
76346
76347 2005-09-03  Simon Josefsson  <jas@extundo.com>
76348
76349         * gnulib-tool: Fix typo.
76350
76351 2005-09-03  Simon Josefsson  <jas@extundo.com>
76352
76353         * config/srclist.txt: Add glibc bug 1293.
76354
76355 2005-09-03  Derek Price  <derek@ximbiot.com>
76356
76357         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
76358         From Larry Jones <lawrence.jones@ugs.com>.
76359
76360 2005-09-02  Simon Josefsson  <jas@extundo.com>
76361
76362         * modules/socklen: New file.
76363
76364 2005-09-02  Simon Josefsson  <jas@extundo.com>
76365
76366         * modules/havelib: New module.
76367
76368         * modules/gettext, modules/iconv, modules/lock, modules/readline:
76369         Use havelib.
76370
76371 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
76372
76373         Check for arithmetic overflow when calculating sizes, to prevent
76374         some buffer-overflow issues.  These patches are conservative, in the
76375         sense that when I couldn't determine whether an overflow was possible,
76376         I inserted a run-time check.
76377         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
76378         macros.
76379         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
76380         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
76381         (re_xnrealloc, re_x2nrealloc): New inline functions.
76382         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
76383         parse_bracket_exp):
76384         (build_equiv_class, build_charclass): Check for arithmetic overflow
76385         in size expression calculations.
76386         * lib/regex_internal.c (re_string_realloc_buffers):
76387         (build_wcs_upper_buffer, re_node_set_add_intersect):
76388         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
76389         (re_dfa_add_node, register_state): Likewise.
76390         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
76391         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
76392         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
76393         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
76394
76395 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
76396
76397         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
76398         m4/ulonglong.m4.  Problem reported by Martin Lambers.
76399
76400 2005-09-02  Bruno Haible  <bruno@clisp.org>
76401
76402         Support for lib vs. lib64 distinction on biarch platforms.
76403         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
76404         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
76405         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
76406
76407 2005-09-02  Bruno Haible  <bruno@clisp.org>
76408
76409         * gnulib-tool (import): In the other first-use case, provide defaults
76410         as well.
76411
76412 2005-09-02  Bruno Haible  <bruno@clisp.org>
76413
76414         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
76415         patches not yet found in the latest gettext release.
76416
76417 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76418
76419         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
76420         to avoid a collision with bits/local_lim.h in glibc.
76421         All uses changed.  Problem reported by Dmitry V. Levin in
76422         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
76423
76424         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
76425         bugs in int versus size_t comparisons.
76426         (re_string_context_at): Fix bug where the code assumed that
76427         Idx is signed.
76428
76429         Use bool where appropriate.
76430         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
76431         All callers changed.
76432         (calc_eclosure_iter): Likewise, for ROOT arg.
76433         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
76434         (build_charclass_op): Likewise, for NON_MATCH arg.
76435         * lib/regex_internal.c (re_string_allocate, re_string_construct):
76436         (re_string_construct_common): Likewise, for ICASE arg.
76437         * lib/regexec.c (re_search_2_stub, re_search_stub):
76438         Likewise, for RET_LEN arg.
76439         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
76440         (set_regs): Likewise, for FL_BACKTRACK arg.
76441         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
76442         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
76443         (calc_eclosure_iter, parse_bracket_exp):
76444         Use bool for internal variables that are booleans.
76445         * lib/regexec.c (re_search_internal, check_matching,
76446         proceed_next_node):
76447         (set_regs, build_sifted_states, sift_states_bkref):
76448         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
76449         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
76450         (find_collation_sequence_value):
76451         Likewise.
76452         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
76453         (re_node_set_compare):
76454         Return bool, not int. All callers changed.
76455         * lib/regexec.c (check_halt_node_context, check_dst_limits):
76456         (build_trtable, check_node_accept): Likewise.
76457         * lib/regex_internal.h: Include stdbool.h.
76458
76459         Fix bugs uncovered when converting to bool.
76460         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
76461         failure instead of charging ahead blindly.
76462         * lib/regex_internal.c (register_state): Likewise.
76463         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
76464         for freeing internal storage.
76465         (group_nodes_into_DFA_states): Use unsigned int, not int, for
76466         bitset pieces used as boolean, to avoid undefined behavior
76467         on hosts that do int overflow checking.
76468
76469 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76470
76471         * config/srclist.txt: Add glibc bugs 1285-1287.
76472
76473 2005-09-01  Jim Meyering  <jim@meyering.net>
76474
76475         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
76476         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
76477         Require gl_STAT_MACROS, too.
76478
76479 2005-09-01  Bruno Haible  <bruno@clisp.org>
76480
76481         * gnulib-tool (import): In the first-use case, provide defaults.
76482
76483 2005-09-01  Bruno Haible  <bruno@clisp.org>
76484
76485         * gnulib-tool (func_import): Remove the .tmp files.
76486
76487 2005-09-01  Bruno Haible  <bruno@clisp.org>
76488
76489         * gnulib-tool (func_import): Fix handling of symbolic links.
76490
76491 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76492
76493         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
76494         old glibc regex code mishandles strings longer than 2**31 bytes.
76495         This patch fixes this when the regex code is used in gnulib
76496         (i.e., outside glibc).
76497
76498         This patch should not affect the use of the regex code inside
76499         glibc.  No doubt this problem also needs to be handled for glibc
76500         as well, but the result will be an incompatible change to the
76501         glibc ABI, and the old ABI will have to be supported too.  That
76502         can be the the subject for another patch.
76503
76504         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
76505         governing whether the rest of this patch is active.  By default,
76506         the macro is disabled and the patch has no effect.
76507         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
76508         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
76509         (struct re_pattern_buffer, re_search, re_search_2, re_match):
76510         (re_match_2, re_set_registers): Use the new types.
76511         * lib/regex_internal.h (Idx, re_hashval_t): New types.
76512         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
76513         New macros.
76514         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
76515         (re_string_context_at, bin_tree_t, re_dfastate_t):
76516         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
76517         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
76518         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
76519         (re_string_char_size_at, re_string_wchar_at):
76520         (re_string_elem_size_at):
76521         Use the new types and macros to port to 64-bit hosts.
76522         Use unsigned types for internal values, so that the code
76523         mostly works even for arrays larger than SSIZE_MAX.
76524         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
76525         (search_duplicated_node, calc_eclosure_iter, fetch_number):
76526         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
76527         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
76528         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
76529         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
76530         (calc_inveclosure, parse_dup_op, build_range_exp):
76531         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
76532         (fetch_number, create_token_tree, mark_opt_subexp):
76533         Likewise.
76534         * lib/regex_internal.c (re_string_construct_common,
76535         create_ci_newstate):
76536         (create_cd_newstate, re_string_allocate, re_string_construct):
76537         (re_string_realloc_buffers, build_wcs_upper_buffer):
76538         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
76539         (re_string_reconstruct, re_string_peek_byte_case):
76540         (re_string_fetch_byte_case, re_string_context_at):
76541         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
76542         (re_node_set_init_copy, re_node_set_add_intersect):
76543         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76544         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76545         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
76546         (re_acquire_state, re_acquire_state_context, register_state):
76547         Likewise.
76548         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
76549         search_cur_bkref_entry):
76550         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
76551         (re_search_internal, re_search_2_stub, re_search_stub)
76552         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
76553         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
76554         (update_cur_sifted_state, check_dst_limits):
76555         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
76556         (check_subexp_limits, sift_states_bkref, merge_state_array):
76557         (check_subexp_matching_top, get_subexp, get_subexp_sub):
76558         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
76559         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
76560         (expand_bkref_cache, check_node_accept_bytes):
76561         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
76562         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
76563         (acquire_init_state_context, check_halt_node_context):
76564         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
76565         (sift_states_backward, clean_state_log_if_needed):
76566         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
76567         (find_recover_state, transit_state_sb, transit_state_mb):
76568         (transit_state_bkref, build_trtable, match_ctx_clean):
76569         Likewise.
76570         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
76571         to work around an assumption that REG_MISSING is negative.
76572
76573         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
76574         (seek_collating_symbol_entry) [defined _LIBC]:
76575         (lookup_collation_sequence_value) [defined _LIBC]:
76576         (build_range_exp, build_collating_symbol) [defined _LIBC]:
76577         Use prototypes rather than old-style function definitions.
76578         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
76579         (transit_state_sb) [0]:
76580         (find_collation_sequence_value) [defined _LIBC]: Likewise.
76581
76582         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
76583         rm_eo.
76584
76585         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
76586         (optimize_subexps, lower_subexp):
76587         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
76588         since the signed shift might overflow.  Use 1u<<31 instead.
76589         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
76590         Likewise.
76591         * lib/regexec.c (check_dst_limits_calc_pos_1,
76592         check_subexp_matching_top): Likewise.
76593
76594         * lib/regcomp.c (optimize_subexps, lower_subexp):
76595         Use CHAR_BIT rather than 8, for clarity.
76596         * lib/regexec.c (check_dst_limits_calc_pos_1):
76597         (check_subexp_matching_top): Likewise.
76598         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
76599         have to worry about portability issues when shifting it left.
76600         Remove no-longer-needed test for table_size > 0.
76601         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
76602         in a word, as the resulting behavior is undefined.
76603         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
76604         in one case, a <= should have been an <, and in another case the
76605         whole test was missing.
76606         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
76607         the standard name CHAR_BIT.
76608         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
76609         this is not true on one's complement and signed-magnitude hosts.
76610
76611         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
76612         next_last_offset.
76613         (struct re_dfa_t): Remove unused member states_alloc.
76614         * lib/regcomp.c (init_dfa): Don't initialize unused members.
76615
76616 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76617
76618         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
76619         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
76620         and large-file glibc and in 32-bit large-file Solaris.
76621
76622 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76623
76624         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
76625         lengths fit in regoff_t; this isn't true if regoff_t is the same
76626         width as size_t.
76627         * lib/regex.c (re_search_internal): 5th arg is LAST_START
76628         (= START + RANGE) instead of RANGE.  This avoids overflow
76629         problems when regoff_t is the same width as size_t.
76630         All callers changed.
76631         (re_search_2_stub): Check for overflow when adding the
76632         sizes of the two strings.
76633         (re_search_stub): Check for overflow when adding START
76634         to RANGE; if it occurs, substitute the extreme value.
76635
76636 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76637
76638         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
76639
76640 2005-08-31  Jim Meyering  <jim@meyering.net>
76641
76642         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
76643         a pointer-to-const.
76644         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
76645         (register_state): Likewise.
76646         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
76647         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
76648         (group_nodes_into_DFAstates): Likewise.
76649
76650 2005-08-31  Jim Meyering  <jim@meyering.net>
76651
76652         * check-module: Add a FIXME comment.
76653
76654 2005-08-31  Eric Blake  <ebb9@byu.net>
76655
76656         * modules/unistd-safer (Files): Add unistd--.h.
76657         * modules/stdio-safer (Files): Add stdio--.h.
76658
76659 2005-08-31  Derek Price  <derek@ximbiot.com>
76660
76661         * lib/getdelim.c (getdelim): Return EOF on EOF.
76662         Reported by Larry Jones <lawrence.jones@ugs.com>.
76663
76664 2005-08-31  Bruno Haible  <bruno@clisp.org>
76665
76666         Avoid unnecessary diffs in the generated lib/Makefile.am.
76667         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
76668         the generated files.
76669         (func_import): Don't set cmd.
76670
76671 2005-08-31  Bruno Haible  <bruno@clisp.org>
76672
76673         * lib/strstr.c: Include <stddef.h>, for NULL.
76674         * lib/strcasestr.c: Likewise.
76675         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76676
76677 2005-08-31  Bruno Haible  <bruno@clisp.org>
76678
76679         * gnulib-tool: New option --macro-prefix.
76680         (func_import): Use macro_prefix.
76681         (import): Handle option --macro-prefix.
76682
76683 2005-08-31  Bruno Haible  <bruno@clisp.org>
76684
76685         * gnulib-tool (import): Rename most ac_* variables to cached_*.
76686         Also use new variables cached_lgpl, cached_libtool.
76687
76688 2005-08-31  Bruno Haible  <bruno@clisp.org>
76689
76690         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
76691         always instantiating them.
76692
76693 2005-08-31  Bruno Haible  <bruno@clisp.org>
76694
76695         * gnulib-tool (func_import): Read the previous cached settings
76696         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
76697         earlier added by gnulib but are now dropped. Warn when a gnulib file
76698         overwrites a non-gnulib file.
76699
76700 2005-08-31  Bruno Haible  <bruno@clisp.org>
76701
76702         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
76703         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
76704         projects that don't keep autogenerated files in CVS. Put into
76705         actioncmd only the specified modules, not the transitive closure.
76706
76707 2005-08-31  Bruno Haible  <bruno@clisp.org>
76708
76709         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
76710         Create directories that shall be filled.
76711         (import): Don't look for gl_* macros in configure.ac. Recurse across
76712         all directories containing a gnulib-cache.m4 files, if meaningful.
76713
76714 2005-08-31  Bruno Haible  <bruno@clisp.org>
76715
76716         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
76717         (import): Set seen_libtool when we see gl_LIBTOOL.
76718
76719 2005-08-31  Bruno Haible  <bruno@clisp.org>
76720
76721         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
76722         declaration macro definitions from generated gnulib.m4.
76723
76724 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
76725
76726         * lib/iconvme.h: Add prototype for iconv_alloc.
76727
76728 2005-08-29  Simon Josefsson  <jas@extundo.com>
76729
76730         * lib/iconvme.c: Fix errno.
76731
76732 2005-08-29  Bruno Haible  <bruno@clisp.org>
76733
76734         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
76735         that it works when the directory contains spaces.
76736
76737 2005-08-29  Bruno Haible  <bruno@clisp.org>
76738
76739         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
76740
76741 2005-08-29  Bruno Haible  <bruno@clisp.org>
76742
76743         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
76744         Emit more advice.
76745
76746 2005-08-29  Bruno Haible  <bruno@clisp.org>
76747         and Stepan Kasal  <kasal@ucw.cz>
76748
76749         * check-module: If more parameters are given, check each of them
76750         separately; add more exceptions, as noted by Jim Meyering.
76751         (check_module): New procedure.
76752         (%exempt_header): Now contains all exceptions.
76753
76754 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
76755
76756         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
76757
76758 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
76759
76760         * lib/iconvme.c: Split iconv_string into iconv_alloc.
76761
76762 2005-08-28  Bruno Haible  <bruno@clisp.org>
76763
76764         * m4/gnulib-tool.m4: New file.
76765
76766 2005-08-27  Jim Meyering  <jim@meyering.net>
76767
76768         * modules/unistd-safer (Files): Add pipe-safer.c.
76769         * modules/fcntl-safer (Files): Add creat-safer.c.
76770
76771 2005-08-27  Jim Meyering  <jim@meyering.net>
76772
76773         * m4/stdlib-safer.m4: New file.  From coreutils.
76774         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
76775         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
76776         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
76777         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
76778         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
76779
76780 2005-08-27  Jim Meyering  <jim@meyering.net>
76781
76782         * lib/fopen-safer.c: Merge minor changes from coreutils.
76783         * lib/dup-safer.c: Likewise.
76784         * lib/fd-safer.c: Likewise.
76785
76786         Merge from coreutils.
76787         * lib/stdio--.h: New file.
76788         * lib/stdlib--.h: New file.
76789         * lib/mkstemp-safer.c: New file.
76790
76791         GNU tar needs these.
76792         * lib/pipe-safer.c: New file.
76793         * lib/creat-safer.c: New file.
76794         * lib/fcntl--.h (creat): Define to creat_safer.
76795         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
76796         * lib/unistd--.h (pipe): Define to pipe_safer.
76797         * lib/unistd-safer.h: Declare pipe_safer.
76798
76799 2005-08-26  Simon Josefsson  <jas@extundo.com>
76800
76801         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
76802         Haible <bruno@clisp.org>.
76803
76804 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
76805
76806         * lib/regex_internal.h: Remove all references to
76807         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
76808         or better.
76809         (bitset_not, bitset_merge, bitset_not_merge):
76810         (bitset_mask, re_string_allocate, re_string_construct):
76811         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
76812         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
76813         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
76814         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
76815         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
76816         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
76817         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
76818         (re_acquire_state_context):
76819         Remove unnecessary forward decls.
76820         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
76821         Put __attribute at function definition,
76822         now that the function decl has been removed.
76823         * lib/regex_internal.c (re_string_peek_byte_case):
76824         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
76825         Likewise.
76826
76827 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
76828
76829         * m4/regex.m4: Add AC_PREREQ(2.50).
76830         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
76831
76832 2005-08-25  Simon Josefsson  <jas@extundo.com>
76833
76834         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
76835         __fsetlocking.
76836
76837 2005-08-25  Simon Josefsson  <jas@extundo.com>
76838
76839         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
76840         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
76841         GLIBC specific code.
76842
76843 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76844
76845         Make regex safe for g++.  This fixes one real bug (an "err"
76846         that should have been "*err").  g++ problem reported by
76847         Sam Steingold.
76848         * lib/regex_internal.h (re_calloc): New macro, consistent with
76849         re_malloc etc.  All callers of calloc changed to use re_calloc.
76850         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
76851         not int.  All callers changed.
76852         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
76853         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
76854         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
76855         (find_recover_state): Change "err" to "*err"; this fixes what
76856         appears to be a real bug.
76857         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
76858         versus int.
76859
76860 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76861
76862         * modules/regex (Depends-on): Add malloc, since the code
76863         assumes that !malloc(0) means failure.
76864
76865 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76866
76867         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
76868
76869         alloca modernization/simplification for regex.
76870         * lib/regex.c: Remove portability cruft for alloca.  This no longer
76871         needs to be at the start of the file, and can be moved into
76872         regex_internal.h and simplified.
76873         * lib/regex_internal.h: Include <alloca.h>.
76874         (__libc_use_alloca) [!defined _LIBC]: New macro.
76875         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
76876         now works outside glibc.
76877
76878 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76879
76880         * config/srclist.txt: Add glibc bugs 1241, 1245.
76881
76882 2005-08-25  Jim Meyering  <jim@meyering.net>
76883
76884         * lib/open-safer.c: Include <config.h>.
76885         Otherwise, we'd lose LARGEFILE support in any file using
76886         e.g. "fcntl--.h"
76887
76888 2005-08-25  Bruno Haible  <bruno@clisp.org>
76889
76890         * m4/minmax.m4: Require autoconf 2.52.
76891         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
76892         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
76893         alternatives of translit over the alphabet.
76894         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
76895
76896 2005-08-24  Simon Josefsson  <jas@extundo.com>
76897
76898         * tests/test-getpass.c: New file.
76899
76900 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76901
76902         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
76903         for GNU regex features.
76904
76905 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76906
76907         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
76908         * lib/regex.h (regerror): Likewise.
76909
76910         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
76911         requires this.  (The code never needed it.)
76912
76913         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
76914         All uses of recently-renamed identifiers changed to use the new,
76915         POSIX-compliant names.  The code will build and run just fine
76916         without these changes, but it's better to eat our own dog food
76917         and use the standard-conforming names.
76918
76919         * lib/regex.h: Fix a multitude of POSIX name space violations.
76920         These changes have an effect only for programs that define
76921         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
76922         do not change anything for programs compiled in the normal way.
76923         Also, there is no effect on the ABI.
76924
76925         (_REGEX_SOURCE): New macro.
76926         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
76927         defined and _GNU_SOURCE is not; this fixes a name space violation.
76928
76929         Rename the following macros to obey POSIX requirements.
76930         The old names are still visible as macros if _REGEX_SOURCE is defined.
76931         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
76932         RE_BACKSLASH_ESCAPE_IN_LISTS.
76933         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
76934         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
76935         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
76936         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
76937         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
76938         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
76939         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
76940         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
76941         (REG_INTERVALS): renamed from RE_INTERVALS.
76942         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
76943         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
76944         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
76945         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
76946         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
76947         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
76948         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
76949         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
76950         RE_UNMATCHED_RIGHT_PAREN_ORD.
76951         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
76952         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
76953         (REG_DEBUG): renamed from RE_DEBUG.
76954         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
76955         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
76956         unusual, since we can't clash with the POSIX REG_ICASE.
76957         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
76958         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
76959         (REG_NO_SUB): renamed from RE_NO_SUB.
76960         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
76961         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
76962         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
76963         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
76964         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
76965         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
76966         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
76967         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
76968         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
76969         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
76970         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
76971         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
76972         RE_SYNTAX_POSIX_MINIMAL_BASIC.
76973         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
76974         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
76975         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
76976         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
76977         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
76978         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
76979         (REG_FIXED): Renamed from REGS_FIXED.
76980         (REG_NREGS): Renamed from RE_NREGS.
76981
76982         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
76983         of other REG_* macros, since POSIX says the user is allowed to
76984         #undef these macros selectively.
76985
76986         (reg_errcode_t): Update comment stating what other tables need
76987         to be consistent.
76988
76989         Rename the following enum values to obey POSIX requirements.
76990         The old names are still visible as macros.
76991         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
76992         is not defined, since GNU is supposed to be a superset of POSIX as
76993         much as possible, and since we want reg_errcode_t to be a signed
76994         type for implementation consistency.
76995         (_REG_NOERROR): Renamed from REG_NOERROR.
76996         (_REG_NOMATCH): Renamed from REG_NOMATCH.
76997         (_REG_BADPAT): Renamed from REG_BADPAT.
76998         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
76999         (_REG_ECTYPE): Renamed from REG_ECTYPE.
77000         (_REG_EESCAPE): Renamed from REG_EESCAPE.
77001         (_REG_ESUBREG): Renamed from REG_ESUBREG.
77002         (_REG_EBRACK): Renamed from REG_EBRACK.
77003         (_REG_EPAREN): Renamed from REG_EPAREN.
77004         (_REG_EBRACE): Renamed from REG_EBRACE.
77005         (_REG_BADBR): Renamed from REG_BADBR.
77006         (_REG_ERANGE): Renamed from REG_ERANGE.
77007         (_REG_ESPACE): Renamed from REG_ESPACE.
77008         (_REG_BADRPT): Renamed from REG_BADRPT.
77009         (_REG_EEND): Renamed from REG_EEND.
77010         (_REG_ESIZE): Renamed from REG_ESIZE.
77011         (_REG_ERPAREN): Renamed from REG_ERPAREN.
77012         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
77013         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
77014         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
77015         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
77016
77017         (_REG_RE_NAME, _REG_RM_NAME): New macros.
77018         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
77019         changed.  But support the old name if the new one is not defined
77020         and if _REGEX_SOURCE.
77021
77022         Change the following member names in struct re_pattern_buffer.
77023         The old names are still supported if !_REGEX_SOURCE.
77024         The new names are always supported, regardless of _REGEX_SOURCE.
77025         (re_buffer): Renamed from buffer.
77026         (re_allocated): Renamed from allocated.
77027         (re_used): Renamed from used.
77028         (re_syntax): Renamed from syntax.
77029         (re_fastmap): Renamed from fastmap.
77030         (re_translate): Renamed from translate.
77031         (re_can_be_null): Renamed from can_be_null.
77032         (re_regs_allocated): Renamed from regs_allocated.
77033         (re_fastmap_accurate): Renamed from fastmap_accurate.
77034         (re_no_sub): Renamed from no_sub.
77035         (re_not_bol): Renamed from not_bol.
77036         (re_not_eol): Renamed from not_eol.
77037         (re_newline_anchor): Renamed from newline_anchor.
77038
77039         Change the following member names in struct re_registers.
77040         The old names are still supported if !_REGEX_SOURCE.
77041         The new names are always supported, regardless of _REGEX_SOURCE.
77042         (rm_num_regs): Renamed from num_regs.
77043         (rm_start): Renamed from start.
77044         (rm_end): Renamed from end.
77045
77046         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
77047         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
77048         Prepend __ to parameter names.
77049
77050         Undo yesterday's changes.
77051
77052 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77053
77054         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
77055         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
77056         lib/regex.c.
77057
77058 2005-08-24  Jim Meyering  <jim@meyering.net>
77059
77060         Sync from coreutils.
77061         * m4/fcntl-safer.m4: New file.
77062
77063         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
77064         and object files for this module.
77065
77066 2005-08-24  Jim Meyering  <jim@meyering.net>
77067
77068         Sync from coreutils.
77069         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
77070
77071 2005-08-24  Jim Meyering  <jim@meyering.net>
77072
77073         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
77074         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
77075
77076 2005-08-24  Jim Meyering  <jim@meyering.net>
77077
77078         * modules/fcntl-safer: New module.
77079         * modules/fts (Depends-on): Add fcntl-safer.
77080         * MODULES.html.sh (File descriptor based Input/Output):
77081         Add fcntl-safer.
77082
77083 2005-08-24  Bruno Haible  <bruno@clisp.org>
77084
77085         Support for unit test modules.
77086         * modules/README: Mention tests modules.
77087         * modules/TEMPLATE-TESTS: New file.
77088         * gnulib-tool: New options --extract-tests-module, --with-tests and
77089         --tests-base (unused for the moment).
77090         (testsbase, inctests): New variables.
77091         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
77092         (func_verify_module): Exclude TEMPLATE-TESTS.
77093         (func_verify_nontests_module, func_verify_tests_module): New functions.
77094         (func_get_dependencies): Add implicit dependency for tests modules.
77095         (func_get_tests_module): New function.
77096         (func_modules_transitive_closure): When --with-tests was specified,
77097         include the unit tests as well, unless explicitly avoided.
77098         (func_emit_lib_Makefile_am): Ignore the tests modules here.
77099         (func_emit_tests_Makefile_am): New function.
77100         (func_create_testdir): When --with-tests was specified, emit a
77101         tests/ directory.
77102         * MODULES.html.sh (Future developments): Update.
77103
77104 2005-08-24  Bruno Haible  <bruno@clisp.org>
77105
77106         * modules/tls-tests: New file.
77107         * tests/test-tls.c: New file, from GNU gettext.
77108
77109 2005-08-24  Bruno Haible  <bruno@clisp.org>
77110
77111         * modules/lock-tests: New file.
77112         * tests/test-lock.c: New file, from GNU gettext.
77113
77114 2005-08-24  Bruno Haible  <bruno@clisp.org>
77115
77116         * lib/lock.h: Add multiple inclusion guard.
77117         * lib/tls.h: Add multiple inclusion guard.
77118
77119 2005-08-24  Bruno Haible  <bruno@clisp.org>
77120
77121         * gnulib-tool: Add support for the --aux-dir option to
77122         --create-testdir, --create-megatestdir, --test, --megatest.
77123         (func_create_testdir, func_create_megatestdir): Optionally emit a
77124         AC_CONFIG_AUX_DIR directive.
77125         (create-testdir, create-megatestdir, test, megatest): Provide a
77126         default value for $auxdir.
77127
77128 2005-08-24  Bruno Haible  <bruno@clisp.org>
77129
77130         * gnulib-tool (import): Use compound statement instead of subshell
77131         where possible.
77132
77133 2005-08-24  Bruno Haible  <bruno@clisp.org>
77134
77135         * gnulib-tool (import): Change --aux-dir default to "build-aux".
77136
77137 2005-08-24  Bruno Haible  <bruno@clisp.org>
77138
77139         * gnulib-tool (func_version): Update.
77140
77141 2005-08-24  Bruno Haible  <bruno@clisp.org>
77142
77143         * gnulib-tool (func_import, func_create_testdir,
77144         func_create_megatestdir): Quote all autoconf macro arguments.
77145
77146 2005-08-24  Bruno Haible  <bruno@clisp.org>
77147
77148         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
77149         option --force, because --force causes the aclocal.m4 of each
77150         subdirectory to be newer than the corresponding config.h.in.
77151
77152 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77153
77154         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
77155         All contents moved to gl_REGEX.
77156         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
77157         assume that it does.
77158
77159 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77160
77161         * lib/regex.h (REG_NOSYS)
77162         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
77163         Define, since POSIX requires it as of 2001.
77164         (_REG_ENOSYS)
77165         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
77166         New private symbol, used to keep the enum signed in all cases.
77167         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
77168         Youngman in
77169         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
77170
77171         * lib/regex_internal.c (re_string_skip_chars, register_state):
77172         (calc_state_hash):
77173         Remove forward decls; no longer needed now that we use prototypes.
77174         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
77175         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
77176         (clean_state_log_if_needed): Likewise.
77177
77178 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77179
77180         * config/srclist.txt: Add glibc bugs 1231-1233.
77181
77182 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77183
77184         Fix problems reported by Sam Steingold in
77185         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
77186         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
77187         assumed that reg_errcode_t is a signed type, which is not
77188         necessarily true if _XOPEN_SOURCE is not defined.
77189         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
77190         since some compilers warn about it otherwise.
77191
77192 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77193
77194         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
77195         (init_word_char, create_initial_state, duplicate_node_closure):
77196         (fetch_token, peek_token_bracket, build_range_exp):
77197         (build_collating_symbol): Remove forward decls; no longer needed
77198         now that we use prototypes.
77199
77200         * lib/regcomp.c:
77201         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
77202         (re_compile_fastmap_iter, regcomp, regerror, regfree):
77203         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
77204         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
77205         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
77206         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
77207         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
77208         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
77209         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
77210         (build_range_exp, build_collating_symbol, parse_bracket_exp):
77211         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
77212         (build_charclass, build_charclass_op, fetch_number, create_tree):
77213         (create_token_tree, mark_opt_subexp, duplicate_tree):
77214         Use prototypes rather than old-style definitions.
77215
77216         * lib/regex_internal.c:
77217         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
77218         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
77219         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
77220         (re_string_reconstruct, re_string_peek_byte_case):
77221         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
77222         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
77223         (re_node_set_init_copy, re_node_set_add_intersect):
77224         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
77225         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
77226         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
77227         (re_acquire_state, re_acquire_state_context, register_state):
77228         (create_ci_newstate, create_cd_newstate, free_state):
77229         Likewise.
77230         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
77231         re_search_2):
77232         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
77233         (re_search_internal, prune_impossible_nodes):
77234         (acquire_init_state_context, check_matching, static):
77235         (check_halt_node_context, check_halt_state_context, proceed_next_node):
77236         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
77237         (update_regs, sift_states_backward, build_sifted_states):
77238         (clean_state_log_if_needed, merge_state_array):
77239         (update_cur_sifted_state, add_epsilon_src_nodes):
77240         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
77241         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
77242         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
77243         (find_recover_state, check_subexp_matching_top, transit_state_mb):
77244         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
77245         (check_arrival, check_arrival_add_next_nodes):
77246         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
77247         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
77248         (check_node_accept_bytes, check_node_accept, extend_buffers):
77249         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
77250         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
77251         (sift_ctx_init):
77252         Likewise.
77253
77254         * lib/regex_internal.h:
77255         (re_string_allocate, re_string_construct, re_string_reconstruct):
77256         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
77257         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
77258         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
77259         (re_string_context_at, re_string_peek_byte_case):
77260         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
77261         is defined, since we now use prototypes always.
77262
77263         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
77264         C89 or better.  All uses removed.
77265
77266 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77267
77268         * config/srclist.txt: Add glibc bugs 1220-1227.
77269
77270 2005-08-20  Jim Meyering  <jim@meyering.net>
77271
77272         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
77273         of unused local, dfa.
77274
77275 2005-08-20  Bruno Haible  <bruno@clisp.org>
77276
77277         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
77278
77279 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77280
77281         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
77282         (re_node_set_insert_last, re_dfa_add_node):
77283         Rename local variables to avoid GCC shadowing warnings.
77284
77285 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77286
77287         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
77288         [defined lint]: Suppress bogus uninitialized-variable warnings.
77289
77290         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
77291         and let the caller return REG_ESPACE if out of space.  This
77292         removes an uninitialied-variable warning with GCC 4.0.1, and also
77293         avoids taking the address of a local variable.  All callers
77294         changed.
77295
77296 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77297
77298         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
77299         $LIBCSRC/posix/regexec.c.
77300         Add glibc bug 1217 for regcomp.c.
77301
77302 2005-08-19  Jim Meyering  <jim@meyering.net>
77303
77304         * lib/regexec.c (proceed_next_node): Redo local variables to
77305         avoid GCC shadowing warnings.
77306
77307 2005-08-18  Bruno Haible  <bruno@clisp.org>
77308
77309         * lib/strstr.c (strstr): Fix return value in multibyte case.
77310         * lib/strcasestr.c (strcasestr): Likewise.
77311
77312 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77313
77314         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
77315
77316 2005-08-17  Jim Meyering  <jim@meyering.net>
77317
77318         Make the %s format (seconds since the epoch) work for a negative
77319         number and when used with a zero-padded field width, e.g. %015s.
77320
77321         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
77322         label so that it precedes the code to set `digits'.  Otherwise,
77323         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
77324         print `00-22'.  Now, it prints `-0022', as it should.
77325
77326 2005-08-17  Bruno Haible  <bruno@clisp.org>
77327
77328         * modules/strstr (Files): Add m4/mbrtowc.m4.
77329         (Depends-on): Add mbuiter.
77330
77331 2005-08-17  Bruno Haible  <bruno@clisp.org>
77332
77333         * modules/strcasestr: New file.
77334         * MODULES.html.sh (String handling, based on ANSI C 89): Add
77335         strcasestr.
77336
77337 2005-08-17  Bruno Haible  <bruno@clisp.org>
77338
77339         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
77340
77341 2005-08-17  Bruno Haible  <bruno@clisp.org>
77342
77343         * modules/mbuiter: New file.
77344         * MODULES.html.sh (Extended multibyte and wide character utilities):
77345         Add mbuiter.
77346
77347 2005-08-17  Bruno Haible  <bruno@clisp.org>
77348
77349         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
77350         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
77351
77352 2005-08-17  Bruno Haible  <bruno@clisp.org>
77353
77354         * m4/strcasestr.m4: New file.
77355
77356 2005-08-17  Bruno Haible  <bruno@clisp.org>
77357
77358         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
77359         * lib/strstr.c: Completely rewritten, with multibyte locale support.
77360
77361 2005-08-17  Bruno Haible  <bruno@clisp.org>
77362
77363         * lib/strcasestr.h: New file.
77364         * lib/strcasestr.c: New file.
77365
77366 2005-08-17  Bruno Haible  <bruno@clisp.org>
77367
77368         * lib/strcasecmp.c: Use mbuiter.h.
77369
77370 2005-08-17  Bruno Haible  <bruno@clisp.org>
77371
77372         * lib/mbuiter.h: New file.
77373
77374 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
77375
77376         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
77377         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
77378         and gl_GETOPT are both invoked via different paths (as happens
77379         with GNU tar CVS because it uses both argp and getopt), the former
77380         wins.
77381
77382 2005-08-16  Bruno Haible  <bruno@clisp.org>
77383
77384         * modules/tls: New file.
77385         * MODULES.html.sh (Multithreading): Add tls.
77386
77387 2005-08-16  Bruno Haible  <bruno@clisp.org>
77388
77389         * modules/strnlen1: New file.
77390         * MODULES.html.sh (String handling): Add strnlen1.
77391
77392 2005-08-16  Bruno Haible  <bruno@clisp.org>
77393
77394         * modules/strcase (Files): Add m4/mbrtowc.m4.
77395         (Depends-on): Add strnlen1, mbchar.
77396
77397 2005-08-16  Bruno Haible  <bruno@clisp.org>
77398
77399         * modules/mbiter: New file.
77400         * MODULES.html.sh (Extended multibyte and wide character utilities):
77401         Add mbiter.
77402
77403 2005-08-16  Bruno Haible  <bruno@clisp.org>
77404
77405         * modules/mbfile: New file.
77406         * MODULES.html.sh (Extended multibyte and wide character utilities):
77407         Add mbfile.
77408
77409 2005-08-16  Bruno Haible  <bruno@clisp.org>
77410
77411         * modules/mbchar: New file.
77412         * MODULES.html.sh (Extended multibyte and wide character utilities):
77413         New section.
77414
77415 2005-08-16  Bruno Haible  <bruno@clisp.org>
77416
77417         * m4/tls.m4: New file, from GNU gettext.
77418
77419 2005-08-16  Bruno Haible  <bruno@clisp.org>
77420
77421         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
77422         always.
77423         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
77424
77425 2005-08-16  Bruno Haible  <bruno@clisp.org>
77426
77427         * m4/mbiter.m4: New file.
77428
77429 2005-08-16  Bruno Haible  <bruno@clisp.org>
77430
77431         * m4/mbfile.m4: New file.
77432
77433 2005-08-16  Bruno Haible  <bruno@clisp.org>
77434
77435         * m4/mbchar.m4: New file.
77436
77437 2005-08-16  Bruno Haible  <bruno@clisp.org>
77438
77439         * lib/tls.h: New file, from GNU gettext.
77440         * lib/tls.c: New file, from GNU gettext.
77441
77442 2005-08-16  Bruno Haible  <bruno@clisp.org>
77443
77444         * lib/strnlen1.h: New file.
77445         * lib/strnlen1.c: New file.
77446
77447 2005-08-16  Bruno Haible  <bruno@clisp.org>
77448
77449         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
77450         (mbi_init): Update.
77451         (mbi_avail, mbi_advance): Let the iteration end before the terminating
77452         NUL byte, not after it.
77453
77454 2005-08-16  Bruno Haible  <bruno@clisp.org>
77455
77456         * lib/strcase.h (strcasecmp): Add note in comments.
77457         * lib/strncasecmp.c: Use code from strcasecmp.c.
77458         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
77459         (strcasecmp): Work correctly in multibyte locales.
77460
77461 2005-08-16  Bruno Haible  <bruno@clisp.org>
77462
77463         * lib/mbiter.h: New file.
77464
77465 2005-08-16  Bruno Haible  <bruno@clisp.org>
77466
77467         * lib/mbfile.h: New file.
77468
77469 2005-08-16  Bruno Haible  <bruno@clisp.org>
77470
77471         * lib/mbchar.h: New file.
77472         * lib/mbchar.c: New file.
77473
77474 2005-08-16  Bruno Haible  <bruno@clisp.org>
77475
77476         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
77477         the valid ones. Makes the comparison operations transitive:
77478         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
77479         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
77480
77481 2005-08-15  Simon Josefsson  <jas@extundo.com>
77482
77483         * modules/ssize_t (License): Change to 'unlimited'.
77484
77485         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
77486
77487 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77488
77489         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
77490         Add comments for each pending glibc patch.
77491
77492 2005-08-15  Bruno Haible  <bruno@clisp.org>
77493
77494         * lib/regex.h (__restrict_arr): Don't define to __restrict if
77495         __cplusplus is defined.
77496
77497 2005-08-14  Jim Meyering  <jim@meyering.net>
77498
77499         Sync from coreutils.
77500
77501         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
77502         Use the hash-table-based cycle-detection code not just when
77503         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
77504         Reported by James Youngman in
77505         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
77506         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
77507         FTS_TIGHT_CYCLE_CHECK.
77508         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
77509         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
77510         once again.
77511         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
77512         * lib/fts.c (fd_safer): Remove decl.
77513         Include fcntl--.h rather than unistd-safer.h
77514         (fts_safe_changedir): Don't call fd_safer; no longer needed
77515         now that we include fcntl--.h.
77516
77517 2005-08-12  Simon Josefsson  <jas@extundo.com>
77518
77519         * modules/getndelim2: Use ssize_t module.
77520         * modules/getnline: Likewise.
77521         * modules/safe-read: Likewise.
77522         * modules/xreadlink: Likewise.
77523
77524         * modules/ssize_t: New file.
77525
77526 2005-08-12  Simon Josefsson  <jas@extundo.com>
77527
77528         * m4/readline.m4: Look for termcap, curses or ncurses if required.
77529
77530 2005-08-12  Simon Josefsson  <jas@extundo.com>
77531
77532         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77533         ssize_t.
77534
77535 2005-08-12  Simon Josefsson  <jas@extundo.com>
77536
77537         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
77538         readline, getdelim and check_version.
77539         (Support for systems lacking ISO C 99: Sizes of integer types):
77540         Add size_max.
77541
77542 2005-08-12  Bruno Haible  <bruno@clisp.org>
77543
77544         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
77545
77546 2005-08-11  Simon Josefsson  <jas@extundo.com>
77547
77548         * modules/readline: New file.
77549
77550         * modules/strnlen (Files): Add strnlen.h.
77551
77552 2005-08-11  Simon Josefsson  <jas@extundo.com>
77553
77554         * m4/readline.m4: New file.
77555
77556 2005-08-11  Simon Josefsson  <jas@extundo.com>
77557
77558         * lib/readline.h, readline.c: New file.
77559
77560 2005-08-11  Simon Josefsson  <jas@extundo.com>
77561
77562         * doc/gnulib.texi (Initial import, Finishing touches): Mention
77563         gl_AVOID.
77564
77565 2005-08-11  Bruno Haible  <bruno@clisp.org>
77566
77567         * lib/strnlen.h (strnlen): Change parameter name to match comment.
77568
77569 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
77570
77571         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
77572
77573 2005-08-10  Simon Josefsson  <jas@extundo.com>
77574
77575         * tests/test-iconvme.c: New file.
77576
77577 2005-08-10  Simon Josefsson  <jas@extundo.com>
77578
77579         * m4/strnlen.m4: New file.
77580
77581         * m4/strndup.m4: Don't check for strnlen declaration, done in
77582         strnlen.m4.
77583
77584 2005-08-10  Simon Josefsson  <jas@extundo.com>
77585
77586         * lib/strndup.c: Use strnlen.h.
77587
77588         * lib/strnlen.h: New file.
77589
77590 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77591
77592         * README: Typos.
77593
77594 2005-08-02  Simon Josefsson  <jas@extundo.com>
77595
77596         * modules/readline: New file.
77597
77598 2005-08-02  Simon Josefsson  <jas@extundo.com>
77599
77600         * modules/getdelim: New file.
77601
77602         * modules/getline: Rewrite, don't use getndelim2.
77603
77604 2005-08-02  Simon Josefsson  <jas@extundo.com>
77605
77606         * m4/getline.m4: Separate out getdelim stuff into separate module.
77607
77608         * m4/getdelim.m4: New file.
77609
77610 2005-08-02  Simon Josefsson  <jas@extundo.com>
77611
77612         * lib/getline.h, getline.c: Rewrite.
77613
77614         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
77615
77616 2005-07-31  Bruno Haible  <bruno@clisp.org>
77617
77618         * lib/lock.h (gl_lock_initializer): New macro.
77619         (gl_lock_define_initialized): Use it.
77620         (gl_rwlock_initializer): New macro.
77621         (gl_rwlock_define_initialized): Use it.
77622         (gl_recursive_lock_initializer): New macro.
77623         (gl_recursive_lock_define_initialized): Use it.
77624
77625 2005-07-30  Karl Berry  <karl@gnu.org>
77626
77627         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
77628         Report from Ben Pfaff, regarding getopt.
77629
77630 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
77631
77632         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
77633         normal way.
77634         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
77635         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
77636         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
77637         (gl_GETOPT): Use the new macros.  Most of the implementation
77638         is moved to the new macros.  This is for programs like Emacs
77639         that don't want all the functionality of gl_GETOPT.
77640
77641 2005-07-26  Bruno Haible  <bruno@clisp.org>
77642
77643         * m4/lock.m4: Update from GNU gettext.
77644
77645 2005-07-26  Bruno Haible  <bruno@clisp.org>
77646
77647         * lib/lock.h: Update from GNU gettext.
77648         * lib/lock.c: Update from GNU gettext.
77649
77650 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
77651
77652         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
77653         obsolescent AC_TRY_RUN.  Include the default includes files, for
77654         'exit'.
77655
77656 2005-07-24  Bruno Haible  <bruno@clisp.org>
77657
77658         * modules/visibility: New file.
77659         * MODULES.html.sh (Misc): Add visibility.
77660
77661 2005-07-24  Bruno Haible  <bruno@clisp.org>
77662
77663         * m4/visibility.m4: New file.
77664
77665 2005-07-24  Bruno Haible  <bruno@clisp.org>
77666
77667         * doc/visibility.texi: New file.
77668
77669 2005-07-22  Bruno Haible  <bruno@clisp.org>
77670
77671         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
77672         $(ALLOCA_H), redundant through BUILT_SOURCES.
77673         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
77674         redundant through BUILT_SOURCES.
77675         * modules/byteswap (Makefile.am): Remove explicit dependency on
77676         $(BYTESWAP_H), redundant through BUILT_SOURCES.
77677         * modules/fnmatch (Makefile.am): Remove explicit dependency on
77678         $(FNMATCH_H), redundant through BUILT_SOURCES.
77679         * modules/getopt (Makefile.am): Remove explicit dependency on
77680         $(GETOPT_H), redundant through BUILT_SOURCES.
77681         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
77682         redundant through BUILT_SOURCES.
77683         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
77684         redundant through BUILT_SOURCES.
77685         * modules/stdbool (Makefile.am): Remove explicit dependency on
77686         $(STDBOOL_H), redundant through BUILT_SOURCES.
77687         * modules/stdint (Makefile.am): Remove explicit dependency on
77688         $(STDINT_H), redundant through BUILT_SOURCES.
77689         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
77690         Remove explicit dependency on $(SYSEXITS_H).
77691         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
77692
77693 2005-07-18  Simon Josefsson  <jas@extundo.com>
77694
77695         * lib/check-version.c (check_version): Accept identical versions too.
77696
77697 2005-07-18  Bruno Haible  <bruno@clisp.org>
77698
77699         * modules/lock: New file.
77700         * MODULES.html.sh (Multithreading): New section.
77701
77702 2005-07-18  Bruno Haible  <bruno@clisp.org>
77703
77704         * m4/lock.m4: New file, from GNU gettext.
77705
77706 2005-07-18  Bruno Haible  <bruno@clisp.org>
77707
77708         * lib/lock.h: New file, from GNU gettext.
77709         * lib/lock.c: New file, from GNU gettext.
77710
77711 2005-07-18  Bruno Haible  <bruno@clisp.org>
77712
77713         * lib/lock.h (gl_once_t): New type.
77714         (gl_once_define, gl_once): New macros.
77715         * lib/lock.c (fresh_once): New variable.
77716         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
77717         functions.
77718
77719 2005-07-16  Simon Josefsson  <jas@extundo.com>
77720
77721         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
77722         workaround, suggested by Bruno.
77723
77724 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
77725
77726         * modules/xalloc (Depends-on): Add xalloc-die.
77727         * modules/xvasprintf (Depends-on): Add xalloc-die.
77728
77729 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
77730
77731         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
77732         with a minor change.
77733
77734 2005-07-15  Bruno Haible  <bruno@clisp.org>
77735
77736         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
77737         When using lib/poll.c, define poll as rpl_poll.
77738
77739 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
77740
77741         * modules/argp (Depends-on): Remove unlocked-io.
77742
77743 2005-07-14  Derek Price  <derek@ximbiot.com>
77744
77745         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
77746         for glob symlink bug.
77747
77748 2005-07-14  Bruno Haible  <bruno@clisp.org>
77749
77750         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
77751         Instead, test for *_unlocked function declarations directly.
77752
77753 2005-07-11  Simon Josefsson  <jas@extundo.com>
77754
77755         * modules/size_max: New file.
77756
77757         * modules/xsize: Depend on size_max module for size_max.m4.
77758
77759 2005-07-11  Simon Josefsson  <jas@extundo.com>
77760
77761         * lib/size_max.h: New file.
77762
77763 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
77764
77765         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
77766         copyright symbol and the year.
77767         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
77768         (version_etc_va): Use parameterized copyright notice.
77769         Reword to conform to the current GNU coding standards.
77770
77771 2005-07-11  Karl Berry  <karl@gnu.org>
77772
77773         * doc/gnulib.texi (Quoting): new node.
77774         (Initial import): more info, from Patrice.
77775
77776 2005-07-11  Bruno Haible  <bruno@clisp.org>
77777
77778         * gnulib-tool (func_usage): Document option --avoid.
77779         (Command line options): Handle --avoid.
77780         (func_acceptable): New function.
77781         (func_modules_transitive_closure): Use it.
77782
77783 2005-07-11  Bruno Haible  <bruno@clisp.org>
77784
77785         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
77786         Reported by Jim Meyering.
77787
77788 2005-07-10  Bruno Haible  <bruno@clisp.org>
77789
77790         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
77791         Needed when size_t is smaller than 'unsigned int'.
77792         Reported by Paul Eggert.
77793
77794 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77795
77796         * modules/argp (Depends-on): Add unlocked-io
77797
77798 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77799
77800         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
77801         block of defines.
77802
77803 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
77804
77805         * config/srclist.txt: Comment out regcomp.c, since we have a porting
77806         fix now.
77807
77808 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
77809         and Paul Eggert  <eggert@cs.ucla.edu>
77810
77811         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
77812         in wint_t, not wchar_t.  Remove now-unnecessary cast.
77813
77814 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77815
77816         * modules/regex (Files): Add lib/regex_internal.c,
77817         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
77818         (Depends-on): Add extensions.
77819         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
77820
77821 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77822
77823         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
77824         pathconf.
77825         * m4/same.m4 (gl_SAME): Likewise.
77826         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
77827
77828         * m4/regex.m4: Adjust to new libc regex implementation.
77829         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
77830         all the .c and .h parts of (the new) regex.
77831         Quote the m4 stuff better.
77832         Check for RE_ICASE bug of old gnulib.
77833         Check for REG_STARTEND of recent libc.
77834         Rename local variables from jm_* to gl_*.
77835         Quote operand of "test -f".
77836         Say "recent enough" version of libc, not "version 2".
77837         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
77838         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
77839         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
77840         Remove check for btowc, isascii.
77841         Require AM_LANGINFO_CODESET.
77842
77843 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77844
77845         * lib/regex.c, regex.h: Sync from libc.
77846         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
77847         * lib/regexec.c:
77848         New files, synced from libc, except that regex_internal.h
77849         currently has a small porting fix.
77850
77851 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
77852
77853         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
77854         regex_internal.c, regexec.c.
77855         Add regex_internal.h too, but as a comment, since the libc version
77856         is currently broken in gnulib mode.
77857
77858 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
77859
77860         Support programs like Emacs that use gnulib but not gettext.
77861         * MODULES.html.sh (Internationalization functions): Add gettext-h.
77862         * modules/gettext-h: New file.
77863         * modules/gettext (Files): Remove lib/gettext.h.
77864         (Depends-on): Add gettext-h.
77865         (Makefile.am): Remove lib_SOURCES.
77866         * modules/argmatch, modules/c-stack, modules/closeout:
77867         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
77868         * modules/execute, modules/file-type, modules/getaddrinfo:
77869         * modules/getopt, modules/human, modules/javacomp:
77870         * modules/javaexec, modules/mkdir-p, modules/obstack:
77871         * modules/openat, modules/pagealign_alloc, modules/pipe:
77872         * modules/quotearg, modules/regex, modules/rpmatch:
77873         * modules/unicodeio, modules/userspec, modules/version-etc:
77874         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
77875         * modules/xsetenv:
77876         Depend on gettext-h, not gettext.
77877
77878 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
77879
77880         * gnulib-tool (func_import): Add support for 'public domain' license.
77881         * modules/alloca, modules/atexit, modules/memmove:
77882         Now public domain, not GPL.
77883         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
77884         * modules/realloc, modules/strerror, modules/strtod:
77885         Now LGPL, not GPL.
77886
77887 2005-07-05  Bruno Haible  <bruno@clisp.org>
77888
77889         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
77890         autoconf CVS. Needed for mingw.
77891
77892 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77893
77894         Remove the dependency of the strftime module on the tzset module.
77895         * modules/strftime (Depends-on): Remove dependency on tzset.
77896
77897 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77898
77899         Remove the dependency of the strftime module on the tzset module.
77900         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
77901         gl_FUNC_TZSET_CLOBBER.
77902
77903 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
77904
77905         Remove the dependency of the strftime module on the tzset module.
77906         * lib/strftime.c (my_strftime)
77907         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
77908         Copy the input structure, to work around some of the bug with
77909         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
77910         Solaris releases, you should also use the tzset module, but we won't
77911         require it as a dependency any more since we don't want LGPLed code
77912         to depend on GPLed code.
77913
77914 2005-07-02  Jim Meyering  <jim@meyering.net>
77915
77916         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
77917         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
77918         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
77919         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
77920
77921 2005-07-02  Jim Meyering  <jim@meyering.net>
77922
77923         * lib/backupfile.c (backup_args): Change a `0' to NULL.
77924
77925 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
77926
77927         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
77928         declares only 'struct timespec;' (!).
77929
77930 2005-07-01  Jim Meyering  <jim@meyering.net>
77931
77932         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
77933         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
77934         * lib/save-cwd.c, tempname.c:
77935         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
77936         and don't include <sys/file.h>).
77937
77938 2005-06-29  Jim Meyering  <jim@meyering.net>
77939
77940         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
77941         type name.  Use the variable name instead.
77942         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
77943         Likewise.
77944
77945 2005-06-28  Simon Josefsson  <jas@extundo.com>
77946
77947         * modules/check-version (Files): Add check-version.m4.
77948
77949 2005-06-28  Simon Josefsson  <jas@extundo.com>
77950
77951         * m4/check-version.m4: New file, suggested by Jim Meyering
77952         <jim@meyering.net>.
77953
77954 2005-06-28  Simon Josefsson  <jas@extundo.com>
77955
77956         * lib/check-version.h, lib/check-version.c: New files.
77957
77958 2005-06-28  Simon Josefsson  <jas@extundo.com>
77959
77960         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
77961         collision with global variable.  Better indentation.  Don't
77962         increment buffer pointer beyond buffer end.  Based on comments
77963         from Paul Eggert <eggert@cs.ucla.edu>.
77964
77965         * lib/base64.h: Indent.
77966
77967 2005-06-28  Simon Josefsson  <jas@extundo.com>
77968
77969         * doc/gnulib.texi (Library version handling): New section.
77970
77971 2005-06-28  Jim Meyering  <jim@meyering.net>
77972
77973         * check-module (find_included_lib_files): Hard-code another
77974         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
77975         but modules/fts-lgpl (correctly) does not list those files.
77976
77977         * modules/canonicalize (Files): Add lib/pathmax.h.
77978
77979 2005-06-25  Simon Josefsson  <jas@extundo.com>
77980
77981         * modules/check-version: New file.
77982
77983 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
77984
77985         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
77986         initializer of struct addrinfo, as an indication that we don't
77987         care how many members the structure has.
77988
77989 2005-06-24  Derek Price  <derek@ximbiot.com>
77990         and Bruno Haible  <bruno@clisp.org>
77991
77992         Remove stat module & update lstat.
77993         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
77994         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
77995         * m4/stat.m4: Remove this file.
77996
77997 2005-06-24  Derek Price  <derek@ximbiot.com>
77998         and Bruno Haible  <bruno@clisp.org>
77999
78000         Remove stat module & update lstat.
78001         * lib/stat.c: Remove this file...
78002         (slash_aware_lstat): ...moving this content and its support...
78003         * lib/lstat.c (rpl_lstat): ...into here.
78004         * lib/lstat.h: New file.
78005
78006 2005-06-24  Derek Price  <derek@ximbiot.com>
78007         and Bruno Haible  <bruno@clisp.org>
78008
78009         Remove stat module & update lstat.
78010         * config/srclist.txt (libc sources): Remove stat.
78011
78012 2005-06-24  Derek Price  <derek@ximbiot.com>
78013         and Bruno Haible  <bruno@clisp.org>
78014
78015         Remove stat module & update lstat.
78016         * MODULES.html.sh (stat): Remove.
78017         * MODULES.html: Regenerated.
78018         * modules/lstat (Description): Correct function name.
78019         (Files): Add "lstat.h".
78020         (Depends-on): Remove stat, add xalloc, stat-macros.
78021         * modules/stat: Remove this file.
78022         (Include): Add "lstat.h", remove <sys/stat.h>.
78023
78024 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
78025
78026         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
78027         (ranged_convert): Don't save conversion in a temporary struct.
78028         This causes a warning with GCC 4.0.0, and anyway in the typical
78029         case it's not worth the extra 100 bytes or so of code.
78030         (ranged_convert, __mktime_internal): When calling a function via a
78031         pointer P, use P () rather than (*P) (), as we now assume C89 or
78032         better.
78033
78034 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78035
78036         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
78037         "who -r" failed to give output.  Problem reported by Tim Waugh.
78038
78039         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
78040         (xcalloc): Use it to avoid needless tests.
78041         Problem reported by Jim Meyering.
78042
78043 2005-06-20  Derek Price  <derek@ximbiot.com>
78044
78045         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
78046         unnecessary for Autoconfs > 2.59c.
78047
78048 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78049
78050         * lib/argp.h (__option_is_short): Check upper limit of
78051         __key. Isprint() requires its argument to have the value
78052         of an unsigned char or EOF.
78053
78054 2005-06-16  Jim Meyering  <jim@meyering.net>
78055
78056         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
78057         when either N or S is zero.
78058
78059 2005-06-16  Derek Price  <derek@ximbiot.com>
78060
78061         * m4/bison.m4: Declare YACC & YFLAGS precious.
78062
78063 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
78064
78065         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
78066         multibyte string or pattern, fall back on unibyte matching.
78067         Problem reported by James Youngman.
78068
78069 2005-06-08  Bruno Haible  <bruno@clisp.org>
78070
78071         * modules/csharpcomp: New file.
78072         * MODULES.html.sh (C#): Add csharpcomp.
78073
78074 2005-06-08  Bruno Haible  <bruno@clisp.org>
78075
78076         * m4/csharpcomp.m4: New file, from GNU gettext.
78077
78078 2005-06-08  Bruno Haible  <bruno@clisp.org>
78079
78080         * lib/csharpcomp.h: New file, from GNU gettext.
78081         * lib/csharpcomp.c: New file, from GNU gettext.
78082         * lib/csharpcomp.sh.in: New file, from GNU gettext.
78083
78084 2005-06-08  Bruno Haible  <bruno@clisp.org>
78085
78086         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
78087         warning on mingw.
78088
78089 2005-06-07  Derek Price  <derek@ximbiot.com>
78090
78091         Sync from CVS.
78092         * lib/glob_.h: Indent nested #ifdef.
78093
78094 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78095
78096         Sync from coreutils.
78097         Use "file name" when talking about file names, instead of "filename"
78098         or "path", as per the GNU coding standards.
78099         * lib/mkdir-p.c: Renamed from makepath.c.
78100         (make_dir_parents): Renamed from make_path.  All callers changed.
78101         * lib/mkdir-p.h: Likewise.  All includers changed.
78102         * lib/filenamecat.c: Renamed from path-concat.c.
78103         (file_name_concat): Renamed from path_concat.  All callers changed.
78104         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
78105         * lib/filenamecat.h: Likewise.  All includers changed.
78106         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
78107         in comments or local variable names.
78108         * lib/basename.c: Likewise.
78109         * lib/canonicalize.c, canonicalize.h: Likewise.
78110         * lib/dirname.c, dirname.h: Likewise.
78111         * lib/euidaccess.c: Likewise.
78112         * lib/exclude.c: Likewise
78113         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
78114         * lib/fsusage.c, fsuage.h: Likewise.
78115         * lib/fts.c, fts_.h: Likewise.
78116         * lib/getcwd.c: Likewise.
78117         * lib/getloadavg.c: Likewise.
78118         * lib/mkstemp.c: Likewise.
78119         * lib/mountlist.c, mountlist.h: Likewise.
78120         * lib/openat.c, openat.h: Likewise.
78121         * lib/readlink-stub.c: Likewise.
78122         * lib/readutmp.c, readutmp.h: Likewise.
78123         * lib/rename.c: Likewise.
78124         * lib/rmdir.c: Likewise.
78125         * lib/same.c: Likewise.
78126         * lib/savedir.c: Likewise.
78127         * lib/stripslash.c: Likewise.
78128         * lib/tempname.c: Likewise.
78129         * lib/xreadlink.c: Likewise.
78130         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
78131         All uses changed.
78132         * lib/exclude.h: Likewise.
78133
78134         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
78135         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78136         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
78137         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78138         * lib/pathmax.h: Include <limits.h> unconditionally, since other
78139         files have been getting away with it for years (MORE/BSD 4.3
78140         is extinct now).
78141         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
78142         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78143
78144         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
78145         Define to 256, not 255, as per modern POSIX.
78146
78147 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78148
78149         Sync from coreutils.
78150         Use "file name" when talking about file names, instead of "filename"
78151         or "path", as per the GNU coding standards.
78152         * MODULES.html.sh: mkdir-p renamed from makepath.
78153         filenamecat renamed from path-concat.
78154         * modules/filenamecat: Renamed from modules/path-concat.
78155         (Files): filenamecat.h and filenamecat.c renamed from
78156         path-concat.h and path-concat.c.
78157         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
78158         (Include): filenamecat.h, not path-concat.h.
78159         * modules/mkdir-p: Renamed from modules/makepath.
78160         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
78161         makepath.c.
78162         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
78163         (Include): mkdir-p.h, not makepath.h.
78164
78165 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78166
78167         Sync from coreutils.
78168         * m4/mkdir-p.m4: Renamed from makepath.m4.
78169         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
78170         Rename files from makepath.c to mkdir-p.c, and from
78171         makepath.h to mkdir-p.h.
78172         * m4/filenamecat.m4: Renamed from path-concat.m4.
78173         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
78174         Rename files from path-concat.c to filenamecat.c,
78175         and from path-concat.h to filenamecat.h.
78176         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
78177         "file name" in local variables or comments.
78178         * m4/rename.m4: Likewise.
78179
78180 2005-06-01  Bruno Haible  <bruno@clisp.org>
78181
78182         * modules/csharpexec: New file.
78183         * MODULES.html.sh (C#): New section.
78184
78185 2005-06-01  Bruno Haible  <bruno@clisp.org>
78186
78187         * m4/csharp.m4: New file, from GNU gettext.
78188         * m4/csharpexec.m4: New file, from GNU gettext.
78189
78190 2005-06-01  Bruno Haible  <bruno@clisp.org>
78191
78192         * lib/csharpexec.h: New file, from GNU gettext.
78193         * lib/csharpexec.c: New file, from GNU gettext.
78194         * lib/csharpexec.sh.in: New file, from GNU gettext.
78195
78196 2005-05-31  Derek Price  <derek@ximbiot.com>
78197             Paul Eggert  <eggert@cs.ucla.edu>
78198
78199         Sync from cvs.
78200         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
78201
78202 2005-05-31  Derek Price  <derek@ximbiot.com>
78203             Paul Eggert  <eggert@cs.ucla.edu>
78204
78205         Sync from cvs.
78206         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
78207
78208 2005-05-29  Derek Price  <derek@ximbiot.com>
78209
78210         * config/srclist.txt (glob_.h, glob.c): Add these files.
78211
78212 2005-05-29  Derek Price  <derek@ximbiot.com>
78213
78214         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
78215         * modules/glob: New file.
78216         * modules/getlogin_r: Add link to POSIX spec in description.
78217
78218 2005-05-29  Derek Price  <derek@ximbiot.com>
78219             Paul Eggert  <eggert@cs.ucla.edu>
78220
78221         * m4/glob.m4: New file.
78222
78223 2005-05-29  Derek Price  <derek@ximbiot.com>
78224             Paul Eggert  <eggert@cs.ucla.edu>
78225
78226         * lib/glob_.h, lib/glob.c: New files.
78227
78228 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78229
78230         * modules/fts (Files): Remove m4/inttypes-pri.m4.
78231         * modules/fts-lgpl (Depends-on): Remove gettext.
78232
78233 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78234
78235         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
78236         and don't require gt_INTTYPES_PRI.
78237
78238 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
78239
78240         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
78241
78242         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
78243         the configuration hassle isn't worth it.
78244         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
78245         (LONGEST_MODIFIER, PRIuMAX): Remove.
78246
78247 2005-05-27  Bruno Haible  <bruno@clisp.org>
78248
78249         * lib/getlogin_r.h: Remove second include of <stddef.h>.
78250
78251 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
78252
78253         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
78254         _POSIX_PTHREAD_SEMANTICS for Solaris.
78255
78256 2005-05-25  Derek Price  <derek@ximbiot.com>
78257
78258         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
78259
78260 2005-05-25  Derek Price  <derek@ximbiot.com>
78261             Paul Eggert  <eggert@cs.ucla.edu>
78262
78263         * modules/getlogin_r, m4/getlogin_r.m4: New files.
78264         * lib/getlogin_r.c, getlogin_r.h: New files.
78265
78266 2005-05-25  Bruno Haible  <bruno@clisp.org>
78267             Derek Price  <derek@ximbiot.com>
78268
78269         * lib/getlogin_r.h: Simplify API documentation.
78270
78271 2005-05-23  Derek Price  <derek@ximbiot.com>
78272
78273         * modules/minmax (Files): Add m4/minmax.m4.
78274         (configure.ac): Add gl_MINMAX.
78275
78276 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
78277
78278         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
78279         so that unistd-safer.h (GPL'ed code) need not be included.
78280
78281 2005-05-22  Bruno Haible  <bruno@clisp.org>
78282
78283         * m4/minmax.m4: New file.
78284         Based on a patch by Derek Price <derek@ximbiot.com>.
78285
78286 2005-05-22  Bruno Haible  <bruno@clisp.org>
78287
78288         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
78289         (INT64_MIN): Fix definition.
78290         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
78291
78292         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
78293         NEED_SIGNED_INT_TYPES.
78294
78295         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
78296         HAVE_SYSTEM_INTTYPES.
78297
78298 2005-05-22  Bruno Haible  <bruno@clisp.org>
78299
78300         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
78301         Also include <sys/param.h> if it defines MIN, MAX.
78302         Based on a patch by Derek Price <derek@ximbiot.com>.
78303
78304 2005-05-21  Jim Meyering  <jim@meyering.net>
78305
78306         * modules/fts (Files): Add m4/inttypes-pri.m4.
78307         (Depends-on): Add lstat and remove gettext.  Alphabetize.
78308
78309 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78310
78311         New fts module.
78312         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
78313         (setup_dir, free_dir): New functions.
78314         (enter_dir, leave_dir): Define trivial
78315         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
78316         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
78317         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
78318         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
78319         Move to fts-cycle.c.
78320         (fts_open): Use setup_dir.
78321         (fts_close): Use free_dir.
78322         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
78323         This adds a label and some gotos, but the alternatives were messier.
78324         Check for memory allocation failure when entering a dir.
78325         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
78326         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
78327         (FTS): New member fts_cycle, that is a union that contains the
78328         old active_dir_ht and cycle_state.  All uses changed to mention
78329         fts_cycle.ht and fts_cycle.state.
78330         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
78331         fts.c, with the following changes:
78332         (setup_dir, free_dir): New functions.
78333         (enter_dir): Now returns bool.  Return true if successful, false
78334         if memory exhausted.  All callers changed.
78335         Do not bother partly cleaning up on
78336         memory allocation failure; that is free_dir's job.
78337         However, free ad if hash_insert fails, to avoid memory leak.
78338         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
78339         fts->fts_options to see which union member to use.
78340
78341 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78342
78343         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
78344         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
78345
78346 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
78347
78348         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
78349
78350 2005-05-20  Jim Meyering  <jim@meyering.net>
78351
78352         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
78353         Now a macro, to pacify GCC.
78354
78355 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
78356
78357         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
78358         of -1.
78359
78360 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
78361
78362         * lib/chown.c (rpl_chown): Return -1 on failure.
78363
78364 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
78365
78366         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
78367         Don't check for stddef.h.
78368         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
78369         don't use its results.
78370         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
78371         since we include them unconditionally.  Don't require
78372         AM_STDBOOL_H, since stdbool is a prerequisite.
78373         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
78374         since we assume C89 or better.
78375         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
78376         as we don't use their results.
78377         Don't check for fchdir, memmove, memset, strrchr, as we use
78378         them unconditionally.
78379         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
78380         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
78381
78382 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
78383
78384         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
78385         Include <stddef.h> unconditionally, since we assume C89 now.
78386         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
78387         * lib/fts.c: Include fts_.h first, to check interface.
78388         Do not include intprops.h; no longer needed.
78389         Include cycle-check.h and hash.h, since fts_.h no longer does.
78390         Remove unnecessary casts of closedir to void.
78391         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
78392         decide whether to decrement nlinks.
78393         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
78394         (FTS): Use struct hash_table * instead of Hash_table, so that
78395         we no longer need to include hash.h here.
78396
78397 2005-05-18  Jim Meyering  <jim@meyering.net>
78398
78399         * modules/dirfd (License): Change to LGPL.  Most of the code
78400         is already in the public domain.
78401
78402 2005-05-18  Jim Meyering  <jim@meyering.net>
78403
78404         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
78405         Reported by Yoann Vandoorselaere.
78406
78407 2005-05-17  Jim Meyering  <jim@meyering.net>
78408
78409         * m4/fts.m4: New file, from coreutils.
78410
78411 2005-05-17  Jim Meyering  <jim@meyering.net>
78412
78413         * lib/fts.c, lib/fts_.h: New files, from coreutils.
78414
78415 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78416
78417         Sync from coreutils.
78418         * m4/unlinkdir.m4: New file.
78419
78420 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78421
78422         Sync from coreutils.
78423         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
78424         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
78425         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
78426         White space changes only.
78427         * lib/makepath.c (make_path): Port to hosts where leading "//" is
78428         special.
78429         * lib/yesno.c: Include getline.h, not ctype.h.
78430         (yesno): Don't remove leading white space; POSIX doesn't allow it.
78431         Use getline to remove arbitrary restriction on response length.
78432
78433 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
78434
78435         * config/srclist-update: Spell out "Street" in FSF postal
78436         mail address; this is the style the FSF seems to prefer.
78437
78438         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
78439         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
78440         this updates FSF postal mail address.
78441
78442         Sync from coreutils.
78443         * modules/unlinkdir: New file.
78444         * modules/yesno (Depends-on): Add getline.
78445         * MODULES.html.sh (File system functions): Add unlinkdir.
78446
78447 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78448
78449         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
78450         lib/strsep.h:
78451         Change the initial comment to refer to GPL, not LGPL.
78452         gnulib-tool will change it to LGPL as needed.
78453
78454         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
78455         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
78456         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
78457         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
78458         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
78459         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
78460         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
78461         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
78462         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
78463         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
78464         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
78465         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
78466         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
78467         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
78468         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
78469         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
78470         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
78471         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
78472         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
78473         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
78474         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
78475         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
78476         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
78477         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
78478         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
78479         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
78480         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
78481         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
78482         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
78483         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
78484         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
78485         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
78486         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
78487         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
78488         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
78489         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
78490         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
78491         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
78492         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
78493         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
78494         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
78495         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
78496         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
78497         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
78498         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
78499         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
78500         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
78501         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
78502         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
78503         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
78504         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
78505         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
78506         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
78507         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
78508         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
78509         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
78510         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
78511         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
78512         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
78513         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
78514         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
78515         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
78516         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
78517         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
78518         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
78519         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
78520         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
78521         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
78522         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
78523         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
78524         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
78525         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
78526         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
78527         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
78528         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
78529         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
78530         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
78531         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
78532         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
78533         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
78534         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
78535         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
78536         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
78537         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
78538         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
78539         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
78540         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
78541         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
78542         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
78543         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
78544         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
78545         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
78546         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
78547         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
78548         lib/yesno.c, lib/yesno.h:
78549         Update FSF postal mail address.
78550
78551 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
78552
78553         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
78554         tests/test-memmem.c, tests/test-stpncpy.c:
78555         Update FSF postal mail address.
78556
78557 2005-05-13  Bruno Haible  <bruno@clisp.org>
78558
78559         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
78560         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
78561         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
78562         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
78563         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
78564         Add support for 64-bit integers in the MSVC compiler.
78565
78566 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78567
78568         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
78569
78570 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
78571
78572         * gnulib-tool (func_import): Sort and uniquify recommended includes.
78573
78574 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
78575
78576         * doc/getdate.texi (General date syntax): Don't say that date
78577         date --iso-8601=ns generates acceptable dates; it doesn't yet.
78578         Problem reported by Nic Ferrier.
78579
78580 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78581
78582         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
78583         specified in ai_socktype. Fix invalid ai_protocol
78584         check. ai_protocol is usually set to 0 or depending on
78585         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
78586         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
78587         ai_socktype / ai_protocol in the returned addrinfo structure.
78588
78589 2005-05-10  Simon Josefsson  <jas@extundo.com>
78590
78591         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
78592         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78593
78594 2005-05-10  Karl Berry  <karl@gnu.org>
78595
78596         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
78597         (from http://www.gnu.org/licenses).
78598         * doc/COPYING.LIB: also rename to COPYING.LESSER.
78599         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
78600         fdl.texi suffices.
78601
78602 2005-05-10  Karl Berry  <karl@gnu.org>
78603
78604         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
78605         (COPYING.DOC): remove.
78606
78607         * config/srclist-update: new FSF address.
78608
78609 2005-05-10  Derek Price  <derek@ximbiot.com>
78610
78611         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
78612         possible.
78613
78614 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78615             Bruno Haible  <bruno@clisp.org>
78616
78617         * modules/inet_ntop: New file.
78618         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78619         inet_ntop.
78620
78621 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78622             Bruno Haible  <bruno@clisp.org>
78623
78624         * m4/inet_ntop.m4: New file.
78625
78626 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78627             Bruno Haible  <bruno@clisp.org>
78628
78629         * lib/inet_ntop.h: New file.
78630         * lib/inet_ntop.c: New file, from glibc with modifications.
78631
78632 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
78633
78634         * modules/time_r (License): Change to LGPL.
78635         * modules/extensions (License): Change to LGPL.  Actually,
78636         the license is more permissive than that, but currently gnulib-tool
78637         doesn't know how to handle more-permissive licenses.
78638
78639         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
78640         Problem reported by Dave Love.
78641
78642 2005-05-08  Jim Meyering  <jim@meyering.net>
78643
78644         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
78645         blank.
78646
78647 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
78648
78649         * modules/argmatch (Depends-on): Add stdbool.
78650         * modules/backupfile (Depends-on): Likewise.
78651         * modules/chdir-long (Depends-on): Likewise.
78652         * modules/closeout (Depends-on): Likewise.
78653         * modules/cycle-check (Depends-on): Likewise.
78654         * modules/dirname (Depends-on): Likewise.
78655         * modules/fnmatch (Depends-on): Likewise.
78656         * modules/fsusage (Depends-on): Likewise.
78657         * modules/fwriteerror (Depends-on): Likewise.
78658         * modules/getcwd (Depends-on): Likewise.
78659         * modules/getloadavg (Depends-on): Likewise.
78660         * modules/hard-locale (Depends-on): Likewise.
78661         * modules/makepath (Depends-on): Likewise.
78662         * modules/mountlist (Depends-on): Likewise.
78663         * modules/nanosleep (Depends-on): Likewise.
78664         * modules/posixtm (Depends-on): Likewise.
78665         * modules/quotearg (Depends-on): Likewise.
78666         * modules/readtokens (Depends-on): Likewise.
78667         * modules/readtokens0 (Depends-on): Likewise.
78668         * modules/readutmp (Depends-on): Likewise.
78669         * modules/save-cwd (Depends-on): Likewise.
78670         * modules/strftime (Depends-on): Likewise.
78671         * modules/userspec (Depends-on): Likewise.
78672         * modules/utimecmp (Depends-on): Likewise.
78673         * modules/xgetcwd (Depends-on): Likewise.
78674         * modules/xnanosleep (Depends-on): Likewise.
78675         * modules/xstrtod (Depends-on): Likewise.
78676         * modules/yesno (Depends-on): Likewise.
78677
78678 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
78679
78680         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
78681         needless checks.
78682
78683 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78684
78685         Merge from coreutils.  Among other things,
78686         add bulletproofing for cases where stdin, stdout, or stderr are closed.
78687         * lib/fd-safer.c: New file.
78688         * lib/fcntl-safer.h, open-safer.c: Remove.
78689         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
78690         * lib/dup-safer.c: Include unistd-safer.h first.
78691         Don't include errno.h.
78692         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
78693         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
78694         * lib/file-type.c: Rely on file-type.h change.
78695         * lib/getloadavg.c: Include unistd-safer.h.
78696         (getloadavg): Use safer open.
78697         * lib/getusershell.c: Include "stdio-safer.h".
78698         (getusershell): Use safer fopen.
78699         * lib/long-options.c (long_options): Use NULL rather than 0.
78700         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
78701         'free'.
78702         * lib/modechange.c: Likewise.
78703         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
78704         (MODE_DONE): New constant.
78705         (struct mode_change): Remove 'next' member.
78706         (make_node_op_equals): New function; like the old one of the
78707         same name, except it allocates an array.
78708         (mode_compile, mode_create_from_ref): Use it.
78709         (mode_compile): Allocate result as an array, not a linked list.
78710         Parse octal string ourself, so that we catch mistakes like "+0".
78711         (mode_adjust): Arg is an array, not a linked list.
78712         * lib/modechange.c: Include stat-macros.h, xalloc.h.
78713         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
78714         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
78715         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
78716         Remove.  This is now stat-macros.h's job.
78717         (talloc): Remove.  All callers replaced by xalloc, so that
78718         our invokers don't have to worry about reporting memory failures.
78719         (make_node_op_equals): Remove.
78720         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
78721         New constants.
78722         (struct mode_change): Moved here from modechange.h.
78723         (mode_append_entry): Remove.
78724         (mode_compile): Remove MASKED_OPS arg, since it encouraged
78725         apps to have incorrect behavior.  Use simpler algorithm for head
78726         and tail.  Don't futz with umask; that's now the job of mode_adjust.
78727         Detect more invalid usages rather than having somewhat-random behavior.
78728         Don't insert an "a=" action, as that leads to incorrect behavior.
78729         (mode_compile, mode_create_from_ref): Return NULL on error instead
78730         of an enum, since now there's only one way to have an error.  All
78731         callers changed.
78732         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
78733         at the correct time.  Simplify calculation of "+u" and its ilk.
78734         Don't mishandle "+X".
78735         (mode_free): Remove "register" and localize decls.
78736         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
78737         (struct mode_change): Move to modechange.c; callers don't
78738         need to see this stuff.
78739         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
78740         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
78741         (mode_change, mode_adjust): Reflect the new signatures noted above.
78742         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
78743         that might redefine system include files.
78744         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
78745         (my_usleep): Use NULL rather than (void *) 0.
78746         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
78747         Use siginterrupt to specify that system calls should be interrupted.
78748         (rpl_nanosleep): Move initialization of suspended closer to call of
78749         my_usleep.
78750         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
78751         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
78752         (desirable_utmp_entry): New function.
78753         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
78754         using x2nrealloc, to simplify logic.
78755         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
78756         size calculation.  Do not assume utmp file is a regular file.
78757         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
78758         (READ_UTMP_CHECK_PIDS): New constant.
78759         * lib/save-cwd.c: Include unistd-safer.h.
78760         (save_cwd): Use fd_safer.
78761         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
78762         [!_LIBC] Include "stat-macros.h" instead.
78763         * lib/unistd-safer.h (fd_safer): New decl.
78764
78765 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78766
78767         * modules/getloadavg (Depends-on): Add unistd-safer.
78768         * modules/getusershell (Depends-on): Add stdio-safer.
78769         * modules/lstat (Depends-on): Remove xalloc.
78770         * modules/mkstemp (Depends-on): Add stat-macros.
78771         * modules/modechange (Depends-on): Remove xstrtol.
78772         Add stat-macros, xalloc.
78773         * modules/save-cwd (Depends-on): Add unistd-safer.
78774         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
78775         * modules/unistd-safer (Files): Add lib/fd-safer.c
78776         (Makefile.am): Remove lib_SOURCES.
78777
78778         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
78779         Remove fcntl-safer; unistd-safer supersedes it.
78780
78781 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78782
78783         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
78784         AC_HEADER_STAT.
78785         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
78786         (gl_PREREQ_CHOWN): Remove.
78787         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
78788         it.  Don't require AC_HEADER_STAT.
78789         (gl_PREREQ_LSTAT): Remove.
78790         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
78791         Don't require AC_HEADER_STAT.
78792         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
78793         (gl_PREREQ_RMDIR): Remove.
78794         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
78795         mention stat-macros.h or AC_HEADER_STAT, since we'll make
78796         the stat-macros module a prerequisite.
78797         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
78798         * m4/filemode.m4 (gl_FILEMODE): Likewise.
78799         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
78800         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
78801         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
78802         variable names.
78803         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
78804         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
78805         variable prefixes.
78806         * m4/fcntl-safer.m4: Remove.
78807         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
78808         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
78809         Invoke gl_PREREQ_FD_SAFER.
78810         (gl_PREREQ_FD_SAFER): New macro.
78811         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
78812         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
78813         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
78814         Remove duplicate call to AC_LIBOBJ(readutmp).
78815         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
78816
78817         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
78818         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
78819
78820 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
78821
78822         * MODULES.html.sh (Misc): Add byteswap.
78823
78824 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78825
78826         * modules/getcwd (Depends-on): Add extensions.
78827         * modules/openat (Depends-on): Likewise.
78828
78829 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78830
78831         * modules/byteswap: New file.
78832
78833 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78834
78835         * m4/byteswap.m4: New file.
78836
78837 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
78838
78839         * lib/byteswap_.h: New file.
78840
78841 2005-04-25  Karl Berry  <karl@gnu.org>
78842
78843         * m4/gettext.m4: Update from GNU gettext 0.14.4.
78844
78845 2005-04-25  Albert Chin  <china@thewrittenword.com>
78846
78847         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
78848         Toolkit C bug.
78849
78850 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
78851
78852         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
78853         (func_ln_if_changed): Remove forcibly for no error message
78854         in case file does not exist.
78855
78856 2005-04-19  Simon Josefsson  <jas@extundo.com>
78857
78858         * gnulib-tool (Options): Make --symlink mean --symbolic.
78859
78860 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
78861
78862         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
78863
78864 2005-04-16  Simon Josefsson  <jas@extundo.com>
78865
78866         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
78867
78868 2005-04-15  Simon Josefsson  <jas@extundo.com>
78869
78870         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
78871
78872 2005-04-15  Simon Josefsson  <jas@extundo.com>
78873
78874         * gnulib-tool: Rename --symlink to --symbolic.
78875
78876 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
78877
78878         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
78879         symbolic links to files instead of copying/moving.  Add --aux-dir,
78880         specifying directory relative --dir where auxiliary build tools
78881         are placed.
78882
78883 2005-04-14  Bruno Haible  <bruno@clisp.org>
78884
78885         * modules/allocsa (License): Change to LGPL.
78886         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
78887
78888 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
78889
78890         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
78891         that "UTC +1 second" continues to work.  Problem reported
78892         by Dmitry V. Levin.
78893         (relunit_snumber): New rule.
78894         (relunit): Use it.
78895
78896 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
78897
78898         * lib/getdate.y (universal_time_zone_table): New constant.
78899         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
78900         universal_time_zone_table.
78901         (lookup_zone): Prefer universal_time_zone_table to
78902         local_time_zone_table, so that "GMT" time stamps are allowed in
78903         London during the summer.  Problem reported by Ian Abbott.
78904
78905 2005-04-12  Jim Meyering  <jim@meyering.net>
78906
78907         * lib/human.c (humblock): Set *options even when returning due to
78908         xstrtoumax conversion failure.  Thanks to a used-uninitialized
78909         warning from gcc-4.
78910
78911 2005-04-09  Jim Meyering  <jim@meyering.net>
78912
78913         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
78914         -Wuninitialized: initialize tm0.tm_year.
78915
78916 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
78917
78918         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
78919         count, since there's no maximum.  All uses changed.
78920         Add member dsts_seen.
78921         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
78922         not being INT_MAX.
78923         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
78924         Use pc_rels_seen to decide whther a date is absolute.
78925
78926         * lib/getdate.y (number): Don't overwrite year.
78927         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
78928         check.
78929
78930 2005-04-02  Simon Josefsson  <jas@extundo.com>
78931
78932         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
78933         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
78934
78935 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
78936
78937         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
78938         where no absolute path name can be longer than PATH_MAX.
78939
78940 2005-03-27  Jim Meyering  <jim@meyering.net>
78941
78942         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
78943
78944 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
78945
78946         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
78947         "one's complement" -> "ones' complement" in comment, as per Knuth.
78948         "value of type" -> "type or expression" in comment.
78949         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
78950
78951 2005-03-26  Jim Meyering  <jim@meyering.net>
78952
78953         Comment nits.
78954         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
78955         Correct typos: s/or/of/.
78956
78957 2005-03-26  Jim Meyering  <jim@meyering.net>
78958
78959         * modules/check-include-files: Move to ../ and rename to...
78960         * check-module: ...this.
78961
78962 2005-03-25  Jim Meyering  <jim@meyering.net>
78963
78964         * modules/xvasprintf (Files): Add xalloc.h.
78965
78966 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
78967
78968         * modules/gettext (Files): config/config.rpath ->
78969         build-aux/config.rpath
78970         * modules/iconv (Files): Likewise.
78971         Problem reported by Oskar Liljeblad.
78972
78973 2005-03-23  Jim Meyering  <jim@meyering.net>
78974
78975         * modules/check-include-files: New script to check for
78976         missing dependencies, multiple includes, etc.
78977
78978         * modules/c-strtold (Depends-on): Add xalloc.
78979         * modules/c-strtod (Depends-on): Add xalloc.
78980         * modules/hash (Depends-on): Add xalloc.
78981         (Files): Remove lib/xalloc.h.
78982
78983         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
78984         * modules/userspec (Files): Add lib/inttostr.h.
78985
78986 2005-03-23  Jim Meyering  <jim@meyering.net>
78987
78988         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
78989
78990 2005-03-22  Jim Meyering  <jim@meyering.net>
78991
78992         * modules/stat-macros: New module.
78993         * modules/canonicalize, modules/euidaccess, modules/file-type,
78994         * modules/filemode, modules/lchown, modules/makepath,
78995         * modules/rmdir, modules/stat: Depend on new stat-macros module
78996         rather than listing lib/stat-macros.h manually.
78997         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
78998
78999 2005-03-22  Jim Meyering  <jim@meyering.net>
79000
79001         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
79002
79003 2005-03-22  Bruno Haible  <bruno@clisp.org>
79004
79005         * config/srclist.txt: Replace target directory 'config' with
79006         'build-aux'.
79007         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
79008         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
79009         ../build-aux/.
79010
79011 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
79012
79013         * modules/chdir-long (Depends-on): Add mempcpy.
79014
79015         * modules/acl, modules/backupfile, modules/c-strtod,
79016         modules/c-strtold, modules/canon-host, modules/canonicalize,
79017         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
79018         modules/exclude, modules/exitfail, modules/file-type,
79019         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
79020         modules/getdate, modules/getline, modules/getpagesize,
79021         modules/getpass, modules/getugroups, modules/group-member,
79022         modules/hard-locale, modules/hash, modules/human, modules/idcache,
79023         modules/inttostr, modules/long-options, modules/makepath,
79024         modules/md5, modules/memcasecmp, modules/memcoll,
79025         modules/modechange, modules/mountlist, modules/path-concat,
79026         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
79027         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
79028         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
79029         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
79030         modules/strftime, modules/strndup, modules/strverscmp,
79031         modules/timespec, modules/unlocked-io, modules/userspec,
79032         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
79033         modules/yesno:
79034         Remove lib_SOURCES line from Makefile.am section, as this is now
79035         done automatically by the corresponding Autoconf macro.
79036
79037 2005-03-21  Jim Meyering  <jim@meyering.net>
79038
79039         Changes imported from coreutils.
79040
79041         * lib/cycle-check.c: Don't include xalloc.h.
79042
79043         * lib/path-concat.c: Don't include assert.h.
79044         (path_concat): Remove assertion that would have triggered
79045         for ABASE starting with more than one slash.
79046         Reported by Andreas Schwab.
79047
79048         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
79049         properly when ABASE is an absolute file name.
79050         Correct the description of this function.
79051         Include <assert.h>.
79052         Add an assertion and a test driver.
79053         This fixes a bug introduced on 2004-07-02.
79054         Andreas Schwab reported the resulting failure of cp --parents:
79055         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
79056
79057 2005-03-21  Jim Meyering  <jim@meyering.net>
79058
79059         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
79060         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
79061
79062 2005-03-21  Jim Meyering  <jim@meyering.net>
79063         and  Paul Eggert  <eggert@cs.ucla.edu>
79064
79065         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
79066         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
79067         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
79068         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
79069         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
79070         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
79071         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
79072         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
79073         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
79074         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
79075         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
79076         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
79077         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
79078         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
79079         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
79080         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
79081         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
79082         for these modules.
79083
79084 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
79085
79086         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
79087         (which shouldn't happen), generate nothing instead of returning 0
79088         immediately, so that nstrftime (NULL, ...) doesn't return 0.
79089
79090 2005-03-16  Bruno Haible  <bruno@clisp.org>
79091
79092         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
79093         HAVE_LONGLONG_64BIT.
79094
79095 2005-03-16  Bruno Haible  <bruno@clisp.org>
79096
79097         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
79098         HAVE_LONGLONG_64BIT.
79099
79100 2005-03-16  Bruno Haible  <bruno@clisp.org>
79101
79102         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
79103         HAVE_LONGLONG_64BIT.
79104
79105 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
79106
79107         * lib/strftime.c (my_strftime): Prepend space to format so that we can
79108         reliably distinguish strftime failure from empty output on POSIX
79109         hosts.
79110
79111 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
79112
79113         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
79114         (iconv_string): Don't guess a size-zero buffer, as that might cause
79115         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
79116         result would be 'too large', where 'too large' is (heuristically)
79117         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
79118         overflow concerns.  This will prevent some unwanted malloc failures
79119         when the inputs are very large.
79120
79121 2005-03-15  Karl Berry  <karl@gnu.org>
79122
79123         * config/srclist.txt (config.rpath): from gettext.
79124         * config/config.rpath: update.
79125
79126 2005-03-15  Bruno Haible  <bruno@clisp.org>
79127
79128         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
79129         to 'negate'.
79130
79131         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
79132         variable.
79133
79134         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
79135         results.
79136
79137 2005-03-14  Simon Josefsson  <jas@extundo.com>
79138
79139         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
79140         <fx@gnu.org>.
79141
79142 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
79143
79144         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
79145         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
79146         intprops.h.
79147         * lib/strtol.c: Likewise.
79148
79149 2005-03-14  Jim Meyering  <jim@meyering.net>
79150
79151         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
79152         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
79153         to be nonzero so that we (and caller) can detect the difference
79154         between a valid zero-length expansion and an error return, even
79155         when the underlying strftime fails before writing anything into
79156         that location.
79157
79158 2005-03-14  Bruno Haible  <bruno@clisp.org>
79159
79160         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
79161         Update from GNU gettext 0.14.3.
79162
79163 2005-03-10  Jim Meyering  <jim@meyering.net>
79164
79165         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
79166
79167 2005-03-10  Jim Meyering  <jim@meyering.net>
79168
79169         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
79170         so that this module works on systems without fchdir.
79171
79172 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
79173
79174         Factor int-properties macros into a single file, except for
79175         glibc-related files.
79176         * lib/intprops.h: New file.
79177         * lib/getloadavg.c: Include it instead of limits.h.
79178         (INT_STRLEN_BOUND): Remove.
79179         * lib/human.c: Include intprops.h.
79180         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
79181         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
79182         302/1000.
79183         * lib/inttostr.h: Include intprops.h instead of limits.h.
79184         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
79185         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
79186         for consistency with intprops.h.
79187         (time_t_is_integer, twos_complement_arithmetic): Use them.
79188         * lib/sig2str.h: Include <signal.h>, intprops.h.
79189         (INT_STRLEN_BOUND): Remove.
79190         * lib/strftime.c (TYPE_SIGNED): Remove.
79191         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
79192         * lib/strtol.c: Adjust comments to match intprops.h.
79193         * lib/userspec.c: Include intprops.h.
79194         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
79195         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
79196         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
79197         instead of rolling our own expressions.
79198         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
79199
79200         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
79201         instead of int.
79202         (my_strftime): Do not mishandle years close to INT_MAX, by doing
79203         the right thing even if adding 1900 would overflow.  Similarly
79204         for tm_mon + 1 and tm_yday + 1.
79205         Make %Y always equivalent to %C%y, and similarly for %G and %g.
79206         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
79207         (DO_SIGNED_NUMBER): New macro.
79208         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
79209
79210 2005-03-07  Bruno Haible  <bruno@clisp.org>
79211
79212         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
79213
79214 2005-03-07  Bruno Haible  <bruno@clisp.org>
79215
79216         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
79217
79218 2005-03-04  Derek R. Price  <derek@ximbiot.com>
79219
79220         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
79221         (func_import): Only replace files via --import when they have actually
79222         changed.
79223
79224 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79225
79226         * m4/mmap-anon.m4: New file.
79227         * m4/pagealign_alloc.m4: New file.
79228
79229 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79230             Bruno Haible  <bruno@clisp.org>
79231
79232         * modules/pagealign_alloc: New file.
79233         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
79234
79235 2005-03-03  Derek R. Price  <derek@ximbiot.com>
79236             Bruno Haible  <bruno@clisp.org>
79237
79238         * lib/pagealign_alloc.h: New file.
79239         * lib/pagealign_alloc.c: New file.
79240
79241 2005-03-03  Bruno Haible  <bruno@clisp.org>
79242
79243         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
79244         Use an all-permissive copyright notice, recommended by RMS.
79245
79246 2005-03-02  Bruno Haible  <bruno@clisp.org>
79247
79248         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
79249         of AIX, the replacement has to be done only after <string.h> is
79250         included, therefore not in config.h. stpncpy.h does the replacement,
79251         and stpncpy.c uses it.
79252
79253 2005-03-02  Bruno Haible  <bruno@clisp.org>
79254
79255         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
79256         stpncpy.c uses it.
79257
79258 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79259
79260         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
79261         The workaround isn't strictly needed for POSIX conformance, and
79262         it's too much of a pain to configure and maintain.  We'll ask
79263         people to fix their kernels instead.
79264         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
79265         (NANOSLEEP_BUG_WORKAROUND): Remove.
79266         (xnanosleep): Remove the workaround.
79267
79268 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79269
79270         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
79271         Reported by Derek Price.
79272         (Include): Add "timespec.h".
79273
79274         * modules/xnanosleep (Depends-on): Remove gethrxtime.
79275
79276 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79277
79278         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
79279         to detect nanosleep bug.
79280
79281 2005-03-01  Bruno Haible  <bruno@clisp.org>
79282
79283         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
79284
79285 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
79286
79287         * modules/gethrxtime: New file.
79288         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
79289         (Depends-on): Add gethrxtime.
79290         (configure.ac): Add gl_XNANOSLEEP.
79291         (Makefile.am): Remove lib_SOURCES line.
79292
79293 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
79294
79295         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
79296         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
79297
79298 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
79299
79300         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
79301         * lib/timespec.h (gettime): Return void, since it always
79302         succeeds now.  All uses changed.
79303         * lib/gettime.c (gettime): Likewise.
79304         [HAVE_NANOTIME]: Prefer nanotime.
79305         Assume gettimeofday succeeds, as POSIX requires.
79306         Assime time () succeeds, since other code already does.
79307         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
79308         (timespec_subtract): Remove.
79309         (NANOSLEEP_BUG_WORKAROUND): New constant.
79310         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
79311         things considerably.  Use it only on GNU/Linux hosts, since the
79312         workaround shouldn't be needed elsewhere.
79313
79314 2005-02-24  Bruno Haible  <bruno@clisp.org>
79315
79316         * modules/gettext (Files): Add m4/glibc2.m4.
79317
79318 2005-02-24  Bruno Haible  <bruno@clisp.org>
79319
79320         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
79321         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
79322         * m4/progtest.m4:
79323         Update from GNU gettext 0.14.2.
79324         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
79325
79326 2005-02-24  Bruno Haible  <bruno@clisp.org>
79327
79328         * lib/localcharset.c: Update from GNU gettext 0.14.2.
79329         * lib/config.charset: Update from GNU gettext 0.14.2.
79330
79331 2005-02-24  Bruno Haible  <bruno@clisp.org>
79332
79333         * lib/gettext.h: Update from GNU gettext 0.14.2.
79334
79335 2005-02-23  Simon Josefsson  <jas@extundo.com>
79336
79337         * m4/iconvme.m4: New file.
79338
79339 2005-02-23  Jim Meyering  <jim@meyering.net>
79340
79341         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
79342         change.
79343         Thanks to Bruno Haible for catching it.
79344
79345 2005-02-22  Simon Josefsson  <jas@extundo.com>
79346
79347         * modules/iconvme: New file.
79348
79349         * MODULES.html.sh: Add iconvme.
79350
79351 2005-02-22  Simon Josefsson  <jas@extundo.com>
79352
79353         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
79354
79355 2005-02-22  Simon Josefsson  <jas@extundo.com>
79356
79357         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
79358
79359 2005-02-22  Jim Meyering  <jim@meyering.net>
79360
79361         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
79362         s/ifndef/ifdef/.
79363
79364 2005-02-20  Neil Conway  <neilc@samurai.com>
79365
79366         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
79367         returned by OSX/Darwin if the specified buffer is not large
79368         enough for the hostname.
79369
79370 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79371
79372         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
79373         pass it to _help, otherwise the latter coredumps trying to
79374         dereference state.root_argp.
79375
79376 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79377
79378         * modules/chdir-long (Depends-on): Add memrchr.
79379         * modules/memrchr (Files): Add lib/memrchr.h.
79380         (Include): "memrchr.h".
79381
79382 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79383
79384         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
79385
79386 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
79387
79388         * lib/memrchr.h: New file.
79389         * lib/chdir-long.c: Include it.
79390         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
79391         Don't bother including stddef.h.
79392
79393 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
79394
79395         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
79396         inclusion.
79397         Include <sys/types.h>, for dev_t.
79398         (ME_DUMMY, ME_REMOTE): Move from here....
79399         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
79400         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
79401         Dmitry V. Levin.
79402         Include mountlist.h first, to test the interface.
79403
79404 2005-01-29  Bruno Haible  <bruno@clisp.org>
79405
79406         * lib/progname.c (program_name): Initialize.
79407         Needed when linking statically on MacOS X.
79408
79409 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
79410
79411         Sync from coreutils.
79412         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
79413         (Depends-on): Add c-strtod.
79414         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
79415
79416 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
79417
79418         Sync from coreutils.
79419         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
79420
79421         Remove files that are specific to coreutils.
79422         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
79423
79424 2005-01-28  Bruno Haible  <bruno@clisp.org>
79425
79426         * modules/javacomp: New file.
79427         * MODULES.html.sh (Java): Add javacomp.
79428
79429 2005-01-28  Bruno Haible  <bruno@clisp.org>
79430
79431         * m4/javacomp.m4: New file, from GNU gettext.
79432
79433 2005-01-28  Bruno Haible  <bruno@clisp.org>
79434
79435         * lib/javacomp.sh.in: New file, from GNU gettext.
79436         * lib/javacomp.h: New file, from GNU gettext.
79437         * lib/javacomp.c: New file, from GNU gettext.
79438
79439 2005-01-26  Simon Josefsson  <jas@extundo.com>
79440
79441         * lib/gai_strerror.c: Use GPL in header.
79442
79443 2005-01-26  Bruno Haible  <bruno@clisp.org>
79444
79445         * modules/javaexec: New file.
79446         * MODULES.html.sh (Java): Add javaexec.
79447
79448 2005-01-26  Bruno Haible  <bruno@clisp.org>
79449
79450         * m4/javaexec.m4: New file, from GNU gettext.
79451
79452 2005-01-26  Bruno Haible  <bruno@clisp.org>
79453
79454         * lib/javaexec.sh.in: New file, from GNU gettext.
79455         * lib/javaexec.h: New file, from GNU gettext.
79456         * lib/javaexec.c: New file, from GNU gettext.
79457
79458 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79459
79460         * modules/lchown (Depends-on): Remove lchown.h
79461
79462 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79463
79464         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
79465         must be defined if the header file was not found, in order
79466         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
79467
79468 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79469
79470         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
79471         initializers for struct pentry_state.
79472         (__argp_error): Check return value of __asprintf
79473         (__argp_failure): Translate error message
79474
79475         * lib/argp-parse.c: Removed braces around the expansion of N_()
79476
79477 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
79478
79479         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
79480         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
79481         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
79482         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
79483         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
79484         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
79485         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
79486         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
79487         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
79488         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
79489         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
79490         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
79491         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
79492         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
79493         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
79494         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
79495         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
79496         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
79497         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
79498         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
79499         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
79500         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
79501         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
79502         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
79503         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
79504         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
79505         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
79506         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
79507         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
79508         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
79509         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
79510         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
79511         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
79512         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
79513         xstrtol.m4, xstrtoumax.m4, yesno.m4:
79514         Use an all-permissive copyright notice, recommended by RMS.
79515
79516 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
79517
79518         * modules/chdir-long (Depends-on): Remove mempcpy.
79519
79520 2005-01-21  Jim Meyering  <jim@meyering.net>
79521
79522         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
79523         same value as for Solaris 9.
79524
79525         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
79526         component length.  This included changing the parameter to be
79527         of type `char *' rather than `char const *'.
79528         * lib/chdir-long.h (chdir_long): Update prototype.
79529
79530         * lib/openat.c (fdopendir, fstatat): New functions.
79531         * lib/openat.h: Include headers required for use of DIR and struct
79532         stat.
79533         [AT_SYMLINK_NOFOLLOW]: Define.
79534         (fdopendir, fstatat): Add prototypes.
79535
79536 2005-01-21  Bruno Haible  <bruno@clisp.org>
79537
79538         * modules/classpath: New file.
79539         * MODULES.html.sh (Java): Add classpath.
79540
79541 2005-01-21  Bruno Haible  <bruno@clisp.org>
79542
79543         * lib/classpath.h: New file, from GNU gettext.
79544         * lib/classpath.c: New file, from GNU gettext.
79545
79546 2005-01-20  Simon Josefsson  <jas@extundo.com>
79547
79548         * modules/version-etc-fsf: New file.
79549
79550 2005-01-20  Simon Josefsson  <jas@extundo.com>
79551
79552         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
79553         * lib/version-etc.c: Remove version_etc_copyright.
79554         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
79555         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
79556
79557 2005-01-20  Simon Josefsson  <jas@extundo.com>
79558
79559         * lib/base64.h (isbase64): Add.
79560
79561         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
79562         using a unsigned prototype, don't inline.
79563         (base64_decode): Use it.
79564
79565 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79566
79567         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
79568         it.
79569
79570 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79571
79572         * lib/save-cwd.c (save_cwd): Remove code to support the case
79573         where fchdir is missing or flaky.
79574
79575 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
79576
79577         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
79578
79579 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
79580
79581         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
79582         AC_LIBSOURCES now does this.
79583         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
79584         with new ullong_max module.
79585
79586 2005-01-19  Bruno Haible  <bruno@clisp.org>
79587
79588         * modules/sh-quote: New file.
79589         * MODULES.html.sh (Executing programs): Add sh-quote.
79590
79591 2005-01-19  Bruno Haible  <bruno@clisp.org>
79592
79593         * lib/sh-quote.h: New file, from GNU gettext.
79594         * lib/sh-quote.c: New file, from GNU gettext.
79595
79596 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79597
79598         Merge from coreutils.
79599         * m4/ullong_max.m4: New file.
79600         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
79601         (gl_MACROS): Assume localeconv exists.
79602
79603 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79604
79605         Merge changes from coreutils, as described below in several
79606         changelogs dated today.
79607
79608         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
79609         (O_DIRECTORY): Remove; not needed here, since "." must be
79610         a directory.  All uses removed.
79611         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
79612         universal on Suns, and we also need to test for IRIX.
79613         Revamp code to use 'if' rather than '#if'.
79614         Avoid unnecessary comparison of cwd->desc to 0.
79615
79616         * lib/utimens.c (futimens): Robustify the previous patch, by checking
79617         for known valid error numbers rather than observed invalid ones.
79618
79619 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
79620
79621         * modules/ullong_max: New file.
79622
79623         * modules/chdir-long, modules/openat: New files.
79624         * modules/save-cwd (Depends-on): Depend on chdir-long.
79625         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
79626
79627 2005-01-18  Jim Meyering  <jim@meyering.net>
79628
79629         Merge from coreutils.
79630         * m4/chdir-long.m4, m4/openat.m4: New files.
79631         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
79632         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
79633         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
79634         is sane and DOES follow symlinks.  Besides, testing 20 different
79635         systems found no broken chown implementations.
79636         Prompted by a change in rsync's copy of this macro.
79637         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
79638
79639         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
79640
79641         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
79642         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
79643         NULL-means-set-to-current-time semantics.
79644         Remove temporary file immediately, rather than waiting
79645         for configure's at-exit trap code to do it.
79646
79647 2005-01-18  Jim Meyering  <jim@meyering.net>
79648
79649         * lib/version-etc.c (version_etc_copyright): Update copyright date.
79650
79651         * lib/utimens.c (futimens): Account for the fact that futimes
79652         can also fail with errno == ENOSYS or errno == ENOENT.
79653         Patch from Dmitry V. Levin.
79654
79655         Change the name of the robust chdir function from chdir to chdir_long.
79656         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
79657         (restore_cwd): Use chdir_long, not chdir.
79658         * lib/chdir-long.c: Renamed from chdir.c.
79659         * lib/chdir-long.h: Renamed from chdir.h.
79660         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
79661         Hurd.
79662
79663 2005-01-18  Bruno Haible  <bruno@clisp.org>
79664
79665         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
79666         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
79667         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
79668         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
79669         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
79670         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
79671         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
79672         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
79673         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
79674         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
79675         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
79676         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
79677         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
79678         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
79679         Use an all-permissive copyright notice, recommended by RMS.
79680
79681 2005-01-18  Bob Proulx  <bob@proulx.com>
79682
79683         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
79684         simplify offsetof() macro construct to avoid compile failure with
79685         native HP-UX 11.0 ANSI C compiler.
79686
79687 2005-01-17  Bruno Haible  <bruno@clisp.org>
79688
79689         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
79690         redundant because stpncpy.m4 takes care of it.
79691
79692 2005-01-17  Bruno Haible  <bruno@clisp.org>
79693
79694         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
79695
79696 2005-01-17  Bruno Haible  <bruno@clisp.org>
79697
79698         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
79699         used.
79700
79701 2005-01-17  Bruno Haible  <bruno@clisp.org>
79702
79703         * lib/fwriteerror.h (fwriteerror): Change specification to include
79704         fclose.
79705         * lib/fwriteerror.c: Include <stdbool.h>.
79706         (fwriteerror): At the end, close the file stream. Record whether
79707         stdout was already closed.
79708
79709 2005-01-17  Bruno Haible  <bruno@clisp.org>
79710
79711         * lib/execute.c (environ): Declare if needed.
79712         * lib/pipe.c (environ): Likewise.
79713         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
79714
79715 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79716
79717         * modules/argp: Depend on vsnprintf
79718
79719 2005-01-10  Jim Meyering  <jim@meyering.net>
79720
79721         * modules/closeout (Depends-on): Add atexit.
79722
79723 2005-01-06  Bruno Haible  <bruno@clisp.org>
79724
79725         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
79726
79727 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
79728
79729         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
79730         definitions to be after all include files, to avoid collisions.
79731         Problem reported by Bob Proulx.
79732
79733 2005-01-04  Jim Meyering  <jim@meyering.net>
79734
79735         Changes imported from coreutils.
79736         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
79737         as the mkstemp template, use a temporary directory and an
79738         8.3-friendly template to avoid trouble on systems like DJGPP.
79739         Reported by Juan M. Guerrero via Stepan Kasal.
79740         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
79741         close. Remove the temporary directory right away, rather than waiting
79742         for configure's at-exit trap code to do it.
79743         Suggestion from Stepan Kasal.
79744
79745 2005-01-01  Simon Josefsson  <jas@extundo.com>
79746
79747         * gnulib-tool: Print #include directives when --import'ing.
79748
79749 2004-12-28  Simon Josefsson  <jas@extundo.com>
79750
79751         * tests/test-base64.c: Include required header files.  Remove
79752         unused variables.
79753
79754 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
79755
79756         * modules/error (Depends-on): Remove gettext.
79757
79758 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
79759
79760         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
79761         not needed.  This removes a dependency on the gettext module.
79762         [defined _LIBC]: Do not include <libintl.h>; not needed.
79763
79764 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
79765
79766         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
79767         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
79768
79769 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
79770
79771         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
79772         HAVE_DECL_STRTOLD.
79773
79774 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79775
79776         * modules/getdate (Depends-on): Remove alloca-opt.
79777
79778 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79779
79780         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
79781
79782 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
79783
79784         * lib/argp-parse.c: Include <stddef.h>.
79785         (alignof, alignto): New macros.
79786         (parser_init): Don't assume that void * is aligned sufficiently
79787         for struct option.
79788
79789         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
79790         need to extend the stack.
79791         (YYINITDEPTH): New macro, so that the initial stack isn't overly
79792         large.
79793
79794 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79795
79796         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
79797
79798 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
79799
79800         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
79801         (2004-10-24) change.  Apparently this was a false alarm.
79802
79803         * modules/getdate: Depend on alloca-opt, not alloca.
79804
79805 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
79806
79807         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
79808         Remove now-obsolete comment about AIX.
79809         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
79810         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
79811         (YYMAXDEPTH): New macro.
79812
79813 2004-12-18  Simon Josefsson  <jas@extundo.com>
79814
79815         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
79816
79817 2004-12-18  Bruno Haible  <bruno@clisp.org>
79818
79819         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
79820
79821 2004-12-18  Bruno Haible  <bruno@clisp.org>
79822
79823         * lib/fatal-signal.c (fatal_signals): Make non-const.
79824         (init_fatal_signals): New function.
79825         (uninstall_handlers, install_handlers): Ignore signals that were set to
79826         SIG_IGN.
79827         (at_fatal_signal): Call init_fatal_signals.
79828         (init_fatal_signal_set): Likewise. Ignore signals that were set to
79829         SIG_IGN.
79830         Reported by Paul Eggert.
79831
79832 2004-12-18  Bruno Haible  <bruno@clisp.org>
79833
79834         * doc/alloca.texi: New file.
79835         * doc/alloca-opt.texi: New file.
79836
79837 2004-12-17  Jim Meyering  <jim@meyering.net>
79838
79839         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
79840         Otherwise, install-sh could exit with improper exit status when
79841         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
79842
79843 2004-12-16  Simon Josefsson  <jas@extundo.com>
79844
79845         * tests/test-base64.c: Add license.
79846
79847 2004-12-15  Stepan Kasal  <address@hidden>
79848
79849         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
79850
79851 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
79852
79853         * modules/getcwd (Files): Add m4/d-ino.m4.
79854         Suggested by Mark D. Baushke.
79855
79856 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
79857
79858         * lib/getdate.y (textint): New member "negative".
79859         (time_zone_hhmm): New function.
79860         Expect 14 shift-reduce conflicts, not 13.
79861         (o_colon_minutes): New rule.
79862         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
79863         (yylex): Set the "negative" member of signed numbers.
79864
79865 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
79866
79867         * doc/getdate.texi (Time of day items, Time zone items):
79868         Describe new formats +00:00, UTC+00:00.
79869
79870 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
79871
79872         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
79873         spurious "-l"s.  Problem reported by Stepan Kasal.
79874
79875 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
79876
79877         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
79878         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
79879
79880 2004-12-04  Simon Josefsson  <jas@extundo.com>
79881
79882         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
79883         Vandoorselaere <yoann@prelude-ids.org>.
79884
79885 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79886
79887         Changes imported from coreutils.
79888         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
79889         exist.
79890         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
79891
79892 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79893
79894         Changes imported from coreutils.
79895         * lib/hard-locale.c: Assume <locale.h> exists.
79896         Include "strdup.h".
79897         (GLIBC_VERSION): New macro.
79898         (hard_locale): Assume setlocale exists.
79899         Rewrite to avoid #ifdef.
79900         Use strdup rather than malloc + strcpy.
79901         * lib/human.c: Assume <locale.h> exists.
79902         (human_readable): Assume localeconv exists.
79903
79904 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
79905
79906         * modules/hard-locale (Depends-on): Add strdup.
79907
79908 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
79909
79910         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
79911         convert T2, not T.  (Imported from libc.)
79912
79913 2004-11-30  Simon Josefsson  <jas@extundo.com>
79914
79915         * modules/restrict (License): Change to LGPL.
79916
79917 2004-11-30  Simon Josefsson  <jas@extundo.com>
79918
79919         * m4/restrict.m4: Add copyright and copying conditions.
79920
79921 2004-11-30  Simon Josefsson  <jas@extundo.com>
79922
79923         * m4/base64.m4: New file.
79924
79925 2004-11-30  Simon Josefsson  <jas@extundo.com>
79926
79927         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
79928         base64.
79929
79930         * tests/test-base64.c: New file.
79931
79932         * modules/base64: New file.
79933
79934 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79935
79936         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
79937         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
79938
79939         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
79940
79941 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
79942
79943         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
79944         (__getcwd.c): Don't restore errno; glibc doesn't.
79945         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
79946         first, falling back to our code only if its results look suspicious.
79947         Ensure that the resulting buffer is only as large as necessary.
79948
79949         * lib/readutmp.c: Include readutmp.h first.
79950         Include <errno.h>, since readutmp.h no longer does that.
79951         * lib/readutmp.h: Don't include <errno.h>,
79952         <sys/param.h>, <time.h>; not needed to establish interface.
79953         (errno): Remove decl.
79954         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
79955         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
79956         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
79957
79958 2004-11-28  Simon Josefsson  <jas@extundo.com>
79959
79960         * lib/base64.h, base64.c: New file.
79961
79962 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
79963
79964         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
79965
79966 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
79967
79968         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
79969         (Depends-on): Remove pathmax, same.  Add mempcpy.
79970         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
79971         (Makefile.am): Append getcwd.h to lib_SOURCES.
79972         (Include): Add getcwd.h.
79973         (Maintainer): Change from Jim Meyering to "all, glibc",
79974         since getdate now uses intended-for-glibc code.
79975         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
79976         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
79977
79978 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
79979
79980         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
79981         HP's ANSI C compiler.
79982         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
79983         Declaring int functions causes warnings on some modern systems and
79984         shouldn't be needed to compile on ancient ones.
79985         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
79986         defined.
79987
79988         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
79989         with the following changes.
79990         (__set_errno): Parenthesize properly.
79991         Include <stdbool.h>.
79992         (MIN, MAX, MATCHING_INO): New macros.
79993         (__getcwd): Define with prototype, not K&R form.
79994         Use heuristics to allocate default buffer on stack if possible.
79995         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
79996         behavior, and to avoid the PATH_MAX limit when computing
79997         ../../../../...
79998         Use MATCHING_INO to compare inode number to file.
79999         Check for arithmetic overflow in size calculations.
80000         Fix bug in reallocation of dot array that caused getcwd to fail
80001         on directories nested deeper than 75.
80002         Be more careful about saving errno on error.
80003         Do not use realloc; use only free+malloc, as this is a bit
80004         more flexible and avoids a needless copy operation.
80005         Do not inspect st_dev and st_ino for symbolic links; POSIX
80006         doesn't specify the latter.
80007         Check for closedir errors.
80008         Avoid needless casts.
80009         Use "#ifdef weak_alias" around weak_alias, to be like other
80010         glibc code.
80011         The following changes to getcwd.c have effect only when used in
80012         gnulib; they have no effect inside glibc proper.
80013         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
80014         as alloca isn't used.
80015         (alloca, __alloca): Likewise.
80016         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
80017         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
80018         unconditionally, as gnulib assumes C89 or better.
80019         Do not include <sys/param.h>.
80020         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
80021         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
80022         better.
80023         (NULL) [!defined NULL]: Remove; we assume C89 or better.
80024         Include <dirent.h> in a way that is compatible with modern Autoconf.
80025         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
80026         New macros, if not already defined.
80027         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
80028         Use "_LIBC", not "defined _LIBC", for consistency.
80029         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
80030         a mempcpy module.
80031         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
80032         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
80033         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
80034         credit only to Jim Meyering and adjust the copyright dates.
80035         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
80036         <stdlib.h>, <unistd.h>, "pathmax.h".
80037         Instead, include "xgetcwd.h" (first) and "getcwd.h".
80038         (INITIAL_BUFFER_SIZE): Remove.
80039         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
80040
80041 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80042
80043         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
80044         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
80045         Use the _ONCE methods, for efficiency.
80046         Check for fcntl.h.  In test program, include <errno.h>
80047         and <fcntl.h> if available.  Remove old K&R cruft from
80048         test program.  Check for common errors in GNU/Linux,
80049         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
80050         don't do AC_LIBOBJ, as that's getcwd.m4's job.
80051         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
80052         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
80053         name accordingly.
80054         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
80055         accommodate new getcwd.c.
80056         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
80057         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
80058         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
80059         that's all we need now.
80060
80061 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80062
80063         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
80064         argp-parse.c depends on getopt internals, that means we should
80065         always use our getopt, to be on the safe side.
80066         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
80067         order not to spoil the result of an eventual previous invocation
80068         of gl_GETOPT_SUBSTITUTE.
80069
80070 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80071
80072         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
80073         redefinition warnings. To avoid them, include the defines
80074         in `#if !defined __need_getopt ... #endif'. The only place
80075         where __getopt_argv_const is used is in definitions
80076         of getopt_long and getopt_long_only below, which are as well
80077         protected by `#ifndef __need_getopt'.
80078         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
80079         __need_getopt after including <stdio.h> and <unistd.h> These
80080         headers might have defined it.
80081
80082 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
80083
80084         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
80085
80086 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
80087
80088         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
80089         (futimens): New function, which uses futimes if available.
80090         (futimens, utimens): Support timespec==NULL, with same semantics
80091         as utime and utimens.
80092         * lib/utimens.h (futimens): New decl.
80093
80094 2004-11-23  Jim Meyering  <jim@meyering.net>
80095
80096         * lib/getopt_.h: Remove trailing blanks.
80097
80098 2004-11-23  Jim Meyering  <jim@meyering.net>
80099
80100         * lib/__fpending.c: Add comment.
80101
80102 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
80103
80104         * modules/canonicalize (Depends-on): Add xreadlink.
80105         Problem reported by James Youngman.
80106
80107 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
80108
80109         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
80110         New macros.
80111         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
80112         optopt): Use them instead of invoking ## directly; otherwise, the
80113         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
80114
80115 2004-11-19  Bruno Haible  <bruno@clisp.org>
80116
80117         * lib/strtok_r.c: Move comments from here...
80118         * lib/strtok_r.h: ... to here.
80119
80120 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
80121
80122         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
80123         implementations that mishandle size_t overflow.
80124
80125 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
80126
80127         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
80128         might fail.  Problem reported by Yoann Vandoorselaere.
80129         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
80130         implementations that mishandle size_t overflow.
80131
80132 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80133
80134         * modules/canon-host (Depends-on): Add strdup.
80135
80136 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80137
80138         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
80139
80140 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80141
80142         * lib/canon-host.c: Include "strdup.h".
80143         (canon_host): Use getaddrinfo if available, so that IPv6 works.
80144         Use strdup instead of malloc/strcpy to duplicate strings.
80145
80146         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
80147         (human_space_before_unit): New constant.
80148         * lib/human.c (human_readable): Support it.
80149
80150         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
80151         (xgetcwd): Set errno correctly when failing.
80152         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
80153         the failure is actually due to a PATH_MAX problem.
80154
80155         Further getopt changes to make it more likely that glibc will
80156         buy the changes back.
80157         * lib/getopt.c (POSIXLY_CORRECT): New constant.
80158         (getopt): Use it, so to preserve glibc semantic
80159         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
80160         when compiling for libc.
80161         * lib/getopt_.h (__getopt_argv_const): Bring it back.
80162         (getopt_long, getopt_long_only): Use it.
80163
80164         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
80165         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
80166         (getopt): Argv is now char * const *, as per standard.
80167         (_getopt_internal_r, _getopt_internal): Argv is now char **,
80168         not char *__getopt_argv_const *.
80169         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
80170         _getopt_long_only_r): Likewise.
80171         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
80172         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
80173         _getopt_long_r, _getopt_long_only_r): Likewise.
80174         * lib/getopt_.h (__getopt_argv_const): Remove.
80175         (getopt): Argv is now char * const *, as per standard.
80176
80177         * lib/getdate.y (tORDINAL): New token.
80178         (day, relunit): Allow it for relative times.
80179         (relative_time_table): Use tORDINAL for ordinals.
80180
80181 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80182
80183         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
80184         Document that "second" isn't allowed as an ordinal number.
80185
80186 2004-11-16  Jim Meyering  <jim@meyering.net>
80187
80188         * modules/closeout (Depends-on): Add fpending.
80189
80190 2004-11-15  Jim Meyering  <jim@meyering.net>
80191
80192         * lib/closeout.c: Include "__fpending.h" once again.
80193         Include <stdbool.h>.
80194         (close_stdout): Don't fail just because stdout was closed initially,
80195         since some programs don't write to stdout in the normal course of
80196         operation (other than --version and --help), and we don't want this
80197         function to make e.g. `touch file >&-' fail.
80198         But do fail if it was closed and someone has tried to write to it.
80199         E.g., `printf foo >&-' must fail.
80200
80201 2004-11-13  Jim Meyering  <jim@meyering.net>
80202
80203         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
80204
80205 2004-11-12  Simon Josefsson  <jas@extundo.com>
80206
80207         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
80208         small doc fix is still pending.
80209
80210 2004-11-11  Simon Josefsson  <jas@extundo.com>
80211
80212         * modules/strtok_r: New file.
80213
80214         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80215         strtok_r.
80216
80217 2004-11-11  Simon Josefsson  <jas@extundo.com>
80218
80219         * m4/strtok_r.m4: New file.
80220
80221         * m4/getopt.m4: Replace opterr.
80222
80223 2004-11-11  Simon Josefsson  <jas@extundo.com>
80224
80225         * lib/strtok_r.h, strtok_r.c: New file.
80226
80227 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
80228
80229         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
80230         of replacing opterr, getopt, etc.  This should handle the
80231         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
80232
80233 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
80234
80235         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
80236         we can stop lying to compilers about the constness of argv when we
80237         are compiled outside glibc.
80238         (getopt, getopt_long, getopt_long_only): Use it.
80239         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
80240         _getopt_internal, getopt): Likewise.
80241         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
80242         _getopt_long_only_r): Likewise.
80243         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
80244         _getopt_long_r, _getopt_long_only_r): Likewise.
80245
80246         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
80247         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
80248         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
80249         the other external symbols.
80250         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
80251         declaration, since the above renaming now works around collisions.
80252
80253 2004-11-11  Jim Meyering  <jim@meyering.net>
80254
80255         * lib/linebreak.c: Remove trailing blanks.
80256         * lib/alloca_.h: Likewise.
80257         * lib/acosl.c: Likewise.
80258         * lib/euidaccess.c: Likewise.
80259         * lib/allocsa.h: Likewise.
80260
80261 2004-11-10  Simon Josefsson  <jas@extundo.com>
80262
80263         * m4/getaddrinfo.m4: New file.
80264
80265 2004-11-10  Simon Josefsson  <jas@extundo.com>
80266
80267         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
80268
80269 2004-11-10  Simon Josefsson  <jas@extundo.com>
80270
80271         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80272         getaddrinfo.
80273
80274         * modules/getaddrinfo: New file.
80275
80276 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80277
80278         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
80279
80280 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80281
80282         * lib/mktime.c (SHR): New macro, which is a portable
80283         substitute for >> that should work even on Crays.
80284         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
80285         Problem reported by Mark D. Baushke in
80286         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
80287         * lib/getdate.y (SHR): Likewise.
80288         (tm_diff): Use it.
80289         * lib/strftime.c (SHR): Likewise.
80290         (tm_diff): Use it.
80291         * lib/quotearg.c (struct quoting_options): Use unsigned int for
80292         quote_these_too, so that right shifts are well defined.  All uses
80293         changed.
80294
80295 2004-11-10  Jim Meyering  <jim@meyering.net>
80296
80297         Ensure that no close failure goes unreported.
80298         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
80299         return early when it seems there's nothing to flush.
80300         Don't include __fpending.h.
80301
80302 2004-11-10  Jim Meyering  <jim@meyering.net>
80303
80304         * modules/closeout (Depends-on): Remove fpending.
80305
80306 2004-11-10  Jim Meyering  <jim@meyering.net>
80307
80308         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
80309
80310 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
80311
80312         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
80313         gl_FUNC_STRFTIME.
80314         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
80315         and AC_REQUIRE when possible, to avoid duplicate checks.
80316         Check for <wchar.h>.
80317
80318 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
80319
80320         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
80321
80322 2004-11-09  Bruno Haible  <bruno@clisp.org>
80323
80324         * m4/sockpfaf.m4: New file.
80325
80326 2004-11-05  Bruno Haible  <bruno@clisp.org>
80327
80328         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
80329         Reported by Mark D. Baushke <mdb@cvshome.org>.
80330
80331 2004-11-04  Bruno Haible  <bruno@clisp.org>
80332
80333         2004-09-11  Bruno Haible  <bruno@clisp.org>
80334                 * allocsa.valgrind: New file.
80335         2004-02-06  Bruno Haible  <bruno@clisp.org>
80336                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
80337                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
80338                 Reported by Christopher Seip <chris.seip@hp.com>.
80339
80340 2004-11-04  Bruno Haible  <bruno@clisp.org>
80341
80342         * modules/allocsa (Files): Add lib/allocsa.valgrind.
80343         (Makefile.am): Distribute it.
80344
80345 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
80346
80347         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
80348         with errno == ERANGE if the buffer is too small.
80349         Problem reported by Mark D. Baushke.
80350
80351 2004-11-03  Albert Chin  <china@thewrittenword.com>
80352             Paul Eggert  <eggert@cs.ucla.edu>
80353
80354         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
80355         equivalent, substitute $ac_type for equivalent type rather than
80356         blindly using uint32_t *always* which won't work if uint32_t is not
80357         available.  Define _UINT32_T to work around typedef of uint32_t if
80358         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
80359         2.5.1.
80360
80361 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80362
80363         * m4/jm-macros.m4: Sync from coreutils.
80364         (gl_MACROS): Check for mbrlen, for pathchk.
80365         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
80366
80367 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80368
80369         * lib/xreadlink.c (MAXSIZE): New macro.
80370         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
80371         size does not exceed MAXSIZE.  Avoid cast.
80372         As suggested by Mark D. Baushke in
80373         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
80374         if readlink fails with buffer size just under MAXSIZE, try again
80375         with MAXSIZE.
80376
80377 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
80378
80379         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
80380
80381 2004-11-02  Derek R. Price  <derek@ximbiot.com>
80382         and  Paul Eggert  <eggert@cs.ucla.edu>
80383
80384         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
80385         (get_date): Overparenthesize to avoid GCC warning.
80386
80387 2004-11-02  Bruno Haible  <bruno@clisp.org>
80388
80389         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
80390         returns void.
80391
80392 2004-11-02  Bruno Haible  <bruno@clisp.org>
80393
80394         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
80395         function returns void.
80396
80397 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80398
80399         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
80400         fflush_unlocked, flockfile, funlockfile, funlockfile,
80401         fputs_unlocked, putc_unlocked.
80402
80403 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
80404
80405         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
80406         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
80407         already declared.
80408
80409 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80410
80411         * modules/getdate (Files): Add doc/getdate.texi.
80412         (Depends-on): Add setenv, xalloc.
80413
80414 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80415
80416         * lib/getdate.y: Add support for TZ="foo" within a date string.
80417         Fix some bugs near time_t boundaries.  Reject dates with
80418         out-of-range components, e.g., "Sept 31".
80419         Include <stdlib.h>, "setenv.h", "xalloc.h".
80420         (ISDIGIT_LOCALE): Remove; unused.
80421         Note that the TZ and time functions used here are not reentrant.
80422         (mktime_ok, get_tz): New functions.
80423         (TZBUFSIZE): New constant.
80424         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
80425         This requires that we sometimes generate our own TZ="XXX..." setting.
80426
80427 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80428
80429         * doc/getdate.texi: New file, from coreutils with modifications for
80430         the new TZ parsing.
80431
80432 2004-10-27  Derek R. Price  <derek@ximbiot.com>
80433
80434         * lib/mktime.c (not_equal_tm): Remove redundant check.
80435
80436 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80437
80438         * modules/regex (lib_SOURCES): Add regex.c.
80439         Reported by James Youngman in
80440         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
80441
80442 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
80443
80444         * lib/getdate.y: Use Bison 1.875 features, and some minor
80445         code cleanups.  This change does not affect semantics.
80446         Don't include <stdlib.h>; no longer needed.
80447         Don't include unlocked-io.h; only the "#if TEST" code uses
80448         stdio, and performance isn't crucial there.
80449         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
80450         Bison 1.875 features as described below.
80451         All uses of "PC." replaced by "pc->".
80452         (YYSTYPE): Add a forward declaration.
80453         (yylex, yyerror): Use full prototypes in forward decls.
80454         Use "%pure-parser" rather than obsolescent "%pure_parser".
80455         Use %parse-param and %lex-param instead of obsolescent
80456         YYPARSE_PARAM and YYLEX_PARAM.
80457         (meridian_table, month_and_day_table, time_units_table,
80458         relative_time_table, time_zone_table, military_table,
80459         lookup_zone, lookup_word, get_date):
80460         Use NULL instead of 0 where appropriate.
80461         (to_hour): Avoid abort (), to avoid a dependency on
80462         stdlib.h.
80463         (yyerror, yylex): Now accepts parser_control * arg.
80464         (main) [TEST]: Use '\0' rather than 0 for char.
80465
80466 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80467
80468         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
80469
80470 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
80471
80472         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
80473         It's now the caller's responsibility to handle the case where
80474         !HAVE_GETPAGESIZE && !defined getpagesize.
80475
80476         * lib/mktime.c (leapyear): Arg is long int, not int.
80477
80478 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
80479
80480         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
80481
80482 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
80483
80484         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
80485         missing.  Problem reported by James Youngman.
80486
80487 2004-10-16  Simon Josefsson  <jas@extundo.com>
80488
80489         * gnulib-tool: Fix comments.  Fix parse problem.
80490         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
80491
80492 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
80493
80494         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
80495         implementation of getopt_long.  Problem reported by Alexander Taler in:
80496         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
80497
80498 2004-10-15  Bruno Haible  <bruno@clisp.org>
80499
80500         * gnulib-tool: Untabify. Initialize supplied_libname.
80501         (func_usage): More homogenous output.
80502         (func_modules_transitive_closure, func_modules_to_filelist,
80503         func_emit_lib_Makefile_am): New functions.
80504         (func_import): New function, extracted from big case statement. Use
80505         func_get_license, func_modules_transitive_closure,
80506         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
80507         opt_lgpl. Don't use test -a, as it's not portable.
80508         (func_create_testdir): Use func_modules_transitive_closure,
80509         func_modules_to_filelist, func_emit_lib_Makefile_am.
80510
80511 2004-10-15  Bruno Haible  <bruno@clisp.org>
80512
80513         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
80514
80515 2004-10-15  Bruno Haible  <bruno@clisp.org>
80516
80517         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
80518         the portions belonging to each module.
80519         Suggested by Derek Robert Price <derek@ximbiot.com>.
80520
80521 2004-10-12  Simon Josefsson  <jas@extundo.com>
80522
80523         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
80524         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
80525         to real functions.
80526
80527 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80528
80529         * modules/vsnprintf: New file.
80530
80531 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80532
80533         * m4/vsnprintf.m4: New file.
80534
80535 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80536
80537         * lib/vsnprintf.h: New file.
80538         * lib/vsnprintf.c: New file.
80539
80540 2004-10-11  Bruno Haible  <bruno@clisp.org>
80541
80542         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
80543         vsnprintf.
80544
80545 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
80546
80547         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
80548
80549 2004-10-07  Bruno Haible  <bruno@clisp.org>
80550
80551         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
80552         fits into the provided buffer.
80553
80554 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
80555
80556         * lib/diacrit.c, diacrit.h: Add GPL notice.
80557
80558         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
80559         notice.
80560         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
80561         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
80562         This avoids a potential constant-folding bug.
80563
80564 2004-10-05  Bruno Haible  <bruno@clisp.org>
80565
80566         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
80567         for the declaration of strsep.
80568
80569 2004-10-05  Bruno Haible  <bruno@clisp.org>
80570
80571         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
80572
80573 2004-10-04  Simon Josefsson  <jas@extundo.com>
80574
80575         * modules/memmem: New file.
80576         * tests/test-memmem.c: New file.
80577         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
80578
80579 2004-10-04  Simon Josefsson  <jas@extundo.com>
80580
80581         * m4/memmem.m4: New file.
80582
80583 2004-10-04  Simon Josefsson  <jas@extundo.com>
80584
80585         * lib/memmem.h: New file.
80586         * lib/memmem.c: New file, taken from glibc.
80587
80588 2004-10-04  Simon Josefsson  <jas@extundo.com>
80589
80590         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
80591         '#ifdef USE_UNLOCKED_IO'.
80592
80593 2004-10-04  Simon Josefsson  <jas@extundo.com>
80594
80595         * config/srclist.txt: Add memmem from glibc.
80596
80597 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80598
80599         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
80600
80601         * modules/argmatch, modules/argp, modules/closeout, modules/error,
80602         modules/exclude, modules/getdate, modules/getline,
80603         modules/getndelim2, modules/getpass, modules/getpass-gnu,
80604         modules/getusershell, modules/linebuffer, modules/md5,
80605         modules/mountlist, modules/posixtm, modules/readtokens,
80606         modules/readutmp, modules/regex, modules/sha1,
80607         modules/version-etc, modules/yesno:
80608         Remove dependency on unlocked-io.
80609
80610 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80611
80612         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
80613
80614         * m4/unlocked-io.m4: Add copyright notice.
80615         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
80616
80617 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80618
80619         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
80620         * lib/xmalloc.c (xmemdup): Likewise.
80621         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
80622         XFREE): Remove these long-obsolescent macros.
80623         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
80624         * lib/xstrdup.c: Remove.
80625
80626         * lib/regex.c (re_comp): Cast gettext return value to char *,
80627         Problem reported by Martin Neitzel via Mark D. Baushke.
80628
80629 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
80630
80631         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
80632         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
80633         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
80634         regex.c, sha1.c, version-etc.c, yesno.c:
80635         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
80636         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
80637         the includer's responsibility.
80638
80639         Sync from coreutils.
80640
80641         * lib/modechange.c (mode_compile): Don't decrement a pointer that
80642         points to the start of a string, as the C Standard says the
80643         resulting behavior is undefined.
80644
80645         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
80646         simple -> simple_backups, numbered_existing ->
80647         numbered_existing_backups, numbered -> numbered_backups
80648         to avoid shadowing problems.  All uses changed.
80649         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
80650         * lib/backupfile.c (check_extension, numbered_backup):
80651         Rename locals to avoid shadowing 'basename'.
80652         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
80653         once.
80654
80655         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
80656         * lib/.cvsignore: Add getopt.h.
80657
80658 2004-10-04  Bruno Haible  <bruno@clisp.org>
80659
80660         * modules/README: New file.
80661         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
80662         not a module.
80663
80664 2004-10-02  Jim Meyering  <jim@meyering.net>
80665
80666         * lib/dirfd.h, getpagesize.h: Add copyright notice.
80667
80668 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80669
80670         * modules/strsep: New file.
80671
80672 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80673
80674         * m4/strsep.m4: New file.
80675
80676 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80677
80678         * lib/strsep.h: New file.
80679         * lib/strsep.c: New file.
80680
80681 2004-10-01  Simon Josefsson  <jas@extundo.com>
80682
80683         * lib/snprintf.c (snprintf): Handle size==0.
80684
80685 2004-10-01  Simon Josefsson  <jas@extundo.com>
80686             Bruno Haible  <bruno@clisp.org>
80687
80688         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
80689         (snprintf): Declare 'args'.
80690
80691 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
80692
80693         * lib/snprintf.c: Remove comments as to why each header is needed.
80694
80695 2004-10-01  Bruno Haible  <bruno@clisp.org>
80696
80697         * MODULES.html.sh: Add strsep.
80698
80699 2004-09-30  Simon Josefsson  <jas@extundo.com>
80700
80701         * modules/snprintf: New file.
80702
80703 2004-09-30  Simon Josefsson  <jas@extundo.com>
80704
80705         * m4/snprintf.m4: New file.
80706
80707 2004-09-30  Simon Josefsson  <jas@extundo.com>
80708
80709         * lib/snprintf.h, lib/snprintf.c: New files.
80710
80711 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80712
80713         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
80714         (hol_entry_help): Never translate an empty string.
80715         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
80716         * lib/argp.h (OPTION_NO_TRANS): New option.
80717
80718 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80719
80720         * modules/argp (Maintainer): Replace Simon Josefsson
80721         by Sergey Poznyakoff.
80722
80723 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80724
80725         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
80726         changes merged back into glibc.
80727
80728 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
80729
80730         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
80731
80732 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80733
80734         * lib/xvasprintf.c: Include xalloc.h.
80735         (xvasprintf): Use xalloc_die, not xmalloc_die.
80736
80737 2004-09-29  Bruno Haible  <bruno@clisp.org>
80738
80739         * modules/alloca-opt: New file, derived from modules/alloca.
80740         * modules/allocsa: Depend on alloca-opt instead of alloca.
80741         * modules/setenv: Likewise.
80742         * modules/vasnprintf: Likewise.
80743         * MODULES.html.sh: Add alloca-opt.
80744
80745 2004-09-28  Simon Josefsson  <jas@extundo.com>
80746
80747         * gnulib-tool: New parameter --lgpl, to asseert that modules are
80748         LGPL, and to replace license template from GPL to LGPL.
80749
80750 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
80751
80752         * modules/dummy: Change license to LGPL.
80753
80754 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
80755
80756         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
80757
80758 2004-09-24  Simon Josefsson  <jas@extundo.com>
80759
80760         * modules/minmax (License): Change from GPL to LGPL.
80761
80762 2004-09-23  Simon Josefsson  <jas@extundo.com>
80763
80764         * gnulib-tool (--import): Typo.
80765
80766 2004-09-23  Simon Josefsson  <jas@extundo.com>
80767
80768         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
80769
80770 2004-09-22  Bruno Haible  <bruno@clisp.org>
80771
80772         * modules/*: Add 'License' field.
80773         * gnulib-tool: Accept --extract-license option.
80774         (func_get_license): New function.
80775
80776 2004-09-21  Bruno Haible  <bruno@clisp.org>
80777
80778         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
80779         Reported by Simon Josefsson.
80780
80781 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
80782
80783         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
80784         gl_AC_TYPE_LONG_LONG.
80785
80786 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
80787
80788         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
80789
80790 2004-09-18  Simon Josefsson  <jas@extundo.com>
80791         and  Paul Eggert  <eggert@cs.ucla.edu>
80792
80793         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
80794         calls with autoreconf.  Define GL_LIB.
80795
80796 2004-09-14  Karl Berry  <karl@gnu.org>
80797
80798         * config/srclist.txt: unsync setenv.c, sigh.
80799
80800 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
80801
80802         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
80803         Problem reported by Bruno Haible in:
80804         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
80805
80806 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
80807
80808         * config/srclist.txt: Comment out argp-pvh.c.
80809
80810 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
80811
80812         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
80813         in case some system header has #define'd it.  Problem reported by
80814         Soeren D. Schulze in
80815         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
80816
80817 2004-09-09  Karl Berry  <karl@gnu.org>
80818
80819         * regex.[ch]: delete from the root.  These were supposed to be
80820                 synced with emacs cvs, but this has not happened for about
80821                 a year, and anyway nothing else uses emacs regex.[ch].
80822                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
80823                 lib/regex[.ch] is untouched.
80824
80825 2004-09-09  Bruno Haible  <bruno@clisp.org>
80826
80827         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
80828
80829 2004-09-09  Bruno Haible  <bruno@clisp.org>
80830
80831         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
80832         modifications.
80833         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
80834
80835 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
80836
80837         * modules/xvasprintf: New file.
80838         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
80839
80840 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
80841
80842         * lib/xvasprintf.h: New file.
80843         * lib/xvasprintf.c: New file.
80844         * lib/xasprintf.c: New file.
80845
80846 2004-09-08  Bruno Haible  <bruno@clisp.org>
80847
80848         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
80849
80850 2004-09-08  Bruno Haible  <bruno@clisp.org>
80851
80852         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
80853         length is > INT_MAX.
80854         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
80855         more.
80856
80857 2004-09-08  Bruno Haible  <bruno@clisp.org>
80858
80859         * lib/stdint_.h: New file, taken from GNU clisp.
80860
80861 2004-09-08  Bruno Haible  <bruno@clisp.org>
80862             Oskar Liljeblad  <oskar@osk.mine.nu>
80863
80864         * modules/stdint: New file.
80865         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
80866
80867 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80868
80869         Import from coreutils.
80870         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
80871         strings on unbounded length.  alloca's performance benefits aren't
80872         that important here.
80873         (V_STRDUP): Remove.
80874         (parse_with_separator): New function, with most of the internals
80875         of the old parse_user_spec.  Allow user to omit both user and group,
80876         for compatibility with FreeBSD.
80877         Clone only the user name, not the entire spec.
80878         Do not set *uid, *gid unless entirely successful.
80879         Avoid memory leak in some failing cases.
80880         Fix regression for USER.GROUP reported by Dmitry V. Levin in
80881         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
80882         (parse_user_spec): Rewrite to use parse_with_separator.
80883
80884 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80885
80886         * modules/userspec: Don't depend on alloca.
80887
80888 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80889
80890         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
80891
80892 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80893
80894         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
80895         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
80896         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
80897
80898 2004-08-16  Simon Josefsson  <jas@extundo.com>
80899
80900         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
80901         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
80902         Add --dry-run for --import.
80903         Let user provided command line parameters override configure.ac
80904         settings.
80905
80906 2004-08-12  Simon Josefsson  <jas@extundo.com>
80907
80908         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
80909         as discussed with Paul Eggert in threads rooted at
80910         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
80911         and
80912         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
80913         Before, the test was empty, and relied on ELIDE_CODE in source
80914         code.)
80915         (gl_PREREQ_GETOPT): New macro.
80916         (gl_GETOPT): Use them.
80917
80918 2004-08-12  Simon Josefsson  <jas@extundo.com>
80919
80920         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
80921         * lib/getopt_.h: Renamed from getopt.h.
80922
80923 2004-08-12  Simon Josefsson  <jas@extundo.com>
80924
80925         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
80926         Change default library name from libfoo to libgnu.
80927         Now, if you have a configure.ac that says:
80928                 gl_SOURCE_BASE(gl)
80929                 gl_M4_BASE(gl/m4)
80930                 gl_MODULES(error getopt etcetera)
80931                 gl_INIT
80932         you can import all you need by running:
80933                 ../gnulib/gnulib-tool --import
80934
80935         * modules/getopt (Files): Rename getopt.h to getopt_.h.
80936         (Makefile.am): Rewrite, use logic from argz.
80937         (Include): Use <getopt.h> instead of "getopt.h".
80938
80939 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80940
80941         * modules/argp (Files): Add m4/unlocked-io.m4.
80942         (Depends-on): Add extensions.
80943
80944 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80945
80946         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
80947         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
80948         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
80949         Check for program_invocation_name, program_invocation_short_name,
80950         flockfile, funlockfile, features.h, _getopt_long_only_r.
80951
80952 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80953
80954         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
80955         its complicated substitute.
80956         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
80957         and program_invocation_name.
80958         (__argp_basename) [!_LIBC]: Remove; the only use was
80959         replaced by its body.
80960         (__argp_short_program_name): Change condition from
80961         !defined __argp_short_program_name to
80962         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
80963         to match argp-namefrob.h.
80964         (__argp_failure): Don't assume strerror_r returns char *.
80965         * lib/argp-parse.c (N_): Define unconditionally.
80966         (argp_default_options): Fill out initializers with 0 to avoid
80967         gcc warnings.
80968
80969 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
80970
80971         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
80972         getopt1.c.
80973
80974 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80975
80976         Merge from coreutils.
80977
80978         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
80979
80980         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
80981         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
80982
80983 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
80984
80985         Merge from coreutils.
80986
80987         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
80988         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
80989         for Reliant Unix 5.43.
80990
80991         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
80992         (union fooround): Use uintmax_t, not long int.
80993         The rest is a merge from libc:
80994         [defined _LIBC]: Include <shlib-compat.h>.
80995         (_obstack) [defined _LIBC]: Remove after 2.3.4.
80996
80997         * lib/settime.c (settime): Recode to avoid warning with
80998         Sun Forte C 6U2.
80999
81000         * lib/strverscmp.c: Convert to UTF-8.
81001
81002 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81003
81004         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
81005         m4/uintmax_t.m4.
81006
81007 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81008
81009         * modules/xalloc-die: New file.
81010         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
81011
81012         * modules/md5 (Files): Add m4/uint32_t.m4.
81013         * modules/sha1: Renamed from modules/sha.
81014         (Files):
81015         Rename lib/sha.h to lib/sha1.h.
81016         Rename lib/sha.c to lib/sha1.c.
81017         Rename m4/sha.m4 to m4/sha1.m4.
81018         (lib_SOURCES): Likewise.
81019         (configure.ac): Rename gl_SHA to gl_SHA1.
81020         (Include): sha.h -> sha1.h.
81021
81022 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81023
81024         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
81025         * m4/sha1.m4: Renamed from sha.m4.
81026         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
81027
81028 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81029
81030         * lib/obstack.h (obstack_empty_p):
81031         Don't assume that chunk->contents is suitably aligned.
81032         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
81033         Likewise. Problem reported by Benno in
81034         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
81035
81036         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
81037         readable.  This could be improved further but it'd take some work.
81038
81039 2004-08-08  Simon Josefsson  <jas@extundo.com>
81040
81041         * modules/xgethostname (Depends-on): Remove exit and error (not
81042         used).
81043
81044         * modules/getpass-gnu: Add getpass.h.
81045         (Depends-on): Add stdbool.
81046         * modules/getpass: Add getpass.h.
81047
81048 2004-08-08  Simon Josefsson  <jas@extundo.com>
81049
81050         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
81051         Check getpass declaration.
81052
81053 2004-08-08  Simon Josefsson  <jas@extundo.com>
81054
81055         * lib/xgethostname.c: Don't include error.h (not used).
81056
81057         * lib/getpass.h: Add.
81058         * lib/getpass.c: Include getpass.h first.
81059
81060 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
81061
81062         * lib/xalloc-die.c: New file.
81063         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
81064         All uses removed.
81065         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
81066         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
81067         xalloc-die.c.
81068         (_, N_, xalloc_die): Move to xalloc-die.c.
81069         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
81070         so that we needn't mess with xalloc_msg_memory_exhausted.
81071
81072         * lib/sha1.h: Renamed from sha.h.
81073         (SHA1_H): Renamed from _SHA_H.
81074         (sha1_ctx): Renamed from sha_ctx.
81075         (sha1_init_ctx): Renamed from sha_init_ctx.
81076         (sha1_process_block): Renamed from sha_process_block.
81077         (sha1_process_bytes): Renamed from sha_process_bytes.
81078         (sha1_finish_ctx): Renamed from sha_finish_ctx.
81079         (sha1_read_ctx): Renamed from sha_read_ctx.
81080         (sha1_stream): Renamed from sha_stream.
81081         (sha1_buffer): Renamed from sha_buffer.
81082         * lib/sha1.c: Likewise; renamed from sha.c.
81083         Do not include <sys/types.h>.
81084         Include <stddef.h> rather than <stdlib.h>.
81085
81086 2004-08-08  Bruno Haible  <bruno@clisp.org>
81087
81088         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
81089         FILESYSTEM_PREFIX_LEN.
81090         * lib/progreloc.c: Likewise.
81091         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
81092
81093 2004-08-06  Simon Josefsson  <jas@extundo.com>
81094
81095         * modules/progname (Depends-on): Don't depend on stdbool.
81096
81097 2004-08-06  Simon Josefsson  <jas@extundo.com>
81098
81099         * modules/getsubopt: New file.
81100         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81101         getsubopt.
81102
81103 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81104
81105         More merge from coreutils.
81106
81107         * m4/utimens.m4, m4/utimecmp.m4: New files.
81108         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
81109         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
81110         prereq.m4, sha.m4: Import changes from coreutils.
81111
81112 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81113
81114         More merge from coreutils.
81115         * modules/raise, modules/readtokens0, modules/utimens:
81116         * modules/utimecmp, module/xnanosleep: New files.
81117         * modules/strftime: Add lib/strftime.h.
81118         Change include from <time.h> to "strftime.h".
81119         * modules/yesno: Add lib/yesno.h.
81120         * modules/backupfile: Remove lib/addext.c.
81121         * modules/euidaccess: Add stat-macros.h.
81122         * modules/canonicalize, modules/euidaccess,
81123         modules/filemode, modules/lchown, modules/makepath,
81124         modules/rmdir, modules/stat: Likewise.
81125
81126 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81127
81128         Merge from tar.
81129         * lib/argp-help.c (make_hol, hol_append): Don't assume that
81130         SIZE_MAX is a valid preprocessor constant.
81131         (__argp_basename): Change from "#ifndef _LIBC"
81132         to "#ifndef __argp_short_program_name", so that
81133         we don't compile these functions for tar.
81134
81135         More merges from coreutils.
81136         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
81137         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
81138         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
81139         * lib/addext.c: Remove; no longer needed.
81140         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
81141         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
81142         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
81143         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
81144         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
81145         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
81146         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
81147         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
81148         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
81149         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
81150         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
81151         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
81152         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
81153         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
81154         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
81155         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
81156         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
81157         Import changes from coreutils.
81158
81159 2004-08-05  Simon Josefsson  <jas@extundo.com>
81160
81161         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
81162
81163 2004-08-05  Simon Josefsson  <jas@extundo.com>
81164
81165         * m4/getsubopt.m4: New file.
81166
81167 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81168
81169         Merge from coreutils.
81170
81171         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
81172         * m4/getcwd-path-max.m4: New files.
81173
81174         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
81175         FILESYSTEM_PREFIX_LEN ->
81176         FILE_SYSTEM_PREFIX_LEN.
81177         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
81178         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
81179         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
81180         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
81181
81182         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
81183         prerequisite modules now handle the DOS stuff.
81184         Don't check for unistd.h.
81185
81186 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81187
81188         Merge from coreutils.
81189
81190         * lib/.gdb-history: Remove; this doesn't belong here.
81191
81192         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
81193         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
81194         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
81195         * lib/getcwd.c: New files.
81196
81197         * lib/dirname.h: Include <stdbool.h>.
81198         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
81199         for consistency with POSIX terminology.  All uses changed.
81200         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
81201         (strip_trailing_slashes): Use bool for booleans.
81202         * lib/stripslash.c (strip_trailing_slashes): Likewise.
81203
81204         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
81205         sometimes returns a positive errno value even when it succeeds.
81206         (print_errno_message) [!LIBC]: Fall back on strerror if
81207         __strerror_r fails.
81208
81209         * lib/path-concat.c (mempcpy): Don't define if a system header defines
81210         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
81211         (longest_relative_suffix): New function.
81212         (path_concat): Use it.  Assume first argument is not NULL.
81213         Port to DOS.  Omit redundant separators.
81214         Report an error instead of returning NULL.
81215         Use mempcpy instead of memcpy.
81216         (xpath_concat): Remove: not declared or used.
81217
81218         * lib/same.h: Include <stdbool.h>
81219         (same_name): Return bool, not int.
81220         * lib/same.c (same_name): Likewise.
81221         (errno): Don't declare; we assume C89 or better now.
81222
81223         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
81224         if not already defined.
81225
81226         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
81227         * lib/dup-safer.c (errno): Likewise.
81228
81229 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
81230
81231         Merge from coreutils.
81232         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
81233         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
81234         * modules/path-concat: Don't depend on strdup.
81235
81236 2004-08-03  Simon Josefsson  <jas@extundo.com>
81237
81238         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
81239         * lib/progname.h: Don't include stdbool.h.
81240
81241 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81242
81243         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
81244         * MODULES.html.sh (func_all_modules): Remove fatal.
81245
81246 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81247
81248         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
81249
81250 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
81251
81252         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
81253         working.
81254
81255 2004-08-02  Simon Josefsson  <jas@extundo.com>
81256
81257         * lib/getsubopt.h: New file, with comments from Bruno Haible.
81258         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
81259         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
81260
81261 2004-08-01  Simon Josefsson  <jas@extundo.com>
81262
81263         * lib/xgetdomainname.c: Include stdlib.h, for free().
81264
81265 2004-07-19  Bruno Haible  <bruno@clisp.org>
81266
81267         * MODULES.html.sh (func_all_modules): Add dummy.
81268
81269 2004-07-16  Simon Josefsson  <jas@extundo.com>
81270
81271         * modules/dummy: New file.
81272
81273 2004-07-16  Simon Josefsson  <jas@extundo.com>
81274
81275         * lib/dummy.c: New file.
81276
81277 2004-07-16  Bruno Haible  <bruno@clisp.org>
81278
81279         * lib/backupfile.h: Add extern "C" for C++.
81280         * lib/closeout.h: Likewise.
81281         * lib/copy-file.h: Likewise.
81282         * lib/findprog.h: Likewise.
81283         * lib/full-write.h: Likewise.
81284         * lib/pathname.h: Likewise.
81285         * lib/progname.h: Likewise.
81286         * lib/stpcpy.h: Likewise.
81287         * lib/stpncpy.h: Likewise.
81288         * lib/strcase.h: Likewise.
81289         * lib/strstr.h: Likewise.
81290         * lib/xalloc.h: Likewise.
81291
81292         * lib/mbswidth.h: Add extern "C" for C++.
81293         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
81294
81295 2004-07-13  Robert Millan  <robertmh@gnu.org>
81296
81297         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
81298
81299 2004-07-09  Simon Josefsson  <jas@extundo.com>
81300
81301         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
81302         failed without this.)
81303
81304 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81305
81306         * modules/chown (Files): Add lib/fchown-stub.c, since
81307         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
81308
81309 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
81310
81311         * lib/fchown-stub.c: New file.
81312
81313 2004-06-24  Jim Meyering  <jim@meyering.net>
81314
81315         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
81316
81317 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81318
81319         * modules/argz: Omit "#include".
81320
81321         * MODULES.html.sh (func_all_modules): Add calloc, to match
81322         2004-06-01 addition of calloc module.
81323
81324 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81325
81326         * m4/argz.m4: New file, which is autoupdated from libtool.
81327
81328 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81329
81330         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
81331         libtool.
81332
81333 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81334
81335         * config/srclist-update: Don't insist on "USA." before the
81336         close-comment, as libtool omits the period and puts the */ on a
81337         separate line.
81338         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
81339         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
81340
81341 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
81342
81343         * modules/argz: New file.
81344         * MODULES.html.sh (func_all_modules): Add argz.
81345
81346 2004-06-12  Jim Meyering  <jim@meyering.net>
81347         and  Paul Eggert  <eggert@cs.ucla.edu>
81348
81349         * modules/hash (Files): Add lib/xalloc.h.
81350         * modules/pipe (Depends-on): Add wait-process.
81351         * modules/stat (Depends-on): Add xalloc.
81352         * modules/userspec (Files): Add lib/userspec.h.
81353         * modules/xstrto
81354
81355         Upgrade from gettext-0.13.
81356         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
81357         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
81358         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
81359
81360 2004-06-10  Jim Meyering  <jim@meyering.net>
81361
81362         * lib/calloc.c: New file.
81363
81364 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
81365
81366         * lib/getdate.y (yylex): Allow space between sign and number.
81367         Problem reported by Dan Jacobson.
81368
81369 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
81370
81371         Merge from coreutils CVS.
81372
81373         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
81374         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
81375         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
81376         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
81377         xstrtol.m4: Fix copyright date and/or serial number.
81378
81379         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
81380         See if we need an fchown replacement.
81381         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
81382         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
81383         and use the replacement function if we detect either defect.
81384
81385         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
81386         gl_UTIMECMP.
81387
81388 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
81389         and  Jim Meyering  <jim@meyering.net>
81390
81391         Merge from coreutils CVS.
81392
81393         * lib/stat-macros.h: New file, with contents from file-type.h
81394         and coreutils' system.h.
81395         * lib/file-type.c: Include "stat-macros.h".
81396         * lib/file-type.h (file_type): Move all macro definitions to new file,
81397         stat-macros.h.
81398
81399         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
81400         Wrap old code with this conditional.
81401         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
81402         function that does not dereference symlinks.
81403         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
81404
81405         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
81406         dependency problems.
81407         (xreadlink): Accept new arg SIZE, for efficiency.
81408         All decls and uses changed.
81409         * lib/xreadlink.h: Include <stddef.h>, for size_t.
81410
81411         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
81412         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
81413
81414         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
81415         sysexits.h.
81416
81417 2004-06-01  Jim Meyering  <jim@meyering.net>
81418
81419         * m4/calloc.m4: New file.
81420
81421 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
81422
81423         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
81424         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
81425         Also, fix a typo in a diagnostic.
81426
81427 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
81428
81429         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
81430         or AC_FUNC_REALLOC.
81431
81432 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
81433
81434         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
81435         macros to be defined.
81436         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
81437         the allocator returns NULL because the requested size is zero.
81438
81439 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81440
81441         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
81442         var.  Add comment explaining why libc still defines it.  This
81443         merges the following patch from glibc:
81444         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
81445
81446 2004-05-20  Andreas Schwab  <schwab@suse.de>
81447
81448         * m4/free.m4: Replace free if it not known to work, not the other
81449         way round.
81450
81451 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81452
81453         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
81454         present in glibc since revision 1.1 of this file.
81455         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
81456         obstack_alignment_mask, obstack_alloc, obstack_base,
81457         obstack_blank, obstack_blank_fast, obstack_chunk_size,
81458         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
81459         obstack_grow0, obstack_init, obstack_int_grow,
81460         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
81461         obstack_next_free, obstack_object_size, obstack_ptr_grow,
81462         obstack_ptr_grow_fast, obstack_room): Remove declarations of
81463         nonexistent functions.
81464
81465 2004-05-18  Karl Berry  <karl@gnu.org>
81466
81467         * config/srclist.txt: break link for vasnprintf.c.
81468
81469 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81470
81471         Port obstack to the AS/400, where pointers are 16 bytes wide and
81472         you cannot cast an integer to a valid pointer.  This patch is
81473         currently waiting to be integrated into glibc; see
81474         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
81475
81476         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
81477         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
81478         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
81479         (struct obstack): temp member is now a union of a pointer and
81480         an integer, instead of an integer.  All integer uses changed.
81481         This does not affect the physical layout of struct obstack,
81482         except on hosts (like the AS/400) where the size or alignment of
81483         void * is greater than that of ptrdiff_t.
81484         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
81485         __STDC__)]: Store temporary in pointer member of union, not
81486         integer member.
81487         * lib/obstack.c: Include <stddef.h>, for offsetof.
81488         (struct fooalign): Remove; it doesn't need a name.
81489         (union fooround): Change double to long double, and add void *.
81490         (DEFAULT_ALIGNMENT): Use offsetof to compute.
81491         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
81492         not a macro.  Hence the values are always int; so remove all
81493         casts-to-int in uses.
81494
81495 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
81496
81497         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
81498         we can get this patch merged into glibc.
81499
81500 2004-05-17  Derek R. Price  <derek@ximbiot.com>
81501             Paul Eggert  <eggert@cs.ucla.edu>
81502
81503         * m4/argp: Depend on alloca.
81504
81505 2004-05-17  Derek R. Price  <derek@ximbiot.com>
81506             Paul Eggert  <eggert@cs.ucla.edu>
81507
81508         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
81509         freecoding.
81510
81511 2004-05-17  Bruno Haible  <bruno@clisp.org>
81512
81513         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
81514         precision that consists of a '.' followed by an empty digit string.
81515         Patch by Tor Lillqvist <tml@iki.fi>.
81516
81517 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
81518
81519         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
81520         for backward compatibility with older code.  We need our own
81521         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
81522         it under some other name, and our alloca.h will define it.
81523
81524 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
81525             Derek Price  <derek@ximbiot.com>
81526
81527         * lib/alloca.c: Include <alloca.h>, to get our interface.
81528         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
81529         include <alloca.h> first.  Use C89 prototype for alloca; this
81530         requires including <stddef.h> for size_t.  Use extern "C" if C++.
81531         Use #elif for simplicity, since we can assume C89 now.
81532         Don't try to source the system alloca.h since it will not be found
81533         and to prevent recursively including its replacement.
81534         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
81535         * lib/regex.c: Likewise.
81536
81537 2004-05-16  Derek Price  <derek@ximbiot.com>
81538             Paul Eggert  <eggert@cs.ucla.edu>
81539
81540         getline cleanup.  This changes the getndelim2 API: both order of
81541         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
81542         no delimiter).
81543
81544         * lib/getline.c: Don't include stddef.h or stdio.h, since our
81545         interface does that.
81546         (getline): Always use getdelim, so that we don't have two
81547         copies of this code.
81548         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
81549         if available.
81550         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
81551         (GETNDELIM2_MAXIMUM): New macro.
81552         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
81553         instead of the old practice of delim2==0.  All callers changed.
81554         Return -1 on overflow, instead of returning junk.
81555         Do not set *linesize unless allocation succeeds.
81556         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
81557         that we include sys/types.h.
81558         * lib/getnline.h: Likewise.
81559         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
81560         (getndelim2): Reorder arguments.
81561         * lib/getnline.c (getnline, getndelim):
81562         Don't discard the NMAX argument.
81563         (getnline): Invoke getndelim, to avoid code duplication.
81564         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
81565         of (size_t) -1 by callers of the getnline family.
81566
81567 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81568
81569         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
81570         Check for gettimeofday.
81571         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
81572         Check for settimeofday, stime.
81573
81574 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81575
81576         * lib/nanosleep.c (suspended): Change its type from int to
81577         sig_atomic_t volatile.
81578         (first_call): Make it private to rpl_nanosleep, and have it
81579         be zero initially as that's a bit faster.
81580         (my_usleep): Round up fractional times instead of truncating them,
81581         as this is the usual meaning for 'sleep'.
81582
81583         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
81584         doesn't work.
81585         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
81586         (ENOSYS): Define if not defined.
81587         (settime): Fall back on stime if it exists and settimeofday fails.
81588         But don't bother with fallbacks if a method fails with errno == EPERM.
81589
81590 2004-05-11  Jim Meyering  <jim@meyering.net>
81591
81592         Prior to this change, the save_cwd caller required read access to the
81593         current directory on most systems (ones with the fchdir function).
81594
81595         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
81596         fails, try write-only, and finally, resort to using xgetcwd.
81597
81598 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
81599
81600         * lib/obstack.c, obstack.h: Import changes from libc.
81601
81602 2004-04-28  Bruno Haible  <bruno@clisp.org>
81603
81604         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
81605         also implicitly appends .exe to executables.
81606         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
81607         accepts Windows pathnames.
81608         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
81609         Treat Cygwin like Windows, since it now accepts Windows pathnames.
81610         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
81611         Treat Cygwin like Windows, since it now accepts Windows pathnames.
81612         Reported by Derek Robert Price <derek@ximbiot.com>.
81613
81614 2004-04-21  Karl Berry  <karl@gnu.org>
81615
81616         * config/srclist.txt (localcharset.c): break sync.
81617
81618 2004-04-20  Paul Eggert  <eggert@twinsun.com>
81619
81620         * m4/host-os.m4: Add a copyright notice.
81621
81622 2004-04-20  Jim Meyering  <jim@meyering.net>
81623
81624         Change UTILS_ to gl_ in AC_DEFINE'd names.
81625         Change utils_- and jm_-prefixed variables, too.
81626         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
81627         UTILS_FUNC_MKDIR_TRAILING_SLASH.
81628         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
81629
81630         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
81631         Don't emit trailing blanks.
81632         Also rename jm_-prefixed variables to have gl_ prefix.
81633
81634         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
81635         Also rename jm_-prefixed variables to have gl_ prefix.
81636
81637         * m4/jm-macros.m4: Reflect the renamings.
81638         * m4/prereq.m4: Likewise.
81639
81640 2004-04-20  Jim Meyering  <jim@meyering.net>
81641
81642         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
81643         memory.
81644
81645 2004-04-20  Jim Meyering  <jim@meyering.net>
81646             Bruno Haible  <bruno@clisp.org>
81647
81648         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
81649         memory when realloc fails.
81650
81651 2004-04-19  Jim Meyering  <jim@meyering.net>
81652
81653         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
81654         now that readutmp.c may call `free (0)'.
81655
81656 2004-04-19  Bruno Haible  <bruno@clisp.org>
81657
81658         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
81659         * m4/inttypes_h.m4: Likewise.
81660         * m4/stdint_h.m4: Likewise.
81661         * m4/intmax_t.m4: Likewise.
81662         * m4/uintmax_t.m4: Likewise.
81663
81664 2004-04-18  Jim Meyering  <jim@meyering.net>
81665
81666         * m4/prereq.m4: Don't forbid jm_ prefix.
81667
81668         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
81669         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
81670         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
81671         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
81672         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
81673         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
81674         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
81675         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
81676         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
81677         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
81678         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
81679         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
81680         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
81681         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
81682         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
81683         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
81684         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
81685         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
81686         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
81687
81688 2004-04-18  Jim Meyering  <jim@meyering.net>
81689
81690         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
81691         failure, don't leak memory and do call END_UTMP_ENT.
81692
81693 2004-04-16  Jim Meyering  <jim@meyering.net>
81694
81695         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
81696         coreutils' stat program.
81697         (gl_PREREQ): Don't require jm_PREREQ_STAT.
81698
81699 2004-04-11  Paul Eggert  <eggert@twinsun.com>
81700
81701         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
81702         C89.
81703         (CHAR_BIT): Remove, since we assume C89.
81704         Include <stdint.h> if available, as per current Autoconf CVS advice.
81705
81706 2004-03-31  Jim Meyering  <jim@meyering.net>
81707
81708         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
81709         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
81710         * m4/xalloc.m4: Likewise.
81711
81712 2004-03-30  Paul Eggert  <eggert@twinsun.com>
81713
81714         Merge from coreutils.
81715
81716         * m4/inttostr.m4: New file.
81717         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
81718         Require AM_STDBOOL_H and gl_TIMESPEC instead.
81719         Require gl_CLOCK_TIME.
81720         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
81721
81722 2004-03-30  Paul Eggert  <eggert@twinsun.com>
81723
81724         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
81725         not bool, to be more consistent with Unix conventions.
81726         Suggested by Bruno Haible.
81727
81728         Merge from coreutils.
81729
81730         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
81731         * lib/umaxtostr.c: New files.
81732
81733         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
81734         the usual <time.h> dance.
81735         (get_date): Change signature to support fractional time stamps.
81736         All callers changed.
81737         * lib/getdate.y: Include "getdate.h" first, as we can now
81738         assume C89 and don't need to worry about 'const'.
81739         Similarly, include "unlocked-io.h" near start, not in middle.
81740         Include <limits.h>.
81741         (textint.value): Use long int rather than int.
81742         (textint.digits): Use size_t rather than int.
81743         (BILLION, LOG10_BILLION): New constants.
81744         (parser_control): New member rel_ns.  Members day_ordinal,
81745         time_zone, month, day, hour, minutes, rel_year, rel_month,
81746         rel_day, rel_hour, rel_minutes, rel_seconds
81747         are now long int, not int.  Member seconds is now struct timespec,
81748         not int.  New member timespec_seen.  Members dates_seen, days_seen,
81749         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
81750         not int.
81751         (%union.intval): Now long int, not int.
81752         New member timespec.
81753         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
81754         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
81755         (spec): Now is a timespec or an item list.
81756         (timespec, items): New nonterminals.
81757         (time, rel, relunit, number, get_date):
81758         Add support for fractional seconds.
81759         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
81760         (gmtime, localtime, mktime): Remove decls; not needed with C89.
81761         (to_hour): First arg is now long int, not int.
81762         (to_year): Returns long int, not int.
81763         Don't treat year -70 like 70.
81764         (tm_diff): Returns long int, not int.
81765         (lookup_word): Use bool instead of int when appropriate.
81766         (yylex): Use size_t for count, not int.
81767         Detect overflow when parsing large integer constants.
81768         Add support for fractions.
81769         (get_date): Make pointers 'const' if possible.
81770         Use more-portable code to detect integer overflow.
81771         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
81772         Don't use ctime; it's not reliable if the year has >4 digits.
81773
81774         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
81775         This is for compatibility with BSD.
81776
81777         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
81778         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
81779         From coreutils' system.h.
81780
81781         * lib/userspec.c: Don't include "posixver.h".
81782         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
81783         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
81784         compatible extension.  Simplify code by removing a boolean int
81785         that was always nonzero if a string was nonnull.
81786
81787 2004-03-30  Jim Meyering  <jim@meyering.net>
81788
81789         Merge from coreutils.
81790
81791         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
81792         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
81793         on some systems one must include <grp.h> before it.
81794         Reported by Christian Krackowizer.
81795
81796 2004-03-30  Jim Meyering  <jim@meyering.net>
81797
81798         Merge from coreutils.
81799
81800         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
81801
81802         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
81803         an empty input stream.
81804
81805         * lib/readtokens.c: Include <stdbool.h>.
81806         (readtoken): Use `size_t' rather than int/long.
81807         All callers adjusted.
81808         Use `bool' rather than `int' where appropriate.
81809         Use memset rather than an explicit loop.
81810         Use x2nrealloc rather than xrealloc.
81811         Allow the use of `\0' as a delimiter.
81812         (readtokens): Likewise.
81813         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
81814
81815 2004-03-30  Jim Meyering  <jim@meyering.net>
81816
81817         * m4/realloc.m4: Remove file, since now it does no more than
81818         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
81819         the `configure.ac' section of module/realloc.
81820         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
81821
81822 2004-03-30  Bruno Haible  <bruno@clisp.org>
81823
81824         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
81825         nonnull.
81826
81827 2004-03-29  Paul Eggert  <eggert@twinsun.com>
81828
81829         Merge changes to getloadavg.c from coreutils and Emacs.
81830
81831         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
81832         Define to an expression, not to the empty string.
81833         Include cloexec.h and xalloc.h.
81834         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
81835         Use set_cloexec_flag rather than rolling our own.
81836         * lib/cloexec.c, lib/cloexec.h: New files.
81837
81838 2004-03-29  Paul Eggert  <eggert@twinsun.com>
81839
81840         * m4/cloexec.m4: New file.
81841
81842 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81843
81844         * lib/getopt.h: Sync with libc CVS.
81845
81846 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81847             Bruno Haible  <bruno@clisp.org>
81848
81849         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
81850         mbswidth.
81851
81852 2004-03-18  Paul Eggert  <eggert@twinsun.com>
81853             Bruno Haible  <bruno@clisp.org>
81854
81855         * lib/mbswidth.h: Include <wchar.h> only if
81856         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
81857         <wchar.h>.
81858         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
81859
81860 2004-03-09  Paul Eggert  <eggert@twinsun.com>
81861
81862         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
81863         Sync with libc CVS.
81864         * lib/getopt_int.h: New file, also synced from libc.
81865
81866 2004-03-09  Paul Eggert  <eggert@twinsun.com>
81867
81868         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
81869         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
81870         Bring back getopt.c, getopt.h, getopt1.c.
81871
81872 2004-03-07  Paul Eggert  <eggert@twinsun.com>
81873
81874         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
81875         All uses changed.  Check for sa_sigaction member; this fixes
81876         a bug first reported by Jason Andrade in
81877         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
81878
81879 2004-03-07  Paul Eggert  <eggert@twinsun.com>
81880
81881         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
81882         '#if' expressions.  Unlike the code it replaces, it does not
81883         depend on (defined _SC_PAGESIZE).  However, it does depend on
81884         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
81885         first reported by Jason Andrade in
81886         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
81887
81888 2004-02-25  Simon Josefsson  <jas@extundo.com>
81889
81890         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
81891
81892 2004-02-25  Simon Josefsson  <jas@extundo.com>
81893
81894         * lib/strdup.h: New file.
81895         * lib/strdup.c: Include it.
81896         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
81897         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
81898
81899 2004-02-23  Karl Berry  <karl@gnu.org>
81900
81901         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
81902         (from fencepost.gnu.org:/gd/gnuorg).
81903
81904 2004-02-23  Karl Berry  <karl@gnu.org>
81905
81906         * config/srclistvars.sh (GNUORG) [karl]: redefine.
81907         * config/srclist.txt: add maintain/standards documents.
81908
81909 2004-02-18  Bruno Haible  <bruno@clisp.org>
81910
81911         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
81912         Reported by Derek Robert Price <derek@ximbiot.com>.
81913
81914 2004-02-16  Karl Berry  <karl@gnu.org>
81915
81916         * config/mkinstalldirs, install-sh: update from automake.
81917
81918 2004-02-06  Karl Berry  <karl@gnu.org>
81919
81920         * m4/po.m4: update from gettext 0.14.1.
81921
81922 2004-02-06  Karl Berry  <karl@gnu.org>
81923
81924         * lib/config.charset: update from gettext 0.14.1.
81925
81926 2004-02-05  Paul Eggert  <eggert@twinsun.com>
81927
81928         Add comments and code, prompted by suggestions from Bruno Haible
81929         for sh-quote.
81930         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
81931         describing the enum quoting_style values.
81932         * lib/quotearg.c (quotearg_alloc): New function.
81933         (quotearg_buffer_restyled): Treat lone { and } as special.
81934         Treat = as special.  Work around bug with older shells
81935         that "see" a '\' that is really the 2nd byte of a multibyte char.
81936         Quote empty string with shell_quoting_style.
81937
81938 2004-02-03  Bruno Haible  <bruno@clisp.org>
81939
81940         * m4/pipe.m4: New file, from GNU gettext.
81941
81942 2004-02-03  Bruno Haible  <bruno@clisp.org>
81943
81944         * lib/pipe.h: New file, from GNU gettext.
81945         * lib/pipe.c: New file, from GNU gettext.
81946
81947 2004-01-27  Bruno Haible  <bruno@clisp.org>
81948
81949         * m4/execute.m4: New file, from GNU gettext.
81950
81951 2004-01-27  Bruno Haible  <bruno@clisp.org>
81952
81953         * lib/execute.h: New file, from GNU gettext.
81954         * lib/execute.c: New file, from GNU gettext.
81955         * lib/w32spawn.h: New file, from GNU gettext.
81956
81957 2004-01-24  Paul Eggert  <eggert@twinsun.com>
81958
81959         Merge from diffutils.
81960
81961         * lib/file-type.c (file_type): Add typed memory objects.
81962         * lib/file-type.h (S_TYPEISTMO): New macro.
81963
81964         * lib/c-stack.h (c_stack_action): Remove argv argument.
81965         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
81966         (die): Don't calculate message unless segv_action returns.
81967         (get_stack_location, min_address_from_argv, max_address_from_argv,
81968         volatile stack_base, volatile_stack_size): Remove.
81969         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
81970         that every segmentation violation is a stack overflow.  (Ouch!)
81971         See Debian bug 136249 (still outstanding) for more info about why
81972         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
81973
81974 2004-01-24  Paul Eggert  <eggert@twinsun.com>
81975
81976         Exit-status fix from coreutils.
81977
81978         Use exit_failure consistently in place of EXIT_FAILURE,
81979         so that program exit statuses are consistent on failure.
81980
81981         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
81982         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
81983         * lib/argmatch.h: Comment fix to match the above.
81984         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
81985         Now a macro referring to exit_failure, instead of a separate
81986         variable.  Include "exitfail.h" to get it.
81987         * lib/xstrtol.h: Include "exitfail.h".
81988         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
81989
81990         * lib/long-options.c (parse_long_options): Use prototype
81991         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
81992         for clarity.
81993
81994 2004-01-21  Jim Meyering  <jim@meyering.net>
81995
81996         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
81997         so as not to conflict with a different-sized __mktime_internal
81998         function in GNU libc.
81999         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
82000         Problem building statically-linked `ls' reported by Michael Brunnbauer.
82001
82002 2004-01-20  Karl Berry  <karl@gnu.org>
82003
82004         * config/config.guess: update from config.
82005
82006         * config/srclistvars.sh: GNUWWWLICENSES for karl.
82007
82008 2004-01-20  Bruno Haible  <bruno@clisp.org>
82009
82010         Safer stack allocation.
82011         * lib/setenv.c: Include allocsa.h.
82012         (alloca): Remove fallback definition.
82013         (freea): Remove macro.
82014         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
82015         instead of freea.
82016
82017 2004-01-20  Bruno Haible  <bruno@clisp.org>
82018
82019         * m4/eealloc.m4: New file, from GNU gettext.
82020
82021 2004-01-20  Bruno Haible  <bruno@clisp.org>
82022
82023         * m4/allocsa.m4: New file, from GNU gettext.
82024
82025 2004-01-20  Bruno Haible  <bruno@clisp.org>
82026
82027         * lib/xallocsa.h: New file, from GNU gettext.
82028         * lib/xallocsa.c: New file, from GNU gettext.
82029
82030 2004-01-20  Bruno Haible  <bruno@clisp.org>
82031
82032         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
82033
82034 2004-01-20  Bruno Haible  <bruno@clisp.org>
82035
82036         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
82037         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
82038         specially.
82039
82040 2004-01-20  Bruno Haible  <bruno@clisp.org>
82041
82042         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
82043         patch.
82044
82045 2004-01-20  Bruno Haible  <bruno@clisp.org>
82046
82047         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
82048
82049 2004-01-20  Bruno Haible  <bruno@clisp.org>
82050
82051         * lib/eealloc.h: New file.
82052
82053 2004-01-20  Bruno Haible  <bruno@clisp.org>
82054
82055         * lib/binary-io.h: Avoid warnings on Cygwin.
82056
82057 2004-01-20  Bruno Haible  <bruno@clisp.org>
82058
82059         * lib/allocsa.h: New file, from GNU gettext.
82060         * lib/allocsa.c: New file, from GNU gettext.
82061
82062 2004-01-18  Karl Berry  <karl@gnu.org>
82063
82064         * doc/gpl.texi, doc/lgpl.texi: new files.
82065
82066 2004-01-18  Karl Berry  <karl@gnu.org>
82067
82068         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
82069         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
82070
82071 2004-01-15  Paul Eggert  <eggert@twinsun.com>
82072
82073         Merge from coreutils.
82074
82075         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
82076         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
82077         (gl_DEFAULT_POSIX2_VERSION): Move
82078         the documentation from 'configure' into 'config.hin',
82079         so that 'configure --help' isn't burdened by it and
82080         we don't have to worry about its formatting there.
82081         Reword the documentation so that it's more succinct
82082         and can be run together into a single paragraph.
82083         * m4/same.m4 (gl_SAME): Check for pathconf.
82084
82085 2004-01-15  Paul Eggert  <eggert@twinsun.com>
82086
82087         Merge from coreutils.
82088
82089         * lib/posixver.c: Include posixver.h.
82090
82091         * lib/same.c: Include <stdbool.h>, <limits.h>.
82092         (_POSIX_NAME_MAX): Define if not defined.
82093         (MIN): New macro.
82094         (same_name): If file names are silently truncated, report
82095         that the file names are the same if they are the same after
82096         the silent truncation.
82097
82098         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
82099         conversion function.
82100         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
82101         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
82102         longer needed.
82103
82104 2004-01-15  Jim Meyering  <jim@meyering.net>
82105
82106         Merge from coreutils.
82107
82108         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
82109         if no library is required.
82110         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
82111         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
82112         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
82113         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
82114         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
82115         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
82116         value, $ac_cv_search_crypt, if it's "none required".
82117         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
82118         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
82119         not gl_FUNC_GETLOADAVG.
82120         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
82121         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
82122
82123 2004-01-15  Jim Meyering  <jim@meyering.net>
82124
82125         Merge from coreutils.
82126
82127         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
82128         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
82129         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
82130
82131         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
82132         optional configure-time default.
82133
82134         * lib/version-etc.c (version_etc_copyright): Update copyright date.
82135
82136         * lib/xreadlink.c (xreadlink): Correct outdated comment.
82137
82138 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
82139
82140         Merge from coreutils.
82141
82142         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
82143         value, $ac_cv_search_nanosleep, if it's "none required".
82144
82145 2004-01-14  Paul Eggert  <eggert@twinsun.com>
82146
82147         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
82148         with like-named macro in fnmatch.c.
82149         (EXT): Use an internal constant instead.
82150
82151         Merge fnmatch patches from glibc.
82152         * lib/fnmatch.c (mbsinit): Remove define.
82153         Add libc_hidden_ver (__fnmatch, fnmatch).
82154         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
82155         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
82156
82157 2004-01-14  Karl Berry  <karl@gnu.org>
82158
82159         * config/install-sh: update from automake.
82160
82161 2004-01-13  Karl Berry  <karl@gnu.org>
82162
82163         * config/install-sh: update from automake.
82164
82165 2004-01-09  Karl Berry  <karl@gnu.org>
82166
82167         * config/install-sh: update from automake.
82168
82169 2004-01-05  Karl Berry  <karl@gnu.org>
82170
82171         * config/config.{sub,guess}: update from config.
82172
82173 2003-12-31  Karl Berry  <karl@gnu.org>
82174
82175         * config/depcomp: update from automake.
82176
82177 2003-12-14  Karl Berry  <karl@gnu.org>
82178
82179         * lib/config.charset: update from gettext-runtime.
82180
82181 2003-12-03  Paul Eggert  <eggert@twinsun.com>
82182
82183         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
82184         Bug reported by Alfred M. Szmidt.
82185
82186 2003-12-03  Bruno Haible  <bruno@clisp.org>
82187
82188         * m4/gettext.m4: Upgrade from gettext-0.13.
82189         * m4/po.m4: Upgrade from gettext-0.13.
82190         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
82191         * m4/intmax.m4: New file, from gettext-0.13.
82192         * m4/printf-posix.m4: New file, from gettext-0.13.
82193
82194 2003-11-29  Karl Berry  <karl@gnu.org>
82195
82196         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
82197
82198 2003-11-25  Paul Eggert  <eggert@twinsun.com>
82199             Bruno Haible  <bruno@clisp.org>
82200
82201         * lib/printf-parse.h: Don't include sys/types.h.
82202         (ARG_NONE): New macro.
82203         (char_directive): Change type of *arg_index fields to size_t.
82204         * lib/printf-parse.c: Don't include sys/types.h.
82205         (SSIZE_MAX): Remove macro.
82206         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
82207         Remove unnecessary overflow check.
82208         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
82209         fields.
82210
82211 2003-11-25  Bruno Haible  <bruno@clisp.org>
82212
82213         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
82214
82215 2003-11-25  Bruno Haible  <bruno@clisp.org>
82216
82217         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
82218         gt_TYPE_SSIZE_T.
82219
82220 2003-11-24  Paul Eggert  <eggert@twinsun.com>
82221
82222         * modules/alloca: Remove dependency on xalloc.
82223
82224 2003-11-24  Paul Eggert  <eggert@twinsun.com>
82225
82226         * lib/alloca.c: Remove dependency on xalloc module.
82227         (xalloc_die): Remove.
82228         (memory_full) [!defined emacs]: New macro.
82229         [!defined emacs]: Don't include xalloc.h.
82230         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
82231         address arithmetic overflows.  Change datatypes a bit to avoid
82232         unnecessary casts.
82233
82234 2003-11-22  Jim Meyering  <jim@meyering.net>
82235
82236         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
82237         s/size/size_t/.
82238
82239 2003-11-21  Karl Berry  <karl@gnu.org>
82240
82241         * config/config.{sub,guess}: update from config.
82242
82243 2003-11-18  Karl Berry  <karl@gnu.org>
82244
82245         * config/config.{sub,guess}: update from config.
82246
82247         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
82248
82249 2003-11-17  Paul Eggert  <eggert@twinsun.com>
82250
82251         * README: Mention that S+T cannot overflow if S is the size of
82252         an existing object and T is sufficiently small.
82253
82254 2003-11-17  Jim Meyering  <jim@meyering.net>
82255
82256         On systems without utime and without a utimes function capable of
82257         dealing with a NULL struct utimbuf* argument, this utime replacement
82258         could -- in unusual circumstances -- leak a file descriptor.
82259         * lib/utime.c: Include <unistd.h> and <errno.h>.
82260         (utime_null): Be sure to close `fd' and to preserve errno.
82261         Reported by Geoff Collyer via Arnold Robbins.
82262
82263 2003-11-17  Bruno Haible  <bruno@clisp.org>
82264
82265         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
82266         (Depends-on): Add xsize.
82267
82268 2003-11-17  Bruno Haible  <bruno@clisp.org>
82269
82270         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
82271
82272 2003-11-17  Bruno Haible  <bruno@clisp.org>
82273
82274         * lib/vasnprintf.c (alloca): Remove fallback definition.
82275         (freea): Remove definition.
82276         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
82277         Reported by Paul Eggert.
82278
82279 2003-11-16  Paul Eggert  <eggert@twinsun.com>
82280             Bruno Haible  <bruno@clisp.org>
82281
82282         Protect against address arithmetic overflow.
82283         * lib/printf-args.h: Include stddef.h.
82284         (arguments): Change type of field 'count' to size_t.
82285         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
82286         'unsigned int' where appropriate.
82287         * lib/printf-parse.h: Include sys/types.h.
82288         (char_directive): Change type of *arg_index fields to ssize_t.
82289         (char_directives): Change type of fields 'count', max_*_length to
82290         size_t.
82291         * lib/printf-parse.c: Include sys/types.h and xsize.h.
82292         (SSIZE_MAX): Define fallback value.
82293         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
82294         instead of 'int' where appropriate. Check a_allocated, d_allocated
82295         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
82296         * lib/vasnprintf.c: Include xsize.h.
82297         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
82298         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
82299         overflow. Avoid wraparound when converting a width or precision from
82300         decimal to binary.
82301
82302 2003-11-16  Bruno Haible  <bruno@clisp.org>
82303
82304         Update from GNU gettext.
82305         * lib/printf-parse.c: Generalize to it can be compiled for wide
82306         strings.
82307         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
82308         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
82309         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
82310         SNPRINTF): New macros.
82311         Don't include <alloca.h> if the file is used inside libintl.
82312         (local_wcslen): New function, for Solaris 2.5.1.
82313         (VASNPRINTF): Use it instead of wcslen.
82314
82315 2003-11-16  Bruno Haible  <bruno@clisp.org>
82316
82317         * lib/xsize.h (xmax): New function.
82318         (xsum, xsum3, xsum4): Declare as "pure" functions.
82319
82320 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82321
82322         * modules/xalloc (Files): Undo latest change, since xalloc.h
82323         no longer needs SIZE_MAX or PTRDIFF_MAX.
82324
82325 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82326
82327         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
82328         gl_PTRDIFF_MAX.
82329
82330 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82331
82332         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
82333         "return", to pacify some unknown compiler.  Problem reported
82334         by Joerg Schilling.
82335
82336 2003-11-12  Paul Eggert  <eggert@twinsun.com>
82337
82338         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
82339         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
82340         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
82341         heuristic is just as accurate as far as we know, and it removes a
82342         dependency on size_max.m4 and ptrdiff_max.m4.
82343
82344 2003-11-11  Bruno Haible  <bruno@clisp.org>
82345
82346         * modules/xsize (Files): Add m4/size_max.m4.
82347         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
82348
82349 2003-11-11  Bruno Haible  <bruno@clisp.org>
82350
82351         * m4/size_max.m4: New file.
82352         * m4/ptrdiff_max.m4: New file.
82353         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
82354         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
82355         (gl_XALLOC): Invoke it.
82356
82357 2003-11-11  Bruno Haible  <bruno@clisp.org>
82358
82359         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
82360         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
82361         defined.
82362
82363 2003-11-10  Paul Eggert  <eggert@twinsun.com>
82364
82365         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
82366         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
82367         rejected some allocations of exactly SIZE_MAX - 2 bytes.
82368         From Bruno Haible.
82369         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
82370         not (size_t) -1, since it's defined here.
82371
82372 2003-11-09  Karl Berry  <karl@gnu.org>
82373
82374         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
82375
82376 2003-11-06  Paul Eggert  <eggert@twinsun.com>
82377
82378         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
82379         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
82380         Reject sizes of exactly SIZE_MAX bytes.
82381         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
82382         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
82383
82384 2003-11-05  Bruno Haible  <bruno@clisp.org>
82385
82386         * lib/xsize.h: Include limits.h, to avoid a possible collision with
82387         SIZE_MAX defined in <limits.h> on Solaris.
82388
82389 2003-11-04  Jim Meyering  <jim@meyering.net>
82390
82391         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
82392         variable names, rather than @VAR@.
82393         * modules/poll: Likewise.
82394
82395 2003-11-04  Bruno Haible  <bruno@clisp.org>
82396
82397         * modules/xsize: New file.
82398         * modules/linebreak: Depend on xsize.
82399         * MODULES.html.sh (func_all_modules): Add xsize.
82400
82401 2003-11-04  Bruno Haible  <bruno@clisp.org>
82402
82403         * m4/xsize.m4: New file.
82404
82405 2003-11-04  Bruno Haible  <bruno@clisp.org>
82406
82407         * lib/xsize.h: New file.
82408         * lib/linebreak.c: Include xsize.h.
82409         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
82410         argument for overflow.
82411         Suggested by Paul Eggert.
82412
82413 2003-11-03  Karl Berry  <karl@gnu.org>
82414
82415         * config/config.{guess,sub}: update from config.
82416
82417 2003-11-03  Jim Meyering  <jim@meyering.net>
82418
82419         * modules/userspec (lib_SOURCES): Add userspec.h.
82420         (Include): Add "userspec.h".
82421         Improve description.
82422
82423 2003-11-03  Jim Meyering  <jim@meyering.net>
82424
82425         * lib/userspec.c: Include "userspec.h".
82426         * lib/userspec.h: New file.
82427
82428 2003-11-03  Bruno Haible  <bruno@clisp.org>
82429
82430         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
82431
82432 2003-11-03  Bruno Haible  <bruno@clisp.org>
82433
82434         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
82435         available, to avoid (extremely rare) race condition.
82436         Suggested by Paul Eggert.
82437
82438 2003-11-02  Karl Berry  <karl@gnu.org>
82439
82440         * config/srclist.txt (vasprintf.c): sync broken, sigh.
82441
82442 2003-10-31  Paul Eggert  <eggert@twinsun.com>
82443
82444         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
82445         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
82446         (read_filesystem_list): Set and use me_type_malloced.
82447         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
82448         whatever the type happens to be), for brevity and consistency.
82449         Check for size calculation overflow on Alphas running OSF/1.
82450
82451 2003-10-31  Jim Meyering  <jim@meyering.net>
82452
82453         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
82454
82455         * lib/linebuffer.c: Include <string.h> for declaration of memset.
82456
82457 2003-10-30  Paul Eggert  <eggert@twinsun.com>
82458             Bruno Haible  <bruno@clisp.org>
82459
82460         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
82461         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
82462
82463 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82464
82465         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
82466         netbsd*-gnu*.  Suggested by Robert Millan.
82467
82468 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82469
82470         * modules/group-member: Depend on stdbool.
82471
82472 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82473
82474         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
82475
82476 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82477
82478         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
82479         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
82480         after the 'gnu' in these cases.  This fixes some bugs in the
82481         previous change, and is based on suggestions by Robert Millan.
82482
82483 2003-10-29  Paul Eggert  <eggert@twinsun.com>
82484
82485         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
82486         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
82487         no longer needed.
82488         * lib/quotearg.c (quotearg_n_options): Use it.
82489         * lib/group-member.c: Include <stdbool.h>.
82490         (free_group_info): Arg is now const *; don't free arg.
82491         (get_group_info): Now returns bool and accepts struct group_info *,
82492         rather than returning a malloc'ed struct group_info *.
82493         All uses changed.  Check for overflow in internal size calculation.
82494
82495         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
82496         rather than xmalloc/xrealloc.
82497         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
82498         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
82499         conformance bug: the old code used a pointer after freeing the
82500         storage that it addressed.
82501         * lib/hash.c (hash_initialize): Simplify the code by using
82502         xalloc_oversized rather than doing it by hand.
82503         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
82504         the buffer preserved.  Use free and xmalloc instead.
82505         * lib/quotearg.c (quotearg_n_options): Likewise.
82506         Use a simpler test for size overflow.  Don't use xalloc_oversized
82507         because unsigned int might be wider than size_t (!); this suggests
82508         that we should switch from unsigned int to size_t for slot numbers.
82509
82510 2003-10-28  Paul Eggert  <eggert@twinsun.com>
82511
82512         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
82513         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
82514         NetBSD kernels.  Requested by Richard Stallman.
82515
82516 2003-10-27  Paul Eggert  <eggert@twinsun.com>
82517
82518         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
82519         to allocate the returned structure.  Do not allocate a subarray,
82520         as x2nrealloc will do that.
82521         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
82522         instead of xnrealloc.
82523         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
82524
82525 2003-10-27  Bruno Haible  <bruno@clisp.org>
82526
82527         * lib/stdbool_.h: Better support for BeOS.
82528
82529 2003-10-26  Paul Eggert  <eggert@twinsun.com>
82530
82531         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
82532         now uses inline.
82533
82534 2003-10-26  Paul Eggert  <eggert@twinsun.com>
82535
82536         * lib/xalloc.h (xalloc_oversized): New static inline function, for
82537         callers that want to do their own size-overflow checking.  Include
82538         <stdbool.h>, since xalloc_oversized returns bool.
82539         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
82540         to use xalloc_oversized.
82541
82542         Add two functions x2realloc, x2nrealloc, for programs that grow
82543         arrays dynamically by doubling their sizes.
82544         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
82545         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
82546         New functions.
82547
82548         Port to C99 semantics for 'inline' of external functions.
82549         Bug reported by Bruno Haible.
82550         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
82551         with the old contents of xnmalloc.
82552         (xnmalloc, xmalloc): Use it.
82553         (xnrealloc_inline): New static inline function,
82554         with the old contents of xnrealloc.
82555         (xnrealloc, xrealloc): Use it.
82556
82557         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
82558         that.
82559
82560 2003-10-26  Karl Berry  <karl@gnu.org>
82561
82562         * config/srclist.txt (COPYING.DOC): no longer available from
82563         /gd/gnuorg; don't know where the ultimate source is.
82564
82565 2003-10-25  Paul Eggert  <eggert@twinsun.com>
82566
82567         Fix several address-calculation bugs in the hash modules,
82568         plus some minor code cleanup.
82569
82570         * lib/hash.h: Include <stdbool.h>, for bool.
82571         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
82572         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
82573         hash_get_n_entries, hash_get_max_bucket_length,
82574         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
82575         hash_rehash): Use size_t rather than unsigned.
82576         * lib/hash.c (struct hash_table, hash_get_n_buckets,
82577         hash_get_n_buckets_used, hash_get_n_entries,
82578         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
82579         hash_get_entries, hash_do_for_each, hash_string, is_prime,
82580         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
82581         Likewise.
82582         (SIZE_MAX): Define if not defined.
82583         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
82584         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
82585         hash_print):
82586         Use const * when possible.
82587         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
82588         (check_tuning): Fix bug: if tuning parameters were very close to
82589         0 or 1, rounding errors could have caused subscript violations.
82590         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
82591         (hash_initialize): Add 'fail:' label
82592         to free table and return NULL, and use it to simplify code.
82593         Use calloc rather than clearing the storage ourself.
82594         (hash_initialize, hash_rehash): Check for arithmetic overflow in
82595         buffer size calculations.
82596         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
82597         Include <stddef.h>, for size_t.
82598         * lib/hash-pjw.c (hash_pjw): Likewise.
82599         Switch to method described by Bruno Haible.
82600         Include <limits.h>, for CHAR_BIT.
82601         (SIZE_BITS): New macro.
82602
82603 2003-10-23  Paul Eggert  <eggert@twinsun.com>
82604
82605         * m4/getline.m4 (AM_FUNC_GETLINE):
82606         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
82607         hosts.  Problem reported by Derek Robert Price in
82608         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
82609         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
82610         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
82611
82612 2003-10-21  Paul Eggert  <eggert@twinsun.com>
82613
82614         * lib/getndelim2.c (getndelim2): When size calculation overflows,
82615         ceiling the allocation at NMAX bytes rather than silently
82616         discarding input bytes before NMAX is reached.  This makes
82617         a difference only if NMAX exceeds SIZE_MAX / 2.
82618
82619         * lib/obstack.c: Merge from glibc.
82620         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
82621         Add libc_hidden_def (_obstack_newchunk).
82622         (_obstack_free) [! defined _LIBC]: Remove.
82623         [defined _LIBC]: Make a strong alias from obstack_free, rather than
82624         a clone of the function body.
82625         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
82626         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
82627
82628         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
82629         glibc.
82630         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
82631         arg to memcpy.
82632
82633         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
82634         (obstack_ptr_grow_fast, obstack_int_grow_fast):
82635         Don't use lvalue casts, as GCC plans to remove support for them
82636         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
82637         was also present in the non-GCC version, indicating that this
82638         code had always been buggy and had never been widely used.
82639         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
82640         Use the fast variant of each macro, rather than copying the
82641         definiens of the fast variant; that way, we'll be more likely to
82642         catch future bugs in the fast variants.
82643
82644 2003-10-20  Bruno Haible  <bruno@clisp.org>
82645
82646         * modules/wait-process: New file.
82647         * MODULES.html.sh (func_all_modules): Add wait-process.
82648
82649 2003-10-20  Bruno Haible  <bruno@clisp.org>
82650
82651         * m4/wait-process.m4: New file.
82652
82653 2003-10-20  Bruno Haible  <bruno@clisp.org>
82654
82655         * lib/wait-process.h: New file, from GNU gettext.
82656         * lib/wait-process.c: New file, from GNU gettext.
82657
82658 2003-10-19  Jim Meyering  <jim@meyering.net>
82659
82660         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
82661         HPUX 10.20.
82662
82663 2003-10-18  Karl Berry  <karl@gnu.org>
82664
82665         * config/config.guess: update from config.
82666
82667 2003-10-16  Paul Eggert  <eggert@twinsun.com>
82668
82669         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
82670         (getgroups): First arg is int, not size_t.
82671         Don't let 'free' mangle errno.
82672
82673 2003-10-16  Paul Eggert  <eggert@twinsun.com>
82674
82675         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
82676
82677 2003-10-16  Karl Berry  <karl@gnu.org>
82678
82679         * config/config.{guess,sub}: update from config.
82680
82681 2003-10-16  Jim Meyering  <jim@meyering.net>
82682
82683         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
82684         memcpy.
82685
82686 2003-10-15  Paul Eggert  <eggert@twinsun.com>
82687
82688         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
82689         (SIZE_MAX): Remove.
82690         (new_exclude, add_exclude_file): Initial size no longer needs to
82691         be a power of 2.
82692         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
82693         our own address arithmetic overflow checking.
82694
82695         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
82696         (fnmatch): Do not alloca more than 2000 wide characters;
82697         instead, use malloc for large buffers.
82698         Check for address arithmetic overflow, and return -1
82699         with errno set to ENOMEM in that case.
82700         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
82701         (NEW_PATTERN): Do not alloca more than 8000 bytes;
82702         instead, return -1.  Check for address arithmetic overflow.
82703
82704 2003-10-14  Paul Eggert  <eggert@twinsun.com>
82705
82706         Handle invalid suffixes and overflow independently, so that
82707         callers can treat them independently as needed.  Fix some bugs in
82708         suffix handling, e.g., "100k@" was not diagnosed as an invalid
82709         suffix for a human-readable blocksize.  The major caller-visible
82710         change is the addition of a new
82711         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
82712         that both overflow and suffix chars were found.
82713
82714         * lib/human.c (humblock): Don't check separately for invalid suffix
82715         char; that is xstrtoumax's job (now that its bug is fixed).
82716         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
82717         INTMAX_MAX]: New macros.
82718         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
82719         TYPE_MAXIMUM): New macros.
82720         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
82721         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
82722         if overflow occurs, as it's what __strtol does and it's more useful
82723         in practice.
82724         (__xstrtol): If __strtol reports some error other than ERANGE,
82725         reflect it to the caller as LONGINT_INVALID.  If it reports
82726         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
82727         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
82728         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
82729         value.
82730         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
82731         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
82732         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
82733         [defined UINTMAX_MAX]: New macros.
82734
82735 2003-10-14  Bruno Haible  <bruno@clisp.org>
82736
82737         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
82738
82739 2003-10-14  Bruno Haible  <bruno@clisp.org>
82740
82741         * m4/sig_atomic_t: New file, from GNU gettext.
82742         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
82743
82744 2003-10-14  Bruno Haible  <bruno@clisp.org>
82745
82746         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
82747         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
82748         Also use volatile where needed.
82749
82750 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82751
82752         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
82753         Change maintainer from Bruno Haible to 'all'.
82754
82755 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82756
82757         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
82758
82759 2003-10-12  Paul Eggert  <eggert@twinsun.com>
82760
82761         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
82762         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
82763         and define in terms of the other primitives.
82764         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
82765         (SIZE_MAX): Define if not already defined.
82766         (array_size_overflow): New function.
82767         (xalloc_die): Abort instead of exiting if 'error' returns.
82768         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
82769         (xmalloc, xrealloc): Use them.
82770         (xcalloc): Check for address arithmetic overflow.
82771         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
82772         a bit faster than strcpy.
82773
82774 2003-10-10  Simon Josefsson  <jas@extundo.com>
82775
82776         * modules/argp (Depends-on): Add restrict and strcase.
82777
82778 2003-10-10  Simon Josefsson  <jas@extundo.com>
82779
82780         * m4/argp.m4: Add AC_C_INLINE.
82781
82782 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82783
82784         Merge getpass from libc, plus a few fixes.
82785
82786         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
82787         Include <stdbool.h>.
82788         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
82789         __fsetlocking to empty.
82790         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
82791         do include <bits/libc-lock.h>.
82792         Do not include <fcntl.h>; not needed.
82793         [_LIBC]: Include <wchar.h>.
82794         (NOTCANCEL_MODE): New macro.
82795         (flockfile, funlockfile) [_LIBC]: New macros.
82796         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
82797         [!_LIBC]: New macros.
82798         (call_fclose): New function.
82799         (getpass): Use it.  Save tty stream separately; this simplifies the
82800         code and makes it more reliable if stdin happens to equal stdout.
82801         Invoke __fsetlocking on tty.
82802         Handle thread cancellation if needed.
82803         Namespace cleanup (use __tcgetattr, __getline).
82804         Use bool for Booleans.
82805         [USE_IN_LIBIO]: Handle wide streams.
82806         [!_LIBC]: Unconditionally do the fseek, since we don't know what
82807         stream might go where.
82808
82809         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
82810         doesn't have to include <stdio.h> before us.
82811         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
82812         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
82813         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
82814         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
82815         if not declared, so that we can use getpass.c code from libc without
82816         rewriting it.
82817         (flockfile, ftrylockfile, funlockfile): New macros.
82818
82819 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82820
82821         * modules/getpass: Depend on stdbool.
82822
82823 2003-10-08  Paul Eggert  <eggert@twinsun.com>
82824
82825         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
82826
82827 2003-10-07  Karl Berry  <karl@gnu.org>
82828
82829         * config/config.{guess,sub}: update from config.
82830
82831 2003-10-06  Jim Meyering  <jim@meyering.net>
82832             Bruno Haible  <bruno@clisp.org>
82833
82834         This lets translators provide better translations for the
82835         "Written by ..." part of --version output.
82836         * lib/version-etc.h: Include stdarg.h.
82837         (version_etc_copyright): Declare as readonly.
82838         (version_etc): Make this function variadic with a NULL-terminated list
82839         of author name strings.
82840         (version_etc_va): New declaration.
82841         * lib/version-etc.c: Include stdarg.h, stdlib.h.
82842         (version_etc_copyright): Declare as readonly.
82843         (version_etc_va): New function. Provide a different translatable string
82844         for each possible number of authors < 10. Abbreviate when there are 10
82845         authors or more.
82846         (version_etc): Make this function variadic. Call version_etc_va.
82847         Suggestion from Gary V. Vaughan.
82848
82849         * lib/long-options.h (parse_long_options): Change prototype: the
82850         authors string is moved to the end and becomes variadic.
82851         * lib/long-options.c: Include stdarg.h.
82852         (parse_long_options): Make this function variadic, too.
82853         Call version_etc_va, not version_etc.
82854
82855 2003-10-06  Bruno Haible  <bruno@clisp.org>
82856
82857         * modules/version-etc-2: Remove file.
82858         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
82859
82860 2003-10-06  Bruno Haible  <bruno@clisp.org>
82861
82862         * modules/fatal-signal: New file.
82863         * MODULES.html.sh (func_all_modules): Add fatal-signal.
82864
82865 2003-10-06  Bruno Haible  <bruno@clisp.org>
82866
82867         * m4/fatal-signal.m4: New file.
82868         * m4/signalblocking.m4: New file, from GNU gettext.
82869
82870 2003-10-06  Bruno Haible  <bruno@clisp.org>
82871
82872         * lib/version-etc-2.h: Remove file.
82873         * lib/version-etc-2.c: Remove file.
82874
82875 2003-10-06  Bruno Haible  <bruno@clisp.org>
82876
82877         * lib/fatal-signal.h: New file, from GNU gettext.
82878         * lib/fatal-signal.c: New file, from GNU gettext.
82879
82880 2003-10-05  Paul Eggert  <eggert@twinsun.com>
82881
82882         * README: Rework advice for preventing empty .o files.
82883         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
82884         not <sys/types.h>.
82885
82886 2003-10-04  Karl Berry  <karl@gnu.org>
82887
82888         * lib/argp*: update from libc.
82889
82890 2003-10-04  Karl Berry  <karl@gnu.org>
82891
82892         * config/config.{guess,sub}: update from config.
82893
82894 2003-10-02  Bruno Haible  <bruno@clisp.org>
82895
82896         * modules/lchown (Include): Add lchown.h.
82897         * modules/time_r (Include): Use "..." syntax.
82898         * modules/xgetdomainname (Include): Add xgetdomainname.h.
82899
82900 2003-10-01  Simon Josefsson  <jas@extundo.com>
82901
82902         * MODULES.html.sh (func_all_modules): Move gethostname from section
82903         'based on' to section 'lacking' POSIX:2001.
82904
82905 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
82906
82907         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
82908         to output mode on the same stream.
82909
82910 2003-09-29  Paul Eggert  <eggert@twinsun.com>
82911
82912         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
82913         Fix arg typo in previous patch.
82914
82915 2003-09-28  Jim Meyering  <jim@meyering.net>
82916
82917         * lib/error.c: Correct cpp indentation.
82918
82919 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82920
82921         * modules/free: New file.
82922
82923 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82924
82925         * m4/free.m4: New file.
82926
82927 2003-09-27  Paul Eggert  <eggert@twinsun.com>
82928
82929         * lib/minmax.h (MIN, MAX)
82930         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
82931         Omit the special code that used __typeof__, since we worry that
82932         it could be more trouble than it's worth.  See:
82933         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
82934         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
82935
82936         * lib/free.c: New file.
82937
82938 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
82939
82940         Trivial fixes to Makefile.am parts of module listings.
82941         * modules/strstr: Append strstr.h to lib_SOURCES.
82942         * modules/strcase: Likewise, for strcase.h.
82943
82944 2003-09-27  Karl Berry  <karl@gnu.org>
82945
82946         * config/mkinstalldirs: update from automake.
82947
82948 2003-09-26  Paul Eggert  <eggert@twinsun.com>
82949
82950         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
82951         (error_tail): Do not loop, reallocating temporary buffer, since
82952         the output cannot contain more wide characters than the input
82953         contains bytes, the size must be big enough already.  This avoids
82954         one potential size overflow calculation.  Check for size overflow
82955         when calculating temporary buffer size.  Free temporary buffer
82956         when done, if it was allocated with malloc; this plugs a memory
82957         leak.  Remove casts from void * to pointers, that are no longer
82958         needed now that we're assuming C89 or better.
82959
82960         Merge error changes from glibc.
82961
82962         * lib/error.c, error.h: Update copyright notice header to match glibc.
82963         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
82964         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
82965         Disable cancellation while printing error.
82966         * lib/error.h: Prepend __ to parameter names.
82967
82968 2003-09-26  Jim Meyering  <jim@meyering.net>
82969
82970         * lib/error.c (error_tail): Move some declarations
82971         into inner scope where the local variables are used.
82972
82973 2003-09-26  Bruno Haible  <bruno@clisp.org>
82974
82975         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
82976         stpncpy().
82977         Don't define stpncpy through config.h; it's now done through stpncpy.h.
82978
82979 2003-09-26  Bruno Haible  <bruno@clisp.org>
82980
82981         * lib/stpncpy.h (gnu_stpncpy): New declaration.
82982         (stpncpy): Define as alias for gnu_stpncpy.
82983         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
82984
82985 2003-09-25  Simon Josefsson  <jas@extundo.com>
82986
82987         * lib/xgetdomainname.h: New file.
82988         * lib/xgetdomainname.c: New file.
82989
82990 2003-09-25  Simon Josefsson  <jas@extundo.com>
82991             Bruno Haible  <bruno@clisp.org>
82992
82993         * modules/getdomainname: New file.
82994         * modules/xgetdomainname: New file.
82995         * MODULES.html.sh (func_all_modules): Add getdomainname,
82996         xgetdomainname.
82997
82998 2003-09-25  Simon Josefsson  <jas@extundo.com>
82999             Bruno Haible  <bruno@clisp.org>
83000
83001         * m4/getdomainname.m4: New file.
83002
83003 2003-09-25  Simon Josefsson  <jas@extundo.com>
83004             Bruno Haible  <bruno@clisp.org>
83005
83006         * lib/getdomainname.h: New file.
83007         * lib/getdomainname.c: New file.
83008
83009 2003-09-25  Karl Berry  <karl@gnu.org>
83010
83011         * lib/argp-fmtstream.c, argp-help.c: update from libc.
83012
83013 2003-09-25  Karl Berry  <karl@gnu.org>
83014
83015         * config/install-sh: update from automake.
83016
83017 2003-09-25  Bruno Haible  <bruno@clisp.org>
83018
83019         * modules/version-etc-2: New file, from modules/version-etc with
83020         modifications.
83021         * MODULES.html.sh (func_all_modules): Add version-etc-2.
83022
83023 2003-09-25  Bruno Haible  <bruno@clisp.org>
83024
83025         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
83026         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
83027
83028 2003-09-24  Simon Josefsson  <jas@extundo.com>
83029
83030         * modules/xgethostname: Add xgethostname.h.
83031
83032 2003-09-24  Paul Eggert  <eggert@twinsun.com>
83033
83034         * lib/linebuffer.c (freebuffer): Don't free the argument, just
83035         the buffer associated with the argument.  Bug reported by
83036         Simon Josefsson.
83037
83038 2003-09-24  Paul Eggert  <eggert@twinsun.com>
83039
83040         * README: Document assumptions that 'int' is at least 32 bits
83041         wide, that integer arithmetic is 2's complement without overflow,
83042         that there are no holes in integer values, that adding sizes of
83043         two nonoverlapping objects can't overflow, and that all-bits-zero
83044         yields scalar zero.  Fix spelling and capitalization typos.
83045
83046 2003-09-19  Karl Berry  <karl@gnu.org>
83047
83048         * lib/argp.h: update from libc.
83049
83050 2003-09-17  Paul Eggert  <eggert@twinsun.com>
83051
83052         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
83053         to avoid spurious warnings like "AC_RUN_IFELSE was called before
83054         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
83055
83056 2003-09-17  Paul Eggert  <eggert@twinsun.com>
83057
83058         * gnulib-tool: Use "test -h", not "test -L", for portability
83059         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
83060         (tags_regexp): Remove, since \| doesn't conform to POSIX.
83061         (sed_extract_prog): Issue s commands one-by-one, rather than
83062         using \| in one s command.
83063
83064 2003-09-16  Paul Eggert  <eggert@twinsun.com>
83065
83066         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
83067         input error, instead of returning NULL the next time we are called
83068         (and therefore losing track of errno).
83069
83070 2003-09-16  Bruno Haible  <bruno@clisp.org>
83071
83072         * gnulib-tool (func_create_testdir): Warn about duplicated
83073         dependencies.
83074
83075 2003-09-15  Paul Eggert  <eggert@twinsun.com>
83076
83077         * modules/argmatch, modules/fatal, modules/obstack,
83078         modules/xalloc, modules/xgethostname: Sort dependencies by
83079         importance, not alphabetically.
83080
83081 2003-09-15  Paul Eggert  <eggert@twinsun.com>
83082
83083         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
83084         fails, so that the caller gets the proper errno.
83085
83086         * lib/readutmp.c (read_utmp): Likewise.
83087         Check for fstat error.  Close stream and free storage
83088         when failing.
83089
83090 2003-09-14  Karl Berry  <karl@gnu.org>
83091
83092         * config/srclist.txt (strdup.c): disable for c89 changes.
83093
83094 2003-09-14  Jim Meyering  <jim@meyering.net>
83095
83096         * lib/getloadavg.c: Correct cpp indentation.
83097         * lib/strdup.c: Likewise.
83098         * lib/vasnprintf.c: Likewise.
83099
83100 2003-09-14  Bruno Haible  <bruno@clisp.org>
83101
83102         * modules/fwriteerror: New file.
83103         * MODULES.html.sh (func_all_modules): Add fwriteerror.
83104
83105 2003-09-14  Bruno Haible  <bruno@clisp.org>
83106
83107         * lib/fwriteerror.h: New file.
83108         * lib/fwriteerror.c: New file.
83109
83110 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83111
83112         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
83113         modules/xgethostname, modules/xalloc: Depend on exit.
83114
83115 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83116
83117         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
83118
83119         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
83120         and AC_MINIX, too, so that their extensions are available.
83121
83122         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
83123         This macro has been superseded by gl_BACKUPFILE.
83124
83125         More patches to assume C89 or better.
83126
83127         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
83128
83129         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
83130         unconditionally.
83131         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
83132         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
83133         Include <string.h>, <stdlib.h> unconditionally.
83134         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
83135         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
83136         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
83137         headers or for string.h.
83138         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
83139         or strtoul.
83140
83141         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
83142         headers.
83143         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
83144         * m4/userspec.m4 (gl_USERSPEC): Likewise.
83145         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
83146         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
83147         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
83148         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
83149         memcpy, memset.
83150         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
83151         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
83152         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
83153         strtol.
83154         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
83155         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
83156         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
83157         strtoul.
83158
83159 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83160
83161         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
83162         * lib/obstack.c [!defined _LIBC]: Likewise.
83163         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
83164         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
83165         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
83166
83167         More changes to assume C89 or better.
83168
83169         * lib/error.c (error_tail): Assume vprintf.
83170
83171         * lib/argmatch.c (getenv): Remove decl.
83172         * lib/progreloc.c (get_full_program_name): Define via prototype.
83173         * lib/setenv.c (clearenv): Likewise.
83174         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
83175         needed.
83176         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
83177         (malloc, memcpy): Remove decls.
83178         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
83179         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
83180         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
83181         (memcpy): Remove macro.
83182         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
83183         (__P): Remove.  All uses removed.
83184         (PTR): Remove.  All uses changed to void *.
83185         (CHAR_BIT, NULL): Remove.
83186         (spaces, zeros, memset_space, memset_zero)
83187         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
83188         Remove.
83189         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
83190         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
83191         Define with prototype.
83192         Remove now-unnecessary prototype decl.
83193         (extra_args_spec): Assume ANSI C.  All uses changed.
83194         (extra_args_spec_iso): Remove.
83195         (my_strftime, emacs_strftimeu): Define via prototype.
83196         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
83197         unconditionally.
83198         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
83199         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
83200         (strtoul, strtol): Remove decls.
83201         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
83202         LONG_MAX): Remove.
83203         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
83204         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
83205         (LOCALE_PARAM_PROTO): New macro.
83206         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
83207         (INTERNAL (strtol), strtol): Define with a prototype.
83208         (PARAMS): Remove.  All uses removed.
83209         * lib/tempname.c: Include <string.h> unconditionally.
83210         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
83211         * lib/xgethostname.c (main): Define with a prototype.
83212         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
83213         Include <stdlib.h> unconditionally.
83214         (calloc, malloc, realloc, free): Remove decls.
83215         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
83216         Include <stdlib.h> unconditionally.  Sort include file names.
83217         (strtod): Remove.
83218         (xstrtod): Define with a prototype.
83219         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
83220         (strtol, strtoul): Remove decls.
83221
83222 2003-09-11  Paul Eggert  <eggert@twinsun.com>
83223
83224         More patches to assume C89 or better.
83225         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
83226         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
83227         string.h, memchr, STDC_HEADERS.
83228
83229 2003-09-11  Paul Eggert  <eggert@twinsun.com>
83230
83231         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
83232         Include <stdlib.h>, <string.h> unconditionally.
83233         Remove now-unnecessary cast to char *.
83234         * lib/strnlen.c: Include <string.h> unconditionally.
83235         * lib/yesno.c (yesno): Define with a prototype.
83236
83237 2003-09-11  Bruno Haible  <bruno@clisp.org>
83238
83239         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
83240
83241 2003-09-10  Jim Meyering  <jim@meyering.net>
83242
83243         * lib/error.c: Correct indentation of cpp directives.
83244
83245 2003-09-10  Bruno Haible  <bruno@clisp.org>
83246
83247         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
83248         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
83249         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
83250         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
83251         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
83252         <stdlib.h> and <string.h> checks.
83253         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
83254         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
83255
83256 2003-09-10  Bruno Haible  <bruno@clisp.org>
83257
83258         * lib/strcspn.c: Include <string.h> unconditionally.
83259         * lib/strpbrk.c: Include <string.h> unconditionally.
83260         * lib/strstr.c: Include <string.h> unconditionally.
83261         * lib/unicodeio.c: Include <string.h> unconditionally.
83262         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
83263         * lib/unsetenv.c: Likewise.
83264         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
83265         * lib/yesno.c: Include <stdlib.h> unconditionally.
83266         (rpmatch): Add prototype.
83267
83268 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83269
83270         More patches to assume C89 or better.
83271         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
83272         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
83273         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
83274         or for string.h.
83275         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
83276         stdlib.h.
83277         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
83278         C headers.
83279         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
83280         string.h.
83281         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
83282         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
83283         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
83284         or for string.h.
83285         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
83286         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
83287         C headers.
83288         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
83289         memcpy.
83290         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
83291         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
83292         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
83293         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
83294         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
83295         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
83296         string.h, free.
83297         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
83298         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
83299         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
83300         C headers, or for string.h.
83301         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
83302         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
83303         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
83304         headers, memory.h, stdlib.h, string.h, strings.h.
83305         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
83306         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
83307         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
83308         strchr.
83309         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
83310         headers, memory.h, string.h.
83311         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
83312         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
83313         free.
83314         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
83315         headers.
83316         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
83317         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
83318         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
83319         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
83320         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
83321
83322 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83323
83324         More K&R removal.
83325
83326         * lib/acosl.c (main): Use a prototype.
83327         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
83328         tanl.c: Likewise.
83329
83330         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
83331
83332         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
83333         (getopt, etopt_long, getopt_long_only, _getopt_internal)
83334         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
83335         with a prototype.
83336         * lib/getopt.c (const): Remove macro.
83337         Include <string.h> unconditionally.
83338         (my_index): Remove; all uses changed to strchr.
83339         (strlen): Remove decl.
83340         (exchange): Remove forward decl; no longer needed.
83341         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
83342         Define with prototype.
83343         * lib/getopt1.c (const): Remove macro.
83344         (getopt_long, getopt_long_only, main): Define with prototype.
83345
83346         * lib/getugroups.c: Include <string.h> unconditionally.
83347
83348         * lib/getusershell.c: Include <stdlib.h> unconditionally.
83349         (getusershell, setusershell, endusershell, readname, main):
83350         Define with prototypes.
83351
83352         * lib/group-member.c: Include group-member.h first.
83353         Include <stdlib.h> unconditionally.
83354
83355         * lib/hard-locale.c: Include hard-locale.h first.
83356         Include <stdlib.h>, <string.h> unconditionally.
83357
83358         * lib/hash.c (free, malloc): Remove decls.
83359         Include <stdlib.h> unconditionally.
83360
83361         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
83362         (getenv): Do not declare.
83363
83364         * lib/idcache.c: Include <string.h> unconditionally.
83365
83366         * lib/long-options.c: Include long-options.h first, to test interface.
83367         Include <stdlib.h> unconditionally.
83368
83369         * lib/makepath.c: Include makepath.h first, to test interface.
83370         Include <stdlib.h> and <string.h> unconditionally.
83371
83372         * lib/linebuffer.c: Include <stdlib.h>.
83373         (free): Remove decl.
83374
83375         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
83376         stddef.h. rpl_malloc returns void *, not char *.
83377         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
83378         prototype.
83379
83380         * lib/md5.h: Include <limits.h> unconditionally.
83381         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
83382         (__P): Remove; all uses removed.
83383         * lib/md5.c: Include "md5.h" first.
83384         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
83385         md5_buffer, md5_process_bytes, md5_process_block):
83386         Define with prototypes.
83387         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
83388         * lib/sha.c: Include "sha.h" first.
83389         Include <stdlib.h>, <string.h> unconditionally.
83390
83391         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
83392         * lib/memcmp.c (__ptr_t): Likewise.
83393         * lib/memrchr.c (__ptr_t): Likewise.
83394         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
83395         Include <string.h> unconditionally.
83396         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
83397         * lib/memchr.c: Include <stdlib.h> unconditionally.
83398         * lib/memchr.c (LONG_MAX): Remove.
83399         * lib/memrchr.c (LONG_MAX): Likewise.
83400         * lib/memchr.c (__memchr): Define via a prototype.
83401         * lib/memrchr.c (__memrchr): Likewise.
83402         * lib/memcmp.c (__P): Remove, and remove all uses.
83403         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
83404         Remove forward decls; no longer needed.
83405         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
83406         Use types required by C89 in prototype.
83407
83408         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
83409         * lib/savedir.c: Likewise.
83410         * lib/mkdir.c (free): Remove decl.
83411         * lib/rmdir.c (rmdir): Define with a prototype.
83412         * lib/savedir.c: Include savedir.h first, to test interface.
83413
83414         * lib/mktime.c (STDC_HEADERS): Remove.
83415         Include <stdlib.h>, <string.h> unconditionally.
83416
83417         * lib/modechange.c: Include <stdlib.h> unconditionally.
83418         (malloc): Remove decl.
83419
83420         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
83421         (free): Remove decl.
83422
83423         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
83424         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
83425         (This type really should be intptr_t, but that's a C99ism.)
83426         (_obstack_memcpy): Remove: all uses changed to memcpy.
83427         Include <string.h> unconditionally.
83428         (struct obstack): Assume __STDC__ for types of members
83429         chunkfun, freefun, extra_arg.
83430         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
83431         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
83432         obstack_begin, obstack_specify_allocation,
83433         obstack_specify_allocation_with_arg, obstack_chunkfun,
83434         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
83435         Remove unprototyped decls and the macros that use them.
83436         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
83437         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
83438         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
83439         (defined __STDC__ && __STDC__)]:
83440         Remove nonprototyped code.
83441         Include <stdlib.h> unconditionally.
83442         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
83443         _obstack_allocated_p, _obstack_free, obstack_free,
83444         _obstack_memory_used, print_and_abort):
83445         Define using prototypes.
83446         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
83447         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
83448         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
83449         obstack_next_free, obstack_object_size, obstack_room) [0]:
83450         Remove unused, unprototyped code.
83451
83452         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
83453
83454         * lib/physmem.c (physmem_total, physmem_available, main): Define
83455         with prototypes.
83456
83457         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
83458         (main): Define with a prototype.
83459
83460         * lib/posixver.c (getenv): Remove decl.
83461
83462         * lib/putenv.c (malloc): Returns void *, not char *.
83463         Include <string.h> unconditionally.
83464         (strchr, memcpy, NULL): Do not define.
83465
83466         * lib/readtokens.c: Include readtokens.h first, to test interface.
83467         Include <stdlib.h>, <string.h> unconditionally.
83468         (init_tokenbuffer): Define with a prototype.
83469
83470         * lib/regex.c (PARAMS): Remove.  All uses removed.
83471         All uses of _RE_ARGS removed, too.
83472         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
83473         unconditionally.
83474         (bzero): Assume memset exists.
83475         (memcmp, memcpy, NULL): Remove.
83476         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
83477         char, or assignments to local vars of type signed char.
83478         (init_syntax_once, PREFIX(extract_number_and_incr),
83479         PREFIX(print_partial_compiled_pattern),
83480         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
83481         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
83482         PREFIX(regex_grow_registers), PREFIX(regex_compile),
83483         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
83484         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
83485         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
83486         wcs_compile_range, byte_compile_range, truncate_wchar,
83487         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
83488         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
83489         count_mbs_length, wcs_re_match_2_internal,
83490         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
83491         PREFIX(alt_match_null_string_p),
83492         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
83493         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
83494         regfree, PREFIX(extract_number)): Define with prototype.  Remove
83495         now-unnecessary declaration, if any.
83496         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
83497         regcomp, regexec):
83498         Remove now-unnecessary casts among pointer types.
83499         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
83500
83501         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
83502         (free): Remove decl.
83503
83504         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
83505
83506         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
83507         (free): Remove decl.
83508
83509         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
83510         * lib/xgetcwd.c: Likewise.
83511
83512         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
83513         (free): Remove decl.
83514
83515         * lib/strchrnul.c (strchrnul): Define with a prototype.
83516         Fix bug: c_in was not converted to char before searching.
83517
83518         The following changes are not K&R related:
83519
83520         * lib/group-member.h: Include <sys/types.h>, so that this file is
83521         self-contained.
83522         * lib/makepath.h: Likewise.
83523
83524         * lib/getusershell.c (readname, default_index, line_size, readname):
83525         Use size_t, not int, for sizes.
83526         (readname): If the size overflows, report an error instead of
83527         looping forever.
83528
83529 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83530
83531         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
83532         libc.
83533
83534 2003-09-09  Paul Eggert  <eggert@twinsun.com>
83535
83536         * README: New section: portability guidelines.
83537
83538 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
83539
83540         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
83541         C89 spec.
83542
83543 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
83544
83545         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
83546
83547 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83548
83549         Assume C89 or better; remove K&R cruft.
83550         A few of these changes were first proposed by Derek Robert Price
83551         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
83552
83553         * lib/addext.c: Include <string.h> unconditionally.
83554         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
83555         Don't declare getenv or malloc.
83556
83557         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
83558         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
83559         (NULL): Remove.
83560         (find_stack_direction, alloca): Use prototypes.
83561
83562         * lib/atexit.c (atexit): Define using a prototype.
83563
83564         * lib/basename.c, dirname.c, stripslash.c:
83565         Include <string.h> unconditionally.
83566
83567         * lib/bcopy.c: Include <stddef.h>.
83568         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
83569
83570         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
83571
83572         * lib/error.h (error, error_at_line, error_print_progname)
83573         [! (defined (__STDC__) && __STDC__)]: Remove decls.
83574         * lib/error.c: Include error.h first, to check interface.
83575         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
83576         (VA_START): Remove; all uses changeed to va_start.
83577         (exit, strerror): Remove decls.
83578         (error_print_progname): Prototype uncondionally.
83579         Don't include <errno.h>; no longer needed.
83580         (private_strerror): Remove.
83581         (error_tail): Always define.
83582         (error, error_at_line): Assume C89 or better; always use prototypes.
83583         * lib/fatal.c: Include "fatal.h" first, to test interface.
83584         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
83585         (VA_START): Remove; all uses changed to va_start.
83586         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
83587         this case.
83588         (exit): Remove decl.
83589         (fatal): Prototype unconditionally.  Assume va_start works.
83590         Abort at end, to pacify gcc.
83591
83592         * lib/euidaccess.c (main): Define with a prototype.
83593
83594         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
83595
83596         * lib/exitfail.c: Include <stdlib.h> unconditionally.
83597
83598         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
83599         prototypes.
83600         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
83601         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
83602         (getenv): Remove decl.
83603         (fnmatch): Define using a prototype.
83604         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
83605         (FCT): Define using a prototype.
83606
83607         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
83608
83609         * lib/gethostname.c: Include <stddef.h>.
83610         (gethostname): Define with prototype.  Length is size_t, not int.
83611
83612 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83613
83614         Assume C89 or better; remove K&R cruft.
83615         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
83616         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
83617         string.h, getenv, malloc.
83618         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
83619         headers.
83620         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
83621         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
83622         do not check for strerror.
83623         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
83624         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
83625         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
83626         do not check for doprnt or vprintf.
83627         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
83628         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
83629
83630 2003-09-08  Paul Eggert  <eggert@twinsun.com>
83631
83632         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
83633         getversion.c should have been removed then, but was accidentally
83634         preserved.
83635
83636         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
83637         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
83638
83639 2003-09-08  Karl Berry  <karl@gnu.org>
83640
83641         * config/config.sub, config.guess, srclistvars.sh: update from savannah
83642                 config, forget about prep.
83643
83644         * config/depcomp, missing: update from automake.
83645
83646 2003-09-07  Paul Eggert  <eggert@twinsun.com>
83647
83648         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
83649         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
83650
83651 2003-09-07  Paul Eggert  <eggert@twinsun.com>
83652
83653         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
83654         copy_tm_result.  Bug reported by Simon Josefsson in
83655         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
83656
83657 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83658
83659         * m4/time_r.m4: New file.
83660         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
83661         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
83662         is. Check for timegm declaration.
83663         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
83664         Do not check for gmtime_r.
83665         Replace mktime if __mktime_internal does not exist and if mktime
83666         hasn't been replaced already.
83667
83668 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83669
83670         * lib/time_r.c, lib/time_r.h: New files.
83671
83672         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
83673         __localtime_r.
83674         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
83675         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
83676
83677         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
83678         __gmtime_r.
83679         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
83680         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
83681         Include <time_r.h>.
83682
83683         * lib/timegm.c: Switch to glibc implementation, with the following
83684         changes:
83685         [defined HAVE_CONFIG_H]: Include <config.h>.
83686         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
83687         (__mktime_internal) [!defined _LIBC]: New decl.
83688         (__gmtime_r) [!defined _LIBC]: New macro and function.
83689         (timegm): Use a prototype, since gnulib assumes C89.
83690         Do not bother declaring tmp to be const, as it's not really usefu.
83691         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
83692         (timegm): Declare only if HAVE_DECL_TIMEGM.
83693
83694 2003-09-06  Paul Eggert  <eggert@twinsun.com>
83695
83696         * MODULES.html.sh (func_all_modules): Add time_r.
83697         * modules/time_r: New file.
83698         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
83699         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
83700
83701 2003-09-03  Paul Eggert  <eggert@twinsun.com>
83702
83703         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
83704         Bug reported by Lute Kamstra in
83705         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
83706
83707         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
83708         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
83709         course with correspondingly smaller numbers for tomorrow and
83710         yesterday.  From Tadayoshi Funaba.  Originally installed into
83711         sh-utils on 1999-08-07, but the patch got lost (I guess during the
83712         coreutils merge?).
83713
83714 2003-08-31  Simon Josefsson  <jas@extundo.com>
83715
83716         * modules/timegm: New file.
83717         * MODULES.html.sh (func_all_modules): Add timegm.
83718
83719 2003-08-31  Simon Josefsson  <jas@extundo.com>
83720
83721         * m4/timegm.m4: New file.
83722
83723 2003-08-31  Simon Josefsson  <jas@extundo.com>
83724
83725         * lib/timegm.h: New file.
83726         * lib/timegm.c: New file.  Based on
83727         wget-1.8.2/src/http.c:mktime_from_utc.
83728
83729 2003-08-31  Karl Berry  <karl@gnu.org>
83730
83731         * lib/argp.h: update from libc.
83732
83733 2003-08-28  Bruno Haible  <bruno@clisp.org>
83734
83735         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
83736         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
83737         followed by '#define fnmatch fnmatch_posix' gives an error.
83738
83739 2003-08-28  Bruno Haible  <bruno@clisp.org>
83740
83741         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
83742         warning on QNX, which defines O_BINARY to 000000.
83743
83744 2003-08-27  Jim Meyering  <jim@meyering.net>
83745
83746         * m4/mkstemp.m4: Require that the system mkstemp be able to create
83747         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
83748         would fail after 32.  Reported by Danny Levinson.  Details here:
83749         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
83750
83751 2003-08-24  Bruno Haible  <bruno@clisp.org>
83752
83753         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
83754         MSVC7 <stdio.h> is included later.
83755
83756 2003-08-22  Simon Josefsson  <jas@extundo.com>
83757
83758         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
83759
83760 2003-08-20  Karl Berry  <karl@gnu.org>
83761
83762         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
83763
83764 2003-08-20  Bruno Haible  <bruno@clisp.org>
83765
83766         * modules/progname: New file.
83767         * MODULES.html.sh (func_all_modules): Add progname.
83768
83769 2003-08-20  Bruno Haible  <bruno@clisp.org>
83770
83771         * lib/progname.h: New file, from GNU gettext.
83772         * lib/progname.c: New file, from GNU gettext.
83773         * lib/progreloc.c: New file, from GNU gettext.
83774
83775 2003-08-19  Jim Meyering  <jim@meyering.net>
83776
83777         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
83778         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
83779
83780 2003-08-19  Bruno Haible  <bruno@clisp.org>
83781
83782         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
83783         more.
83784
83785 2003-08-19  Bruno Haible  <bruno@clisp.org>
83786
83787         * lib/xstrdup.c: Assume <string.h> exists.
83788
83789 2003-08-18  Paul Eggert  <eggert@twinsun.com>
83790
83791         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
83792         in makefile rules.
83793
83794 2003-08-18  Jim Meyering  <jim@meyering.net>
83795
83796         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
83797         * m4/lib-ld.m4: Likewise.
83798
83799 2003-08-18  Jim Meyering  <jim@meyering.net>
83800
83801         * lib/setenv.h: Indent nested cpp directive.
83802         * lib/vasnprintf.c: Remove trailing blanks.
83803
83804 2003-08-17  Simon Josefsson  <jas@extundo.com>
83805
83806         * modules/xstrndup: New file.
83807         * MODULES.html.sh (func_all_modules): Add xstrndup.
83808
83809 2003-08-17  Simon Josefsson  <jas@extundo.com>
83810
83811         * modules/argp: Fix autoconf macro name. Add more dependencies.
83812
83813 2003-08-17  Simon Josefsson  <jas@extundo.com>
83814
83815         * m4/xstrndup.m4: New file.
83816
83817 2003-08-17  Simon Josefsson  <jas@extundo.com>
83818
83819         * m4/argp.m4: New file.
83820
83821 2003-08-17  Simon Josefsson  <jas@extundo.com>
83822             Bruno Haible  <bruno@clisp.org>
83823
83824         * lib/xstrndup.h: New file.
83825         * lib/xstrndup.c: New file.
83826
83827 2003-08-17  Bruno Haible  <bruno@clisp.org>
83828
83829         * modules/strndup (Files, Include): Add lib/strndup.h.
83830
83831 2003-08-17  Bruno Haible  <bruno@clisp.org>
83832
83833         * modules/euidaccess (Files): Add lib/euidaccess.h.
83834
83835 2003-08-17  Bruno Haible  <bruno@clisp.org>
83836
83837         * lib/strndup.h: New file.
83838
83839 2003-08-17  Bruno Haible  <bruno@clisp.org>
83840
83841         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
83842         like AC_GNU_SOURCE.
83843         * modules/extensions (configure.ac): Comment out the invocation of
83844         gl_USE_SYSTEM_EXTENSIONS.
83845
83846 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83847
83848         Merges from coreutils, etc.
83849         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
83850         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
83851         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
83852         fixing a typo.
83853         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
83854         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
83855
83856 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83857
83858         Document merge from coreutils.
83859         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
83860         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
83861         * modules/utime: Add m4/utimes-null.m4.
83862
83863 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83864
83865         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
83866         space, undoing this 2003-08-12 change:
83867         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
83868
83869 2003-08-16  Paul Eggert  <eggert@twinsun.com>
83870
83871         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
83872         strtoul.c from libc, undoing this 2003-08-12 change:
83873         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
83874
83875 2003-08-16  Jim Meyering  <jim@meyering.net>
83876
83877         Merges from coreutils.
83878         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
83879         prefix.  Adjust cache variables similarly.  Create 500 rather than
83880         just 300 files, to exercise bug on Darwin6.5, too.
83881         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
83882         $missing_dir.
83883         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
83884         AM_SYS_POSIX_TERMIOS.
83885         Reported by mkc@mathdogs.com.
83886         Also change use of $am_cv_sys_posix_termios
83887         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
83888         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
83889         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
83890         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
83891         in /proc/mounts until it finds one with matching device number.  This
83892         is unnecessary when the FILE argument *is* a mount point.  No stat call
83893         is necessary in that case.  So, disable the statvfs-testing code on
83894         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
83895         as RedHat bug# 84846.
83896         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
83897         to 1MB, so as not to render systems with no stack size limit (e.g.,
83898         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
83899         Include <unistd.h>.  On some systems,
83900         it is required for the definition of _SC_PAGESIZE.
83901
83902 2003-08-16  Jim Meyering  <jim@meyering.net>
83903
83904         Merge from coreutils.
83905         * lib/xstrtoimax.c: #else #if -> #elif.
83906         * lib/xstrtoumax.c: Likewise.
83907
83908 2003-08-16  Jim Meyering  <jim@meyering.net>
83909
83910         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
83911         * m4/utimes.m4: Removed.
83912         * m4/utimes-null.m4: Renamed from utimes.m4.
83913
83914         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
83915         to 1MB, so as not to render systems with no stack size limit (e.g.,
83916         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
83917         Include <unistd.h>.  On some systems,
83918         it is required for the definition of _SC_PAGESIZE.
83919
83920 2003-08-16  Jim Meyering  <jim@meyering.net>
83921         and Paul Eggert  <eggert@cs.ucla.edu>
83922
83923         Merges from coreutils, etc.
83924
83925         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
83926         using the latest version from cvs.  This avoids problems with #line
83927         directives using a vendor (Sun) compiler.
83928         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
83929         Don't set GETGROUPS_LIB here; now it's
83930         done via getgroups.m4's wrapper function.
83931         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
83932         rather than just in sh-util/configure.in, so that the
83933         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
83934         same.
83935         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
83936         AC_FUNC_GETLOADAVG where to find getloadavg.c.
83937         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
83938         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
83939         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
83940         Remove code that is now done by the newly-required macros.
83941         Append $(EXEEXT) to DF_PROG.
83942         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
83943         Do not invoke or require the following here,
83944         since prereq.m4 or some gnulib .m4 now does this for us:
83945         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
83946         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
83947         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
83948         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
83949         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
83950         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
83951         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
83952         AC_FUNC_OBSTACK.
83953         Do not replace the following functions, as this is now the job
83954         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
83955         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
83956         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
83957         atexit getpass, strdup, getpagesize.
83958         Replace 'raise'.
83959         Do not check for the following functions, as this is now the job
83960         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
83961         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
83962         setregid.
83963         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
83964         Check for sys/sysctl.h.
83965         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
83966         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
83967         of checking for ssize_t ourselves.
83968
83969         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
83970         Require every macro that gnulib/modules/* suggests for us.
83971         (jm_PREREQ_ADDEXT): New macro.
83972         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
83973         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
83974
83975         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
83976         (gl_PHYSMEM): Use it.
83977         Also check for `table' function.
83978         Check for new headers and functions.
83979         Add check for sys/sysmp.h.
83980         With suggestions from Kaveh Ghazi.
83981         Ignore headers that are present but cannot be compiled.  This
83982         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
83983         C 5.4.
83984
83985 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83986
83987         Document merge from coreutils.
83988         * modules/userspec: Depend on posixver.
83989         * modules/strftime: Depend on tzset.
83990
83991 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83992
83993         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
83994         rather than tab, after '#' in shell-script copyright notices.
83995         Suggested by Bruno Haible.
83996
83997 2003-08-15  Paul Eggert  <eggert@twinsun.com>
83998
83999         * config/srclist-update: Use three spaces, rather than tab, after '#'
84000         in shell-script copyright notices.  Suggested by Bruno Haible.
84001         Remove unnecessary parenthesization in regular expression.
84002
84003 2003-08-15  Jim Meyering  <jim@meyering.net>
84004
84005         Merge from coreutils.
84006         * lib/xgethostname.c: Include <stdlib.h>.
84007         (xghostname): Don't exit for anything other than memory-related
84008         failure; just return NULL.
84009         * lib/userspec.c: Include "posixver.h".
84010         (parse_user_spec): Accept `.' as a separator only
84011         in pre-POSIX-200112 mode.
84012         * lib/strtoimax.c: Use #elif rather than #else #if.
84013         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
84014         Remove function, now that we can rely on a working tzset function.
84015         [!_LIBC]: Ensure that the required autoconf test has been run.
84016         [!defined _NL_CURRENT && HAVE_STRFTIME]:
84017         Use underlying_strftime for %r.
84018         * lib/sha.c: Merge in some clean-up and optimization changes from
84019         glibc.
84020         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
84021         Ensure that it is a multiple of 64.
84022         Rearrange loop exit tests so as to avoid performing an
84023         additional fread after encountering an error or EOF.
84024         * lib/realloc.c: Update copyright date.
84025
84026 2003-08-15  Jim Meyering  <jim@meyering.net>
84027         and Paul Eggert  <eggert@twinsun.com>
84028
84029         Merge from coreutils.
84030         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
84031         member but strut utmpx does not.  Needed for AIX 4.3.3.
84032         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
84033
84034 2003-08-15  Jim Meyering  <jim@meyering.net>
84035         and Paul Eggert  <eggert@cs.ucla.edu>
84036
84037         Merges from coreutils, etc.
84038         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
84039         Require gl_FUNC_TZSET_CLOBBER.
84040         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
84041         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
84042         members.
84043
84044 2003-08-14  Paul Eggert  <eggert@twinsun.com>
84045
84046         Help the merge from coreutils.
84047         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
84048         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
84049         * m4/tzset.m4: Use it too.
84050
84051 2003-08-14  Paul Eggert  <eggert@twinsun.com>
84052
84053         * modules/tzset: New file.
84054
84055 2003-08-14  Jim Meyering  <jim@meyering.net>
84056
84057         Merges from coreutils.
84058         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
84059         variable names, rather than @FNMATCH_H@.
84060         * modules/alloca: Likewise for $(ALLOCA_H).
84061
84062         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
84063         the three copies of the literal target, `fnmatch.h'.
84064         * modules/alloca (alloca.h): Likewise.
84065
84066 2003-08-14  Jim Meyering  <jim@meyering.net>
84067
84068         Merge from coreutils.
84069         * m4/tzset.m4: New file.
84070         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
84071         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
84072         otherwise, AIX 5.1 systems would end up using the latter.
84073         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
84074         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
84075         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
84076         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
84077
84078 2003-08-14  Jim Meyering  <jim@meyering.net>
84079
84080         Merge from coreutils.
84081         * lib/obstack.h: Whitespace changes.
84082         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
84083         and xcalloc return values.
84084         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
84085         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
84086         hang on OSF/1 5.1 for DIR on both local and remote file systems.
84087         Reported by (and fix confirmed by) Nelson H. F. Beebe.
84088         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
84089         error from mntctl.
84090         Use mntctl's return value to drive the entry-processing loop, since
84091         we can't rely on the value of the vmt_length member in the last
84092         entry.  On some systems doing so could result in exhausting
84093         virtual memory.  Based in part on a patch from Mike Jetzer.
84094
84095 2003-08-14  Jim Meyering  <jim@meyering.net>
84096         and Paul Eggert  <eggert@twinsun.com>
84097
84098         Merges from coreutils, plus other fixes.
84099         * lib/physmem.c: Merge in portability changes from gcc/libiberty
84100         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
84101         for credits and details.  Thanks to Kaveh Ghazi for helping
84102         to keep these files in sync.
84103         (ARRAY_SIZE): Define it.
84104         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
84105         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
84106         (memcasecmp): Don't assume size_t fits in unsigned int.
84107         Remove casts and duplicate code.
84108         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
84109         (memcpy): Remove definition.
84110         Merge in some clean-up and optimization changes from glibc.
84111         [BLOCKSIZE]: Move definition to top of file.
84112         Ensure that it is a multiple of 64.
84113         Rearrange loop exit tests so as to avoid performing an
84114         additional fread after encountering an error or EOF.
84115         * lib/md5.h (md5_uintptr): Define.
84116         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
84117         return to the initial working directory.  Preserve errno
84118         for caller.
84119         * lib/idcache.c: Include "xalloc.h".
84120         (xmalloc, xrealloc): Remove decls.
84121         (getuser): Remove casts no longer required in C89.
84122         * lib/human.c: Include stdio.h, for sprintf.
84123         * lib/group-member.c: Include "xalloc.h".
84124         (xmalloc, xrealloc): Remove decls.
84125         (get_group_info): Remove casts no longer required in C89.
84126         * lib/getusershell.c (readname): Remove casts no longer required in
84127         C89.
84128         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
84129         * lib/getline.c: Whitespace fix, from coreutils.
84130
84131 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84132
84133         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
84134         Check for isascii.
84135
84136         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
84137         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
84138         Undo previous (whitespace-only) change.
84139
84140 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84141
84142         * lib/exclude.c: Include <ctype.h>
84143         (IN_CTYPE_DOMAIN): New macro.
84144         (is_space): New fn.
84145         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
84146         and empty lines.
84147
84148         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
84149         Undo previous (whitespace-only) change.
84150
84151 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84152
84153         * config/srclist-update: Change update back to the old behavior,
84154         leaving whitespace alone.  Use one 'sed' command rather than a
84155         pipeline.
84156         (fixlicense): Now a variable, not a function.
84157         (remove_trailing_blanks): Remove.
84158         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
84159         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
84160         Undo previous (whitespace-only) change.
84161
84162 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84163
84164         Merge from coreutils.
84165         * modules/euidaccess: Add lib_SOURCES, include for new
84166         file euidaccess.h
84167
84168 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84169
84170         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
84171         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
84172         Normalize leading white space and remove trailing white space.
84173
84174         Merge from coreutils
84175         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
84176
84177         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
84178         0.12.1.  These files are now being upgraded automatically by
84179         ../config/srclist-update.
84180
84181 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84182
84183         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
84184         Normalize leading white space and remove trailing white space.
84185         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
84186         notice, as per ../config/srclist-update.
84187
84188         Merge from coreutils.
84189         * lib/euidaccess.h: New file.
84190         * lib/euidaccess.c: Include it.
84191         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
84192         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
84193         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
84194
84195 2003-08-12  Paul Eggert  <eggert@twinsun.com>
84196
84197         * config/srclist-update: Add copyright notice.
84198         (remove_id_lines, remove_trailing_blanks): New constants.
84199         (fixfile): Use them to normalize spacing a bit in copied files.
84200         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
84201         Normalize leading white space and remove trailing white space.
84202
84203         * config/texinfo.tex: Sync with texinfo.
84204
84205         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
84206         strtoul.c from libc, to merge coreutils whitespace changes.
84207
84208         * config/srclist.txt: Get the following m4 files from gettext:
84209         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
84210         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
84211         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
84212         wint_t.m4.
84213
84214 2003-08-12  Karl Berry  <karl@gnu.org>
84215
84216         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
84217         been made.
84218
84219 2003-08-11  Paul Eggert  <eggert@twinsun.com>
84220
84221         * modules/gnu-source, m4/gnu-source.m4:
84222         Remove; we're assuming Autoconf 2.54 or later now.
84223         Suggested by Bruno Haible.
84224         * MODULES.html.sh (func_all_modules): Remove gnu-source.
84225
84226 2003-08-11  Bruno Haible  <bruno@clisp.org>
84227
84228         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
84229
84230 2003-08-11  Bruno Haible  <bruno@clisp.org>
84231
84232         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
84233         (vasnprintf): Use it instead of wcslen.
84234
84235 2003-08-11  Bruno Haible  <bruno@clisp.org>
84236
84237         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
84238         value to ensure that _Bool promotes to int. Use #define for _Bool when
84239         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
84240
84241 2003-08-10  Karl Berry  <karl@gnu.org>
84242
84243         * lib/regex.h: update from libc (whitespace fix).
84244
84245 2003-08-09  Paul Eggert  <eggert@twinsun.com>
84246
84247         Merge some files from coreutils.  These changes were
84248         originally made by Jim Meyering.
84249         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
84250         many older Unixes require this.
84251         * lib/alloca.c (alloca): Remove cast to argument of free;
84252         no longer needed in C89.
84253         * lib/alloca_.h, regex.h: Fix white space to match
84254         what GNU indent does.
84255
84256 2003-08-09  Paul Eggert  <eggert@twinsun.com>
84257
84258         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
84259         apparently Emacs's Unicode mode got confused before my 2003-08-05
84260         checkin.
84261
84262 2003-08-08  Paul Eggert  <eggert@twinsun.com>
84263
84264         * m4/extensions.m4: New file.
84265         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
84266         Require gl_USE_SYSTEM_EXTENSIONS.
84267         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
84268         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
84269
84270 2003-08-08  Paul Eggert  <eggert@twinsun.com>
84271
84272         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
84273         * modules/extensions, modules/gnu-source: New files.
84274         * modules/timespec, modules/unlocked-io: Depend on extensions.
84275
84276 2003-08-07  Paul Eggert  <eggert@twinsun.com>
84277
84278         * modules/restrict: New file.
84279         * MODULES.html.sh (func_all_modules): Add restrict.
84280         * modules/regex: Depend on restrict.
84281
84282 2003-08-07  Paul Eggert  <eggert@twinsun.com>
84283
84284         * m4/restrict.m4: New file.
84285         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
84286
84287 2003-08-07  Bruno Haible  <bruno@clisp.org>
84288
84289         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
84290         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
84291
84292 2003-08-07  Bruno Haible  <bruno@clisp.org>
84293
84294         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
84295         makes the module 'getndelim2' compatible with the module 'getline'.
84296
84297 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84298
84299         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
84300         byte with "\201" to avoid glitches when editing that source file
84301         with multi-gnome-terminal.
84302
84303 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84304
84305         * lib/bumpalloc.h: Remove.
84306
84307 2003-08-05  Paul Eggert  <eggert@twinsun.com>
84308
84309         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
84310         * modules/bumpalloc: Remove.
84311
84312 2003-08-04  Paul Eggert  <eggert@twinsun.com>
84313
84314         * lib/getloadavg.c: Change copyright notice and spacing to conform to
84315         GNU coding style.
84316
84317         Merge from coreutils.
84318         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
84319         1. From glibc.
84320         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
84321         from Karl Berry, implemented by Jim Meyering.
84322         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
84323         from Dmitry V. Levin.
84324         Remove anachronistic cast of xrealloc.
84325         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
84326         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
84327         type. Otherwise, it wouldn't compile with at least /bin/cc on
84328         ymp-cray-unicos9.0.2.X.
84329         Combine two mostly-identical uses of alloca into one.
84330         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
84331
84332 2003-08-04  Dave Love  <d.love@dl.ac.uk>
84333
84334         [From Emacs.]
84335
84336         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
84337         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
84338         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
84339         obsolete NLIST_NAME_UNION.
84340         [__GNU__]: Undef BSD and FSCALE.
84341         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
84342
84343 2003-08-03  Paul Eggert  <eggert@twinsun.com>
84344
84345         * lib/stdbool_.h (_Bool): Make it signed char, instead of
84346         an enum type, so that it's guaranteed to promote to int.  See:
84347         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
84348
84349 2003-08-03  Karl Berry  <karl@gnu.org>
84350
84351         * config/depcomp: update from automake.
84352
84353 2003-07-31  Paul Eggert  <eggert@twinsun.com>
84354
84355         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
84356         (strerror): Don't assume that a printable int fits in 14 bytes.
84357
84358 2003-07-31  Bruno Haible  <bruno@clisp.org>
84359
84360         * modules/getpass-gnu: New file.
84361         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
84362
84363 2003-07-31  Bruno Haible  <bruno@clisp.org>
84364
84365         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
84366
84367 2003-07-24  Karl Berry  <karl@gnu.org>
84368
84369         * config/missing: update from automake.
84370
84371 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
84372             Bruno Haible  <bruno@clisp.org>
84373
84374         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
84375         * lib/getline.c (getline, getdelim): Likewise.
84376         Remove _GNU_SOURCE define; now it's defined in config.h through
84377         m4/getline.m4.
84378
84379 2003-07-23  Karl Berry  <karl@gnu.org>
84380
84381         * config/config.sub: update from prep.
84382
84383 2003-07-22  Paul Eggert  <eggert@twinsun.com>
84384
84385         * modules/xalloc (Depends-on): Add exitfail.
84386         * modules/xmemcoll: Likewise.
84387
84388 2003-07-22  Paul Eggert  <eggert@twinsun.com>
84389
84390         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
84391         over-parenthesization in macros.
84392
84393         Sync with coreutils.
84394
84395         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
84396         required by C99.
84397
84398         Use `exit_failure' for xalloc and xmemcoll instead of their own
84399         private exit-failure variables.
84400         * lib/xalloc.h (xalloc_exit_failure): Remove.
84401         * lib/xmalloc.c: Likewise.  Include exitfail.h.
84402         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
84403         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
84404         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
84405         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
84406
84407 2003-07-20  Jim Meyering  <jim@meyering.net>
84408
84409         * modules/closeout (Depends-on): Add exitfail.
84410         Suggestion from Bruno Haible.
84411
84412 2003-07-19  Karl Berry  <karl@gnu.org>
84413
84414         * config/config.sub: update from prep.
84415
84416 2003-07-18  Paul Eggert  <eggert@twinsun.com>
84417
84418         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
84419         Remove.
84420         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
84421         to test that it can stand by itself.  Include "exitfail.h".
84422         Clients should set exit_failure instead.
84423         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
84424
84425 2003-07-18  Bruno Haible  <bruno@clisp.org>
84426
84427         * modules/getndelim2: New file.
84428         * modules/getline: Share files with module getndelim2.
84429         * modules/getnline: Depend on getndelim2 instead of sharing files with
84430         it. Add getnline.c to lib_SOURCES.
84431         * MODULES.html.sh (func_all_modules): Add getndelim2.
84432
84433 2003-07-18  Bruno Haible  <bruno@clisp.org>
84434
84435         * m4/getndelim2.m4: New file.
84436         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
84437         invoke gl_PREREQ_GETNDELIM2.
84438         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
84439         gl_PREREQ_GETNDELIM2.
84440         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
84441         gl_GETNDELIM2.
84442
84443 2003-07-18  Bruno Haible  <bruno@clisp.org>
84444
84445         * lib/getndelim2.h: New file.
84446         * lib/getndelim2.c: Make into a module of its own. Include config.h,
84447         getndelim2.h.
84448         (getndelim2): Make non-static. Change return type to ssize_t.
84449         * lib/getline.h: Change argument names.
84450         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
84451         * lib/getnline.c: Include getndelim2.h.
84452
84453 2003-07-18  Andreas Schwab  <schwab@suse.de>
84454
84455         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
84456
84457 2003-07-17  Karl Berry  <karl@gnu.org>
84458
84459         * config/config.sub: update from prep.
84460
84461 2003-07-17  Bruno Haible  <bruno@clisp.org>
84462
84463         * modules/getnline: New file.
84464         * modules/getline: Add lib/getndelim2.c to source file list.
84465         * MODULES.html.sh (func_all_modules): Add getnline.
84466
84467 2003-07-17  Bruno Haible  <bruno@clisp.org>
84468
84469         * m4/getnline.m4: New file.
84470
84471 2003-07-17  Bruno Haible  <bruno@clisp.org>
84472
84473         * m4/Makefile.am.in: Remove file.
84474         * m4/Makefile.am: Remove file.
84475         * m4/Makefile.in: Remove file.
84476
84477 2003-07-17  Bruno Haible  <bruno@clisp.org>
84478
84479         * lib/getnline.h: New file.
84480         * lib/getnline.c: New file.
84481         * lib/getndelim2.c: New file, extracted from getline.c.
84482         (getndelim2): Renamed from getdelim2, with added nmax argument.
84483         * lib/getline.c: Include getndelim2.c.
84484         (getdelim2): Moved out to getndelim2.c.
84485         (getline, getdelim): Update.
84486
84487 2003-07-17  Bruno Haible  <bruno@clisp.org>
84488
84489         * lib/Makefile.am: Remove file.
84490         * lib/Makefile.in: Remove file.
84491
84492 2003-07-17  Bruno Haible  <bruno@clisp.org>
84493
84494         * configure.in: Remove file.
84495         * Makefile.in: Remove file.
84496
84497 2003-07-17  Bruno Haible  <bruno@clisp.org>
84498
84499         * MODULES.html.sh: Put the </BODY> right before </HTML>.
84500
84501 2003-07-16  Karl Berry  <karl@gnu.org>
84502
84503         * config/srclist-update: was running fixlicense twice, which caused
84504                 texinfo.tex to be nullified for some reason.  Simplify,
84505                 $gplsrc is no longer needed as far as I can see?
84506
84507 2003-07-16  Jim Meyering  <jim@meyering.net>
84508
84509         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
84510
84511 2003-07-15  Paul Eggert  <eggert@twinsun.com>
84512
84513         * config/srclist.txt: Get the following files from gettext-runtime/intl
84514         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
84515         ref-del.sin.  From Bruno Haible.
84516         * config/srclist-update (fixfile): Change grep pattern again, since the
84517         previous fix didn't work (there was another trailing $).  Use
84518         '[$]' to escape the $s.
84519
84520 2003-07-15  Karl Berry  <karl@gnu.org>
84521
84522         * lib/vasnprintf.c: update from gettext.
84523
84524 2003-07-15  Karl Berry  <karl@gnu.org>
84525
84526         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
84527         gets expanded when surrounded by '$'.
84528
84529 2003-07-15  Jim Meyering  <jim@meyering.net>
84530
84531         * modules/save-cwd: Don't depend on error.  From Derek Price.
84532
84533 2003-07-15  Jim Meyering  <jim@meyering.net>
84534
84535         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
84536
84537 2003-07-14  Simon Josefsson  <jas@extundo.com>
84538
84539         * modules/mempcpy: New file.
84540         * MODULES.html.sh (func_all_modules): Add mempcpy.
84541
84542 2003-07-14  Simon Josefsson  <jas@extundo.com>
84543
84544         * m4/mempcpy.m4: New file.
84545
84546 2003-07-14  Simon Josefsson  <jas@extundo.com>
84547
84548         * lib/mempcpy.h: New file.
84549         * lib/mempcpy.c: New file.
84550
84551 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84552
84553         * modules/getdate, modules/posixtm: Depend on mktime.
84554
84555 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84556
84557         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
84558         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
84559         unicodeio.c, unicodeio.h, unlocked-io.h:
84560         Switch from LGPL to GPL.
84561
84562 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84563
84564         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
84565         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
84566         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
84567         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
84568         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
84569         updated automatically by ../config/srclist-update.  This changes
84570         their license from LPGL to GPL.
84571
84572 2003-07-14  Paul Eggert  <eggert@twinsun.com>
84573
84574         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
84575         assumed to refer to the root of the most recent stable gettext version.
84576         * config/srclistvars.sh: Add defaults for eggert.
84577         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
84578         Match "This program" as well as "The program".  This is needed
84579         for gettext.
84580
84581 2003-07-14  Jim Meyering  <jim@meyering.net>
84582
84583         Don't emit diagnostics.  Let callers do that.
84584         * lib/save-cwd.c: Don't include "error.h".
84585         (save_cwd): Don't call error.  Ensure that errno is valid
84586         when returning nonzero.
84587
84588         * lib/save-cwd.h (restore_cwd): Update prototype.
84589         * lib/save-cwd.c (restore_cwd): Remove two parameters.
84590         Simplify.  Don't call error upon failure.  Let callers do that.
84591         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
84592         when auditing is enabled.  But don't bother updating the #if.
84593
84594 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
84595
84596         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
84597         it breaks C++ compilation.
84598         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
84599
84600 2003-07-10  Simon Josefsson  <jas@extundo.com>
84601
84602         * modules/strchrnul (Makefile.am): Add strchrnul.h.
84603
84604 2003-07-10  Jim Meyering  <jim@meyering.net>
84605
84606         * m4/clock_time.m4: Remove trailing blank.
84607         * m4/intmax_t.m4: Likewise.
84608
84609 2003-07-10  Jim Meyering  <jim@meyering.net>
84610
84611         * lib/vasnprintf.c: Remove trailing blanks.
84612         Make cpp indentation consistent.
84613
84614 2003-07-09  Paul Eggert  <eggert@twinsun.com>
84615
84616         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
84617         posixver.c, strftime.c, strnlen.c, strverscmp.c:
84618         Switch from LGPL to GPL.
84619
84620 2003-07-09  Paul Eggert  <eggert@twinsun.com>
84621
84622         * config/srclist.txt: Sort sublists.  Add
84623         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
84624         that differ from gnulib for one reason or another; we'd like this list
84625         to be smaller but for now let's document what we have.
84626
84627 2003-07-08  Paul Eggert  <eggert@twinsun.com>
84628
84629         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
84630         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
84631         and sweeter "eval x=$x".
84632         * config/srclist.txt: Get lib/argp* from glibc.
84633
84634 2003-07-07  Paul Eggert  <eggert@twinsun.com>
84635
84636         * lib/mktime.c: Fix some boundary cases and remove need for floating
84637         point.
84638
84639         Issue a compile-time diagnostic if time_t is floating point, or if
84640         two's complement arithmetic is not in effect, or if arithmetic
84641         right shift does not propagate the sign.  These assumptions were
84642         all in the original code but they weren't checked.
84643
84644         (TIME_T_MIDPOINT, verify): New macros.
84645         (__isleap): Remove; it has integer overflow problems.
84646         (leapyear): New function, without those problems.
84647         (ydhms_tm_diff): Remove; splitting into two parts.
84648         (ydhms_diff): New function, containing the arithmetic part of
84649         the old ydhms_tm_diff function.  Issue a compile-time
84650         diagnostic if we are not using C99 integer division.
84651         Avoid casts when possible.
84652         (guess_time_tm): New function, containing the checking part of
84653         the old ydhms_tm_diff function.  Return the new value, rather than
84654         the difference between it and the old.  Accept a new argument T
84655         so that *T specifies the old value.  Check for overflow in the result.
84656
84657         (__mktime_internal): Use a time_t offset, not a long int offset.
84658         This undoes the 2003-06-04 change, which is no longer needed now
84659         that we have better overflow checking.
84660         (localtime_offset): Likewise.
84661
84662         (__mktime_internal): Avoid harmful overflow on hosts where time_t
84663         and long are 64-bit but int is only 32-bit.
84664         (ydhms_diff): Use long int to store year1 and yday1.
84665         Issue a compile-time diagnostic if long int is not wide enough.
84666
84667         (__mktime_internal): Use long int to store adjusted year and yday.
84668         Use plain C rather than preprocessor commands, if that doesn't
84669         affect efficiency.
84670         Check for overflow (and try to repair) after each probe
84671         rather than checking only at the very end.  This avoids some bugs
84672         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
84673         does not equal GMT offset at maximum time).
84674         Use integer to check for overflow rather than floating point; this
84675         is more portable to non-IEEE hosts, and is a tad faster.
84676         When we detect that we are oscillating between two values,
84677         don't check whether tm_isdst has the requested value, since
84678         we already know the answer.  When tm_isdst has the wrong value,
84679         use a different heuristic to find the right one, based on the
84680         extreme values actually observed in practice in tz2003a,
84681         rather than the (overly optimistic) "previous 3 calendar quarters".
84682
84683         (not_equal_tm, print_tm, check_result): Use "const T" rather than
84684         "T const" to accommodate glibc style.
84685         (check_result): Use less-confusing report format.  "long" -> "long int.
84686         (main): Likewise.
84687         Don't loop if the iteration overflows time_t.
84688         Allow a negative step in the iteration.
84689
84690 2003-07-06  Karl Berry  <karl@gnu.org>
84691
84692         * config/depcomp: update from automake.
84693         * config/config.sub: update from prep.
84694
84695 2003-07-03  Karl Berry  <karl@gnu.org>
84696
84697         * config/config.guess: update from prep.
84698
84699 2003-07-01  Paul Eggert  <eggert@twinsun.com>
84700
84701         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
84702         xreadlink.c now includes it unconditionally.
84703
84704 2003-07-01  Paul Eggert  <eggert@twinsun.com>
84705
84706         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
84707         having it depend on HAVE_SYS_TYPES_H.
84708
84709 2003-07-01  Bruno Haible  <bruno@clisp.org>
84710
84711         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
84712         <sys/types.h> should be sufficient.
84713         Reported by Paul Eggert.
84714
84715 2003-06-26  Karl Berry  <karl@gnu.org>
84716
84717         * config/depcomp: update from automake.
84718
84719 2003-06-26  Bruno Haible  <bruno@clisp.org>
84720
84721         * modules/human: Depend on module stdbool.
84722
84723 2003-06-25  Bruno Haible  <bruno@clisp.org>
84724
84725         * modules/readlink: New file.
84726         * modules/xreadlink: Depend on it.
84727         * MODULES.html.sh (func_all_modules): Add readlink.
84728
84729 2003-06-25  Bruno Haible  <bruno@clisp.org>
84730
84731         * m4/readlink.m4: New file.
84732
84733 2003-06-25  Bruno Haible  <bruno@clisp.org>
84734
84735         * lib/readlink.c: New file.
84736
84737 2003-06-22  Karl Berry  <karl@gnu.org>
84738
84739         * config/srclist.txt: update mkinstalldirs from automake.
84740         * config/mkinstalldirs: update.
84741
84742 2003-06-22  Bruno Haible  <bruno@clisp.org>
84743
84744         Portability to mingw32.
84745         * m4/ssize_t.m4: New file, from GNU gettext.
84746         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
84747         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
84748
84749 2003-06-22  Bruno Haible  <bruno@clisp.org>
84750
84751         * modules/safe-read: Add m4/ssize_t.m4.
84752         * modules/xreadlink: Add m4/ssize_t.m4.
84753
84754 2003-06-20  Bruno Haible  <bruno@clisp.org>
84755
84756         Assume C89, so PARAMS isn't needed.
84757         * lib/unicodeio.h (PARAMS): Remove.
84758         * lib/unicodeio.c: Don't use PARAMS.
84759
84760 2003-06-18  Karl Berry  <karl@gnu.org>
84761
84762         * config/config.{guess,sub}: update from prep.
84763
84764 2003-06-18  Jim Meyering  <jim@meyering.net>
84765
84766         Merge changes from coreutils.
84767         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
84768         Remove explicit declarations of xmalloc and realloc.
84769         Include xalloc.h.
84770         (read_utmp): Remove anachronistic cast of xmalloc.
84771
84772 2003-06-17  Paul Eggert  <eggert@twinsun.com>
84773
84774         Assume C89, so PARAMS isn't needed.
84775         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
84776         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
84777         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
84778         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
84779         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
84780         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
84781         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
84782         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
84783         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
84784         lib/xstrtod.h, lib/xstrtol.h: Likewise.
84785         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
84786         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
84787         no longer needed. Anyway, config.h should always be included before any
84788         other file.
84789
84790 2003-06-11  Simon Josefsson  <jas@extundo.com>
84791
84792         * modules/sysexits: New file.
84793         * MODULES.html.sh (func_all_modules): Add sysexits.
84794
84795 2003-06-11  Simon Josefsson  <jas@extundo.com>
84796
84797         * lib/sysexit_.h: New file.
84798
84799 2003-06-11  Derek Price  <derek@ximbiot.com>
84800
84801         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
84802         necessary.
84803
84804 2003-06-11  Bruno Haible  <bruno@clisp.org>
84805
84806         * m4/sysexits.m4: New file.
84807
84808 2003-06-10  Simon Josefsson  <jas@extundo.com>
84809
84810         * lib/argp.h: New file, from glibc.
84811         * lib/argp-ba.c: New file, from glibc.
84812         * lib/argp-eexst.c: New file, from glibc.
84813         * lib/argp-fmtstream.c: New file, from glibc.
84814         * lib/argp-fmtstream.h: New file, from glibc.
84815         * lib/argp-fs-xinl.c: New file, from glibc.
84816         * lib/argp-help.c: New file, from glibc.
84817         * lib/argp-namefrob.h: New file, from glibc.
84818         * lib/argp-parse.c: New file, from glibc.
84819         * lib/argp-pv.c: New file, from glibc.
84820         * lib/argp-pvh.c: New file, from glibc.
84821         * lib/argp-xinl.c: New file, from glibc.
84822
84823 2003-06-10  Simon Josefsson  <jas@extundo.com>
84824
84825         * modules/strchrnul: New file.
84826
84827 2003-06-10  Simon Josefsson  <jas@extundo.com>
84828
84829         * modules/argp: New file.
84830
84831 2003-06-10  Simon Josefsson  <jas@extundo.com>
84832
84833         * m4/strchrnul.m4: New file.
84834
84835 2003-06-10  Simon Josefsson  <jas@extundo.com>
84836
84837         * lib/strchrnul.h: New file.
84838         * lib/strchrnul.c: New file.
84839
84840 2003-06-10  Bruno Haible  <bruno@clisp.org>
84841
84842         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
84843
84844 2003-06-07  Karl Berry  <karl@gnu.org>
84845
84846         * config/config.{guess,sub}: update from prep.
84847
84848 2003-06-07  Jim Meyering  <jim@meyering.net>
84849
84850         * modules/strtod: Use $(...) notation, not @...@ for
84851         AC_REPLACE'd variables.
84852         * modules/localcharset: Likewise.
84853
84854 2003-06-07  Jim Meyering  <jim@meyering.net>
84855
84856         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
84857         in place of my name in the copyright comment.
84858         Remove definition and uses of __P.
84859
84860         From coreutils.
84861         * lib/stat.c: Don't declare xmalloc explicitly.
84862         Instead, include "xalloc.h".
84863         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
84864         xrealloc, and xcalloc return values.
84865         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
84866         Improve comment.
84867         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
84868
84869 2003-06-07  Bruno Haible  <bruno@clisp.org>
84870
84871         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
84872         avoid AC_CONFIG_LINKS.
84873         * modules/fnmatch (Makefile.am): Use explicit creation rule for
84874         fnmatch.h, to avoid AC_CONFIG_LINKS.
84875         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
84876
84877 2003-06-07  Bruno Haible  <bruno@clisp.org>
84878
84879         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
84880         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
84881         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
84882         directory.
84883         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
84884         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
84885         directory.
84886
84887 2003-06-06  Jim Meyering  <jim@meyering.net>
84888
84889         Merge from coreutils.
84890         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
84891         Consolidate declarations and initializations of *_base* locals.
84892
84893         Merge from coreutils.
84894         This avoids a core dump on systems without GNU putenv,
84895         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
84896         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
84897         (unsetenv): New static function, from GNU libc.
84898         (rpl_putenv): Use it.
84899
84900         * lib/modechange.c: Remove trailing blanks.
84901
84902         Merge from coreutils.
84903         * lib/fsusage.c: Remove declaration of statfs.
84904         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
84905
84906         * lib/posixtm.c: Include <stdbool.h> unconditionally.
84907
84908 2003-06-06  Jim Meyering  <jim@meyering.net>
84909
84910         * lib/stdbool_.h: Renamed from stdbool.h.in.
84911
84912 2003-06-06  Jim Meyering  <jim@meyering.net>
84913             Bruno Haible  <bruno@clisp.org>
84914
84915         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
84916         Adjust Makefile.am snippet not to redirect directly to target.
84917         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
84918
84919 2003-06-05  Paul Eggert  <eggert@twinsun.com>
84920
84921         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
84922         mismatch, look in future quarters as well as past.  This fixes a
84923         bug when processing fall-backwards gaps immediately after a long
84924         period of daylight-saving time.
84925
84926         * lib/mktime.c: Assume freestanding C89 or better.
84927         (HAVE_LIMITS_H): Remove.  Assume it's 1.
84928         (__P): Remove; not used.
84929         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
84930         (mktime, not_equal_tm, print_tm, check_result,
84931         main): Use prototypes.  Use const * where appropriate.
84932         (main): Fix typo in testing code that uncovered by above changes.
84933         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
84934
84935 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84936
84937         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
84938         locale.h, localeconv.  This merges changes from coreutils.
84939
84940         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
84941         It can be removed after the next Autoconf is released.
84942         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
84943         needed.
84944
84945 2003-06-04  Paul Eggert  <eggert@twinsun.com>
84946
84947         * lib/mktime.c: Fix Debian bug 177940
84948         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
84949         (localtime_offset): Now long int, not time_t, because we want it
84950         to be guaranteed to be signed.  All uses changed.
84951         (__mktime_internal): If overflow would occur when adding offset,
84952         don't add it.
84953
84954         Merge 'human' changes from coreutils.  Rewrite to support
84955         locale-specific notations like thousands separators.
84956         * lib/human.c: Simplify authorship notice.
84957         Include human.h immediately after config.h.
84958         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
84959         <limits.h>: Do not include, since human.h does.
84960         (SIZE_MAX, UINTMAX_MAX): New macros.
84961         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
84962         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
84963         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
84964         (power_letter): Renamed from suffixes.
84965         (generate_suffix_backwards): Remove.
84966         (adjust_value): Now takes int style (because of human.h changes)
84967         and long double value (for greater precision on some platforms).
84968         (group_number): New function.
84969         (human_readable): Use it.  Use integer options, not enum.
84970         Put the options before the sizes in the arg list.
84971         Support all the new options.
84972         The old human_readable function has been removed;
84973         use inttostr.h instead.
84974         (human_readable, default_block_size, humblock):
84975         Use uintmax_t, not int, for block sizes.
84976         (human_readable_inexact, block_size_types): Remove.
84977         (block_size_opts): New constant.
84978         (human_options): Renamed from human_block_size, with new signature
84979         that allows block sizes up to UINTMAX_MAX.  All callers changed.
84980         * lib/human.h: Add copyright and authorship notice.
84981         Include <limits.h> and <stdbool.h> unconditionally.
84982         (PARAMS): Remove.  All uses removed.
84983         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
84984         (enum human_inexact_style): Remove tag; now a nameless enum.
84985         (human_floor, human_ceiling, human_round_to_even): Now have
84986         values 2, 0, 1 rather than -1, 1, 0.
84987         (human_group_digits, human_suppress_point_zero, human_autoscale,
84988         human_base_1024, human_SI, human_B): New constants.
84989         (human_readable_inexact, human_block_size): Remove.
84990         (human_readable): Size args are now uintmax_t, not int.
84991         (human_options): New decl.
84992
84993         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
84994         unnecessary now that we assume C89 or better.  This change
84995         imported from coreutils.
84996
84997         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
84998         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
84999         in the 2003-05-30 sync from glibc.
85000
85001         .h files should stand alone, but we shouldn't include <sys/types.h>
85002         if we can get away with just <stddef.h>.
85003
85004         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
85005         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
85006         rather than <sys/types.h>, as we merely need size_t.
85007         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
85008         to get size_t.
85009         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
85010         Include <stdio.h>, to get FILE.
85011         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
85012         memcasecmp.h has included <stddef.h> and all we need is size_t.
85013         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
85014         our interface, instead of including <sys/types.h>
85015
85016 2003-06-04  Paul Eggert  <eggert@twinsun.com>
85017
85018         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
85019         now, as glibc mktime is buggy on non-glibc systems.
85020
85021 2003-06-03  Karl Berry  <karl@gnu.org>
85022
85023         * config/config.sub: update from prep.
85024
85025 2003-06-02  Paul Eggert  <eggert@twinsun.com>
85026
85027         [from coreutils]
85028         Fix some minor time-related bugs with POSIX time arguments.
85029         Some valid time stamps were being rejected (notably -1, and
85030         time stamps before 1900 on 64-bit hosts).  And some invalid
85031         time stamps were being accepted, e.g. September 31.
85032
85033         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
85034         that we can return (time_t) -1 successfully.
85035         * lib/posixtm.c: Likewise.
85036         [HAVE_STDBOOL_H]: Include <stdbool.h>.
85037         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
85038         (t): Remove static var.
85039         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
85040         of static var.  All uses changed.
85041         (year): Do not reject years before 1900; they can occur with
85042         64-bit time_t.
85043         (posix_time_parse): Do not check for out-of-range components;
85044         that is now the caller's responsibility, since our checks were
85045         only approximations.
85046         (posixtime): Use mktime to check for out-of-range components,
85047         since it knows them exactly.
85048         If mktime returns (time_t) -1, check whether an error actually occurred
85049         by invoking localtime on -1.
85050         (main) [TEST_POSIXTIME]: Check for input data errors, and report
85051         posixtime failures better.
85052         Improve the test data (in comments only).
85053
85054 2003-06-02  Karl Berry  <karl@gnu.org>
85055
85056         * config/mkinstalldirs (version): new variable.
85057         (--version): new option.
85058         (usage): improve message.
85059
85060 2003-05-30  Karl Berry  <karl@gnu.org>
85061
85062         * lib/mktime.c: update from libc.
85063
85064 2003-05-30  Bruno Haible  <bruno@clisp.org>
85065
85066         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
85067         * config/config.rpath: Upgrade to gettext-0.12.1.
85068
85069 2003-05-30  Bruno Haible  <bruno@clisp.org>
85070
85071         * m4/gettext.m4: Upgrade to gettext-0.12.1.
85072         * m4/nls.m4: New file, from gettext-0.12.1.
85073         * m4/po.m4: New file, from gettext-0.12.1.
85074         * m4/progtest.m4: Upgrade to gettext-0.12.1.
85075
85076 2003-05-30  Bruno Haible  <bruno@clisp.org>
85077
85078         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
85079         * lib/localcharset.h: Likewise.
85080         * lib/localcharset.c: Likewise.
85081
85082 2003-05-29  Karl Berry  <karl@gnu.org>
85083
85084         * config/config.rpath: update from gettext.
85085
85086 2003-05-28  Paul Eggert  <eggert@twinsun.com>
85087
85088         Assume the headers required for C89 freestanding compilers.
85089         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
85090         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
85091         * m4/human.m4 (gl_HUMAN): Likewise.
85092         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
85093         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
85094         * m4/userspec.m4 (gl_USERSPEC): Likewise.
85095         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
85096         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
85097         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
85098
85099 2003-05-28  Paul Eggert  <eggert@twinsun.com>
85100
85101         Assume the headers required for C89 freestanding compilers.
85102         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
85103         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
85104         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
85105         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
85106         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
85107         define, since <limits.h> is guaranteed to do that.
85108         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
85109         * lib/exclude.c: Include <stdbool.h> unconditionally.
85110         * lib/tempname.c: Include <stddef.h> unconditionally.
85111         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
85112         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
85113         <stddef.h> does that.
85114         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
85115         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
85116         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
85117         needed.
85118         * lib/xstrtol.c: Likewise.
85119         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
85120         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
85121
85122         * lib/addext.c (addext): Use assignment rather than cast, to avoid
85123         warnings on some platforms.
85124
85125         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
85126         arbitrarily.
85127
85128 2003-05-26  Jim Meyering  <jim@meyering.net>
85129
85130         Merge in a change from coreutils:
85131         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
85132         that is guaranteed to be `no'.  Use `no_such_member' to indicate
85133         that condition, rather than `-1' which is slightly misleading.
85134         Change the name of the cache variable to have the gl_ prefix.
85135         Prompted by a patch from Richard Dawe for DJGPP.
85136
85137 2003-05-24  Karl Berry  <karl@gnu.org>
85138
85139         * config/config.guess: update from prep.
85140
85141 2003-05-22  Karl Berry  <karl@gnu.org>
85142
85143         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
85144
85145 2003-05-20  Karl Berry  <karl@gnu.org>
85146
85147         * config/config.guess: update from prep.
85148
85149 2003-05-18  Karl Berry  <karl@gnu.org>
85150
85151         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
85152         might actually be set by the user.
85153
85154         * config/depcomp, install-sh, mdate-sh: update from automake.
85155
85156 2003-05-17  Bruno Haible  <bruno@clisp.org>
85157
85158         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
85159         invalid expansion for AC_EGREP_CPP.
85160         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
85161         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
85162         Suggested by Akim Demaille <akim@epita.fr> in
85163         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
85164
85165 2003-05-12  Jim Meyering  <jim@meyering.net>
85166
85167         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
85168         the space-padded-by-default conversion specifiers, %e, %k, %l.
85169
85170 2003-05-12  Bruno Haible  <bruno@clisp.org>
85171
85172         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
85173         the string is longer than 4 KB.
85174
85175 2003-05-11  Karl Berry  <karl@gnu.org>
85176
85177         * config/config.{guess,sub}: update from prep.
85178
85179 2003-05-09  Bruno Haible  <bruno@clisp.org>
85180
85181         * modules/error: Add m4/strerror_r.m4 to file list.
85182
85183 2003-05-03  Bruno Haible  <bruno@clisp.org>
85184
85185         Upgrade to Unicode-4.0.
85186         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
85187         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
85188         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
85189         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
85190         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
85191         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
85192         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
85193         Change width of U+E0100..U+E01EF from 1 to 0.
85194
85195 2003-04-25  Jim Meyering  <jim@meyering.net>
85196
85197         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
85198         of type size_t, not int.
85199
85200 2003-04-25  Bruno Haible  <bruno@clisp.org>
85201
85202         * lib/copy-file.c: Include <stddef.h>, for size_t.
85203
85204 2003-04-21  Paul Eggert  <eggert@twinsun.com>
85205
85206         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
85207         code which expansion is under static control.  Patch imported from
85208         Akim Demaille's patch to Bison; see
85209         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
85210
85211 2003-04-14  Bruno Haible  <bruno@clisp.org>
85212
85213         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
85214
85215 2003-04-11  Jim Meyering  <jim@meyering.net>
85216
85217         Merge changes from Coreutils.
85218
85219         2003-03-22  Jim Meyering  <jim@meyering.net>
85220
85221         * lib/strftime.c (widen): Cast alloca return value to proper type.
85222
85223         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
85224
85225         From GNU libc.
85226         * lib/strftime.c (my_strftime): Handle very large width
85227         specifications for numeric values correctly.  Improve checks for
85228         overflow.
85229
85230         2003-01-19  Jim Meyering  <jim@meyering.net>
85231
85232         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
85233         definitions.
85234         (nl_get_alt_digit) [! defined my_strftime]: Define.
85235         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
85236         _nl_get_alt_digit and _nl_get_walt_digit.
85237
85238         * lib/strftime.c (my_strftime): Merge in locale-related changes from
85239         libc. These changes have no effect outside of _LIBC.
85240
85241 2003-04-10  Bruno Haible  <bruno@clisp.org>
85242
85243         * modules/findprog: New file.
85244         * MODULES.html.sh (func_all_modules): Add it.
85245
85246 2003-04-10  Bruno Haible  <bruno@clisp.org>
85247
85248         * m4/findprog.m4: New file.
85249         * m4/eaccess.m4: New file.
85250
85251 2003-04-10  Bruno Haible  <bruno@clisp.org>
85252
85253         * lib/findprog.h: New file, from GNU gettext.
85254         * lib/findprog.c: New file, from GNU gettext.
85255
85256 2003-04-05  Jim Meyering  <jim@meyering.net>
85257
85258         Merge changes from Coreutils.
85259
85260         * lib/exclude.h (PARAMS): Remove definition and uses.
85261         * lib/exclude.c: Remove uses of `PARAMS'.
85262
85263         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
85264         Add test-cases for DOS filenames. Declare program_name.
85265         (main): Set up program_name.  Patch by Rich Dawe.
85266
85267         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
85268         error from mntctl.
85269         Use mntctl's return value to drive the entry-processing loop, since
85270         we can't rely on the value of the vmt_length member in the last
85271         entry.  On some systems doing so could result in exhausting
85272         virtual memory.  Based in part on a patch from Mike Jetzer.
85273
85274 2003-04-04  Bruno Haible  <bruno@clisp.org>
85275
85276         * modules/linebreak: New file.
85277         * MODULES.html.sh (func_all_modules): Add it.
85278
85279 2003-04-04  Bruno Haible  <bruno@clisp.org>
85280
85281         * m4/linebreak.m4: New file.
85282
85283 2003-04-04  Bruno Haible  <bruno@clisp.org>
85284
85285         * lib/linebreak.h: New file, from GNU gettext.
85286         * lib/linebreak.c: New file, from GNU gettext with slight
85287         modifications.
85288         * lib/lbrkprop.h: New file, from GNU gettext.
85289
85290 2003-04-03  Bruno Haible  <bruno@clisp.org>
85291
85292         * modules/utf8-ucs4: New file.
85293         * modules/utf16-ucs4: New file.
85294         * modules/ucs4-utf8: New file.
85295         * modules/ucs4-utf16: New file.
85296         * MODULES.html.sh (func_all_modules): Add them.
85297
85298 2003-04-03  Bruno Haible  <bruno@clisp.org>
85299
85300         * m4/utf-ucs4.m4: New file.
85301         * m4/ucs4-utf.m4: New file.
85302
85303 2003-04-03  Bruno Haible  <bruno@clisp.org>
85304
85305         * lib/utf8-ucs4.h: New file, from GNU gettext.
85306         * lib/utf16-ucs4.h: New file, from GNU gettext.
85307         * lib/ucs4-utf8.h: New file, from GNU gettext.
85308         * lib/ucs4-utf16.h: New file, from GNU gettext.
85309
85310 2003-04-02  Bruno Haible  <bruno@clisp.org>
85311
85312         * modules/binary-io: New file.
85313         * MODULES.html.sh (func_all_modules): Add it.
85314
85315 2003-04-02  Bruno Haible  <bruno@clisp.org>
85316
85317         * lib/binary-io.h: New file, from GNU gettext.
85318
85319 2003-04-01  Bruno Haible  <bruno@clisp.org>
85320
85321         * modules/pathname: New file.
85322         * MODULES.html.sh (func_all_modules): Add it.
85323
85324 2003-04-01  Bruno Haible  <bruno@clisp.org>
85325
85326         * lib/pathname.h: New file, from GNU gettext.
85327         * lib/concatpath.c: New file, from GNU gettext.
85328
85329 2003-03-30  Bruno Haible  <bruno@clisp.org>
85330
85331         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
85332
85333 2003-03-30  Bruno Haible  <bruno@clisp.org>
85334
85335         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
85336         function chown() doesn't exist.
85337
85338 2003-03-28  Bruno Haible  <bruno@clisp.org>
85339
85340         * modules/copy-file: New file.
85341         * MODULES.html.sh (func_all_modules): Add it.
85342
85343 2003-03-28  Bruno Haible  <bruno@clisp.org>
85344
85345         * m4/copy-file.m4: New file.
85346
85347 2003-03-28  Bruno Haible  <bruno@clisp.org>
85348
85349         * lib/copy-file.h: New file, from GNU gettext.
85350         * lib/copy-file.c: New file, from GNU gettext.
85351
85352 2003-03-18  Jim Meyering  <jim@meyering.net>
85353
85354         * lib/quote.c (quote_n): Fix typo in comment.
85355
85356 2003-03-18  Bruno Haible  <bruno@clisp.org>
85357
85358         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
85359         checking.
85360         * m4/onceonly_2_57.m4: Likewise.
85361
85362 2003-03-17  Bruno Haible  <bruno@clisp.org>
85363
85364         * m4/onceonly.m4: Require autoconf 2.54 or newer.
85365         (m4_quote): Remove macro.
85366         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
85367
85368 2003-03-14  Jim Meyering  <jim@meyering.net>
85369
85370         Merge changes from Coreutils.
85371         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
85372         to be const, in order to avoid warnings.
85373         (obstack_room): Likewise.
85374         (obstack_empty_p): Likewise.
85375
85376 2003-03-14  Bruno Haible  <bruno@clisp.org>
85377
85378         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
85379         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
85380
85381 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85382
85383         Merge changes from Bison.
85384         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
85385         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
85386         when compiling Bison 1.875's `bitset bset = obstack_alloc
85387         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
85388         * lib/hash.c: Include <stdbool.h> unconditionally.
85389
85390 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85391
85392         * m4/onceonly.m4 (m4_quote): New macro.
85393         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
85394         Quote AC_FOREACH variable-expansions properly.
85395
85396 2003-03-13  Paul Eggert  <eggert@twinsun.com>
85397
85398         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
85399
85400 2003-03-09  Paul Eggert  <eggert@twinsun.com>
85401
85402         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
85403         Reported by Bruce Becker; see:
85404         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
85405
85406 2003-03-03  Paul Eggert  <eggert@twinsun.com>
85407             Bruno Haible  <bruno@clisp.org>
85408
85409         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
85410         Reported by John Hughes, see
85411         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
85412
85413 2003-02-20  Bruno Haible  <bruno@clisp.org>
85414
85415         * MODULES.html.sh (func_all_modules): Add poll.
85416
85417 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85418
85419         * modules/poll: New file.
85420
85421 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85422
85423         * lib/poll_.h: New file.
85424         * lib/poll.c: New file.
85425
85426 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
85427
85428         * m4/poll.m4: New file.
85429
85430 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85431
85432         * modules/mathl: New file.
85433
85434 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85435
85436         * lib/mathl.h: New file.
85437         * lib/acosl.c: New file.
85438         * lib/asinl.c: New file.
85439         * lib/atanl.c: New file.
85440         * lib/ceill.c: New file.
85441         * lib/cosl.c: New file.
85442         * lib/expl.c: New file.
85443         * lib/floorl.c: New file.
85444         * lib/frexpl.c: New file.
85445         * lib/ldexpl.c: New file.
85446         * lib/logl.c: New file.
85447         * lib/sincosl.c: New file.
85448         * lib/sinl.c: New file.
85449         * lib/sqrtl.c: New file.
85450         * lib/tanl.c: New file.
85451         * lib/trigl.c: New file.
85452         * lib/trigl.h: New file.
85453
85454 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
85455
85456         * m4/mathl.m4: New file.
85457
85458 2003-02-18  Bruno Haible  <bruno@clisp.org>
85459
85460         * MODULES.html.sh (func_all_modules): Add mathl.
85461
85462 2003-02-17  Bruno Haible  <bruno@clisp.org>
85463
85464         * modules/mkdtemp: New module.
85465         * MODULES.html.sh (func_all_modules): Add it.
85466
85467 2003-02-17  Bruno Haible  <bruno@clisp.org>
85468
85469         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
85470
85471 2003-02-17  Bruno Haible  <bruno@clisp.org>
85472
85473         * lib/mkdtemp.h: New file, from GNU gettext.
85474         * lib/mkdtemp.c: New file, from GNU gettext.
85475
85476 2003-02-02  Jim Meyering  <jim@meyering.net>
85477
85478         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
85479         e.g. glibc-2.2.93.
85480
85481 2003-01-31  Bruno Haible  <bruno@clisp.org>
85482
85483         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
85484         'rpl_rename'.
85485         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
85486         'rpl_strnlen'.
85487         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
85488         'rpl_strtod'.
85489         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
85490         'rpl_utime'.
85491
85492 2003-01-31  Bruno Haible  <bruno@clisp.org>
85493
85494         * lib/rename.c: #undef rename before defining rpl_rename.
85495         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
85496
85497 2003-01-30  Bruno Haible  <bruno@clisp.org>
85498
85499         * modules/vasnprintf, modules/vasprintf: New modules.
85500         * MODULES.html.sh (func_all_modules): Add them.
85501
85502 2003-01-30  Bruno Haible  <bruno@clisp.org>
85503
85504         * m4/signed.m4: New file, from GNU gettext.
85505         * m4/longdouble.m4: New file, from GNU gettext.
85506         * m4/wchar_t.m4: New file, from GNU gettext.
85507         * m4/wint_t.m4: New file, from GNU gettext.
85508         * m4/vasnprintf.m4: New file.
85509         * m4/vasprintf.m4: New file.
85510
85511 2003-01-30  Bruno Haible  <bruno@clisp.org>
85512
85513         * lib/printf-args.h: New file, from GNU gettext.
85514         * lib/printf-args.c: New file, from GNU gettext.
85515         * lib/printf-parse.h: New file, from GNU gettext.
85516         * lib/printf-parse.c: New file, from GNU gettext.
85517         * lib/vasnprintf.h: New file, from GNU gettext.
85518         * lib/vasnprintf.c: New file, from GNU gettext.
85519         * lib/asnprintf.c: New file, from GNU gettext.
85520         * lib/vasprintf.h: New file, from GNU gettext with modifications.
85521         * lib/vasprintf.c: New file, from GNU gettext.
85522         * lib/asprintf.c: New file, from GNU gettext.
85523
85524 2003-01-29  Bruno Haible  <bruno@clisp.org>
85525
85526         * modules/stpncpy: New module.
85527         * MODULES.html.sh (func_all_modules): Add it.
85528
85529 2003-01-29  Bruno Haible  <bruno@clisp.org>
85530
85531         * m4/stpncpy.m4: New file.
85532
85533 2003-01-29  Bruno Haible  <bruno@clisp.org>
85534
85535         * lib/stpncpy.h: New file, from GNU gettext with modifications.
85536         * lib/stpncpy.c: New file, from GNU gettext with modifications.
85537
85538 2003-01-28  Bruno Haible  <bruno@clisp.org>
85539
85540         * modules/c-ctype: New module.
85541         * MODULES.html.sh (func_all_modules): Add it.
85542
85543 2003-01-28  Bruno Haible  <bruno@clisp.org>
85544
85545         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
85546         Paul Eggert.
85547         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
85548         Paul Eggert.
85549
85550 2003-01-27  Bruno Haible  <bruno@clisp.org>
85551
85552         * modules/xsetenv: New module.
85553         * MODULES.html.sh (func_all_modules): Add it.
85554
85555 2003-01-27  Bruno Haible  <bruno@clisp.org>
85556
85557         * lib/xsetenv.h: New file, from GNU gettext.
85558         * lib/xsetenv.c: New file, from GNU gettext.
85559
85560 2003-01-23  Jim Meyering  <jim@meyering.net>
85561
85562         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
85563         from working on systems without dirfd (at least Irix and OSF1/Tru64).
85564
85565 2003-01-23  Bruno Haible  <bruno@clisp.org>
85566
85567         * modules/minmax: New module.
85568         * MODULES.html.sh (func_all_modules): Add it.
85569
85570 2003-01-23  Bruno Haible  <bruno@clisp.org>
85571
85572         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
85573         Eggert.
85574
85575 2003-01-22  Bruno Haible  <bruno@clisp.org>
85576
85577         * modules/exit: New module.
85578         * MODULES.html.sh (func_all_modules): Add it.
85579
85580 2003-01-22  Bruno Haible  <bruno@clisp.org>
85581
85582         * lib/exit.h: New file, from GNU gettext.
85583
85584 2003-01-19  Bruno Haible  <bruno@clisp.org>
85585
85586         * gnulib-tool: Recognize option --extract-maintainer.
85587         (func_get_maintainer): New function.
85588         * modules/*: Add Maintainer entry.
85589
85590 2003-01-16  Jim Meyering  <jim@meyering.net>
85591
85592         * m4/regex.m4: The `regex' struct is both input and output.
85593         Initialize it before each use.  Patch by Tim Waugh.
85594
85595 2003-01-16  Bruno Haible  <bruno@clisp.org>
85596
85597         * MODULES.html.sh: Add a table of contents. Add the module name as
85598         leftmost column. Add hyperlinks.
85599
85600 2003-01-15  Bruno Haible  <bruno@clisp.org>
85601
85602         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
85603
85604 2003-01-15  Bruno Haible  <bruno@clisp.org>
85605
85606         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
85607         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
85608         suffix.
85609
85610 2003-01-15  Bruno Haible  <bruno@clisp.org>
85611
85612         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
85613
85614 2003-01-15  Bruno Haible  <bruno@clisp.org>
85615
85616         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
85617         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
85618
85619 2003-01-14  Jim Meyering  <jim@meyering.net>
85620
85621         * lib/same.c (same_name): Tweak a comment.
85622
85623 2003-01-14  Bruno Haible  <bruno@clisp.org>
85624
85625         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
85626         when a string comparison is sufficient.
85627
85628 2003-01-14  Bruno Haible  <bruno@clisp.org>
85629
85630         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
85631         'unsigned int'.
85632
85633 2003-01-14  Bruno Haible  <bruno@clisp.org>
85634
85635         * lib/hash-pjw.c: Add comment about low quality of this function.
85636
85637 2003-01-13  Bruno Haible  <bruno@clisp.org>
85638
85639         * modules/stpcpy: Distribute lib/stpcpy.h.
85640         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
85641
85642 2003-01-13  Bruno Haible  <bruno@clisp.org>
85643
85644         * modules/*: Add a description.
85645         * modules/strpbrk: Fix Makefile.am snippet.
85646         * modules/strtoimax: Fix dependencies.
85647         * modules/strtoumax: Likewise.
85648
85649 2003-01-13  Bruno Haible  <bruno@clisp.org>
85650
85651         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
85652         * modules/alloca (Makefile.am): All object files depend on alloca.h.
85653         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
85654
85655 2003-01-13  Bruno Haible  <bruno@clisp.org>
85656
85657         * gnulib-tool (func_create_testdir): Store config/* files in the main
85658         directory.
85659         * config.rpath: Move to ...
85660         * config/config.rpath: ... here.
85661         * modules/gettext: Contains config/config.rpath, not config.rpath.
85662         * modules/iconv: Likewise.
85663
85664 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85665
85666         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85667         to avoid collisions with libcurses and libreadline.
85668
85669         * m4/getstr.m4: Remove.
85670         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
85671
85672 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85673
85674         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85675         to avoid collisions with libcurses and libreadline.
85676
85677         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
85678         * lib/getstr.h, getstr.c: Remove.
85679         * lib/getline.c: Include "getline.h", to check interface.
85680         Move body of old getstr.c here: this defines MIN_CHUNK and
85681         declares getdelim2, which is renamed from getstr.
85682         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
85683
85684         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
85685         All uses changed.
85686         * lib/linebuffer.h: Likewise.
85687         (readline): Remove backward-compatibility macro.
85688
85689 2003-01-12  Paul Eggert  <eggert@twinsun.com>
85690
85691         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
85692         to avoid collisions with libcurses and libreadline.
85693         * getstr: Remove.
85694         * MODULES.html.sh: Remove getstr.
85695         * modules/getline: Depend on unlocked-io, not getstr.
85696
85697 2003-01-12  Jim Meyering  <jim@meyering.net>
85698
85699         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
85700
85701 2003-01-10  Bruno Haible  <bruno@clisp.org>
85702
85703         * modules/alloca: Change Makefile.am requirements. Simplify Include
85704         requirements. Add lib/alloca_.h to file list.
85705
85706 2003-01-10  Bruno Haible  <bruno@clisp.org>
85707
85708         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
85709
85710 2003-01-10  Bruno Haible  <bruno@clisp.org>
85711
85712         * lib/alloca_.h: New file.
85713         * lib/getdate.y: Unconditionally include alloca.h.
85714         * lib/makepath.c: Likewise.
85715         * lib/setenv.c: Likewise.
85716         * lib/userspec.c: Likewise.
85717
85718 2003-01-09  Karl Berry  <karl@gnu.org>
85719
85720         * MODULES.html.sh: include `dirname $0` in PATH, to find
85721         gnulib-tool.
85722
85723 2003-01-09  Bruno Haible  <bruno@clisp.org>
85724
85725         * modules/stdbool: Change configure.ac, Makefile.am requirements.
85726         Simplify Include requirements. Add lib/stdbool.h.in to file list.
85727
85728 2003-01-09  Bruno Haible  <bruno@clisp.org>
85729
85730         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
85731
85732 2003-01-09  Bruno Haible  <bruno@clisp.org>
85733
85734         * lib/stdbool.h.in: New file.
85735
85736 2003-01-09  Bruno Haible  <bruno@clisp.org>
85737
85738         * gnulib-tool (func_all_modules): Ignore files ending in ~.
85739         * MODULES.html.sh: Likewise.
85740
85741 2003-01-08  Jim Meyering  <jim@meyering.net>
85742
85743         * lib/full-write.c: Undefine and define-away `const' after inclusion
85744         of errno.h, not before.  Suggestion from Bruno Haible.
85745
85746 2003-01-08  Bruno Haible  <bruno@clisp.org>
85747
85748         * modules/full-read: Depend on full-write.
85749
85750 2003-01-08  Bruno Haible  <bruno@clisp.org>
85751
85752         * lib/safe-read.c: Include specification header first, to ensure its
85753         selfcontainedness.
85754         * lib/full-write.c: Likewise.
85755
85756 2003-01-07  Jim Meyering  <jim@meyering.net>
85757
85758         * lib/full-write.c: Rework so that it may serve to define full_read,
85759         too.
85760         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
85761
85762 2003-01-07  Bruno Haible  <bruno@clisp.org>
85763
85764         * lib/strtoimax.c: Include <stdint.h> as an alternative to
85765         <inttypes.h>.
85766         * lib/xstrtol.h: Likewise.
85767         * lib/xstrtoimax.c: Likewise.
85768         * lib/xstrtoumax.c: Likewise.
85769         * lib/human.h: Likewise.
85770
85771         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
85772         on systems that have <inttypes.h> but not <stdint.h>.
85773
85774 2003-01-07  Bruno Haible  <bruno@clisp.org>
85775
85776         * MODULES.html.sh: Add copyright notice.
85777         (missed_files): Omit CVS directory entries.
85778         (func_module): Make it work with sed-3.02.
85779         * MODULES.txt: Remove file.
85780
85781 2003-01-06  Jim Meyering  <jim@meyering.net>
85782
85783         * lib/version-etc.c: Update year in translatable copyright string.
85784
85785 2003-01-03  Karl Berry  <karl@gnu.org>
85786
85787         * config/config.{guess,sub}: update from prep.
85788
85789 2003-01-02  Karl Berry  <karl@gnu.org>
85790
85791         * doc/COPYING.DOC: belatedly updated to 1.2.
85792
85793 2003-01-01  Karl Berry  <karl@gnu.org>
85794
85795         * gnulib-tool (func_verify_module): report module name $module in
85796         error message, not $1.
85797         * gnulib-tool (create-testdir): don't complain if destdir couldn't
85798         be created, only if it doesn't exist.
85799         * gnulib-tool (last_checkin_date): don't expand the $Date here.
85800
85801 2002-12-31  Paul Eggert  <eggert@twinsun.com>
85802
85803         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
85804
85805 2002-12-31  Paul Eggert  <eggert@twinsun.com>
85806
85807         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
85808         memcmp if strcoll doesn't work.
85809
85810 2002-12-31  Bruno Haible  <bruno@clisp.org>
85811
85812         * lib/utime.c (utime_null): No need to call ftruncate if the file was
85813         nonempty.
85814
85815 2002-12-31  Bruno Haible  <bruno@clisp.org>
85816
85817         * lib/memcoll.c (STRCOLL): New macro.
85818         (memcoll): Use it.
85819
85820 2002-12-31  Bruno Haible  <bruno@clisp.org>
85821
85822         * lib/localcharset.h: New file.
85823         * lib/localcharset.c: Include it.
85824         * lib/unicodeio.c: Likewise.
85825
85826 2002-12-31  Bruno Haible  <bruno@clisp.org>
85827
85828         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
85829         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
85830
85831 2002-12-31  Bruno Haible  <bruno@clisp.org>
85832
85833         * lib/getline.h: Include <stddef.h>, for size_t.
85834
85835         * lib/unicodeio.h: Include <stddef.h>, for size_t.
85836         * lib/unicodeio.c: Don't include <stddef.h>.
85837
85838 2002-12-31  Bruno Haible  <bruno@clisp.org>
85839
85840         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
85841         HAVE_TM_ZONE.
85842
85843 2002-12-24  Karl Berry  <karl@gnu.org>
85844
85845         * config/config.guess: update from prep.
85846
85847 2002-12-24  Bruno Haible  <bruno@clisp.org>
85848
85849         General infrasructure.
85850         * m4/README: Rewritten.
85851         * m4/onceonly.m4: New file.
85852         * m4/onceonly_2_57.m4: New file.
85853
85854         Module atexit.
85855         * m4/atexit.m4: New file.
85856
85857         Module strtod.
85858         * m4/strtod.m4: New file.
85859
85860         Module strtol.
85861         * m4/strtol.m4: New file.
85862
85863         Module strtoul.
85864         * m4/strtoul.m4: New file.
85865
85866         Module memchr.
85867         * m4/memchr.m4: New file.
85868
85869         Module memcmp.
85870         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
85871         (jm_FUNC_MEMCMP): Invoke it.
85872
85873         Module memcpy.
85874         * m4/memcpy.m4: New file.
85875
85876         Module memmove.
85877         * m4/memmove.m4: New file.
85878
85879         Module memset.
85880         * m4/memset.m4: New file.
85881
85882         Module strcspn.
85883         * m4/strcspn.m4: New file.
85884
85885         Module strpbrk.
85886         * m4/strpbrk.m4: New file.
85887
85888         Module strstr.
85889         * m4/strstr.m4: New file.
85890
85891         Module strerror.
85892         * m4/strerror.m4: New file.
85893
85894         Module mktime.
85895         * m4/mktime.m4: Renamed from jm-mktime.m4.
85896         (gl_PREREQ_MKTIME): New macro.
85897         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
85898
85899         Module malloc.
85900         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
85901         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
85902         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
85903
85904         Module realloc.
85905         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
85906         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
85907         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
85908
85909         Module strftime.
85910         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
85911         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
85912         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
85913         gl_TM_GMTOFF.
85914         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
85915
85916         Module xalloc.
85917         * m4/xalloc.m4: New file.
85918
85919         Module alloca.
85920         * m4/alloca.m4: New file.
85921
85922         Module putenv.
85923         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
85924         (jm_FUNC_PUTENV): Invoke it.
85925
85926         Module setenv.
85927         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
85928         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
85929         when invoked twice.
85930         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
85931         gt_FUNC_SETENV.
85932
85933         Module memrchr.
85934         * m4/memrchr.m4: New file.
85935
85936         Module stpcpy.
85937         * m4/stpcpy.m4: New file.
85938
85939         Module strcase.
85940         * m4/strcase.m4: New file.
85941
85942         Module strdup.
85943         * m4/strdup.m4: New file.
85944
85945         Module strnlen.
85946         * m4/strnlen.m4: New file.
85947
85948         Module strndup.
85949         * m4/strndup.m4: New file.
85950
85951         Module xstrtod.
85952         * m4/xstrtod.m4: New file.
85953
85954         Module xstrtol.
85955         * m4/xstrtol.m4: New file.
85956
85957         Module getdate.
85958         * m4/getdate.m4: New file.
85959
85960         Module unlocked-io.
85961         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
85962         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
85963         * m4/jm-glibc-io.m4n: Remove file.
85964
85965         Module long-options.
85966         * m4/long-options.m4: New file.
85967
85968         Module md5.
85969         * m4/md5.m4: New file.
85970
85971         Module sha.
85972         * m4/sha.m4: New file.
85973
85974         Module getstr.
85975         * m4/getstr.m4: New file.
85976
85977         Module getline.
85978         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
85979         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
85980         <sys/types.h>, for size_t. Use the function name gnu_getline, not
85981         simply getline. Infoke gl_PREREQ_GETLINE.
85982
85983         Module obstack.
85984         * m4/obstack.m4: New file.
85985
85986         Module hash.
85987         * m4/hash.m4: New file.
85988
85989         Module readtokens.
85990         * m4/readtokens.m4: New file.
85991
85992         Module strverscmp.
85993         * m4/strverscmp.m4: New file.
85994
85995         Module stdbool.
85996         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
85997         OSF/1.
85998
85999         Module strtoll.
86000         * m4/strtoll.m4: New file.
86001
86002         Module strtoull.
86003         * m4/strtoull.m4: New file.
86004
86005         Module strtoimax.
86006         * m4/strtoimax.m4: New file.
86007
86008         Module strtoumax.
86009         * m4/strtoumax.m4: New file.
86010
86011         Module xstrtoimax.
86012         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
86013         jm_AC_PREREQ_XSTRTOIMAX.
86014         Moved the strtol prerequisites to strtol.m4.
86015         Moved the strtoll prerequisites to strtoll.m4.
86016         Moved the strtoimax prerequisites to strtoimax.m4.
86017
86018         Module xstrtoumax.
86019         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
86020         jm_AC_PREREQ_XSTRTOUMAX.
86021         Moved the strtoul prerequisites to strtoul.m4.
86022         Moved the strtoull prerequisites to strtoull.m4.
86023         Moved the strtoumax prerequisites to strtoumax.m4.
86024
86025         Module chown.
86026         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
86027         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
86028
86029         Module dup2.
86030         * m4/dup2.m4: New file.
86031
86032         Module ftruncate.
86033         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
86034         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
86035
86036         Module getgroups.
86037         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
86038         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
86039
86040         Module gettimeofday.
86041         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
86042         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
86043         gl_PREREQ_GETTIMEOFDAY.
86044
86045         Module mkdir.
86046         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
86047         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
86048
86049         Module mkstemp.
86050         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
86051         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
86052         jm_AC_TYPE_UINTMAX_T.
86053         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
86054
86055         Module stat.
86056         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
86057         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
86058
86059         Module lstat.
86060         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
86061         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
86062
86063         Module timespec.
86064         * m4/timespec.m4 (gl_TIMESPEC): New macro.
86065         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
86066         * m4/st_mtim.m4: Indentation.
86067
86068         Module nanosleep.
86069         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
86070         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
86071         gl_PREREQ_NANOSLEEP.
86072
86073         Module regex.
86074         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
86075         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
86076         (gl_REGEX): New macro.
86077
86078         Module rename.
86079         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
86080         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
86081
86082         Module rmdir.
86083         * m4/rmdir.m4: New file.
86084
86085         Module utime.
86086         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
86087         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
86088         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
86089
86090         Module dirname.
86091         * m4/dirname.m4: New file.
86092
86093         Module getopt.
86094         * m4/getopt.m4: New file.
86095
86096         Module unistd-safer.
86097         * m4/unistd-safer.m4: New file.
86098
86099         Module fnmatch.
86100         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
86101         declaration.
86102         (gl_PREREQ_FNMATCH_EXTRA): New macro.
86103         (gl_FUNC_FNMATCH_POSIX): New macro.
86104         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
86105         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
86106         simply fnmatch.
86107
86108         Module exclude.
86109         * m4/exclude.m4: New file.
86110
86111         Module human.
86112         * m4/human.m4: New file.
86113
86114         Module acl.
86115         * m4/acl.m4: Nop.
86116
86117         Module backupfile.
86118         * m4/backupfile.m4: New file.
86119         * m4/d-ino.m4: Indentation.
86120
86121         Module fsusage.
86122         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
86123         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
86124         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
86125
86126         Module dirfd.
86127         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
86128         requirements.
86129
86130         Module euidaccess.
86131         * m4/euidaccess.m4: New file.
86132
86133         Module file-type.
86134         * m4/file-type.m4: New file.
86135
86136         Module fileblocks.
86137         * m4/fileblocks.m4: New file.
86138
86139         Module filemode.
86140         * m4/filemode.m4: New file.
86141
86142         Module isdir.
86143         * m4/isdir.m4: New file.
86144
86145         Module lchown.
86146         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
86147         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
86148
86149         Module makepath.
86150         * m4/makepath.m4: New file.
86151
86152         Module modechange.
86153         * m4/modechange.m4: New file.
86154
86155         Module mountlist.
86156         * m4/mountlist.m4: New file.
86157         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
86158         Indentation.
86159
86160         Module path-concat.
86161         * m4/path-concat.m4: New file.
86162
86163         Module pathmax.
86164         * m4/pathmax.m4: New file.
86165
86166         Module same.
86167         * m4/same.m4: New file.
86168
86169         Module save-cwd.
86170         * m4/save-cwd.m4: New file.
86171
86172         Module savedir.
86173         * m4/savedir.m4: New file.
86174
86175         Module xgetcwd.
86176         * m4/xgetcwd.m4: New file.
86177         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
86178
86179         Module xreadlink.
86180         * m4/xreadlink.m4: New file.
86181
86182         Module safe-read.
86183         * m4/safe-read.m4: New file.
86184
86185         Module safe-write.
86186         * m4/safe-write.m4: New file.
86187
86188         Module closeout.
86189         * m4/closeout.m4: New file.
86190
86191         Module stdio-safer.
86192         * m4/stdio-safer.m4: New file.
86193
86194         Module getpass.
86195         * m4/getpass.m4: New file.
86196
86197         Module getugroups.
86198         * m4/getugroups.m4: New file.
86199
86200         Module group-member.
86201         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
86202         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
86203
86204         Module idcache.
86205         * m4/idcache.m4: New file.
86206
86207         Module userspec.
86208         * m4/userspec.m4: New file.
86209
86210         Module gettime.
86211         * m4/clock_time.m4: New file.
86212         * m4/gettime.m4: New file.
86213
86214         Module settime.
86215         * m4/settime.m4: New file.
86216
86217         Module posixtm.
86218         * m4/posixtm.m4: New file.
86219
86220         Module gethostname.
86221         * m4/gethostname.m4: New file.
86222
86223         Module canon-host.
86224         * m4/canon-host.m4: New file.
86225
86226         Module gettext.
86227         * m4/codeset.m4: New file, from gettext-0.11.5.
86228         * m4/gettext.m4: New file, from gettext-0.11.5.
86229         * m4/glibc21.m4: New file, from gettext-0.11.5.
86230         * m4/iconv.m4: New file, from gettext-0.11.5.
86231         * m4/intdiv0.m4: New file, from gettext-0.11.5.
86232         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
86233         * m4/inttypes.m4: New file, from gettext-0.11.5.
86234         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
86235         * m4/isc-posix.m4: New file, from gettext-0.11.5.
86236         * m4/lcmessage.m4: New file, from gettext-0.11.5.
86237         * m4/lib-ld.m4: New file, from gettext-0.11.5.
86238         * m4/lib-link.m4: New file, from gettext-0.11.5.
86239         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
86240         * m4/progtest.m4: New file, from gettext-0.11.5.
86241         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
86242         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
86243         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
86244
86245         Module localcharset.
86246         * m4/localcharset.m4: New file.
86247
86248         Module hard-locale.
86249         * m4/hard-locale.m4: New file.
86250
86251         Module mbswidth.
86252         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
86253         onceonly macros.
86254         * m4/mbrtowc.m4: Add comment.
86255
86256         Module memcasecmp.
86257         * m4/memcasecmp.m4: New file.
86258
86259         Module memcoll.
86260         * m4/memcoll.m4: New file.
86261
86262         Module unicodeio.
86263         * m4/unicodeio.m4: New file.
86264
86265         Module rpmatch.
86266         * m4/rpmatch.m4: New file.
86267
86268         Module yesno.
86269         * m4/yesno.m4: New file.
86270
86271         Module exitfail.
86272         * m4/exitfail.m4: New file.
86273
86274         Module c-stack.
86275         * m4/c-stack.m4 (gl_C_STACK): New macro.
86276         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
86277
86278         Module error.
86279         * m4/error.m4 (gl_ERROR): New macro.
86280         (jm_PREREQ_ERROR): Use onceonly macros.
86281
86282         Module fatal.
86283         * m4/fatal.m4: New file.
86284
86285         Module getloadavg.
86286         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
86287         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
86288
86289         Module getpagesize.
86290         * m4/getpagesize.m4: New file.
86291
86292         Module getusershell.
86293         * m4/getusershell.m4: New file.
86294
86295         Module physmem.
86296         * m4/physmem.m4: New file.
86297
86298         Module posixver.
86299         * m4/posixver.m4: New file.
86300
86301         Module quotearg.
86302         * m4/quotearg.m4: New file.
86303
86304         Module quote.
86305         * m4/quote.m4: New file.
86306
86307         Module readutmp.
86308         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
86309
86310         Module sig2str.
86311         * m4/sig2str.m4: New file.
86312
86313         Other.
86314         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
86315         ulonglong.m4.
86316         * m4/intmax_t.m4: New file.
86317         * m4/d-type.m4: Indentation.
86318         * m4/jm-macros.m4: Update.
86319         * m4/prereq.m4 (jm_PREREQ): Update.
86320         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
86321         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
86322         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
86323         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
86324         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
86325         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
86326         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
86327         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
86328         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
86329         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
86330         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
86331         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
86332         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
86333         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
86334         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
86335         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
86336         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
86337         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
86338         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
86339
86340 2002-12-24  Bruno Haible  <bruno@clisp.org>
86341
86342         * MODULES.txt: Update according to m4/ changes.
86343
86344         Module gettext.
86345         * config.rpath: New file, from gettext-0.11.5.
86346
86347         * modules/*: New module descriptions.
86348         * gnulib-tool: New file.
86349         * MODULES.html.sh: New file.
86350
86351 2002-12-21  Karl Berry  <karl@gnu.org>
86352
86353         * doc/fdl.texi: update to version 1.2.
86354
86355 2002-12-19  Karl Berry  <karl@gnu.org>
86356
86357         * config/config.guess: update from prep.
86358
86359 2002-12-18  Bruno Haible  <bruno@clisp.org>
86360
86361         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
86362         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
86363
86364 2002-12-17  Bruno Haible  <bruno@clisp.org>
86365
86366         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
86367         stdlib.h, string.h.
86368
86369 2002-12-17  Bruno Haible  <bruno@clisp.org>
86370
86371         * lib/canon-host.c (strdup): Remove unused declaration.
86372
86373         * lib/fsusage.c: Include full_read.h.
86374         (get_fs_usage): Use full_read instead of safe_read.
86375
86376         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
86377
86378 2002-12-12  Karl Berry  <karl@gnu.org>
86379
86380         * config/config.guess: update from prep.
86381
86382 2002-12-11  Bruno Haible  <bruno@clisp.org>
86383
86384         * m4/setenv.m4: New file, from gettext-0.11.5.
86385
86386 2002-12-11  Bruno Haible  <bruno@clisp.org>
86387
86388         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
86389         not unsetenv().
86390         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
86391         modifications:
86392
86393         2002-12-11  Bruno Haible  <bruno@clisp.org>
86394
86395                 * setenv.c (alloca): Fall back to malloc.
86396                 (freea): New macro.
86397                 (setenv): Use freea() to free memory allocated with alloca().
86398
86399         2002-11-13  Bruno Haible  <bruno@clisp.org>
86400
86401                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
86402                 function declarations.
86403                 * unsetenv.c (unsetenv): Likewise.
86404
86405         2002-03-04  Bruno Haible  <bruno@clisp.org>
86406
86407                 Portability to AIX 4.3.3.
86408                 * unsetenv.c: New file, extracted from setenv.c.
86409                 * setenv.c: Move the unsetenv() function to unsetenv.c.
86410
86411         2001-12-20  Bruno Haible  <bruno@clisp.org>
86412
86413                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
86414                 use malloc instead. For SunOS 4.
86415
86416         2001-12-11  Bruno Haible  <bruno@clisp.org>
86417
86418                 * setenv.c: Declare alloca.
86419                 (compar_fn_t): New typedef.
86420                 (KNOWN_VALUE, STORE_VALUE): Use it.
86421
86422         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
86423         setenv.h.
86424
86425 2002-12-10  Paul Eggert  <eggert@twinsun.com>
86426
86427         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
86428         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
86429         Choose values that are less likely to collide with system fnmatch
86430         options.
86431         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
86432         defined (e.g., a pure POSIX system).
86433         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
86434         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
86435
86436 2002-12-06  Paul Eggert  <eggert@twinsun.com>
86437
86438         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
86439         a pain in practice to deal with generated m4 files.  This change
86440         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
86441
86442         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
86443         and jm-glibc-io.m4, as they are no longer a special case.
86444         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
86445         kludge and the auto-generation stuff.  Check only whether the
86446         functions are declared, not whether they exist, since older hosts
86447         that don't declare the functions can't use the optimization anyway.
86448
86449 2002-12-06  Jim Meyering  <jim@meyering.net>
86450
86451         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
86452
86453         Merge in changes from libc's misc/error.c, in preparation
86454         for the merge of gnulib's changes back into libc.
86455
86456         * lib/error.c (_): Define only if not already defined.
86457         Move definition to follow all #include directives.
86458         Include unlocked-io.h only if !_LIBC.
86459         [_LIBC]: Include <libio/libioP.h>.
86460         [USE_IN_LIBIO]: Include <libio/iolibio.h>
86461         (fflush): Tweak definition to use INTUSE.
86462         (putc): Define.
86463
86464 2002-12-05  Paul Eggert  <eggert@twinsun.com>
86465
86466         * lib/alloca.c [defined emacs]: Include "lisp.h".
86467         (xalloc_die) [defined emacs]: New macro.
86468         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
86469         [! defined emacs]: Include <xalloc.h>.
86470         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
86471         (pointer): Typedef to POINTER_TYPE *.
86472         (malloc): Remove decl; we now always use xmalloc.
86473         (alloca): Use old-style definition, since Emacs needs this.
86474         Check for arithmetic overflow when computing combined size.
86475
86476 2002-12-04  Paul Eggert  <eggert@twinsun.com>
86477
86478         Do not generate unlocked-io.h automatically, since it's easier to
86479         maintain it by hand.
86480
86481         * lib/unlocked-io.h: New file, from GNU diffutils,
86482         but with proper copyright notice and attribution.
86483         * lib/gen-uio: Remove.
86484         * lib/Makefile.am: Add copyright notice.
86485         (libfetish_a_SOURCES): Add unlocked-io.h.
86486         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
86487         (DISTCLEANFILES, io_functions): Remove macros.
86488         (EXTRA_DIST): Remove gen_uio.
86489         (unlocked-io.h): Remove rule.
86490
86491 2002-12-04  Jim Meyering  <jim@meyering.net>
86492
86493         Reflect the fact that stat.c and lstat.c are no longer generated.
86494         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
86495         (DISTCLEANFILES): Likewise.
86496         (EXTRA_DIST): Likewise.
86497         (all_local): Don't depend on stat.c or lstat.c.
86498         (stat.c, lstat.c): Remove rules.
86499         (EXTRA_DIST): Remove xstat.in.
86500
86501         * lib/xstat.in: Remove file.  Contents moved into stat.c.
86502         * lib/stat.c: New file.  Contents mostly from xstat.in.
86503         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
86504         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
86505
86506         * lib/safe-read.c: Rework so that it may serve to define safe_write,
86507         too.
86508         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
86509
86510 2002-12-03  Jim Meyering  <jim@meyering.net>
86511
86512         * lib/safe-read.c, safe-write.c: Change variable names and comments,
86513         but not semantics, to minimize the differences between these two files.
86514         (safe_read): Change comment to mention SAFE_READ_ERROR.
86515
86516         * lib/safe-read.c (IS_EINTR): Define.
86517         (safe_read): Use IS_EINTR in place of in-function cpp directives.
86518
86519 2002-12-02  Jim Meyering  <jim@meyering.net>
86520
86521         * lib/safe-read.c (EINTR): Define.
86522         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
86523         (INT_MAX): Provide fallback.
86524         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
86525
86526         * lib/safe-read.h (SAFE_READ_ERROR): Define.
86527
86528 2002-12-02  Bruno Haible  <bruno@clisp.org>
86529
86530         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
86531         Define, taken from safe-read.c.
86532         (INT_MAX): Provide fallback.
86533         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
86534         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
86535
86536         * lib/safe-read.c (EINTR): Remove definition.
86537         (safe_read): Don't use EINTR if it is absent.
86538
86539 2002-12-01  Jim Meyering  <jim@meyering.net>
86540
86541         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
86542         zero.
86543         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
86544
86545 2002-11-27  Paul Eggert  <eggert@twinsun.com>
86546
86547         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
86548         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
86549         with `if (! (value < limit)) abort ();', for readability.
86550
86551 2002-11-26  Karl Berry  <karl@gnu.org>
86552
86553         * lib/strdup.c: copy from libc again, with jim's ok.
86554         * lib/.cppi-disable: re-add strdup.c
86555
86556 2002-11-25  Karl Berry  <karl@gnu.org>
86557
86558         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
86559         instead of "strtol.c".
86560
86561 2002-11-25  Karl Berry  <karl@gnu.org>
86562
86563         * config/install-sh: update from automake for variable quoting, $0 in
86564         error msgs, etc.
86565
86566         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
86567         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
86568         entry.
86569
86570 2002-11-25  Jim Meyering  <jim@meyering.net>
86571
86572         * lib/mktime.c: Sync from libc, now that it has the latest fix.
86573
86574 2002-11-24  Karl Berry  <karl@gnu.org>
86575
86576         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
86577         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
86578
86579 2002-11-24  Jim Meyering  <jim@meyering.net>
86580
86581         Update from coreutils:
86582
86583         * lib/mktime.c: Merge in changes from libc.
86584
86585         Avoid a link-time failure on some Linux systems.
86586         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
86587         (otherwise).
86588         (__mon_yday): Declare with the STATIC attribute.
86589         (__mktime_internal): Likewise.
86590         Based on a report from Greg Schafer.
86591
86592 2002-11-23  Jim Meyering  <jim@meyering.net>
86593
86594         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
86595         Use `unsigned', not `int', as type of index.
86596
86597         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
86598
86599         * lib/fsusage.c: Remove unneeded parentheses around operands of
86600         `defined'.
86601
86602 2002-11-22  Paul Eggert  <eggert@twinsun.com>
86603
86604         * lib/quotearg.h: Allow multiple inclusion by surrounding with
86605         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
86606         so that we can be included first.
86607         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
86608         * lib/quotearg.c: Include quotearg.h immediately after config.h.
86609         No need to include stddef.h or sys/types.h any more.
86610         Surround local include files with "", not "<>".
86611         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
86612         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
86613         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
86614         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
86615         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
86616         (ISPRINT): Remove; no longer needed now that we assume C89.
86617
86618         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
86619         Preserve errno.
86620
86621         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
86622         quotearg_char): Use SIZE_MAX rather than
86623         (size_t) -1 when we are talking about "infinity".
86624
86625         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
86626
86627 2002-11-22  Paul Eggert  <eggert@twinsun.com>
86628
86629         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
86630         hint that one should use `if (! x) abort ();' rather than `assert
86631         (x);', and anyway it's one less thing to worry about configuring.
86632         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
86633         hash_rehash, hash_insert): Use abort rather than assert.
86634
86635 2002-11-22  Bruno Haible  <bruno@clisp.org>
86636
86637         * lib/safe-read.h: Assume C89. Add comments.
86638         (safe_read): Change return type to size_t.
86639         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
86640         byte counts > SSIZE_MAX correctly.
86641         * lib/safe-write.h: New file.
86642         * lib/safe-write.c: New file.
86643         * lib/full-read.h: New file.
86644         * lib/full-read.c: New file.
86645         * lib/full-write.h: Assume C89. Add comments.
86646         * lib/full-write.c: Include safe-write.h.
86647         (full_write): Rewritten to use safe_write.
86648         Suggested by Jim Meyering and Paul Eggert.
86649
86650 2002-11-21  Jim Meyering  <jim@meyering.net>
86651
86652         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
86653
86654         Merge in changes from the coreutils.
86655
86656         2002-09-25  Paul Eggert  <eggert@twinsun.com>
86657         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
86658         <stdint.h>.
86659         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
86660         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
86661         int.  Work more efficiently if X is the same width as uintmax_t.
86662         Do not compare X to -1, to avoid bogus compiler warning.
86663         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
86664         Don't assume that f_frsize and f_bsize are the same type.
86665
86666         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
86667         warning on FreeBSD.
86668
86669         * lib/makepath.c (make_path): Restore umask *before* creating the final
86670         component.
86671         (make_path): Minor reformatting.
86672
86673         * lib/xmalloc.c: Adjust to work with new autoconf macros,
86674         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
86675         HAVE_MALLOC/HAVE_REALLOC.
86676
86677         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
86678         dummy ones.  At least on GNU/Linux systems, `auto' means something
86679         else.
86680         From Michael Stone.
86681
86682 2002-11-21  Bruno Haible  <bruno@clisp.org>
86683
86684         Remove case insensitive option matching.
86685         * lib/argmatch.h (argcasematch): Remove declaration.
86686         (ARGCASEMATCH): Remove macro.
86687         (__xargmatch_internal): Remove case_sensitive argument.
86688         (XARGMATCH): Update.
86689         (XARGCASEMATCH): Remove macro.
86690         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
86691         case_sensitive argument.
86692         (argcasematch): Remove function.
86693         (__xargmatch_internal): Remove case_sensitive argument.
86694         (main): Use XARGMATCH instead of XARGCASEMATCH.
86695
86696         * lib/xmalloc.c: Change compile-time error message. Add comment about
86697         required autoconf version.
86698
86699 2002-11-20  Paul Eggert  <eggert@twinsun.com>
86700
86701         Merge argmatch cleanups from Bison.  Assume C89.
86702
86703         * lib/argmatch.c: Include config.h here, not in argmatch.h.
86704         Include stdlib.h, for EXIT_FAILURE.
86705         Always include <string.h>, since we assume C89.
86706         (EXIT_FAILURE): Remove pre-C89 bug workaround.
86707         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
86708         Include <stddef.h> instead, since it's all we need for size_t.
86709         (PARAMS): Remove.  All uses removed.
86710         (ARRAY_CARDINALITY): Do not bother to #undef.
86711         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
86712         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
86713         Remove unnecessary parentheses.
86714         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
86715         Insert necessary parentheses.
86716         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
86717         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
86718
86719 2002-11-19  Bruno Haible  <bruno@clisp.org>
86720
86721         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
86722         * lib/mbswidth.h: Include <stddef.h>, for size_t.
86723
86724         * lib/mbswidth.h (PARAMS): Remove macro.
86725         (mbswidth, mbsnwidth): Use ANSI C function declarations.
86726         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
86727
86728         * lib/gcd.h (PARAMS): Remove macro.
86729         (gcd): Use ANSI C function declarations.
86730         * lib/gcd.c (gcd): Likewise.
86731
86732 2002-11-15  Bruno Haible  <bruno@clisp.org>
86733
86734         * lib/strcspn.c: Include <stddef.h>.
86735         (strcspn): Use ANSI C function declaration. Change return type to
86736         size_t. Use NULL.
86737         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
86738         (strpbrk): Use NULL.
86739         * lib/strpbrk.h (PARAMS): Remove macro.
86740         (strpbrk): Use ANSI C function declaration.
86741         * lib/strstr.c: Don't include <sys/types.h>.
86742         * lib/strstr.h (PARAMS): Remove macro.
86743         (strstr): Use ANSI C function declarations.
86744
86745 2002-11-14  Karl Berry  <karl@gnu.org>
86746
86747         * config/mkinstalldirs: `do' on separate line, instead of
86748         `for var; do'.
86749
86750 2002-11-06  Bruno Haible  <bruno@clisp.org>
86751
86752         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
86753         * lib/gcd.c (gcd): Likewise.
86754
86755 2002-11-05  Bruno Haible  <bruno@clisp.org>
86756
86757         * lib/gcd.h: New file, from gettext-0.11.5.
86758         * lib/gcd.c: New file, from gettext-0.11.5.
86759
86760 2002-11-05  Bruno Haible  <bruno@clisp.org>
86761
86762         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86763         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86764         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86765         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
86766
86767         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
86768         <libintl.h>.
86769         * lib/makepath.c: Include gettext.h instead of <locale.h> and
86770         <libintl.h>.
86771
86772         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
86773         * lib/human.c: Include gettext.h instead of <libintl.h>.
86774         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
86775         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
86776         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
86777         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
86778         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
86779         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
86780         (textdomain): Remove definition.
86781         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
86782
86783         * lib/long-options.c: Remove include of <libintl.h> and definition of
86784         _.
86785         * lib/same.c: Remove include of <libintl.h> and definition of _.
86786
86787 2002-11-04  Owen Taylor  <otaylor@redhat.com>
86788
86789         * lib/config.charset: A few additions for Solaris.
86790
86791 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
86792
86793         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
86794         * lib/localcharset.c (locale_charset): Declare as extern "C".
86795
86796 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
86797
86798         * lib/config.charset: msdos in uk_UA uses CP1125.
86799
86800 2002-11-04  Bruno Haible  <bruno@clisp.org>
86801
86802         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
86803         * lib/strcase.h: New file, from GNU gettext-0.11.5.
86804         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
86805         * lib/strstr.h: New file, from GNU gettext-0.11.5.
86806         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
86807
86808 2002-11-04  Bruno Haible  <bruno@clisp.org>
86809
86810         * lib/localcharset.c (locale_charset): Don't return an empty string.
86811
86812 2002-11-04  Bruno Haible  <bruno@clisp.org>
86813
86814         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
86815         aliases.
86816
86817 2002-11-04  Bruno Haible  <bruno@clisp.org>
86818
86819         * lib/config.charset: Update for newest glibc. Add canonical names
86820         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
86821
86822 2002-11-04  Bruno Haible  <bruno@clisp.org>
86823
86824         * lib/config.charset: Add support for NetBSD.
86825
86826 2002-11-04  Bruno Haible  <bruno@clisp.org>
86827
86828         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
86829
86830 2002-11-01  Bruno Haible  <bruno@clisp.org>
86831
86832         * configure.in: Add AC_CONFIG_AUX_DIR call.
86833         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
86834         test/Makefile.
86835         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
86836
86837 2002-09-28  Karl Berry  <karl@gnu.org>
86838
86839         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
86840         installed automake until the next release, since changes have been
86841         made.
86842
86843 2002-09-25  Karl Berry  <karl@gnu.org>
86844
86845         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
86846         * lib/getopt*: copy from libc/posix.
86847         * lib/gettext.h: copy from gettext.
86848         * lib/.cppi-disable: add strdup.c, gettext.h.
86849
86850 2002-09-25  Karl Berry  <karl@gnu.org>
86851
86852         * config/srclist.txt: enable gettext.h check.
86853         * config/config.{guess,sub}: update from prep.
86854         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
86855                 from automake 1.6.3.
86856         See srclist*.
86857
86858 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
86859
86860         * regex.c (PATFETCH): Remove the translating fetch.
86861         (PATFETCH_RAW): Rename to PATFETCH.
86862         (set_image_of_range): New fun.
86863         (SET_RANGE_TABLE_WORK_AREA): Use it.
86864         (regex_compile): Don't translate the pattern chars so eagerly.
86865         Only do it when inserting an `exactn' bytecode or when handling
86866         a char-range.
86867         (mutually_exclusive_p): Avoid empty statement.
86868
86869 2002-07-06  Jim Meyering  <meyering@lucent.com>
86870
86871         * m4/README: Don't mention Makefile.am.in.
86872         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
86873
86874 2002-07-01  Jim Meyering  <meyering@lucent.com>
86875
86876         * lib/c-stack.c: Include sys/time.h.
86877         From Volker Borchert.
86878
86879 2002-06-26  Paul Eggert  <eggert@twinsun.com>
86880
86881         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
86882
86883 2002-06-26  Paul Eggert  <eggert@twinsun.com>
86884
86885         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
86886         New macro.  Use it uniformly instead of
86887         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
86888         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
86889         reported by Vin Shelton.
86890
86891 2002-06-22  Paul Eggert  <eggert@twinsun.com>
86892
86893         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
86894         Do not assume SA_SIGINFO behavior.
86895         Bug reported by Jim Meyering on NetBSD 1.5.2.
86896
86897 2002-06-22  Jim Meyering  <meyering@lucent.com>
86898
86899         * m4/c-stack.m4: New file, from diffutils-2.8.2.
86900         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
86901
86902         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
86903         now that configure.ac uses AC_GNU_SOURCE.
86904         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
86905         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
86906
86907         Update to latest tools.  Suggestions from Paul Eggert.
86908         * m4/stdbool.m4: New file, from diffutils-2.8.2.
86909         * m4/gnu-source.m4: Update from diffutils-2.8.2.
86910         * m4/fnmatch.m4: Likewise.
86911         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
86912         to AC_HEADER_STDBOOL
86913
86914 2002-06-22  Jim Meyering  <meyering@lucent.com>
86915
86916         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
86917         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
86918
86919 2002-06-22  Jim Meyering  <meyering@lucent.com>
86920
86921         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
86922
86923         * lib/exitfail.c, exitfail.h: Likewise.
86924         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
86925
86926         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
86927         of fnmatch.h.
86928         (EXTRA_DIST): Add fnmatch_loop.c.
86929         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
86930
86931         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
86932         * lib/fnmatch.c: Update from diffutils-2.8.2.
86933         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
86934         * lib/fnmatch.h: Remove file.
86935
86936 2002-06-21  Jim Meyering  <meyering@lucent.com>
86937
86938         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
86939         * m4/mbrtowc.m4: Likewise.
86940
86941         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
86942         * m4/mbswidth.m4: Reflect name change:
86943         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
86944         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
86945
86946         * m4/lib-link.m4: Update from gettext-0.11.2.
86947         * m4/gettext.m4: Likewise.
86948
86949         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
86950         From Alfred M. Szmidt.
86951
86952 2002-06-18  Paul Eggert  <eggert@twinsun.com>
86953
86954         * lib/file-type.h: Report an error if neither S_ISREG nor
86955         S_IFREG is defined, instead of using a test specific to glibc
86956         2.2.  This should be safe, since POSIX requires S_ISREG and
86957         Unix Version 7 had S_IFREG.  We don't need to check for
86958         <sys/types.h> since we don't use any symbols that it defines.
86959
86960 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
86961
86962         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
86963         $@-t, so that each temporary file name is unique and valid in the first
86964         8 characters, for operation under DOS.
86965
86966 2002-06-15  Paul Eggert  <eggert@twinsun.com>
86967
86968         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
86969
86970 2002-06-15  Jim Meyering  <meyering@lucent.com>
86971
86972         Work even with DJGPP 2.03, which lacks support for symlinks.
86973         From Richard Dawe.
86974         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
86975         is defined.
86976         * lib/lchown.c (S_ISLNK): Likewise.
86977
86978 2002-06-15  Jim Meyering  <meyering@lucent.com>
86979
86980         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
86981         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
86982         have been included before this file.
86983
86984 2002-06-14  Jim Meyering  <meyering@lucent.com>
86985
86986         * lib/file-type.h: Use the version from diffutils-2.8.2.
86987         * lib/file-type.c: Likewise.
86988
86989 2002-06-07  Jim Meyering  <meyering@lucent.com>
86990
86991         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
86992         They're needed at least for NetBSD 1.5.2.
86993         ($statxfs_includes): Include those same headers.
86994         ($statxfs_includes): Include sys/vfs.h if available.
86995         ($statxfs_includes): Likewise for sys/statvfs.h.
86996         Check for the following members in both structs statfs and statvfs:
86997         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
86998
86999 2002-06-01  Jim Meyering  <meyering@lucent.com>
87000
87001         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
87002         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
87003
87004 2002-05-28  Jim Meyering  <meyering@lucent.com>
87005
87006         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
87007         Reported by Volker Borchert.
87008
87009 2002-05-27  Jim Meyering  <meyering@lucent.com>
87010
87011         Fix a problem seen only on nonconforming systems whereby ls.c's
87012         use of localtime, and then of gettimeofday would cause trouble:
87013         the localtime call used to initialize rpl_gettimeofday's save
87014         mechanism would clobber ls's current local time information so
87015         that in any long listing the first file would always be listed
87016         with date 1970-01-01.  Analysis by Volker Borchert.
87017
87018         * lib/gettimeofday.c (localtime): Undefine.
87019         (rpl_localtime): New function.
87020
87021 2002-05-27  Jim Meyering  <meyering@lucent.com>
87022
87023         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
87024         localtime.
87025
87026         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
87027         use the replacement function; it wouldn't resolve at link time.
87028         Reported by Volker Borchert.
87029
87030 2002-05-22  Jim Meyering  <meyering@lucent.com>
87031
87032         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
87033         file-type.h.
87034         * lib/file-type.h: New file.
87035         * lib/file-type.c (file_type): New file/function.  Extracted from
87036         diffutils.
87037
87038 2002-04-30  Jim Meyering  <meyering@lucent.com>
87039
87040         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
87041
87042 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87043
87044         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
87045
87046 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87047
87048         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
87049         Do not check for alloca.h (no longer used) or stdbool.h (was never
87050         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
87051
87052 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87053
87054         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
87055
87056 2002-04-29  Jim Meyering  <meyering@lucent.com>
87057
87058         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
87059         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
87060         Use AC_FUNC_STRNLEN here instead.
87061
87062         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
87063         With autoconf-2.53a, it's part of AC_PROG_CC.
87064
87065 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87066
87067         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
87068         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
87069
87070 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87071
87072         * lib/sig2str.h, lib/sig2str.c: New files.
87073         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
87074
87075 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87076
87077         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
87078         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
87079         of 127, since 64 is the largest conceivable number for ancient
87080         nonstandard hosts.
87081         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
87082
87083 2002-04-28  Jim Meyering  <meyering@lucent.com>
87084
87085         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
87086
87087 2002-04-24  Jim Meyering  <meyering@lucent.com>
87088
87089         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
87090         (jm_PREREQ): Use it.
87091
87092         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
87093         mach/mach.h fcntl.h.
87094         Check for this function: setlocale.
87095
87096 2002-04-24  Jim Meyering  <meyering@lucent.com>
87097
87098         * lib/gettext.h: New file, from Gettext.
87099         * lib/Makefile.am (INCLUDES): Remove -I../intl.
87100         (libfetish_a_SOURCES): Add gettext.h.
87101
87102 2002-04-16  Jim Meyering  <meyering@lucent.com>
87103
87104         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
87105         ut_pid, ut_id, ut_exit.
87106
87107 2002-04-16  Jim Meyering  <meyering@lucent.com>
87108
87109         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
87110         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
87111         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
87112
87113 2002-04-12  Jim Meyering  <meyering@lucent.com>
87114
87115         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
87116         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
87117         existence of the getmntinfo function.  Needed for Darwin 5.3.
87118
87119         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
87120         This is necessary at least on Darwin 5.3.
87121
87122         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
87123         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
87124         strnlen.o in the library, and that makes some versions of ranlib
87125         object.
87126
87127 2002-04-12  Jim Meyering  <meyering@lucent.com>
87128
87129         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
87130
87131 2002-04-09  Jim Meyering  <meyering@lucent.com>
87132
87133         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
87134         to be more precise.  Rather than saying we're checking whether the
87135         function `works', say what we're testing.
87136         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
87137         Reported by Bruno Haible.
87138
87139 2002-03-10  Jim Meyering  <meyering@lucent.com>
87140
87141         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
87142         Suggestion from Santiago Vila.
87143
87144 2002-03-08  Jim Meyering  <meyering@lucent.com>
87145
87146         * lib/rename.c: Mention that this wrapper is needed also on
87147         mips-dec-ultrix4.4 systems.
87148
87149 2002-03-02  Jim Meyering  <meyering@lucent.com>
87150
87151         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
87152         not HAVE_CLOCK_SETTIME.
87153
87154 2002-02-27  Paul Eggert  <eggert@twinsun.com>
87155
87156         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
87157         Check for clock_settime.
87158
87159 2002-02-27  Paul Eggert  <eggert@twinsun.com>
87160
87161         * lib/nanosleep.h: Rename to....
87162         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
87163
87164         * lib/gettime.c: New file.
87165         * lib/settime.c: New file.
87166         * lib/stime.c: Remove.
87167
87168         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
87169         timespec.h.  Remove nanosleep.h.
87170
87171 2002-02-25  Paul Eggert  <eggert@twinsun.com>
87172
87173         * m4/acl.m4: New file.
87174         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
87175         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
87176
87177 2002-02-25  Paul Eggert  <eggert@twinsun.com>
87178
87179         * lib/acl.c, lib/acl.h: New files.
87180         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
87181
87182 2002-02-24  Jim Meyering  <meyering@lucent.com>
87183
87184         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
87185         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
87186         cause trouble.  Reported by Nelson Beebe.
87187
87188 2002-02-23  Paul Eggert  <eggert@twinsun.com>
87189
87190         * lib/path-concat.c (xpath_concat): Reorder code to pacify
87191         compilers that don't know that xalloc_die never returns.
87192
87193 2002-02-20  Jim Meyering  <meyering@lucent.com>
87194
87195         * lib/getdate.c: Regenerate using bison-1.33.
87196
87197 2002-02-17  Jim Meyering  <meyering@lucent.com>
87198
87199         * config/config.guess (main): Don't use `head -1'; it's no longer
87200         portable. Use `sed 1q' instead.
87201
87202 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
87203
87204         * m4/codeset.m4: Upgrade to gettext-0.11.
87205         * m4/gettext.m4: Upgrade to gettext-0.11.
87206         * m4/glibc21.m4: Upgrade to gettext-0.11.
87207         * m4/iconv.m4: Upgrade to gettext-0.11.
87208         * m4/isc-posix.m4: Upgrade to gettext-0.11.
87209         * m4/lcmessage.m4: Upgrade to gettext-0.11.
87210         * m4/lib-ld.m4: New file, from gettext-0.11.
87211         * m4/lib-link.m4: New file, from gettext-0.11.
87212         * m4/lib-prefix.m4: New file, from gettext-0.11.
87213         * m4/progtest.m4: Upgrade to gettext-0.11.
87214
87215 2002-02-15  Paul Eggert  <eggert@twinsun.com>
87216
87217         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
87218         (jm_PREREQ): Use it.
87219
87220 2002-02-15  Paul Eggert  <eggert@twinsun.com>
87221
87222         * lib/posixver.c, lib/posixver.h: New files.
87223         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
87224
87225 2002-02-02  Paul Eggert  <eggert@twinsun.com>
87226             Bruno Haible  <bruno@clisp.org>
87227
87228         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
87229         (fwrite_success_callback): New declaration.
87230         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
87231         print_unicode_char. Call failure callback instead of error.
87232         (fwrite_success_callback): New function.
87233         (exit_failure_callback): New function.
87234         (fallback_failure_callback): New function.
87235         (print_unicode_char): Call unicode_to_mb.
87236
87237 2002-01-26  Jim Meyering  <meyering@lucent.com>
87238
87239         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
87240         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
87241
87242 2002-01-26  Jim Meyering  <meyering@lucent.com>
87243
87244         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
87245
87246 2002-01-22  Paul Eggert  <eggert@twinsun.com>
87247
87248         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
87249
87250 2002-01-22  Jim Meyering  <meyering@lucent.com>
87251
87252         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
87253         Otherwise, some versions of automake would omit the rule that makes
87254         Makefile from Makefile.in.
87255
87256 2002-01-21  Paul Eggert  <eggert@twinsun.com>
87257
87258         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
87259         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
87260         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
87261         (memcoll): Set errno to zero if there is no error.
87262
87263         * lib/quotearg.c (quotearg_buffer_restyled):
87264         Fix bug with quoting buffers containing NUL when backslashing escapes.
87265         This bug was exposed by the other changes in this patch.
87266         (quotearg_n_options): New arg ARGSIZE.
87267         All callers changed.
87268         (quoting_options_from_style): New function.
87269         (quotearg_n_style): Use it.
87270         (quotearg_n_style_mem): New function.
87271
87272         * lib/quotearg.h (quotearg_n_style_mem): New function.
87273
87274 2002-01-19  Jim Meyering  <meyering@lucent.com>
87275
87276         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
87277         Remove useless quotes: DF_PROG="df".
87278         * m4/strnlen.m4: New file.
87279
87280 2002-01-16  Paul Eggert  <eggert@twinsun.com>
87281
87282         * lib/backupfile.c (ISDIGIT): Comment fix.
87283         * lib/getdate.y (ISDIGIT): Likewise.
87284         * lib/posixtm.c (ISDIGIT, year): Likewise.
87285         * lib/strverscmp.c (ISDIGIT): Likewise.
87286         * lib/userspec.c (ISDIGIT): Likewise.
87287
87288 2002-01-16  Jim Meyering  <meyering@lucent.com>
87289
87290         * lib/getdate.y: Add three semicolons, each just before a closing
87291         brace. Bison (as of version 1.31) no longer papers over that mistake.
87292
87293 2002-01-05  Jim Meyering  <meyering@lucent.com>
87294
87295         * lib/version-etc.c (version_etc_copyright): Update copyright year.
87296
87297 2001-12-19  Paul Eggert  <eggert@twinsun.com>
87298
87299         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
87300         not silently exit merely because the output buffer happens to
87301         have nothing pending.
87302
87303 2001-12-18  Paul Eggert  <eggert@twinsun.com>
87304
87305         See the big note in ../ChangeLog.
87306         * lib/human.c (suffixes): Prefer K to k for 1024.
87307         (generate_suffix_backwards): New function.
87308         (human_readable_inexact): Use it.
87309         * lib/xstrtol.c (__xstrtol): If there is no number but there
87310         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
87311         Accept 'K' as well as 'k'.
87312
87313 2001-12-15  Jim Meyering  <meyering@lucent.com>
87314
87315         * lib/regex.h (__restrict_arr): Update from libc.
87316
87317         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
87318         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
87319         (STREQ): Define.
87320
87321 2001-12-14  Jim Meyering  <meyering@lucent.com>
87322
87323         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
87324         Suggestion from Bruno Haible.
87325
87326 2001-12-10  Jim Meyering  <meyering@lucent.com>
87327
87328         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
87329         xrealloc, Instead, include "xalloc.h".
87330         (initbuffer): Don't cast xmalloc return value to char*.
87331         (readline): Reword comment.
87332         Don't cast xrealloc return value to char*
87333         Return NULL, not 0.
87334
87335 2001-12-09  Jim Meyering  <meyering@lucent.com>
87336
87337         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
87338         about `signed and unsigned type in conditional expression'.
87339         * lib/posixtm.c (posix_time_parse): Likewise.
87340
87341         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
87342
87343         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
87344         to avoid a pedantic warning.
87345
87346         * lib/getstr.c: Don't include assert.h.
87347         (getstr): Remove warning-evoking assertions.
87348         Return -1 if offset parameter is out of bounds.
87349         Change the type of a local from int to size_t.
87350
87351         * lib/strftime.c (my_strftime_localtime_r): Include this function
87352         definition in the `#if ! HAVE_TM_GMTOFF' block.
87353
87354         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
87355         Include xalloc.h instead.
87356
87357 2001-12-02  Jim Meyering  <meyering@lucent.com>
87358
87359         * lib/tempname.c: Don't declare getenv, thus reverting the change of
87360         2001-11-18.  It's no longer necessary, now that stdlib.h is always
87361         included.
87362
87363         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
87364         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
87365
87366 2001-11-30  Akim Demaille  <akim@epita.fr>
87367
87368         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
87369         before being defined.
87370
87371 2001-11-27  Paul Eggert  <eggert@twinsun.com>
87372
87373         * lib/quotearg.h (quotearg_n, quotearg_n_style):
87374         First arg is int, not unsigned.
87375         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
87376         (SIZE_MAX, UINT_MAX): New macros.
87377         (quotearg_n_options): Abort if N is negative.
87378         Avoid overflow check on hosts where size_t is 64 bits and int
87379         is 32 bits, as overflow is impossible there.
87380         Fix off-by-one typo that caused unnecessary reallocation.
87381
87382 2001-11-27  Jim Meyering  <meyering@lucent.com>
87383
87384         * lib/tempname.c: Merge with version from libc.
87385         * lib/regex.c: Likewise.
87386
87387         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
87388         systems for which STDC_HEADERS is 0, it was not included, resulting in
87389         a warning about an integer-to-pointer conversion problem with getenv.
87390         Reported by Volker Borchert.
87391
87392 2001-11-26  Jim Meyering  <meyering@lucent.com>
87393
87394         * lib/gtod.h: Remove file.
87395         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
87396         * lib/gettimeofday.c: Don't include gtod.h.
87397         (GTOD_init): Remove function.
87398         (rpl_gettimeofday): Do its job here instead, rather than aborting.
87399         Suggestion from Volker Borchert.
87400
87401 2001-11-23  Jim Meyering  <meyering@lucent.com>
87402
87403         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
87404         it.
87405         * lib/hash.c (struct hash_table): Define it here instead.
87406
87407 2001-11-22  Jim Meyering  <meyering@lucent.com>
87408
87409         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
87410
87411 2001-11-20  Jim Meyering  <meyering@lucent.com>
87412
87413         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
87414         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
87415
87416 2001-11-19  Jim Meyering  <meyering@lucent.com>
87417
87418         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
87419         directory.  Use "conftestXXXXXX" as the template.
87420         Suggestion from Paul Eggert.
87421
87422         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
87423         immediately, so the test doesn't mistakenly hit the max-open-files
87424         limit.
87425
87426 2001-11-18  Paul Eggert  <eggert@twinsun.com>
87427
87428         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
87429         (TEMPORARIES): New macro.
87430         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
87431         removes an artificial limitation (e.g. HP-UX 10.20, where
87432         TMP_MAX is 17576).
87433
87434 2001-11-18  Jim Meyering  <meyering@lucent.com>
87435
87436         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
87437
87438 2001-11-18  Jim Meyering  <meyering@lucent.com>
87439
87440         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
87441         on SunOS 4.
87442
87443         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
87444         files will be created before anything else.
87445
87446 2001-11-17  Paul Eggert  <eggert@twinsun.com>
87447
87448         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
87449         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
87450
87451 2001-11-17  Jim Meyering  <meyering@lucent.com>
87452
87453         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
87454         Prompted by a report from Bob Proulx.
87455
87456         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
87457         Instead, require UTILS_FUNC_MKSTEMP.
87458
87459 2001-11-17  Jim Meyering  <meyering@lucent.com>
87460
87461         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
87462         Now, that's done as part of AC_FUNC_STRTOD.
87463
87464 2001-11-17  Jim Meyering  <meyering@lucent.com>
87465
87466         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
87467         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
87468         rather than group writable.  Patch by Juan F. Codagnone.
87469
87470         * lib/readtokens.c: Remove explicit declarations of xmalloc and
87471         xrealloc, Instead, include "xalloc.h".
87472
87473         * lib/mountlist.c: Include unlocked-io.h after all system headers.
87474         Remove explicit declarations of xmalloc, xrealloc,
87475         and xstrdup.  Instead, include "xalloc.h".
87476
87477         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
87478         unlocked-io.h.
87479         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
87480         Likewise.
87481         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
87482
87483         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
87484         Reported by Padraig Brady.
87485
87486         * lib/mkstemp.c: #undef mkstemp.
87487         Include config.h.
87488         (rpl_mkstemp): Rename from mkstemp.
87489         Protoize.
87490
87491 2001-11-16  Jim Meyering  <meyering@lucent.com>
87492
87493         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
87494         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
87495         determine the amount of total physical memory, use pstat_getstatic.
87496         HPUX-11 doesn't define _SC_PHYS_PAGES.
87497         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
87498         If sysconf couldn't be used to determine the amount of available
87499         physical memory, use both pstat_getstatic and pstat_getdynamic.
87500         Based on a patch from Bob Proulx.
87501
87502 2001-11-10  Jim Meyering  <meyering@lucent.com>
87503
87504         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
87505         (jm_PREREQ): Use it.
87506
87507 2001-11-09  Jim Meyering  <meyering@lucent.com>
87508
87509         * m4/jm-macros.m4: Require autoconf-2.52f.
87510         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
87511         Use these AC_-prefixed names, not the AM_-prefixed ones.
87512
87513         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
87514
87515 2001-11-05  Jim Meyering  <meyering@lucent.com>
87516
87517         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
87518
87519 2001-11-04  Jim Meyering  <meyering@lucent.com>
87520
87521         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
87522         $DEFS.
87523
87524 2001-11-03  Jim Meyering  <meyering@lucent.com>
87525
87526         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
87527         of AC_DEFUN.
87528
87529         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
87530         know the name of the variable in the macro definition.
87531
87532 2001-11-03  Jim Meyering  <meyering@lucent.com>
87533
87534         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
87535         in argmatch_to_argument call.
87536
87537         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
87538         argument.
87539
87540         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
87541         e.g., a fault due to an attempt to free a NULL pointer.
87542
87543 2001-11-01  Jim Meyering  <meyering@lucent.com>
87544
87545         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
87546         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
87547
87548 2001-11-01  Jim Meyering  <meyering@lucent.com>
87549
87550         * lib/dirfd.c, lib/dirfd.h: New files.
87551         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
87552
87553         * lib/hash.c (hash_print) [TESTING]: Clean up.
87554
87555 2001-10-22  Paul Eggert  <eggert@twinsun.com>
87556
87557         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
87558         to avoid a warning if -Wall.
87559
87560 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
87561
87562         * README: New file
87563         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
87564         (per RMS's instructions, this is now the canonical source)
87565         * lgpl/, gpl/: New directories.
87566
87567 2001-10-21  Paul Eggert  <eggert@twinsun.com>
87568
87569         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
87570
87571 2001-10-21  Jim Meyering  <meyering@lucent.com>
87572
87573         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
87574         this code would end up calling gettext even in packages built
87575         with --disable-nls.
87576         * lib/getopt.c (_): Likewise.
87577         * lib/regex.c (_): Likewise.
87578
87579 2001-10-20  Paul Eggert  <eggert@twinsun.com>
87580
87581         * m4/error.m4 (jm_PREREQ_ERROR):
87582         Do not invoke AC_CHECK_FUNCS with strerror_r, as
87583         AC_FUNC_STRERROR_R does that.
87584         Check for strerror declaration.
87585
87586         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
87587         are supposed to have them these days.
87588         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
87589         Merge changes from latest Autoconf CVS.
87590         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
87591         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
87592         POSIX decided to standardize on the int flavor of strerror_r.
87593
87594 2001-10-20  Paul Eggert  <eggert@twinsun.com>
87595
87596         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
87597         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
87598         Use strerror_r that is only a macro, even if it is not a function.
87599         (strerror): Check for HAVE_DECL_STRERROR before declaring.
87600         (private_strerror): Use prototypes, not old-style function definition.
87601         (print_errno_message): New function.
87602         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
87603         char*-flavored one.
87604         (error_tail, error, error_at_line): Use it.
87605
87606 2001-10-11  Jim Meyering  <meyering@lucent.com>
87607
87608         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
87609         and quote_n (1, ... to avoid clobbering a buffer.
87610
87611 2001-10-05  Jim Meyering  <meyering@lucent.com>
87612
87613         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
87614         hash-pjw.h.
87615         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
87616         * lib/hash-pjw.h: New file.
87617
87618 2001-09-30  Jim Meyering  <meyering@lucent.com>
87619
87620         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
87621         `struct fsstat' has the `f_fstypename' member.
87622         Use that to define FS_TYPE, which is now used to make
87623         the getfsstat link test tighter.
87624
87625 2001-09-30  Jim Meyering  <meyering@lucent.com>
87626
87627         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
87628         Include <sys/ucred.h>, for Apple Darwin.
87629         Include sys/mount.h and sys/fs_types.h only if available.
87630         (FS_TYPE): Define.
87631         (read_filesystem_list): Use FS_TYPE.
87632
87633 2001-09-29  Paul Eggert  <eggert@twinsun.com>
87634
87635         * lib/exclude.c (excluded_filename): 0 -> false, since it's
87636         a boolean context.
87637
87638 2001-09-29  Jim Meyering  <meyering@lucent.com>
87639
87640         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
87641         [one-argument getmntent function]): Include stdio.h before mntent.h.
87642         SunOS 4.1.x needs it for the declaration of `FILE'.
87643         Patch by Volker Borchert.
87644
87645         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
87646         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
87647         sys/fs_types.h, and make the link-test for getfsstat guard #include
87648         directives with appropriate #if HAVE_*_H tests so that we can
87649         detect getfsstat on Apple Darwin1.3.7 systems.
87650         Reported by Nelson Beebe.
87651         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
87652
87653 2001-09-28  Paul Eggert  <eggert@twinsun.com>
87654
87655         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
87656         #defines strtoimax.  Also treat the other strto* functions
87657         like strtoimax.
87658
87659         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
87660         Check for strtoul and strtoumax,
87661         as those declarations are made even in the signed case.
87662         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
87663         Likewise, for strtol and strtoimax.
87664
87665 2001-09-28  Paul Eggert  <eggert@twinsun.com>
87666
87667         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
87668         #defines strtoimax.  Also treat the other strto* functions
87669         like strtoimax.
87670
87671         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
87672         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
87673         (strtoimax, strtoumax): Do not declare if already defined as a macro.
87674
87675 2001-09-26  Jim Meyering  <meyering@lucent.com>
87676
87677         Most macros in unlocked-io.h had the wrong number of arguments.
87678         * lib/gen-uio: New script.
87679         (USE_UNLOCKED_IO): Define to 1 if not already defined.
87680         * lib/unlocked-io.hin: Remove file.
87681         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
87682         rather than trying to embed it here.
87683         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
87684         Reported by Padraig Brady.
87685
87686 2001-09-25  Volker Borchert  <bt@teknon.de>
87687
87688         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
87689         `result'.
87690
87691 2001-09-24  Jim Meyering  <meyering@lucent.com>
87692
87693         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
87694
87695 2001-09-23  Jim Meyering  <meyering@lucent.com>
87696
87697         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
87698         instead of the mere test for existence of mntent.h.  The latter
87699         would get a false-positive on AIX 3.4 systems.
87700         In the outer getmntent if-block, don't die if neither of the getmntent
87701         tests succeeds.  Instead, just fall through and continue with the
87702         remaining tests.
87703
87704 2001-09-23  Jim Meyering  <meyering@lucent.com>
87705
87706         * lib/mountlist.c: Remove useless parentheses in #if directives.
87707         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
87708         the deprecated MOUNTED symbol is no longer defined in mntent.h.
87709
87710 2001-09-22  Jim Meyering  <meyering@lucent.com>
87711
87712         * m4/gettext.m4: New file.  From gettext.
87713         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
87714         * m4/progtest.m4: Likewise
87715         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
87716         * m4/glibc21.m4: Likewise.
87717
87718         * m4/libintl.m4: Remove.  No longer used.
87719
87720 2001-09-22  Jim Meyering  <meyering@lucent.com>
87721
87722         * lib/localcharset.c: Update from latest gettext.
87723         * lib/config.charset: Likewise.
87724
87725 2001-09-20  Jim Meyering  <meyering@lucent.com>
87726
87727         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
87728         strtoimax.
87729         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
87730         strtoumax.
87731
87732 2001-09-20  Jim Meyering  <meyering@lucent.com>
87733
87734         * lib/xstrtol.c (strtoimax): Guard declaration with
87735         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
87736         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
87737         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
87738         (strtoumax): Likewise, for completeness (it wasn't necessary).
87739
87740 2001-09-17  Paul Eggert  <eggert@twinsun.com>
87741
87742         * lib/strtoimax.c (HAVE_LONG_LONG):
87743         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
87744         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
87745         to work around bug in IBM C compiler.
87746
87747 2001-09-17  Jim Meyering  <meyering@lucent.com>
87748
87749         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
87750         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
87751         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
87752         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
87753         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
87754         whenever the right hand side need not be expanded by the shell.
87755
87756 2001-09-16  Paul Eggert  <eggert@twinsun.com>
87757
87758         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
87759         library.  It's not correct, as some older glibcs are buggy.
87760         fnmatch wasn't fixed until glibc 2.2.
87761
87762         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
87763         special shell magic here.
87764
87765 2001-09-16  Jim Meyering  <meyering@lucent.com>
87766
87767         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
87768         * m4/jm-macros.m4: Require it.
87769
87770 2001-09-16  Jim Meyering  <meyering@lucent.com>
87771
87772         * lib/mkdir.c: New file.
87773
87774 2001-09-15  Jim Meyering  <meyering@lucent.com>
87775
87776         * m4/jm-macros.m4: Check for help2man.
87777
87778 2001-09-11  Jim Meyering  <meyering@lucent.com>
87779
87780         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
87781         The body, by Paul Eggert, was moved here from configure.in.
87782         * m4/jm-macros.m4: Require UTILS_HOST_OS.
87783
87784 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87785
87786         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
87787         (jm_PREREQ): Use it.
87788
87789 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87790
87791         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
87792         Use ssize_t, not int, to store result of readlink.
87793         Check for ssize_t overflow as well as size_t overflow,
87794         as POSIX says the result of readlink is implementation-defined
87795         when ssize_t overflows.
87796         Remove unnecessary cast to char*.
87797         Use free+malloc instead of realloc, as the storage doesn't need
87798         to be preserved and it's clearer and can be more efficient that way.
87799         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
87800         * lib/xreadlink.h (xreadlink): Update prototype.
87801
87802 2001-09-04  Paul Eggert  <eggert@twinsun.com>
87803
87804         * lib/xgetcwd.c: Revert some of the previous change; intead,
87805         fix the HAVE_GETCWD_NULL code to behave more like the
87806         !HAVE_GETCWD_NULL code used to.
87807
87808         Include "xalloc.h".
87809         (xgetcwd): Do not return NULL when memory is exhausted; instead,
87810         invoke xalloc_die.
87811
87812 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87813
87814         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
87815         sys/param.h, as pathmax.h includes them.
87816
87817 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87818
87819         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
87820         (jm_PREREQ_XGETCWD): New macro.
87821
87822         * m4/getcwd.m4: New file.
87823
87824 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87825
87826         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
87827         like the HAVE_GETCWD_NULL code.
87828         Include pathmax.h if not HAVE_GETCWD.
87829         Do not include xalloc.h.
87830         (INITIAL_BUFFER_SIZE): New symbol.
87831         Do not use xmalloc / xrealloc, since the caller is responsible for
87832         handling errors.  Preserve errno around `free' during failure.
87833         Do not overrun buffer when using getwd.
87834
87835 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87836
87837         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
87838         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
87839         getcwd (NULL, 0).
87840
87841 2001-09-03  Paul Eggert  <eggert@twinsun.com>
87842
87843         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
87844         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
87845         spotted by Jim Meyering.
87846
87847 2001-09-03  Jim Meyering  <meyering@lucent.com>
87848
87849         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
87850         failure.
87851
87852 2001-09-02  Jim Meyering  <meyering@lucent.com>
87853
87854         * lib/error.c: Update from GNU libc.
87855
87856 2001-09-01  Jim Meyering  <meyering@lucent.com>
87857
87858         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
87859         Used by df.
87860
87861 2001-09-01  Jim Meyering  <meyering@lucent.com>
87862
87863         * lib/xreadlink.c: New file.
87864         * lib/xreadlink.h: New file.
87865         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
87866         xreadlink.h.
87867
87868         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
87869         doesn't conflict with sparc Solaris 7's definition in
87870         /usr/include/sys/int_types.h.
87871
87872         * lib/exclude.c: Use `""', not `<>' to #include non-system header
87873         files.
87874         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
87875         and strncasecmp as r-values.  Unixware didn't have declarations.
87876
87877 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87878
87879         * lib/xstrtol.h: Add copyright notice.
87880         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
87881         LONGINT_INVALID_SUFFIX_CHAR.
87882
87883 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87884
87885         * lib/xstrtol.c (strtoimax): New decl.
87886
87887 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87888
87889         * lib/xgetcwd.c: Don't include pathmax.h.
87890         Include stdlib.h and unistd.h if available.
87891         Include xalloc.h.
87892         (xmalloc, xstrdup, free): Remove decls.
87893         (xgetcwd): Don't assume sizes fit in unsigned.
87894         Check for overflow when computing sizes.
87895         Simplify reallocation code.
87896
87897 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87898
87899         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
87900         a directory's st_size can have an arbitrary value, so the old
87901         usage could waste an arbitrary amount of memory.  All uses
87902         changed.
87903         * lib/savedir.h: Update prototype.
87904
87905 2001-08-31  Paul Eggert  <eggert@twinsun.com>
87906
87907         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
87908
87909         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
87910         old strtoimax.c.
87911
87912         Also, make the following further changes to make this file's
87913         configuration more similar to that of strtol.c:
87914         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
87915         (strtoumax, uintmax_t, strtoull, strtol): Remove.
87916         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
87917         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
87918         changed to signed values.
87919
87920         And make the following changes as well:
87921         Fix copyright notice, as 1999 was missing.
87922         (verify): New macro.
87923         (strtoimax): Check sizes at compile-time, not run-time.
87924         Prefer strtol to strtoll if both work.
87925         (main): Remove; it was not that useful and was a pain to maintain.
87926
87927         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
87928
87929 2001-08-31  Jim Meyering  <meyering@lucent.com>
87930
87931         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
87932         Use an initial, malloc'd, buffer of length 128 rather than
87933         a statically allocated one of length 1024.
87934
87935 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87936
87937         Simplify code, partly by assuming autoconf 2.52 semantics.
87938
87939         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
87940
87941         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
87942         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
87943         All uses removed.
87944         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
87945         Move AC_REQUIRE to next-to-top level, to avoid confusion.
87946         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
87947         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
87948         jm_AC_HEADER_INTTYPES_H.
87949         * m4/jm-macros.m4 (jm_MACROS): Likewise.
87950
87951         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
87952
87953         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
87954         Quote first arg of AC_DEFUN.
87955         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
87956         since they are needed to parse the include file even if we need
87957         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
87958         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
87959         but with opposite signedness.
87960
87961 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87962
87963         Merge 'exclude' changes from tar 1.13.22.
87964         This fixes one or two unlikely storage allocation overflow bugs,
87965         but doesn't change user-visible behavior otherwise.
87966
87967 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87968
87969         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
87970         (jm_PREREQ_EXCLUDE): New macro.
87971
87972 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87973
87974         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
87975         tm to be declared.
87976
87977 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87978
87979         * lib/hash.c: Remove '2001' from copyright notice.
87980
87981 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87982
87983         * lib/full-write.h: New file.
87984         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
87985         * lib/full-write.c: Correct credits, as cccp.c no longer
87986         exists and anyway it was so heavily changed from the old cccp
87987         code as to be unrecognizable.  Include full-write.h.
87988         (full_write): Return size_t, with short writes meaning failure.
87989         All callers changed.  This fixes a bug with large buffers
87990         on 64-bit hosts.
87991         * lib/utime.c: Include full-write.h.
87992
87993 2001-08-30  Paul Eggert  <eggert@twinsun.com>
87994
87995         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
87996         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
87997         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
87998         Include if available.
87999         (<xalloc.h>): Include
88000         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
88001         (verify): New macro.  Use it to verify that EXCLUDE macros do not
88002         collide with FNM macros.
88003         (struct patopts): New struct.
88004         (struct exclude): Use it, as exclude patterns now come with options.
88005         (new_exclude): Support above changes.
88006         (new_exclude, add_exclude_file):
88007         Initial size must now be a power of two to simplify overflow checking.
88008         (free_exclude, fnmatch_no_wildcards): New function.
88009         (excluded_filename): No longer requires options arg, as the options
88010         are determined by add_exclude.  Now returns bool, not int.
88011         (excluded_filename, add_exclude):
88012         Add support for the fancy new exclusion options.
88013         (add_exclude, add_exclude_file): Now takes int options arg.
88014         Check for arithmetic overflow when computing sizes.
88015         (add_exclude_file): xrealloc might modify errno, so don't
88016         realloc until after errno might be used.
88017
88018         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
88019         New macros.
88020         (free_exclude): New decl.
88021         (add_exclude, add_exclude_file): Now takes int options arg.
88022         (excluded_filename): No longer requires options arg, as the options
88023         are determined by add_exclude.  Now returns bool, not int.
88024
88025 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88026
88027         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
88028
88029 2001-08-27  Jim Meyering  <meyering@lucent.com>
88030
88031         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
88032
88033         * lib/version-etc.c (N_): Remove definition.
88034         Revert most of last change.
88035         Instead, simply don't mark the `Copyright...' string for translation.
88036         Based on advice from Paul Eggert.
88037
88038         * lib/strtoxmax.c: Tweak comment.
88039
88040 2001-08-26  Jim Meyering  <meyering@lucent.com>
88041
88042         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
88043
88044         * m4/xstrtoimax.m4: New file.
88045         * m4/xstrtoumax.m4: Add comments explaining why we
88046         AC_REPLACE_FUNCS(strtol).
88047
88048 2001-08-26  Jim Meyering  <meyering@lucent.com>
88049
88050         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
88051         of copyright with `%s' so translators don't get an untranslated
88052         message in 2002.
88053         (COPYRIGHT_YEAR): Define.
88054         (version_etc): Use fprintf rather than fputs.
88055         Suggestion from Ulrich Drepper.
88056
88057         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
88058
88059         * lib/strtoll.c: New file, from GNU libc.
88060         * lib/xstrtoimax.c: New file.
88061
88062         * lib/xstrtol.h: Add xstrtoimax.
88063         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
88064         * lib/strtoimax.c: New file.  Likewise, but first define
88065         STRTOUXMAX_SIGNED.
88066
88067         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
88068         ...
88069         * lib/strtoxmax.c: ... then renamed to this.
88070
88071 2001-08-18  Paul Eggert  <eggert@twinsun.com>
88072
88073         * m4/inttypes.m4: Add AC_PREREQ(2.13).
88074         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
88075         (jm_AC_TYPE_INTMAX_T): New macro.
88076         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
88077
88078         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
88079
88080         * m4/longlong.m4: Renamed from ulonglong.m4.
88081         * m4/inttypes.m4: Renamed from inttypes_h.m4.
88082         * m4/uintmax_t.m4: Removed.
88083
88084 2001-08-13  Paul Eggert  <eggert@twinsun.com>
88085
88086         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
88087         Port to Solaris 8, where 'sed' requires a space after the 'r'
88088         command, and where sh dislikes "$/".  Clean up the spacing a bit.
88089         Redirect output to $tmp just once.
88090
88091 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
88092
88093         * lib/addext.c (<errno.h>): Include.
88094         (errno): Declare if not defined.
88095         (addext): Work correctly when pathconf returns -1 and leaves
88096         errno alone because there is no limit.  Also, work even if
88097         pathconf returns a value greater than SIZE_MAX.
88098
88099 2001-08-12  Jim Meyering  <meyering@lucent.com>
88100
88101         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
88102         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
88103         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
88104         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
88105         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
88106         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
88107         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
88108         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
88109         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
88110         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
88111         utime.m4, utimes.m4, xstrtoumax.m4:
88112         Quote the first argument in each use of AC_DEFUN.
88113
88114 2001-08-12  Jim Meyering  <meyering@lucent.com>
88115
88116         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
88117         Simply `return getcwd (NULL, 0);'.
88118         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
88119         Use 1300 as initial value for length, not PATH_MAX.
88120
88121         * lib/pathmax.h: Clean up cpp syntax.
88122
88123 2001-08-12  Jim Meyering  <meyering@lucent.com>
88124
88125         * lib/gettimeofday.c: New file.
88126         * lib/gtod.h: New file.
88127         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
88128
88129 2001-08-05  Jim Meyering  <meyering@lucent.com>
88130
88131         * m4/jm-macros.m4: Require autoconf-2.52.
88132
88133 2001-08-04  Jim Meyering  <meyering@lucent.com>
88134
88135         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
88136         stmt, to get in sync with glibc.
88137
88138 2001-08-03  Paul Eggert  <eggert@twinsun.com>
88139
88140         The following changes are from gettext 0.10.39 as maintained by
88141         Bruno Haible.
88142
88143         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
88144         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
88145         with inverted sense.  All uses changed.
88146
88147         * lib/mbswidth.c: Don't include <limits.h>.
88148         Include <stdlib.h> and <string.h> unconditionally.
88149         (iswcntrl, mbsinit, ISCNTRL): New macros.
88150         (mbsnwidth): Use K&R style function declarations.
88151         Don't bother checking for MB_LEN_MAX == 1, since the compiler
88152         can optimize it when MB_CUR_MAX == 1.
88153         The width of control characters is zero, not 1.
88154
88155 2001-08-03  Paul Eggert  <eggert@twinsun.com>
88156
88157         The following changes are from gettext 0.10.39 as maintained by
88158         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
88159
88160         * m4/codeset.m4: Upgrade to serial AM1.
88161         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
88162         all uses changed.  Quote first arg of AC_DEFUN.
88163         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
88164
88165         * m4/iconv.m4: Upgrade to serial AM2.
88166         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
88167         Add --with-libconv-prefix.
88168         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
88169         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
88170         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
88171         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
88172         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
88173
88174         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
88175         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
88176         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
88177         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
88178         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
88179         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
88180         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
88181         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
88182         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
88183
88184         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
88185         string.h any more.
88186
88187         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
88188         not the default value.
88189
88190         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
88191         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
88192         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
88193         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
88194         Also check for iswcntrl, used for wcwidth fallback.
88195         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
88196         to Autoconf 2.13.
88197
88198 2001-08-03  Jim Meyering  <meyering@lucent.com>
88199
88200         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
88201         as it was in the original.  Reported by Paul Eggert.
88202
88203 2001-07-16  Jim Meyering  <meyering@lucent.com>
88204
88205         * m4/gettimeofday.m4: New file.
88206         Prompted by a report from Bernhard Baehr.
88207
88208 2001-07-15  Jim Meyering  <meyering@lucent.com>
88209
88210         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
88211         stuff. Now it's in ../Makefile.cfg.
88212
88213 2001-07-15  Jim Meyering  <meyering@lucent.com>
88214
88215         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
88216         (BUILT_SOURCES): Add unlocked-io.h.
88217         (io_functions): Define.
88218         (unlocked-io.h): New rule.
88219         (DISTCLEANFILES): Add unlocked-io.h.
88220         (all-local): Depend on unlocked-io.h, to ensure it is created.
88221
88222         * lib/unlocked-io.hin: New file
88223
88224         * lib/regex.c: Update from glibc.
88225
88226 2001-07-05  Jim Meyering  <meyering@lucent.com>
88227
88228         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
88229         recommendation.
88230         (libfetish_a_SOURCES): Put all .h files here instead.
88231         Remove a thus-exposed (better checks in automake) duplicate and
88232         two unnecessary .h files.
88233
88234 2001-07-04  Jim Meyering  <meyering@lucent.com>
88235
88236         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
88237         that generates jm-glibc-io.m4 so that it doesn't trigger any make
88238         distcheck failure.
88239
88240 2001-07-02  Jim Meyering  <meyering@lucent.com>
88241
88242         The following changes were prompted by suggestions from Bruno Haible.
88243
88244         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
88245         is now generated.
88246         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
88247         definition of EXTRA_DIST.
88248         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
88249         ensure that the generated file is created/updated whenever the list
88250         of $(unlocked_functions) is changed.
88251         (jm-glibc-io.m4): New rule.
88252         (unlocked-io.h): New rule -- currently unused.
88253
88254 2001-06-24  Jim Meyering  <meyering@lucent.com>
88255
88256         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
88257         unmatched right bracket, rather than kludging it with an extra,
88258         falsely-matching quote in a comment.  Patch by Akim Demaille.
88259
88260 2001-06-11  Jim Meyering  <meyering@lucent.com>
88261
88262         * lib/regex.c: Update from GNU libc.
88263
88264 2001-05-27  Jim Meyering  <meyering@lucent.com>
88265
88266         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
88267         Check for ut_type in struct utmp.
88268
88269 2001-05-27  Jim Meyering  <meyering@lucent.com>
88270
88271         * lib/readutmp.h (UT_TYPE): Define.
88272
88273 2001-05-24  Jim Meyering  <meyering@lucent.com>
88274
88275         * lib/argmatch.c: Include "quote.h".
88276         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
88277         quote function.  Reported by Göran Uddeborg.
88278
88279 2001-05-22  Jim Meyering  <meyering@lucent.com>
88280
88281         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
88282         now that we use the package-supplied version unconditionally.
88283         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
88284
88285 2001-05-21  Jim Meyering  <meyering@lucent.com>
88286
88287         * m4/regex.m4: Change a couple backticks to single quotes to avoid
88288         shell syntax errors.
88289
88290 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
88291
88292         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
88293
88294 2001-05-20  Paul Eggert  <eggert@twinsun.com>
88295
88296         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
88297         Don't bother to check library strftime, since
88298         we'll be using our own my_strftime function anyway.
88299         Define my_strftime instead of strftime.
88300
88301 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
88302
88303         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
88304         which is not yet declared.
88305
88306 2001-05-15  Jim Meyering  <meyering@lucent.com>
88307
88308         * m4/regex.m4: Use proper quoting so brackets appear in the test
88309         program.
88310         Reported by, and with help from, Bruno Haible.
88311
88312 2001-05-13  Jim Meyering  <meyering@lucent.com>
88313
88314         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
88315         undefined.
88316
88317 2001-05-11  Paul Eggert  <eggert@twinsun.com>
88318
88319         dirname code cleanup.  base_name now behaves more compatibly
88320         with POSIX basename when given file names that have trailing
88321         slashes, and similarly for dir_name.  Add new primitives
88322         base_len and dir_len.  Put the directory-name-related decls
88323         into dirname.h.
88324
88325         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
88326         * lib/backupfile.c (base_name): Likewise.
88327         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
88328         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
88329         * lib/makepath.c (strip_trailing_slashes): Likewise.
88330         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
88331         ISSLASH): Likewise.
88332         * lib/rename.c (strip_trailing_slashes): Likewise.
88333         * lib/same.c (base_name): Likewise.
88334         * lib/stripslash.c (ISSLASH): Likewise.
88335
88336         * lib/addext.c: Include <dirname.h> after size_t is defined.
88337         * lib/backupfile.c: Likewise.
88338
88339         * lib/addext.c (addext): Use base_len to trim redundant
88340         trailing slashes instead of doing it ourselves.
88341         But do not trim the last slash if it is not redundant.
88342
88343         * lib/backupfile.c (find_backup_file_name,
88344         max_backup_version): Use base_len instead of rolling it ourselves.
88345         Handle the case of "" and (on DOS) "C:" correctly.
88346
88347         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
88348         needed. Include <string.h>, <dirname.h>.
88349         (base_name): Allow file names ending in slashes, other than names
88350         that are all slashes.  In this case, return the basename followed
88351         by the slashes.  This is more general, and can be used in places
88352         where the original base_name purposely had an assertion failure.
88353         (base_len): New function.
88354
88355         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
88356         Do not include <assert.h>; no longer needed.
88357         Include xalloc.h.
88358         (memrchr): Remove decl.
88359         (dir_name_r): Remove.
88360         (dir_len): Renamed from dirlen.  All callers changed.
88361         Rewrite in terms of base_name, for simplicity and consistency.
88362         (dir_name): Never return NULL.  All callers changed.
88363         Do not include <stdlib.h> in test program; no longer needed.
88364         return 0; is fine for test program.
88365
88366         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
88367         New macros.
88368         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
88369
88370         * lib/path-concat.c (path_concat): Use base_len to compute
88371         base length, not strlen; this means we cannot rely on memcpy
88372         to null-terminate.
88373
88374         * lib/same.c (STREQ): Remove.
88375         (same_name): Handle the case where the basename ends in trailing '/'.
88376
88377         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
88378         a slash was stripped.  Do not strip the last slash after a
88379         file system prefix.
88380
88381 2001-05-11  Paul Eggert  <eggert@twinsun.com>
88382
88383         * lib/Makefile.am (libfetish_a_SOURCES):
88384         Add strftime.c, since we now compile it on all hosts.
88385
88386         * lib/strftime.c (my_strftime):
88387         Define to nstrftime if emacs, but only if my_strftime is not defined.
88388         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
88389         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
88390         Add one more extra argument: a nanoseconds value.
88391         All uses changed.
88392         (ns): New macro.
88393         (my_strftime function): Add %N format.
88394         (emacs_strftimeu): Renamed from emacs_strftime,
88395         with extra ut argument.
88396
88397 2001-05-09  Paul Eggert  <eggert@twinsun.com>
88398
88399         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
88400
88401 2001-04-21  Jim Meyering  <meyering@lucent.com>
88402
88403         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
88404         doesn't interfere.
88405
88406 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
88407
88408         * m4/ftruncate.m4: Check for chsize.
88409         Link with ftruncate.o unconditionally if ftruncate is missing.
88410         This was required when cross-compiling to i586-mingw32msvc.
88411
88412 2001-04-08  Jim Meyering  <meyering@lucent.com>
88413
88414         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
88415         recomputed; that's necessary when the offset spans a DST transition.
88416         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
88417
88418 2001-04-02  Jim Meyering  <meyering@lucent.com>
88419
88420         * lib/regex.h, regex.c: Update from GNU libc.
88421
88422 2001-03-24  Jim Meyering  <meyering@lucent.com>
88423
88424         * m4/jm-macros.m4: Require autoconf-2.49d.
88425
88426 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
88427
88428         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
88429
88430 2001-03-19  Paul Eggert  <eggert@twinsun.com>
88431
88432         * lib/version-etc.c (version_etc_copyright): Update to 2001.
88433
88434 2001-03-17  Jim Meyering  <meyering@lucent.com>
88435
88436         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
88437         now that the version in autoconf is equivalent.
88438         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
88439
88440         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
88441         Suggestion from Akim Demaille.
88442
88443         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
88444         (jm_PREREQ_TEMPNAME): New function.
88445
88446 2001-03-16  Paul Eggert  <eggert@twinsun.com>
88447
88448         * lib/tempname.c (uint64_t): Define to uintmax_t if
88449         not defined, and if UINT64_MAX is not defined.
88450         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
88451         Reported by John David Anglin.
88452
88453 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
88454
88455         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
88456         resolve alias if codeset is empty.
88457         * lib/config.charset (BeOS): Use wildcard syntax.
88458
88459 2001-03-13  Jim Meyering  <meyering@lucent.com>
88460
88461         * lib/path-concat.c (path_concat)
88462         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
88463         concatenating e.g., `C:' and `foo'.
88464         From Bruno Haible.
88465
88466 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
88467
88468         * lib/localcharset.c (locale_charset): Don't use
88469         setlocale(LC_CTYPE,NULL). Don't return NULL.
88470         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
88471
88472 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
88473
88474         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
88475         support for DOS/DJGPP.
88476
88477 2001-03-01  Paul Eggert  <eggert@twinsun.com>
88478
88479         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
88480         lacks mkstemp.  Compile our own tempname.c if we compile our own
88481         mkstemp.c, as mkstemp relies on tempname.
88482
88483 2001-03-01  Jim Meyering  <meyering@lucent.com>
88484
88485         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
88486         AH_VERBATIM really does output its argument verbatim.
88487
88488 2001-02-28  Paul Eggert  <eggert@twinsun.com>
88489
88490         * lib/Makefile.am (libfetish_a_SOURCES):
88491         Add dup-safer.c, fopen-safer.c.
88492         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
88493
88494         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
88495         * lib/unistd-safer.h: New files.
88496
88497 2001-02-25  Paul Eggert  <eggert@twinsun.com>
88498
88499         The mkstemp replacement is taken from glibc 2.2.2, with some
88500         portability fixes for use outside glibc, as follows:
88501
88502         * lib/tempname.c (struct_stat64): New macro.
88503         (direxists, __gen_tempname): Use it.
88504         This avoids a portability problem with Solaris 8.
88505
88506         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
88507         (<stddef.h>, <stdint.h>, <string.h>):
88508         Include only if STDC_HEADERS || _LIBC.
88509         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
88510         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
88511         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
88512         (__set_errno): Define this macro if <errno.h> doesn't.
88513         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
88514         Define these macros if <stdio.h> doesn't.
88515         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
88516         Define these macros if <sys/stat.h>
88517         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
88518         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
88519         __xstat64): Define if not _LIBC.
88520         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
88521         (__gen_tempname): Invoke gettimeofday only if
88522         HAVE_GETTIMEOFDAY || _LIBC;
88523         otherwise, fall back on plain "time".
88524         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
88525
88526         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
88527
88528         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
88529
88530 2001-02-18  Paul Eggert  <eggert@twinsun.com>
88531
88532         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
88533
88534 2001-02-17  Paul Eggert  <eggert@twinsun.com>
88535
88536         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
88537         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
88538         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
88539         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
88540
88541 2001-02-17  Paul Eggert  <eggert@twinsun.com>
88542
88543         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
88544         Remove workaround macros for hosts that have mbrtowc but not
88545         mbstate_t, as we now insist on proper declarations for both
88546         before using mbrtowc.
88547
88548 2001-02-17  Jim Meyering  <meyering@lucent.com>
88549
88550         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
88551         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
88552         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
88553         UnixWare 7.1.1.
88554
88555         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
88556         rather than AC_CACHE_VAL.
88557
88558 2001-02-17  Jim Meyering  <meyering@lucent.com>
88559
88560         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
88561         around included file name.
88562
88563         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
88564
88565         * lib/strftime.c: Update from GNU libc (the only changes were to
88566         comments).
88567
88568 2001-02-17  Jim Meyering  <meyering@lucent.com>
88569
88570         * lib/regex.c: Update from libc.
88571
88572 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
88573
88574         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
88575         clash.
88576
88577 2001-02-16  Paul Eggert  <eggert@twinsun.com>
88578
88579         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
88580         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
88581         Reported by Mark Hounschell via Paul Eggert.
88582
88583 2001-02-07  Jim Meyering  <meyering@lucent.com>
88584
88585         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
88586
88587 2001-02-05  Jim Meyering  <meyering@lucent.com>
88588
88589         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
88590         it includes the patch required for `large file' support with at least
88591         HP-UX's 10.20 /bin/cc.
88592
88593 2001-02-03  Jim Meyering  <meyering@lucent.com>
88594
88595         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
88596         AS_IF, now that it works once again (mysteriously).
88597         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
88598
88599 2001-01-30  Jim Meyering  <meyering@lucent.com>
88600
88601         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
88602         * m4/chown.m4: Rename conftestchown to conftest.chown.
88603         * m4/rename.m4: s/conftestdir/conftest.d1/ and
88604         s/conftestdir2/conftest.d2/.
88605         * m4/utimes.m4: s/conftestdata/conftest.data/
88606         Inspired by Pavel Roskin's change in autoconf.
88607
88608 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
88609
88610         * lib/config.charset: Update for FreeBSD 4.2.
88611
88612 2001-01-27  Jim Meyering  <meyering@lucent.com>
88613
88614         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
88615         a use of AS_IF.
88616         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
88617
88618 2001-01-26  Jim Meyering  <meyering@lucent.com>
88619
88620         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
88621         quotearg.c includes it.
88622
88623 2001-01-26  Jim Meyering  <meyering@lucent.com>
88624
88625         * lib/quotearg.c: Include stddef.h.
88626         * lib/quote.c: Include stddef.h.
88627         Reported by Axel Kittenberger.
88628
88629         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
88630         line in double quotes so that it evokes a better diagnostic.
88631         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
88632         Reported by Axel Kittenberger.
88633
88634 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
88635
88636         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
88637         as if it was a `charset'.
88638
88639 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
88640
88641         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
88642         has const.
88643
88644 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
88645
88646         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
88647         to avoid a warning.  Add back 'const' to inptr.
88648
88649 2001-01-20  Jim Meyering  <meyering@lucent.com>
88650
88651         Be sure that headers are checked before used in code compiled
88652         for the type checks.
88653         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
88654         In place of that, invoke jm_CHECK_ALL_TYPES.
88655         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
88656         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
88657         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
88658         The check for ssize_t was mistakenly run before the test for unistd.h.
88659
88660         The configure-time check for stdbool.h was missing.
88661         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
88662         (jm_PREREQ_HASH): New function.
88663
88664 2001-01-17  Jim Meyering  <meyering@lucent.com>
88665
88666         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
88667         for autoconf-2.49c.
88668         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
88669
88670 2001-01-16  Jim Meyering  <meyering@lucent.com>
88671
88672         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
88673         From Bruno Haible.
88674
88675 2001-01-14  Jim Meyering  <meyering@lucent.com>
88676
88677         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
88678         foo and bar.  Create conftestdir/ in the script, not in the C code.
88679         Remove directories in the script, not in the C code.
88680         Remove conftestdir{,2} before trying to create the directory.
88681         Make the entire configure script fail if the mkdir fails.
88682
88683 2001-01-14  Jim Meyering  <meyering@lucent.com>
88684
88685         * lib/rename.c: New file.  From Volker Borchert.
88686         Include stdlib.h, string.h or strings.h, and xalloc.h.
88687         Use strip_trailing_slashes rather than open-coding it.
88688
88689 2001-01-03  Paul Eggert  <eggert@twinsun.com>
88690
88691         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
88692
88693 2001-01-03  Jim Meyering  <meyering@lucent.com>
88694
88695         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
88696         of local `inptr' to avoid warning with some system declarations of
88697         iconv.
88698
88699 2001-01-02  Volker Borchert  <bt@teknon.de>
88700
88701         * m4/rename.m4: New file.
88702         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
88703
88704 2001-01-01  Jim Meyering  <meyering@lucent.com>
88705
88706         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
88707         even on systems with utmpx.h.  It's necessary for the declaration of
88708         utmp's ut_user member.  Reported by Andreas Jaeger.
88709
88710         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
88711         available. They are required for the declarations of getgrgid and
88712         getpwuid resp.
88713         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
88714         Reported by Andreas Jaeger.
88715
88716 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
88717
88718         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
88719         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
88720         so `make install' also works in VPATH builds.
88721
88722 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
88723
88724         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
88725         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
88726         can be used in subdirectories.
88727
88728 2000-12-29  Paul Eggert  <eggert@twinsun.com>
88729
88730         * lib/modechange.c: Do not assume that mode_t uses the
88731         traditional octal encoding.  E.g. "chmod 1 FOO" should set
88732         the other-execute bit of FOO even if S_IXOTH != 1.
88733
88734         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
88735         WOTH, XOTH, ALLM): New macros.
88736         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
88737          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
88738         Use them.
88739         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
88740         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
88741         (mode_compile):
88742         No need to use uintmax_t; unsigned long is long enough.
88743         Don't bother to get suffix since we don't use it.
88744
88745 2000-12-26  Jim Meyering  <meyering@lucent.com>
88746
88747         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
88748         better with autoheader.
88749
88750 2000-12-24  Jim Meyering  <meyering@lucent.com>
88751
88752         * lib/hash.c (is_prime): Return explicit boolean values.
88753         (hash_get_first): Return NULL to appease Irix5.6's 89.
88754         Reported by Nelson Beebe.
88755
88756 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
88757
88758         * lib/localcharset.c (locale_charset): Add support for Win32.
88759
88760 2000-12-18  Paul Eggert  <eggert@twinsun.com>
88761
88762         * lib/physmem.h, lib/physmem.c: New files.
88763
88764         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
88765         (noinst_HEADERS): Add physmem.h.
88766
88767         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
88768         't' for compatibility with Solaris 8 sort.
88769
88770 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
88771
88772         * lib/config.charset: Add support for BeOS.
88773
88774 2000-12-17  Jim Meyering  <meyering@lucent.com>
88775
88776         * m4/dos.m4 (jm_AC_DOS): New file and macro.
88777         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
88778
88779 2000-12-16  Jim Meyering  <meyering@lucent.com>
88780
88781         This bug had a serious impact on chown: `chown N:M FILE' (for integer
88782         N and M) would have treated it like `chown N:N FILE'.
88783
88784         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
88785
88786 2000-12-16  Jim Meyering  <meyering@lucent.com>
88787
88788         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
88789         SHELLS_FILE to a file name that's useful on djgpp systems.
88790         Include stdlib.h.
88791         (ADDITIONAL_DEFAULT_SHELLS): Define.
88792         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
88793         Based mostly on a patch from Prashant TR.
88794
88795 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
88796
88797         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
88798         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
88799         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
88800
88801 2000-12-08  Andreas Schwab  <schwab@suse.de>
88802
88803         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
88804         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
88805
88806 2000-12-07  Jim Meyering  <meyering@lucent.com>
88807
88808         * lib/stripslash.c (ISSLASH): Define.
88809         (strip_trailing_slashes): Use ISSLASH rather than comparing against
88810         `/'.
88811         From Prashant TR.
88812
88813         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
88814         (dir_name_r): Declare this function as static.
88815         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
88816         manifest itself on a name containing a mix of slashes and
88817         backslashes.
88818         Make this function work with names starting with a DOS-style
88819         drive letter and colon prefix.
88820         (dir_name): Append `.' if necessary.
88821         Based mostly on patches from Prashant TR and Eli Zaretskii.
88822
88823         * lib/dirname.h (dir_name_r): Remove prototype.
88824
88825 2000-12-06  Paul Eggert  <eggert@twinsun.com>
88826
88827         * m4/off_t-format.m4: Remove this file.
88828         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
88829
88830 2000-12-06  Jim Meyering  <meyering@lucent.com>
88831
88832         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
88833         replacement strtoull, we may well need the replacement strtoul, too.
88834         Check for declarations of strtoul and strtoull.
88835         Check for strtol.  Mainly as a cue to cause automake to include
88836         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
88837         Check for limits.h -- strtol.c needs it.
88838
88839 2000-12-05  Jim Meyering  <meyering@lucent.com>
88840
88841         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
88842
88843 2000-12-04  Jim Meyering  <meyering@lucent.com>
88844
88845         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
88846         Also include memory.h, stdlib.h, unistd.h if appropriate.
88847         Reported by Andreas Jaeger (conflicting declaration of malloc).
88848
88849 2000-12-02  Jim Meyering  <meyering@lucent.com>
88850
88851         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
88852         * m4/jm-macros.m4 (jm_MACROS): require it.
88853
88854 2000-12-02  Jim Meyering  <meyering@lucent.com>
88855
88856         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
88857
88858 2000-12-01  Paul Eggert  <eggert@twinsun.com>
88859
88860         * lib/memrchr.c: Include <config.h> before any system include file.
88861
88862 2000-11-30  Jim Meyering  <meyering@lucent.com>
88863
88864         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
88865
88866 2000-11-30  Jim Meyering  <meyering@lucent.com>
88867
88868         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
88869
88870 2000-11-29  Paul Eggert  <eggert@twinsun.com>
88871
88872         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
88873
88874 2000-11-26  Jim Meyering  <meyering@lucent.com>
88875
88876         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
88877
88878 2000-11-22  Paul Eggert  <eggert@twinsun.com>
88879
88880         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
88881         size of (size_t) -1; it's not portable.
88882
88883 2000-11-17  Jim Meyering  <meyering@lucent.com>
88884
88885         * lib/strstr.c: Update from GNU libc.
88886
88887 2000-11-17  Akim Demaille  <akim@epita.fr>
88888
88889         * lib/obstack.h: Formatting changes.
88890         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
88891         prevent type checking.
88892         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
88893         cast the value to (void *): assigning a `foo *' to a `void *'
88894         variable is valid.
88895         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
88896
88897 2000-11-16  Jim Meyering  <meyering@lucent.com>
88898
88899         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
88900
88901 2000-11-11  Jim Meyering  <meyering@lucent.com>
88902
88903         * lib/error.c: Add a couple #includes, merging from GNU libc version.
88904
88905 2000-11-10  Jim Meyering  <meyering@lucent.com>
88906
88907         * lib/obstack.h: Update from GNU libc.
88908         * lib/obstack.c: Likewise.
88909
88910 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
88911
88912         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
88913
88914 2000-11-06  Paul Eggert  <eggert@twinsun.com>
88915
88916         * lib/getusershell.c (setusershell): Use rewind rather than
88917         fseek/fseeko, to avoid configuration hassles with fseeko.
88918         Don't bother opening SHELLS_FILE if shellstream is NULL;
88919         it's not necessary.
88920
88921 2000-11-05  Jim Meyering  <meyering@lucent.com>
88922
88923         * lib/makepath.h (make_dir): Declare.
88924         * lib/makepath.c (make_dir): Remove `static' attribute.
88925         Tweak a comment.
88926
88927 2000-11-04  Jim Meyering  <meyering@lucent.com>
88928
88929         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
88930
88931 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
88932
88933         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
88934         last one in a bucket, advance to the next bucket.
88935
88936 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
88937
88938         * lib/fnmatch.c: Do not comment out all the code if we are using
88939         the GNU C library, because in some cases we are replacing buggy
88940         code in the GNU C library itself.
88941
88942 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
88943
88944         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
88945         (regex_compile): Catch bogus \(\1\).
88946
88947 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88948
88949         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
88950         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
88951         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
88952
88953 2000-10-30  Paul Eggert  <eggert@twinsun.com>
88954
88955         * lib/error.h, getline.h, modechange.h:
88956         Remove "2000" from Copyright line, as the file hasn't been
88957         changed this year other than in the copyright notice.
88958
88959         * lib/xalloc.h: Add "2000" to Copyright line, as this file
88960         was changed this year.
88961
88962 2000-10-29  Jim Meyering  <meyering@lucent.com>
88963
88964         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
88965         renaming.
88966         * m4/ls-mntd-fs.m4: Likewise
88967
88968 2000-10-29  Jim Meyering  <meyering@lucent.com>
88969
88970         * lib/xstat.in: Fix grammar in comment.
88971
88972 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
88973
88974         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
88975         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
88976         doesn't define __restrict_arr.
88977
88978 2000-10-28  Jim Meyering  <meyering@lucent.com>
88979
88980         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
88981         (jm_PREREQ_MEMCHR): New function.
88982
88983 2000-10-28  Jim Meyering  <meyering@lucent.com>
88984
88985         * lib/memchr.c: Update from libc.
88986         Adjust for portability:
88987         [HAVE_STDLIB_H]: Include stdlib.h.
88988         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
88989         Undef __memchr, too.
88990         [!weak_alias]: Define __memchr to memchr.
88991
88992         * lib/regex.c: Update from libc.
88993         * lib/regex.h: Likewise.
88994         * lib/getopt1.c: Likewise.
88995         * lib/memcmp.c: Likewise.
88996
88997         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
88998         Avoid using fseek, when possible -- it's broken by design.
88999         Patch by Ulrich Drepper.
89000
89001 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
89002
89003         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
89004         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
89005         Giving in to popular pressure to shut up the compiler with casts.
89006
89007 2000-10-26  Jim Meyering  <meyering@lucent.com>
89008
89009         * lib/strftime.c: Update from libc.
89010
89011 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
89012
89013         * regex.c: More `unsigned char' -> `re_char' changes.
89014         Also change several `int' into `re_wchar_t'.
89015         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
89016         (PUSH_FAILURE_POINTER): Don't cast any more.
89017         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
89018         We want GCC to complain, since this piece of code makes
89019         re_match non-reentrant, which *should* be fixed.
89020         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
89021         (EXTEND_BUFFER): Use RETALLOC.
89022         (SET_LIST_BIT): Don't cast.
89023         (re_wchar_t): New type.
89024         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
89025         that those two functions will always properly return.
89026         (IMMEDIATE_QUIT_CHECK): Cast to void.
89027         (analyse_first): Use recursion rather than an explicit stack.
89028         (re_compile_fastmap): Can't fail anymore.
89029         (re_search_2): Don't check re_compile_fastmap for failure.
89030         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
89031         Now also sets the new value (passed in a new argument).
89032         (re_match_2_internal): Use it.
89033         Also, use a new var `reg' of type size_t when looping through regs
89034         rather than reuse the inappropriate `mcnt'.
89035
89036 2000-10-25  Jim Meyering  <meyering@lucent.com>
89037
89038         * lib/obstack.c: Update from libc.
89039
89040 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
89041
89042         * regex.c (regex_compile): Change the way of handling a range from
89043         a char less than 256 to a char not less than 256.
89044
89045 2000-10-24  Andrew Innes  <andrewi@gnu.org>
89046
89047         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
89048         NT-Emacs only.
89049         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
89050         so that re_search functions only quit when callers expect them to.
89051
89052 2000-10-23  Jim Meyering  <meyering@lucent.com>
89053
89054         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
89055         wrong.  That set_locale call must not have any side effects.
89056         From Paul Eggert.
89057
89058 2000-10-22  Jim Meyering  <meyering@lucent.com>
89059
89060         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
89061         [CYCLIC]: Remove now-unused definition.
89062
89063         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
89064         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
89065         Suggestion from Ulrich Drepper.
89066
89067 2000-10-21  Jim Meyering  <meyering@lucent.com>
89068
89069         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
89070         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
89071         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
89072
89073 2000-10-21  Jim Meyering  <meyering@lucent.com>
89074
89075         * lib/dirname.c (memrchr): Declare if necessary.
89076         (dir_name): Remove the restriction that there be no
89077         trailing slashes.  Now, this code skips past them, effectively
89078         ignoring them.
89079         [TEST_DIRNAME] (main): New unit tests.
89080
89081         * lib/memrchr.c: New file from GNU libc.
89082         Undef __memrchr, too.
89083         [!weak_alias]: Define __memrchr to memrchr.
89084         Guard weak_alias use with `#ifdef weak_alias'.
89085
89086 2000-10-21  Jim Meyering  <meyering@lucent.com>
89087
89088         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
89089         (dir_name): Use dir_name_r.
89090         * lib/dirname.h (dir_name_r): Declare it.
89091
89092 2000-10-17  Jim Meyering  <meyering@lucent.com>
89093
89094         * lib/quote.h (PARAMS): Define and use.
89095         Reported by Akim Demaille.
89096
89097         * lib/getopt.c: Update from libc.
89098
89099 2000-10-16  Jim Meyering  <meyering@lucent.com>
89100
89101         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
89102         setlocale.
89103         From Jan Fedak.
89104
89105 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
89106
89107         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
89108
89109 2000-09-25  Jim Meyering  <meyering@lucent.com>
89110
89111         * lib/md5.h (rol): Define (from GnuPG).
89112
89113         * lib/sha.c: Give credit (GnuPG) where due.
89114         (M): Use rol rather than open-coding it.
89115         Add a FIXME comment.
89116
89117 2000-09-21  Jim Meyering  <meyering@lucent.com>
89118
89119         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
89120         Reported by Michael Stone.
89121
89122 2000-09-20  Jim Meyering  <meyering@lucent.com>
89123
89124         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
89125         (noinst_HEADERS): Add sha.h.
89126         Based on code from Scott G. Miller and from GnuPG.
89127
89128 2000-09-18  Jim Meyering  <meyering@lucent.com>
89129
89130         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
89131         LIBS. Otherwise, everyone ends up linking with -lelf for some
89132         configurations.
89133         Reported by Mike Stone.
89134
89135 2000-09-15  Jim Meyering  <meyering@lucent.com>
89136
89137         * lib/regex.c: Update from libc.
89138
89139 2000-09-10  Jim Meyering  <meyering@lucent.com>
89140
89141         * lib/getopt.c (_getopt_internal): Update from glibc.
89142
89143 2000-09-09  Jim Meyering  <meyering@lucent.com>
89144
89145         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
89146         think it should be used as a general replacement for isascii.
89147         * lib/fnmatch.c: Likewise.
89148         * lib/mbswidth.c: Likewise
89149         * lib/regex.c: Likewise.
89150
89151         Don't use atoi.
89152         * lib/userspec.c: Include sys/param.h and limits.h.
89153         Include xstrtol.h.
89154         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
89155         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
89156         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
89157         UID, GID.  Check range.
89158
89159 2000-09-06  Jim Meyering  <meyering@lucent.com>
89160
89161         * lib/getopt.c (_getopt_internal): Update from glibc.
89162
89163 2000-08-30  Jim Meyering  <meyering@lucent.com>
89164
89165         * lib/strftime.c: Merge in changes from GNU libc.
89166
89167 2000-08-26  Jim Meyering  <meyering@lucent.com>
89168
89169         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
89170         * m4/fpending.m4: New file.
89171
89172 2000-08-26  Jim Meyering  <meyering@lucent.com>
89173
89174         * lib/closeout.c: Include "__fpending.h".
89175         (close_stdout_status): Return right away if there's nothing to flush.
89176
89177         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
89178         * lib/__fpending.c: New file.
89179         * lib/__fpending.h: New file.
89180
89181 2000-08-20  Jim Meyering  <meyering@lucent.com>
89182
89183         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
89184         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
89185         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
89186
89187 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
89188
89189         Improve fileutils installation on systems where running
89190         programs (like install) can't be unlinked.
89191         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
89192         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
89193
89194 2000-08-07  Paul Eggert  <eggert@twinsun.com>
89195
89196         Standardize on "memory exhausted" instead of "Memory exhausted"
89197         or "virtual memory exhausted".
89198         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
89199         "virtual memory exhausted".
89200         * lib/same.c (same_name): Invoke xalloc_die instead of printing
89201         our own message.
89202         * lib/userspec.c (parse_user_spec): Likewise.
89203         * lib/bumpalloc.h: comment fix
89204         * lib/same.c, userspec.c: Include xalloc.h.
89205
89206         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
89207         not char *const and pointing to a constant array.
89208         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
89209         (xrealloc): Comment fix.
89210
89211         * lib/userspec.c (parse_user_spec):
89212         Don't translate a message until just before returning,
89213         to avoid unnecessary translation.
89214
89215 2000-08-07  Jim Meyering  <meyering@lucent.com>
89216
89217         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
89218         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
89219         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
89220         getgroups.c, gethostname.c, getopt.h, group-member.c,
89221         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
89222         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
89223         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
89224         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
89225         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
89226         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
89227         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
89228         yesno.c: Back out Copyright date changes for each file with no change
89229         this year.  This eases coordination with other programs using the same
89230         source code modules.  From Paul Eggert.
89231
89232 2000-08-06  Paul Eggert  <eggert@twinsun.com>
89233
89234         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
89235         not char, for compatibility with glibc 2.1.3 strftime.c.
89236
89237 2000-08-03  Greg McGary  <greg@mcgary.org>
89238
89239         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
89240         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
89241         (EXTEND_BUFFER): Use them.
89242
89243 2000-08-01  Jim Meyering  <meyering@lucent.com>
89244
89245         * lib/dirname.c (ISSLASH): Define.
89246         (BACKSLASH_IS_PATH_SEPARATOR): Define.
89247         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
89248         both `\' and `/' may be use as path separators.
89249         Based on a patch from Prashant TR.
89250
89251 2000-07-31  Paul Eggert  <eggert@twinsun.com>
89252
89253         * lib/quotearg.c (quotearg_n_options): Don't make the initial
89254         slot vector a constant, since it might get modified.
89255
89256 2000-07-31  Jim Meyering  <meyering@lucent.com>
89257
89258         * lib/xmalloc.c: Use `virtual memory exhausted', not
89259         `Memory exhausted'.
89260         * lib/obstack.c (print_and_abort): Likewise.
89261
89262 2000-07-30  Paul Eggert  <eggert@twinsun.com>
89263
89264         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
89265         buffer, so that the caller can always quote one small
89266         component of a "memory exhausted" message in slot 0.
89267         From a suggestion by Jim Meyering.
89268
89269 2000-07-30  Jim Meyering  <meyering@lucent.com>
89270
89271         * lib/makepath.c (make_path): Quote the other instance, too.
89272
89273         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
89274         (STATIC_BUF_SIZE): Define.
89275         (quotearg_n_options): Use only statically allocated storage when
89276         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
89277         than STATIC_BUF_SIZE.
89278
89279 2000-07-29  Jim Meyering  <meyering@lucent.com>
89280
89281         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
89282         * lib/dirname.c (dir_name): Likewise.
89283
89284         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
89285         `/'.
89286
89287         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
89288         (dir_name): Assert that there are no trailing slashes.
89289
89290 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
89291
89292         * lib/mbswidth.h (mbswidth): Add a flags argument.
89293         (mbswidth): New declaration.
89294         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
89295         * lib/mbswidth.c (mbswidth): Add a flags argument.
89296         (mbsnwidth): New function.
89297
89298 2000-07-24  Jim Meyering  <meyering@lucent.com>
89299
89300         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
89301
89302 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89303
89304         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
89305
89306 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89307
89308         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
89309         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
89310         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
89311         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
89312         invoke multibyte primitives.
89313
89314 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89315
89316         * lib/quotearg.c:
89317         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
89318         so that mbstate_t is always defined.
89319
89320         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
89321         be 1 in at least one GCC installation, and this configuration
89322         error is likely to be common.  Ignoring MB_LEN_MAX hurts
89323         performance on hosts that have mbrtowc but have only unibyte
89324         locales, but I assume these hosts are rare.
89325
89326 2000-07-23  Paul Eggert  <eggert@twinsun.com>
89327
89328         * lib/mbswidth.c (_XOPEN_SOURCE):
89329         Don't define; this causes problems on Solaris 7.
89330         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
89331
89332 2000-07-23  Jim Meyering  <meyering@lucent.com>
89333
89334         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
89335         too: getgrgid, getpwuid, getuid.
89336
89337 2000-07-23  Jim Meyering  <meyering@lucent.com>
89338
89339         * lib/basename.c (base_name): Add an assertion.
89340
89341 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
89342
89343         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
89344         shadow its mbsinit function.
89345
89346 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
89347
89348         * lib/mbswidth.h: New file.
89349         * lib/mbswidth.c: New file.
89350         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
89351         (noinst_HEADERS): Add mbswidth.h.
89352
89353 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
89354
89355         * lib/config.charset: Add support for FreeBSD. Improve support for
89356         HP-UX and IRIX 6.
89357
89358 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
89359
89360         * m4/mbswidth.m4: New file.
89361         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
89362
89363 2000-07-15  Jim Meyering  <meyering@lucent.com>
89364
89365         * lib/makepath.c: Include quote.h.
89366         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
89367         corresponding argument in a `quote (...)' call.
89368         Give better diagnostics.
89369
89370         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
89371         (noinst_HEADERS): Add quote.h.
89372
89373         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
89374         from tar's src/misc.c.
89375         * lib/quote.h: New file.  Prototypes for same.
89376
89377 2000-07-14  Paul Eggert  <eggert@twinsun.com>
89378
89379         From a suggestion by Bruno Haible.
89380         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
89381         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
89382         to decide whether to define the BeOS workaround macro;
89383         this adjusts to the change to AC_MBSTATE_T.
89384
89385 2000-07-14  Jim Meyering  <meyering@lucent.com>
89386
89387         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
89388         jm_AC_TYPE_UINTMAX_T.
89389
89390 2000-07-13  Paul Eggert  <eggert@twinsun.com>
89391
89392         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
89393
89394         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
89395         quotearg_buffer_restyled): Add support for
89396         clocale_quoting_style.  Undo previous change to
89397         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
89398         and "{RIGHT QUOTATION MARK}" msgids.
89399
89400 2000-07-10  Paul Eggert  <eggert@twinsun.com>
89401
89402         From a suggestion by Bruno Haible.
89403         * m4/mbstate_t.m4 (AC_MBSTATE_T):
89404         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
89405         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
89406         and mbstate_t, to a single-part test that simply defines mbstate_t.
89407         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
89408         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
89409
89410 2000-07-10  Jim Meyering  <meyering@lucent.com>
89411
89412         * m4/strerror_r.m4: Mirror the correction made in autoconf.
89413
89414         * m4/gnu-source.m4: Output to confdefs.h directly.
89415         Suggestion from Akim Demaille.
89416
89417 2000-07-09  Paul Eggert  <eggert@twinsun.com>
89418
89419         The old behavior of quoting `like this' doesn't look good with
89420         newer, ISO-style fonts.  See:
89421         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
89422
89423         Instead, quote "like this" by default.  Let the translator
89424         tailor the locale-specific quoting behavior by providing
89425         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
89426
89427         * lib/quotearg.c (N_): New macro.
89428         (gettext_default): New function.
89429         (quotearg_buffer_restyled): Use
89430         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
89431         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
89432
89433 2000-07-09  Jim Meyering  <meyering@lucent.com>
89434
89435         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
89436         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
89437
89438         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
89439         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
89440
89441 2000-07-09  Jim Meyering  <meyering@lucent.com>
89442
89443         * lib/Most files: Update copyright dates to include 2000.
89444
89445 2000-07-08  Jim Meyering  <meyering@lucent.com>
89446
89447         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
89448         if not defined.
89449         (xgethostname): Remove now-unnecessary #ifdef.
89450         Move declaration of `err' into loop where it's used.
89451
89452 2000-07-05  Paul Eggert  <eggert@twinsun.com>
89453         and Bruno Haible  <haible@clisp.cons.org>
89454
89455         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
89456         only if the test for an object-type mbstate_t fails.  This
89457         prevents us from mistakenly reporting that mbstate_t is a
89458         system object type after we "#define mbstate_t int" to work
89459         around its lack.
89460
89461 2000-07-05  Paul Eggert  <eggert@twinsun.com>
89462         and Bruno Haible  <haible@clisp.cons.org>
89463
89464         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
89465
89466 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89467
89468         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
89469         to strerror_r.
89470         Include <ctype.h> for use of isalpha.
89471
89472 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89473
89474         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
89475         by allocating a larger buffer. Test the gethostname return value for
89476         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
89477         returns an error and ENAMETOOLONG isn't defined.
89478
89479 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
89480
89481         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
89482         dimension.
89483
89484 2000-07-04  Jim Meyering  <meyering@lucent.com>
89485
89486         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
89487         of the deprecated AC_CHECKING.
89488
89489 2000-07-04  Jim Meyering  <meyering@lucent.com>
89490
89491         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
89492         Reported by Bruno Haible.
89493
89494 2000-07-04  Jim Meyering  <meyering@lucent.com>
89495
89496         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
89497         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
89498         lacks mbrtowc.
89499
89500 2000-07-03  Paul Eggert  <eggert@twinsun.com>
89501
89502         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
89503         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
89504
89505 2000-07-03  Paul Eggert  <eggert@twinsun.com>
89506         and Bruno Haible  <haible@clisp.cons.org>
89507
89508         * lib/quotearg.c (mbrtowc):
89509         Assign to *pwc, and return 1 only if result is nonzero.
89510         (iswprint): Use ISPRINT when substituting our own mbrtowc.
89511
89512 2000-07-03  Jim Meyering  <meyering@lucent.com>
89513
89514         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
89515
89516 2000-07-03  Jim Meyering  <meyering@lucent.com>
89517
89518         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
89519         This is necessary to get a definition of e.g., UTMP_FILE on
89520         HP-UX 10.20.
89521         From Bob Proulx.
89522
89523 2000-07-02  Jim Meyering  <meyering@lucent.com>
89524
89525         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
89526
89527         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
89528         AC_LIBOBJ(function_name).
89529         * m4/chown.m4: Likewise.
89530         * m4/fnmatch.m4: Likewise.
89531         * m4/ftruncate.m4: Likewise.
89532         * m4/getgroups.m4: Likewise.
89533         * m4/getline.m4: Likewise.
89534         * m4/group-member.m4: Likewise.
89535         * m4/jm-macros.m4: Likewise.
89536         * m4/lstat.m4: Likewise.
89537         * m4/malloc.m4: Likewise.
89538         * m4/memcmp.m4: Likewise.
89539         * m4/nanosleep.m4: Likewise.
89540         * m4/putenv.m4: Likewise.
89541         * m4/realloc.m4: Likewise.
89542         * m4/regex.m4: Likewise.
89543         * m4/stat.m4: Likewise.
89544         * m4/strftime.m4: Likewise.
89545
89546 2000-07-02  Jim Meyering  <meyering@lucent.com>
89547
89548         * lib/quotearg.c (mbstate_t): Don't define here.
89549
89550 2000-07-02  Jim Meyering  <meyering@lucent.com>
89551
89552         * lib/nanosleep.c (SIGCONT): Define if not already defined.
89553
89554 2000-07-01  Jim Meyering  <meyering@lucent.com>
89555
89556         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
89557
89558 2000-07-01  Jim Meyering  <meyering@lucent.com>
89559
89560         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
89561         problem.
89562
89563 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
89564
89565         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
89566         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
89567
89568 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
89569
89570         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
89571         per change in ../m4/ls-mntd-fs.m4.
89572         (read_filesystem_list): Ignore symbolic links.
89573
89574 2000-06-29  Jim Meyering  <meyering@lucent.com>
89575
89576         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
89577         for declaration of strcmp.
89578
89579         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
89580
89581         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
89582         Avoid warning by casting result to `char *' to remove `const'.
89583
89584 2000-06-28  Jim Meyering  <meyering@lucent.com>
89585
89586         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
89587         included by quotearg.c, for which we perform this test.  From
89588         Bruno Haible.
89589
89590 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
89591
89592         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
89593         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
89594         <utmpx.h> exists, put readutmp.o into LIBOBJS.
89595
89596 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
89597
89598         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
89599
89600 2000-06-26  Paul Eggert  <eggert@twinsun.com>
89601
89602         savedir now sets errno on failure and invokes xmalloc to get memory.
89603         Fix a couple of other minor bugs while we're at it.
89604
89605         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
89606         (NAMLEN): Remove macro.
89607         (malloc, realloc): Remove decls.
89608         (stpcpy): Likewise.
89609         ("xalloc.h"): Include.
89610         (NAME_SIZE_DEFAULT): New macro.
89611         (savedir): Use xmalloc / xrealloc to allocate memory.
89612         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
89613         Skip "" directory entries.
89614         Use strlen to calculate directory entry length, since the old method
89615         is rarely used these days and isn't worth supporting.
89616         Don't use a pointer after freeing it.
89617         Check for integer overflow when calculating allocation size.
89618         Use memcpy to copy entries, instead of stpcpy.
89619         Set errno properly when returning NULL.
89620         Check for readdir error.
89621
89622 2000-06-26  Jim Meyering  <meyering@lucent.com>
89623
89624         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
89625
89626 2000-06-25  Jim Meyering  <meyering@lucent.com>
89627
89628         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
89629         Linux header bug when _XOPEN_SOURCE is defined to 500.
89630
89631 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
89632
89633         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
89634         deficiency.
89635
89636 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
89637
89638         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
89639         Include xalloc.h.
89640         Don't include <stdlib.h>.  Don't declare malloc, realloc.
89641
89642 2000-06-24  Jim Meyering  <meyering@lucent.com>
89643
89644         * m4/strerror_r.m4: Revive this file -- to try out an experimental
89645         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
89646         for which strerror does return char*, but which lacks a conveniently
89647         accessible declaration of the function.  If the compile-test says
89648         strerror_r doesn't work, then resort to a `run'-test that works on
89649         BeOS and segfaults on DEC Unix.
89650
89651 2000-06-24  Jim Meyering  <meyering@lucent.com>
89652
89653         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
89654
89655 2000-06-23  Paul Eggert  <eggert@twinsun.com>
89656
89657         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
89658         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
89659
89660 2000-06-23  Paul Eggert  <eggert@twinsun.com>
89661
89662         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
89663         (mbrtowc, mbstate_t): Define substitutes if
89664         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
89665         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
89666         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
89667
89668 2000-06-23  Jim Meyering  <meyering@lucent.com>
89669
89670         * m4/afs.m4: Add missing AC_MSG_RESULT.
89671         Reported by Bruno Haible.
89672
89673         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
89674         Suggestion from Bruno Haible.
89675
89676 2000-06-23  Jim Meyering  <meyering@lucent.com>
89677
89678         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
89679
89680 2000-06-21  Jim Meyering  <meyering@lucent.com>
89681
89682         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
89683
89684 2000-06-21  Jim Meyering  <meyering@lucent.com>
89685
89686         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
89687         (noinst_HEADERS): Add getstr.h.
89688
89689         * lib/getline.c (getstr): Move into a separate file.
89690         * lib/getstr.c (getstr): New file, extracted from getline.c, with
89691         the following changes: new parameter, delim2; both delim[12]
89692         parameters have type `int', not `char'.  The latter would lose
89693         with 8-bit delimiters.
89694         * lib/getstr.h: New file.
89695
89696 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89697
89698         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
89699         than 1024, return a memory chunk of least possible size, instead
89700         of size PATH_MAX + 2. In the loop, increment the size proportionally.
89701         Use free/xmalloc instead of xrealloc to avoid copying for very long
89702         paths.
89703
89704 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89705
89706         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
89707         the empty string.
89708
89709 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
89710
89711         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
89712         address, not strdup.  Include <stdlib.h> and don't declare free().
89713
89714 2000-06-19  Jim Meyering  <meyering@lucent.com>
89715
89716         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
89717
89718 2000-06-18  Jim Meyering  <meyering@lucent.com>
89719
89720         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
89721
89722         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
89723         `checking whether...' message to be consistent with that of the
89724         lstat test.
89725
89726 2000-06-18  Jim Meyering  <meyering@lucent.com>
89727
89728         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
89729         Besides, these days every porting target provides a mkdir function.
89730
89731         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
89732         needed. (this snippet comes from src/system.h).
89733
89734 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
89735
89736         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
89737
89738 2000-06-15  Paul Eggert  <eggert@twinsun.com>
89739
89740         * lib/human.c (adjust_value): New function.
89741         (human_readable_inexact): Apply rounding style even when
89742         printing approximate values.
89743
89744 2000-06-14  Paul Eggert  <eggert@twinsun.com>
89745
89746         * lib/human.c (human_readable_inexact): Allow an input block
89747         size that is not a multiple of the output block size, and vice versa.
89748         Reported by Piergiorgio Sartor.
89749
89750 2000-06-14  Paul Eggert  <eggert@twinsun.com>
89751
89752         * lib/getdate.y (get_date): Apply relative times after time
89753         zone indicator, not before.  Reported by Todd A. Jacobs.
89754
89755 2000-06-13  Jim Meyering  <meyering@lucent.com>
89756
89757         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
89758
89759         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
89760
89761 2000-06-12  Paul Eggert  <eggert@twinsun.com>
89762
89763         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
89764
89765 2000-06-12  Jim Meyering  <meyering@lucent.com>
89766
89767         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
89768         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
89769         optional argument.
89770         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
89771         the optional argument, `lib'.
89772
89773 2000-06-08  Jim Meyering  <meyering@lucent.com>
89774
89775         * m4/largefile.m4: Remove file (now that it's part of autoconf).
89776
89777 2000-06-04  Paul Eggert  <eggert@twinsun.com>
89778
89779         Rewrite largefile configuration so that we don't need to run
89780         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
89781         AC_CANONICAL_HOST in configure.in -- jmm]
89782
89783         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
89784         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
89785         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
89786         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
89787         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
89788         All uses changed.
89789         Instead of inspecting the output of getconf, try to compile the
89790         test program without and with the macro definition.
89791         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
89792         for getconf.  Instead, check for the needed flags by compiling
89793         test programs.
89794
89795 2000-06-04  Paul Eggert  <eggert@twinsun.com>
89796
89797         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
89798
89799 2000-06-04  Jim Meyering  <meyering@lucent.com>
89800
89801         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
89802         SunOS 4.1.4 for which gid_t is an unsigned type.
89803
89804 2000-06-03  Jim Meyering  <meyering@lucent.com>
89805
89806         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
89807         now that autoconf requires that.
89808
89809         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
89810         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
89811         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
89812
89813 2000-06-03  Jim Meyering  <meyering@lucent.com>
89814
89815         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
89816
89817 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
89818
89819         * m4/glibc21.m4: New file.
89820         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
89821
89822 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
89823
89824         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
89825         newer, don't install charset.alias.
89826         * lib/config.charset: Change the Linux/glibc rules so they become empty
89827         on glibc-2.1 or newer.
89828
89829 2000-06-02  Jim Meyering  <meyering@lucent.com>
89830
89831         * lib/mountlist.c: Back out last change.  Instead, do this...
89832         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
89833         me_dummy member using the same `ignore'-testing code.
89834         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
89835         fs_type strings.
89836         From Mark D. Roth.
89837
89838 2000-05-29  Jim Meyering  <meyering@lucent.com>
89839
89840         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
89841         mounts with the `ignore' attribute.  Based on a patch from
89842         Mark D. Roth.
89843
89844 2000-05-28  Jim Meyering  <meyering@lucent.com>
89845
89846         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
89847         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89848         * m4/stat.m4: Likewise.
89849         * m4/lstat.m4: Likewise.
89850         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
89851
89852         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
89853         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
89854
89855 2000-05-26  Jim Meyering  <meyering@lucent.com>
89856
89857         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
89858
89859 2000-05-24  Jim Meyering  <meyering@lucent.com>
89860
89861         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
89862         autoconf requires that.
89863         * m4/lib-check.m4: Likewise.
89864         * m4/jm-macros.m4: Likewise.
89865         * m4/strftime.m4: Likewise.
89866
89867         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
89868         AC_CHECK_DECLS, now that autoconf requires that.
89869
89870 2000-05-22  Jim Meyering  <meyering@lucent.com>
89871
89872         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
89873         * m4/lstat.m4: Likewise.
89874
89875 2000-05-22  Jim Meyering  <meyering@lucent.com>
89876
89877         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
89878
89879 2000-05-20  Jim Meyering  <meyering@lucent.com>
89880
89881         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
89882         (jm_PREREQ): Use it.
89883
89884 2000-05-18  Jim Meyering  <meyering@lucent.com>
89885
89886         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
89887         back, too, since it may have been modified by allocate_entry.
89888         (hash_delete): Rewrite to use neither the assignment operator
89889         nor the comma operator in an if-expression.
89890
89891 2000-05-15  Paul Eggert  <eggert@twinsun.com>
89892
89893         * lib/closeout.c:
89894         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
89895         Remove; no longer needed.
89896         "quotearg.h": Add include.
89897         (file_name): Do not bother to explicitly initialize to NULL; it's less
89898         efficient on some hosts.
89899         (close_stdout_status): Remove test as to whether stdout was already
89900         closed; it breaks for the case "echo x | sort >&-".
89901         Quote file name colons.
89902         Do not assume that _("write error") lacks format strings.
89903
89904 2000-05-15  Jim Meyering  <meyering@lucent.com>
89905
89906         * lib/version-etc.c (version_etc_copyright): Update the copyright
89907         string used in all --version output.
89908
89909 2000-05-14  Jim Meyering  <meyering@lucent.com>
89910
89911         * lib/closeout.c (close_stdout_set_file_name): New function.
89912         (close_stdout_status): Use new file-scoped global.
89913         Return right away if fstat says the stdout file descriptor is invalid.
89914         * lib/closeout.h (close_stdout_set_file_name): Declare.
89915
89916 2000-05-10  Jim Meyering  <meyering@lucent.com>
89917
89918         * lib/closeout.c [default_exit_status]: New file-scoped variable.
89919         (close_stdout_set_status): New function.
89920         * lib/closeout.h (close_stdout_set_status): Declare.
89921
89922 2000-05-09  Jim Meyering  <meyering@lucent.com>
89923
89924         * m4/gettext.m4: Rename this...
89925         * m4/libintl.m4: ...to this.
89926
89927 2000-05-08  Jim Meyering  <meyering@lucent.com>
89928
89929         * lib/long-options.c: Don't include closeout.h.
89930         (parse_long_options): Don't call close_stdout for --version.
89931
89932 2000-05-06  Paul Eggert  <eggert@twinsun.com>
89933
89934         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
89935         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
89936         2.1.3 bug.  This avoids a clash when files like regex.c define
89937         _GNU_SOURCE.
89938
89939 2000-05-06  Jim Meyering  <meyering@lucent.com>
89940
89941         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
89942         (AC_REPLACE_FUNCS): Add strnlen.
89943
89944         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
89945         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
89946
89947         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
89948         AC_SEARCH_LIBS call for nanosleep.
89949         (LIB_NANOSLEEP): Set and AC_SUBST.
89950
89951 2000-05-06  Jim Meyering  <meyering@lucent.com>
89952
89953         * lib/strnlen.c: Undefine __strnlen and strnlen.
89954         [!weak_alias]: Define __strnlen to strnlen.
89955
89956         * lib/atexit.c: New file, from libiberty.
89957
89958 2000-05-06  Jim Meyering  <meyering@lucent.com>
89959
89960         * lib/closeout.c (close_stdout_status): Also check for errors on the
89961         stderr stream.
89962
89963 2000-05-05  Jim Meyering  <meyering@lucent.com>
89964
89965         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
89966         AC_SEARCH_LIBS call for clock_gettime.
89967         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
89968
89969         * m4/search-libs.m4: Update from autoconf.
89970
89971         su doesn't work on Solaris 2.6.
89972         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
89973         <shadow.h>.  Reported by Dragos Harabor.
89974
89975 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
89976
89977         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
89978         memcpy instead of xmalloc, xrealloc, path_concat.
89979         (locale_charset): Treat empty environment variables as absent.
89980         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
89981
89982 2000-05-04  Jim Meyering  <meyering@lucent.com>
89983
89984         * lib/getopt.c: Update from glibc.
89985         * lib/obstack.c: Likewise.
89986         * lib/obstack.h: Likewise.
89987         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
89988         file
89989
89990         * lib/regex.h: Likewise.
89991         * lib/strndup.c: Likewise.
89992         * lib/strnlen.c: New file, from glibc.
89993
89994 2000-05-03  Jim Meyering  <meyering@lucent.com>
89995
89996         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
89997
89998 2000-05-02  Paul Eggert  <eggert@twinsun.com>
89999
90000         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
90001         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
90002         compile-time test, rather than inspecting host and OS, to
90003         decide whether to define _LARGEFILE_SOURCE.
90004
90005 2000-05-01  Jim Meyering  <meyering@lucent.com>
90006
90007         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
90008
90009         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
90010         Based on a patch from Bruno Haible.
90011
90012 2000-05-01  Jim Meyering  <meyering@lucent.com>
90013
90014         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
90015
90016 2000-04-29  Jim Meyering  <meyering@lucent.com>
90017
90018         * lib/path-concat.c: Declare strdup only if it's not defined.
90019         * lib/canon-host.c: Likewise.
90020
90021 2000-04-28  Jim Meyering  <meyering@lucent.com>
90022
90023         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
90024         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
90025         is included first, then limits.h is included by locale.h by libintl.h.
90026         From John David Anglin.
90027
90028 2000-04-25  Jim Meyering  <meyering@lucent.com>
90029
90030         * lib/makepath.c (S_IRWXUGO): Define.
90031         (make_path): Always perform explicit chmod if MODE specifies any
90032         of the `special' permission bits.  Prompted by a bug report against
90033         install from Mate Wierdl and Joost van Baal.
90034
90035 2000-04-18  Jim Meyering  <meyering@lucent.com>
90036
90037         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
90038         (jm_PREREQ): Use it.
90039
90040 2000-04-18  Jim Meyering  <meyering@lucent.com>
90041
90042         * lib/README: New file.
90043
90044         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
90045         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
90046
90047 2000-04-17  Jim Meyering  <meyering@lucent.com>
90048
90049         Get it right :-)
90050         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
90051         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
90052         Suggestion from Akim Demaille.
90053
90054 2000-04-17  Jim Meyering  <meyering@lucent.com>
90055
90056         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
90057         the definition of it to rpl_strftime also defined-away the system's
90058         declaration.
90059
90060 2000-04-15  Jim Meyering  <meyering@lucent.com>
90061
90062         Use `C' to denote so-called `contiguous' files, the same way
90063         that tar does.
90064         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
90065         (ftypelet): Use S_ISCTG.
90066         From Michael Deutschmann.
90067
90068 2000-04-14  Jim Meyering  <meyering@lucent.com>
90069
90070         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
90071         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
90072         clobbered.
90073
90074 2000-04-14  Jim Meyering  <meyering@lucent.com>
90075
90076         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
90077
90078 2000-04-13  Jim Meyering  <meyering@lucent.com>
90079
90080         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
90081         AH_VERBATIM to insert required #ifndef into config.h.in.
90082         Suggestion from Akim Demaille.
90083
90084 2000-04-12  Jim Meyering  <meyering@lucent.com>
90085
90086         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
90087         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
90088         Christian Krackowizer.
90089
90090         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
90091         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
90092         (AC_SYS_LARGEFILE): Require.
90093         (AM_C_PROTOTYPES): Require.
90094
90095 2000-04-08  Jim Meyering  <meyering@lucent.com>
90096
90097         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
90098         names don't conflict.  Reported by Eli Zaretskii.
90099
90100 2000-04-07  Jim Meyering  <meyering@lucent.com>
90101
90102         * lib/putenv.c: Move inclusion of errno.h so it follows that of
90103         sys/types.h, to work around system header problems on AIX 3.2.5.
90104         From Bruno Haible.
90105
90106 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
90107
90108         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
90109         bug.  Deal with the different error behavior of Irix iconv.
90110
90111 2000-04-05  Paul Eggert  <eggert@twinsun.com>
90112
90113         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
90114         IRIX if the installer said otherwise.
90115
90116 2000-04-05  Jim Meyering  <meyering@lucent.com>
90117
90118         Portability tweaks required for ultrix4.3.
90119         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
90120         (jm_CHECK_DECLS): Add getutent to the list of functions.
90121         (_jm_DECL_HEADERS): Add utmpx.h.
90122         From John David Anglin.
90123
90124         * m4/strftime.m4: Back out the 2000-04-02 change.
90125         Instead of that change, simply undefine putenv in the test program.
90126
90127 2000-04-05  Jim Meyering  <meyering@lucent.com>
90128
90129         Portability tweaks required for ultrix4.3.
90130         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
90131         getutent.
90132         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
90133         * lib/canon-host.c: Declare strdup.
90134         * lib/path-concat.c: Likewise.
90135         From John David Anglin.
90136
90137 2000-04-04  Jim Meyering  <meyering@lucent.com>
90138
90139         Be more DOS 8.3-friendly.
90140         * lib/ref-add.sin: Renamed from ref-add.sed.in.
90141         * lib/ref-del.sin: Renamed from ref-del.sed.in.
90142         * lib/Makefile.am: Reflect renaming.
90143         Reported by Eli Zaretskii.
90144
90145         Use a temporary file name that won't clash with `charset.alias'
90146         in the DOS 8.3 name space.
90147         * lib/Makefile.am (charset_tmp): Define.
90148         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
90149         (uninstall-local): Likewise.
90150         Reported by Eli Zaretskii.
90151
90152 2000-04-03  Jim Meyering  <meyering@lucent.com>
90153
90154         * m4/gettext.m4: Fix typo in comment.
90155
90156         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
90157         textutils/configure.in).  Suggestion from Paul Eggert.
90158         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
90159
90160 2000-04-02  Paul Eggert  <eggert@twinsun.com>
90161
90162         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
90163         variable in the shell rather than using putenv, which isn't
90164         portable.  This avoids the configure-time inter-test dependency
90165         on the potentially-renamed putenv function.
90166
90167 2000-03-30  Paul Eggert  <eggert@twinsun.com>
90168
90169         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
90170         before checking struct stat.st_blksize, so that
90171         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
90172
90173 2000-03-29  Paul Eggert  <eggert@twinsun.com>
90174
90175         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
90176         since strftime.c uses HAVE_STRFTIME to decide whether to use
90177         the underlying strftime.
90178
90179 2000-03-29  Paul Eggert  <eggert@twinsun.com>
90180
90181         * lib/time/strftime.c (my_strftime): Make sure we call the system
90182         strftime, not ourselves, when invoking the underlying strftime.
90183
90184 2000-03-24  Jim Meyering  <meyering@lucent.com>
90185
90186         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
90187         (charset_alias): Define.
90188         (install-exec-local): Factor out common code.
90189         (uninstall-local): Split lines longer than 80.
90190         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
90191         (SUFFIXES): Define.
90192         (.sed.in.sed): New rule.  Don't redirect directly to $@.
90193         (CLEANFILES): Add ref-add.sed and ref-del.sed.
90194
90195 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
90196
90197         * lib/config.charset: Output a line containing "Packages using this
90198         file".
90199         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
90200         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
90201         ref-del.sed): New rules.
90202
90203 2000-03-17  Jim Meyering  <meyering@lucent.com>
90204
90205         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
90206         Otherwise, include <strings.h>
90207
90208 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
90209
90210         * lib/unicodeio.c (utf8_wctomb): New function.
90211         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
90212         format instead of in UCS-4 with platform dependent endianness.
90213
90214 2000-03-10  Jim Meyering  <meyering@lucent.com>
90215
90216         * m4/lib-check.m4: Look for getspnam in -lgen, too.
90217         From Marco Franzen.
90218
90219 2000-03-07  Paul Eggert  <eggert@twinsun.com>
90220
90221         * lib/savedir.c (savedir): Work even if directory size is
90222         negative; this can happen with some screwy NFS configurations.
90223
90224 2000-03-06  Jim Meyering  <meyering@lucent.com>
90225
90226         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
90227         if it's NULL (because we ran out of memory).  From Bruno Haible.
90228
90229 2000-03-05  Jim Meyering  <meyering@lucent.com>
90230
90231         * lib/localcharset.c ("path-concat.h"): Include.
90232         (get_charset_aliases): Use path_concat instead of ANSI string
90233         concatenation.
90234
90235         * lib/unicodeio.h (PARAMS): Define.
90236         Use it to guard prototype.
90237
90238 2000-03-04  Jim Meyering  <meyering@lucent.com>
90239
90240         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
90241         for lib/localcharset.c.
90242
90243 2000-03-04  Jim Meyering  <meyering@lucent.com>
90244
90245         * lib/Makefile.am (install-exec-local): Create $(libdir) before
90246         installing into it.
90247         (uninstall-local): Uncomment this rule so `make distcheck' works
90248         once again.
90249
90250         * lib/unicodeio.c (<errno.h>): Include it.
90251         (errno): Declare if not defined.
90252
90253         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
90254
90255         * lib/config.charset: New version, incorporating remarks from a linux
90256         i18n mailing list.  From Bruno Haible.
90257
90258 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
90259
90260         * m4/codeset.m4: New file.
90261         * m4/iconv.m4: New file.
90262         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
90263
90264 2000-03-03  Jim Meyering  <meyering@lucent.com>
90265
90266         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
90267
90268 2000-03-02  Jim Meyering  <meyering@lucent.com>
90269
90270         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
90271         the messages come out on separate lines.
90272
90273         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
90274         rather than jm_CHECK_DECLARATIONS.
90275         * m4/decl.m4: Remove now-unused file.
90276
90277         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
90278         geteuid.
90279
90280 2000-03-02  Jim Meyering  <meyering@lucent.com>
90281
90282         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
90283
90284 2000-03-01  Jim Meyering  <meyering@lucent.com>
90285
90286         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
90287         * lib/unicodeio.c: Likewise.
90288
90289 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
90290
90291         * lib/config.charset: New file.
90292         * lib/localcharset.c: New file.
90293         * lib/unicodeio.h, lib/unicodeio.c: New files.
90294         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
90295         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
90296         (noinst_HEADERS): Add unicodeio.h.
90297         (all-local, install-exec-local, charset.alias): New targets.
90298
90299 2000-02-28  Paul Eggert  <eggert@twinsun.com>
90300
90301         * lib/quotearg.c (ALERT_CHAR): New macro.
90302         (quotearg_buffer_restyled): Use it.
90303
90304 2000-02-27  Jim Meyering  <meyering@lucent.com>
90305
90306         * m4/check-decl.m4: Add getenv to the list.
90307
90308 2000-02-27  Jim Meyering  <meyering@lucent.com>
90309
90310         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
90311         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
90312
90313         * lib/backupfile.c: Guard inclusion of stdlib.h with
90314         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
90315         Declare malloc if needed.
90316
90317         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
90318         `#ifndef HAVE_DECL..'
90319         now that autoconf always defines the HAVE_DECL_ symbols.
90320         * lib/human.c: Likewise.
90321         * lib/same.c: Likewise.
90322         * lib/strtoumax.c: Likewise.
90323
90324         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
90325         declaration check was not run.
90326         * lib/hash.c: Likewise.
90327         * lib/human.c: Likewise.
90328         * lib/same.c: Likewise.
90329         * lib/strtoumax.c: Likewise.
90330
90331         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
90332         `.', then first look up the entire `.'-containing string as a login
90333         name.
90334
90335 2000-02-23  Jim Meyering  <meyering@lucent.com>
90336
90337         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
90338         in place of my hack.
90339
90340 2000-02-18  Paul Eggert  <eggert@twinsun.com>
90341
90342         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
90343         (textint): New typedef.
90344         (parser_control): Member year changed from int to textint.
90345         All uses changed.
90346         (YYSTYPE): Removed; replaced by %union with int and textint members.
90347         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
90348         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
90349         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
90350         (tSNUMBER, tUNUMBER): Now of type <textintval>.
90351         (date, number, to_year): Use width of number in digits, not its value,
90352         to determine whether it's a 2-digit year, or a 2-digit time.
90353         (yylex): Store number of digits of numeric tokens.
90354         Reported by John Kendall.
90355
90356         (parser_control): Changed from struct parser_control to typedef (for
90357         consistency).  All uses changed.
90358
90359         (tID): Removed; not used.
90360         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
90361
90362 2000-02-14  Paul Eggert  <eggert@twinsun.com>
90363
90364         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
90365         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
90366
90367 2000-02-12  Jim Meyering  <meyering@lucent.com>
90368
90369         * lib/userspec.c (ISDIGIT): Define it.
90370         (isdigit): Remove definition.
90371         (is_number): Use ISDIGIT, not isdigit.
90372         <libintl.h>: Include.
90373         (_ and N_): Define.
90374         (parse_user_spec): Mark translatable strings.
90375
90376 2000-02-10  Jim Meyering  <meyering@lucent.com>
90377
90378         With these changes, nanosleep.[ch] are finally enough like the other
90379         lib/* replacement files to compile on a few more losing systems.
90380
90381         * lib/nanosleep.h: Don't include config.h.
90382         Remove prototype from declaration of nanosleep.
90383         (PARAMS): Remove now-unneeded definition.
90384         * lib/nanosleep.c: #undef nanosleep.
90385         (rpl_nanosleep): Rename from nanosleep.
90386
90387 2000-02-10  Jim Meyering  <meyering@lucent.com>
90388
90389         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
90390         gnu_nanosleep to rpl_nanosleep.
90391
90392 2000-02-09  Jim Meyering  <meyering@lucent.com>
90393
90394         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
90395         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
90396
90397 2000-02-08  Akim Demaille  <akim@epita.fr>
90398
90399         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
90400         `[' and `]' and remove uses of `changequote'.
90401         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
90402         (AC_SYS_LARGEFILE): Likewise.
90403         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
90404         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
90405         of changequote.
90406         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
90407         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
90408         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
90409         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
90410
90411 2000-02-05  Jim Meyering  <meyering@lucent.com>
90412
90413         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
90414         Remove explicit use of AC_HEADER_TIME.  It is required by
90415         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
90416         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
90417         in autoconf whereby the expansion of the latter ended up preceding
90418         the expansion of its prerequisite, AC_HEADER_TIME.
90419         Reported by Volker Borchert.
90420
90421 2000-02-03  Jim Meyering  <meyering@lucent.com>
90422
90423         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
90424
90425 2000-02-03  Jim Meyering  <meyering@lucent.com>
90426
90427         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
90428         rather than with `#if HAVE_UTMPNAME'.
90429
90430 2000-02-02  Jim Meyering  <meyering@lucent.com>
90431
90432         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
90433         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
90434         Reported by Eli Zaretskii.
90435
90436 2000-02-01  Jim Meyering  <meyering@lucent.com>
90437
90438         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
90439
90440 2000-01-31  Jim Meyering  <meyering@lucent.com>
90441
90442         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
90443         functions.  Add the time.h and sys/time.h headers along with the
90444         AC_REQUIRE'ment of AC_HEADER_TIME.
90445
90446 2000-01-31  Jim Meyering  <meyering@lucent.com>
90447
90448         * lib/nanosleep.h (nanosleep): Guard declaration with
90449         `#if ! HAVE_DECL_NANOSLEEP'.
90450         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
90451         the declaration in that vendor's sys/timers.h.
90452         Reported by Christian Krackowizer.
90453
90454         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
90455         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
90456         (ISPRINT): Likewise.
90457         Reported by Tom Tromey.
90458
90459 2000-01-30  Jim Meyering  <meyering@lucent.com>
90460
90461         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
90462
90463         * m4/prereq.m4 (utmp_includes): Define.
90464         Check for ut_user and ut_name members in both struct utmpx
90465         and struct utmp.
90466
90467 2000-01-30  Jim Meyering  <meyering@lucent.com>
90468
90469         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
90470         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
90471         header files where only utmpx.ut_user is declared.
90472
90473         * lib/readutmp.h (UT_USER): Define.
90474
90475 2000-01-29  Jim Meyering  <meyering@lucent.com>
90476
90477         * m4/lib-check.m4: New file containing library-related checks from
90478         fileutils and sh-utils (textutils had none).
90479
90480 2000-01-28  Jim Meyering  <meyering@lucent.com>
90481
90482         * m4/perl.m4: Change format of warning message to look more like that
90483         from the missing script.  Suggestion from François Pinard.
90484
90485 2000-01-25  Jim Meyering  <meyering@lucent.com>
90486
90487         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
90488         well as time.h in the compile check.
90489         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
90490         Fix typo in cross-compiling case: s/yes/no/.
90491
90492 2000-01-23  Jim Meyering  <meyering@lucent.com>
90493
90494         * m4/jm-macros.m4: Move df-related tests here from
90495         fileutils/configure.in
90496
90497         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
90498         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
90499
90500         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
90501         s/space/ac_fsusage_space/.
90502         (jm_FILE_SYSTEM_USAGE): Take two parameters.
90503
90504         * m4/ftruncate.m4: New file (derived from part of
90505         fileutils/configure.in).
90506         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
90507         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
90508
90509         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
90510         AC_SUBST these here, rather than just in sh-util/configure.in, so
90511         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
90512         all the same.
90513         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
90514         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
90515         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
90516         (AC_SUBST(POW_LIBM)): Likewise.
90517         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
90518
90519 2000-01-23  Jim Meyering  <meyering@lucent.com>
90520
90521         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
90522         obstack.c.
90523
90524 2000-01-22  Jim Meyering  <meyering@lucent.com>
90525
90526         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
90527
90528         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
90529
90530         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
90531         configure.in
90532         (AC_CHECK_HEADERS): Likewise for sh-utils.
90533         (AC_CHECK_HEADERS): Likewise for textutils.
90534         Merge the three lists of headers.
90535
90536         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
90537         from fileutils' configure.in.
90538
90539         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
90540         code. Moved tests into their own function (_jm_DECL_HEADERS) in
90541         check-decl.m4.
90542
90543         * m4/check-decl.m4: Use #if rather than #ifdef.
90544         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
90545         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
90546         (_jm_DECL_HEADERS): Define new function.
90547         (jm_CHECK_DECLARATIONS): Require it.
90548
90549 2000-01-22  Jim Meyering  <meyering@lucent.com>
90550
90551         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
90552         [! HAVE_DECL_STRTOULL]: Declare strtoull.
90553         Required for some AIX systems.  Reported by Christian Krackowizer.
90554         [TESTING] (main): New function.
90555
90556         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
90557         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
90558         letters.
90559
90560         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
90561         iswprint.
90562
90563         * lib/strverscmp.c (ISDIGIT): Define.
90564         (strverscmp): Use ISDIGIT, not isdigit.
90565
90566 2000-01-19  Jim Meyering  <meyering@lucent.com>
90567
90568         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
90569         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
90570         defines `struct timespec' in <sys/time.h>
90571
90572         * m4/c-bs-a.m4: Remove uses of changequote altogether.
90573         Thanks to Akim for explaining.
90574
90575 2000-01-17  Paul Eggert  <eggert@twinsun.com>
90576
90577         * lib/nanosleep.c (nanosleep):
90578         Don't use SA_INTERRUPT to decide whether to call sigaction, as
90579         POSIX.1 doesn't require SA_INTERRUPT and some systems
90580         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
90581         it's been part of POSIX.1 since day 1 (in 1988).
90582
90583 2000-01-17  Jim Meyering  <meyering@lucent.com>
90584
90585         * lib/interlock: Remove unused file.  Reported by François Pinard.
90586
90587 2000-01-16  Paul Eggert  <eggert@twinsun.com>
90588
90589         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
90590         alert, backslash, formfeed, and vertical tab unnecessarily in
90591         shell quoting style.
90592
90593 2000-01-16  Jim Meyering  <meyering@lucent.com>
90594
90595         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
90596         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
90597         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
90598         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
90599
90600 2000-01-16  Jim Meyering  <meyering@lucent.com>
90601
90602         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
90603         because the latter didn't work.
90604
90605 2000-01-15  Jim Meyering  <meyering@lucent.com>
90606
90607         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
90608         (AC_REPLACE_FUNCS): Add memcpy and memset.
90609         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
90610         Add strpbrk.
90611         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
90612
90613 2000-01-12  Jim Meyering  <meyering@lucent.com>
90614
90615         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
90616         (jm_PREREQ): Use it.
90617         (jm_PREREQ_READUTMP): New macro.
90618         (jm_PREREQ): Use it.
90619
90620 2000-01-11  Paul Eggert  <eggert@twinsun.com>
90621
90622         Quote multibyte characters correctly.
90623         * m4/c-bs-a.m4: New file.
90624         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
90625         (jm_PREREQ): Use it.
90626
90627 2000-01-11  Paul Eggert  <eggert@twinsun.com>
90628
90629         * m4/uintmax_t.m4: Port to autoconf 2.13.
90630
90631 2000-01-08  Jim Meyering  <meyering@ascend.com>
90632
90633         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
90634         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
90635
90636 2000-01-04  Jim Meyering  <meyering@ascend.com>
90637
90638         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
90639         jm_STRUCT_DIRENT_D_TYPE.
90640         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
90641         jm_STRUCT_DIRENT_D_INO.
90642         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
90643         jm_STRUCT_UTIMBUF.
90644         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
90645         renamings.
90646         * m4/utime.m4: Likewise.
90647
90648         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
90649         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
90650
90651 2000-01-03  Paul Eggert  <eggert@twinsun.com>
90652
90653         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
90654         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
90655
90656 2000-01-02  Jim Meyering  <meyering@ascend.com>
90657
90658         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
90659         remember if this is necessary.
90660
90661 1999-12-26  Jim Meyering  <meyering@ascend.com>
90662
90663         * m4/jm-macros.m4: Use it here.
90664         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
90665
90666 1999-12-23  Jim Meyering  <meyering@ascend.com>
90667
90668         * m4/jm-macros.m4: Check for clock_gettime (moved from
90669         fileutils/configure.in)
90670         Check for gettimeofday.
90671
90672 1999-12-20  Jim Meyering  <meyering@ascend.com>
90673
90674         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
90675         autoconf-2.14a-1999-12-20.
90676
90677 1999-12-19  Jim Meyering  <meyering@ascend.com>
90678
90679         * m4/lstat-slash.m4: New file.
90680         * m4/jm-macros.m4: Use the new macro:
90681         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90682
90683 1999-12-07  Jim Meyering  <meyering@ascend.com>
90684
90685         * m4/perl.m4: Require that File::Compare be available, too.
90686         Too many systems seem to lack it.
90687
90688         * m4/strftime.m4: Add checks for most of the cpp macros tested in
90689         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
90690
90691 1999-11-18  Paul Eggert  <eggert@twinsun.com>
90692
90693         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
90694         problem with the QNX 4.25 shell, which doesn't propagate exit
90695         status of failed commands inside shell assignments.
90696
90697 1999-11-17  Jim Meyering  <meyering@ascend.com>
90698
90699         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
90700
90701 1999-11-07  Jim Meyering  <meyering@ascend.com>
90702
90703         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
90704
90705 1999-11-06  Jim Meyering  <meyering@ascend.com>
90706
90707         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
90708         * m4/jm-macros.m4 (jm_MACROS): Use it here.
90709
90710 1999-11-05  Jim Meyering  <meyering@ascend.com>
90711
90712         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
90713         configure.in of textutils, fileutils, and sh-utils into this one
90714         (shared between those packages) file.
90715         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
90716         AC_STRUCT_ST_BLKSIZE.
90717
90718 1999-11-03  Jim Meyering  <meyering@ascend.com>
90719
90720         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
90721         of AC_CHECK_TYPE checks includes unistd.h.
90722         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
90723         Suggestion from Akim Demaille.
90724
90725 1999-10-30  Jim Meyering  <meyering@ascend.com>
90726
90727         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
90728         m4-quoted string.
90729         * m4/ls-mntd-fs.m4: Likewise.
90730         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
90731         * m4/jm-winsz1.m4: Likewise.
90732
90733         * m4/const.m4: Remove file, since the fix made it into the experimental
90734         version of autoconf.
90735         * m4/mktime.m4: Likewise.
90736
90737         * m4/check-type.m4: Remove file, now that the latest version of
90738         AC_CHECK_TYPE takes a third arg to specify additional #includes.
90739
90740         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
90741         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
90742         AC_CHECK_TYPE.
90743
90744 1999-10-04  Jim Meyering  <meyering@ascend.com>
90745
90746         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
90747
90748 1999-09-22  Paul Eggert  <eggert@twinsun.com>
90749
90750         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
90751         2.95.1 bug with HP-UX 10.20.
90752
90753 1999-09-17  Jim Meyering  <meyering@ascend.com>
90754
90755         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
90756         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
90757         due to missing strdup (against sh-utils-2.0).
90758
90759 1999-08-29  Jim Meyering  <meyering@ascend.com>
90760
90761         * m4/jm-macros.m4: Require jm_BISON.
90762         * m4/bison.m4: New file.
90763
90764 1999-08-17  Paul Eggert  <eggert@twinsun.com>
90765
90766         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
90767         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
90768
90769 1999-08-05  Jim Meyering  <meyering@ascend.com>
90770
90771         * m4/getline.m4: Rename test file from conftestdata to conftest.data
90772         to avoid conflicts with `conftest' on 8+3 filesystems.
90773         Suggestion from Eli Zaretskii.
90774
90775 1999-08-04  Jim Meyering  <meyering@ascend.com>
90776
90777         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
90778         fileutils and sh-utils (textutils's getline test was inadequate).
90779         (AM_FUNC_GETLINE): Run this test.
90780         (AC_CHECK_FUNCS): Check for getdelim.
90781         Reported by Bob Proulx.
90782
90783 1999-08-02  Jim Meyering  <meyering@ascend.com>
90784
90785         * m4/jm-macros.m4: Add a comment.
90786
90787 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90788
90789         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
90790         <inttypes.h> defines strtoumax as a macro (and not as a
90791         function).
90792
90793 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90794
90795         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
90796         that we can shift, multiply and divide unsigned long long
90797         values; Ultrix cc can't do it.
90798
90799 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90800
90801         * m4/mktime.m4: New file, which is a preview of what should appear
90802         in the next public autoconf release.
90803
90804 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90805
90806         * m4/lfs.m4: Remove this file.
90807         * m4/largefile.m4: New file.  It contains the old contents of
90808         lfs.m4, except that all names with prefix AC_LFS have been
90809         changed to use the prefix AC_SYS_LARGEFILE instead, to be
90810         compatible with future autoconf versions.  Also, some minor m4
90811         quoting problems have been fixed.
90812
90813 1999-08-01  Paul Eggert  <eggert@twinsun.com>
90814
90815         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
90816         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
90817         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
90818         and simplify the shell code.
90819
90820 1999-08-01  Jim Meyering  <meyering@ascend.com>
90821
90822         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
90823         m4.
90824
90825 1999-07-20  Jim Meyering  <meyering@ascend.com>
90826
90827         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
90828
90829 1999-07-15  Jim Meyering  <meyering@ascend.com>
90830
90831         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
90832
90833 1999-05-22  Jim Meyering  <meyering@ascend.com>
90834
90835         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
90836
90837 1999-05-20  Jim Meyering  <meyering@ascend.com>
90838
90839         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
90840         Add a colon after each `then' in case $4 is empty.
90841
90842 1999-05-16  Jim Meyering  <meyering@ascend.com>
90843
90844         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
90845
90846 1999-05-10  Jim Meyering  <meyering@ascend.com>
90847
90848         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
90849
90850         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
90851         AC_FUNC_MKTIME.
90852
90853 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
90854
90855         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
90856
90857 1999-05-04  Paul Eggert  <eggert@twinsun.com>
90858
90859         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
90860         not CPPFLAGS, so that linking works correctly in IRIX.
90861
90862 1999-04-30  Paul Eggert  <eggert@twinsun.com>
90863
90864         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
90865
90866 1999-04-20  Paul Eggert  <eggert@twinsun.com>
90867
90868         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
90869         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
90870         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
90871         jm_AC_TYPE_UNSIGNED_LONG_LONG.
90872         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
90873
90874         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
90875
90876 1999-04-20  Jim Meyering  <meyering@ascend.com>
90877
90878         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
90879         AC_REPLACE xstroull if necessary.  From Paul Eggert.
90880         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
90881
90882 1999-04-18  Jim Meyering  <meyering@ascend.com>
90883
90884         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
90885         * m4/jm-macros.m4: Use it.
90886
90887 1999-04-06  Jim Meyering  <meyering@ascend.com>
90888
90889         * m4/strftime.m4: Remove test for %f.
90890
90891 1999-03-29  Jim Meyering  <meyering@ascend.com>
90892
90893         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
90894         superset of the AC_TYPE_* checks in the textutils, fileutils,
90895         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
90896         AC_TYPE_PID_T.
90897
90898 1999-03-28  Jim Meyering  <meyering@ascend.com>
90899
90900         * m4/jm-macros.m4: Define GNU_PACKAGE here.
90901         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
90902         replaced e.g., in the *.sh files of the sh-utils.
90903
90904 1999-03-20  Jim Meyering  <meyering@ascend.com>
90905
90906         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
90907         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
90908         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
90909
90910 1999-03-19  Jim Meyering  <meyering@ascend.com>
90911
90912         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
90913
90914 1999-03-12  Jim Meyering  <meyering@ascend.com>
90915
90916         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
90917
90918 1999-03-07  Jim Meyering  <meyering@ascend.com>
90919
90920         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
90921         declared.
90922
90923 1999-02-17  Jim Meyering  <meyering@ascend.com>
90924
90925         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
90926         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
90927
90928 1999-02-07  Jim Meyering  <meyering@ascend.com>
90929
90930         * m4/group-member.m4: New file -- extracted from sh-utils'
90931         configure.in.
90932
90933         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
90934         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
90935
90936 1999-02-06  Jim Meyering  <meyering@ascend.com>
90937
90938         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
90939         * m4/fnmatch.m4: Likewise.
90940         * m4/getgroups.m4: Likewise.
90941         * m4/lstat.m4: Likewise.
90942         * m4/malloc.m4: Likewise.
90943         * m4/putenv.m4: Likewise.
90944         * m4/realloc.m4: Likewise.
90945         * m4/regex.m4: Likewise.
90946         * m4/stat.m4: Likewise.
90947         * m4/strftime.m4: Likewise.
90948         Suggestion from Alain Magloire.
90949
90950         * m4/chown.m4: Use `.$ac_objext', not `.o'.
90951         * m4/fnmatch.m4: Likewise.
90952         * m4/getgroups.m4: Likewise.
90953         * m4/getline.m4: Likewise.
90954         * m4/lstat.m4: Likewise.
90955         * m4/malloc.m4: Likewise.
90956         * m4/memcmp.m4: Likewise.
90957         * m4/putenv.m4: Likewise.
90958         * m4/realloc.m4: Likewise.
90959         * m4/regex.m4: Likewise.
90960         * m4/stat.m4: Likewise.
90961         * m4/strftime.m4: Likewise.
90962         Suggestion from Alain Magloire.
90963
90964         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
90965         an argument.
90966
90967         * m4/regex.m4: Add a run-time Test for proper operation of
90968         re_compile_pattern.
90969
90970 1999-01-31  Jim Meyering  <meyering@ascend.com>
90971
90972         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
90973
90974 1999-01-30  Jim Meyering  <meyering@ascend.com>
90975
90976         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
90977
90978         * m4/jm-mktime.m4: Make this a wrapper around the official
90979         AM_FUNC_MKTIME rather than my private copy, now that the official one
90980         is up to date.
90981         * m4/mktime.m4: Remove file.
90982
90983         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
90984         * m4/uptime.m4: Likewise.
90985         * m4/uintmax_t.m4: Likewise.
90986
90987 1999-01-28  Jim Meyering  <meyering@ascend.com>
90988
90989         * m4/jm-macros.m4: Use jm_AFS.
90990         * m4/afs.m4: New file (from fileutils' configure.in).
90991
90992         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
90993         * m4/chown.m4: Likewise.
90994         * m4/d-ino.m4: Likewise.
90995         * m4/d-type.m4: Likewise.
90996         * m4/fnmatch.m4: Likewise.
90997         * m4/getgroups.m4: Likewise.
90998         * m4/gettext.m4: Likewise.
90999         * m4/jm-mktime.m4: Likewise.
91000         * m4/jm-winsz2.m4: Likewise.
91001         * m4/lcmessage.m4: Likewise.
91002         * m4/ls-mntd-fs.m4: Likewise.
91003         * m4/malloc.m4: Likewise.
91004         * m4/memcmp.m4: Likewise.
91005         * m4/putenv.m4: Likewise.
91006         * m4/realloc.m4: Likewise.
91007         * m4/st_mtim.m4: Likewise.
91008         * m4/strftime.m4: Likewise.
91009
91010 1999-01-16  Jim Meyering  <meyering@ascend.com>
91011
91012         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
91013         (ARGMATCH_DIE_DECL): Define.
91014
91015 1999-01-12  Jim Meyering  <meyering@ascend.com>
91016
91017         * m4/Makefile.am.in: Rewrite to avoid using fmt.
91018         Reported by Lars Hecking.
91019
91020 1999-01-10  Jim Meyering  <meyering@ascend.com>
91021
91022         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
91023         gross kludge.
91024         * m4/inttypes_h.m4: Likewise.
91025         * m4/lstat.m4: Likewise.
91026         * m4/malloc.m4: Likewise.
91027         * m4/readdir.m4: Likewise.
91028         * m4/realloc.m4: Likewise.
91029         * m4/st_dm_mode.m4: Likewise.
91030         * m4/stat.m4: Likewise.
91031         * m4/utimbuf.m4: Likewise.
91032         * m4/utimes.m4: Likewise.
91033
91034         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
91035         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
91036         comments in config.h.in are meaningful.
91037
91038         * m4/jm-macros.m4: Require autoconf-2.13 here.
91039
91040         * m4/regex.m4: By default, don't use the included regex.c on systems
91041         with glibc 2.  Suggestion from Uli Drepper.
91042
91043 1999-01-02  Jim Meyering  <meyering@ascend.com>
91044
91045         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
91046
91047 1998-12-18  Jim Meyering  <meyering@ascend.com>
91048
91049         * m4/Makefile.am.in (Makefile.am): Simplify rule.
91050         Based on a suggestion from Lars Hecking.
91051
91052 1998-11-16  Paul Eggert  <eggert@twinsun.com>
91053
91054         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
91055
91056 1998-11-16  Jim Meyering  <meyering@ascend.com>
91057
91058         * m4/lfs.m4: Double-quote the `uname...` expression.
91059
91060 1998-11-14  Jim Meyering  <meyering@ascend.com>
91061
91062         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
91063         * m4/stat.m4: Likewise.
91064
91065 1998-11-03  Jim Meyering  <meyering@ascend.com>
91066
91067         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
91068         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
91069
91070 1998-10-18  Jim Meyering  <meyering@ascend.com>
91071
91072         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
91073
91074 1998-10-17  Jim Meyering  <meyering@ascend.com>
91075
91076         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
91077         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
91078         calls for those previously hard-coded headers.  Instead, take a new
91079         parameter.
91080         (jm_CHECK_DECLARATIONS): Reflect interface change.
91081         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
91082         (jm_CHECK_DECL_LOCALTIME_R): New macro.
91083
91084         * m4/mktime.m4: Test for spring-forward gap before long-running test.
91085
91086 1998-10-14  Jim Meyering  <meyering@ascend.com>
91087
91088         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
91089         instead of "TZ=America/Vancouver".  From Paul Eggert.
91090
91091 1998-10-11  Jim Meyering  <meyering@ascend.com>
91092
91093         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
91094         This adds a test for a recently added compatibility fix for mktime.c.
91095         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
91096
91097 1998-09-27  Jim Meyering  <meyering@ascend.com>
91098
91099         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
91100
91101         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
91102         ../configure.in, including a change from Gordon Matzigkeit to allow
91103         cross-compiling for the Hurd.
91104
91105         * m4/glibc.m4: New file/macro to test for the GNU C Library
91106         versions 1 and 2.  From Gordon Matzigkeit.
91107         Indent.
91108
91109 1998-09-21  Jim Meyering  <meyering@ascend.com>
91110
91111         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
91112
91113 1998-08-18  Paul Eggert  <eggert@twinsun.com>
91114
91115         Port nanosecond-resolution times to UnixWare 2.1.2 and
91116         pedantic Solaris 2.6.
91117
91118         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
91119         AC_STRUCT_ST_MTIM.
91120         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
91121         Generate name of ns member, instead of just 1 or undef.
91122         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
91123
91124 1998-08-15  Jim Meyering  <meyering@ascend.com>
91125
91126         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
91127         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
91128         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
91129         instead of jm_TYPE_SSIZE_T.
91130
91131 1998-08-12  Jim Meyering  <meyering@ascend.com>
91132
91133         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
91134
91135 1998-08-02  Jim Meyering  <meyering@ascend.com>
91136
91137         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
91138         in acconfig.h manually.
91139
91140 1998-07-31  Paul Eggert  <eggert@twinsun.com>
91141
91142         * m4/st_mtim.m4: New file.
91143
91144 1998-07-28  Jim Meyering  <meyering@ascend.com>
91145
91146         * m4/utimes.m4: Undef stat.
91147
91148 1998-07-25  Jim Meyering  <meyering@ascend.com>
91149
91150         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
91151         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
91152
91153 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
91154
91155         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
91156         uid and gid actually remain unchanged.
91157
91158 1998-07-07  Jim Meyering  <meyering@ascend.com>
91159
91160         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
91161
91162 1998-07-04  Jim Meyering  <meyering@ascend.com>
91163
91164         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
91165         to prove that this macro can be used in packages without regex.c.
91166
91167 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
91168
91169         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
91170         is to be used.
91171
91172 1998-07-03  Jim Meyering  <meyering@ascend.com>
91173
91174         * m4/gettext.m4: Add -lintl if it's found to be necessary.
91175
91176         * m4/gettext.m4: New file -- from gettext-0.10.35.
91177         * m4/lcmessage.m4: Likewise.
91178         * m4/progtest.m4: Likewise.
91179
91180         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
91181         * m4/jm-macros.m4: Require the new macro.
91182
91183 1998-06-29  Jim Meyering  <meyering@ascend.com>
91184
91185         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
91186         for the definition of NGROUPS (used in a system header included
91187         by sys/mount.h).
91188
91189 1998-06-28  Jim Meyering  <meyering@ascend.com>
91190
91191         * m4/ls-mntd-fs.m4: New file.
91192         * m4/fstypename.m4: New file.
91193
91194         * m4/jm-macros.m4: Require the new macro.
91195         * m4/jm-glibc-io.m4: New file.
91196
91197 1998-05-19  Jim Meyering  <meyering@ascend.com>
91198
91199         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
91200         * m4/lchown.m4: New file.
91201
91202         * m4/Makefile.am.in: New file.
91203         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
91204
91205 1998-05-14  Jim Meyering  <meyering@ascend.com>
91206
91207         * m4/Makefile.am (EXTRA_DIST): Add them.
91208         * m4/jm-macros.m4: New file.
91209         * m4/utimbuf.m4: New file.
91210
91211 1998-05-12  Jim Meyering  <meyering@ascend.com>
91212
91213         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
91214
91215 1998-05-11  Jim Meyering  <meyering@ascend.com>
91216
91217         * m4/isc-posix.m4: New file.
91218
91219 1998-05-10  Jim Meyering  <meyering@ascend.com>
91220
91221         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
91222
91223 1998-05-09  Jim Meyering  <meyering@ascend.com>
91224
91225         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
91226         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
91227         with automake.
91228
91229         * m4/ssize_t.m4: New file.
91230         * m4/mktime.m4: Remove file -- the new automake has this now.
91231
91232 1998-04-26  Jim Meyering  <meyering@ascend.com>
91233
91234         * m4/assert.m4: New file.
91235         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
91236
91237 1998-04-05  Jim Meyering  <meyering@ascend.com>
91238
91239         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
91240         (jm_PREREQ): Use it here.
91241
91242 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
91243
91244         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
91245         in acconfig.h.
91246
91247 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
91248
91249         * m4/prereq.m4: New file.
91250         * m4/error.m4: New file.
91251         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
91252
91253 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
91254
91255         * m4/getline.m4: Don't set am_cv_func_working_getline before the
91256         cache-check for the same variable -- that defeated the purpose of
91257         the test; the test program was never run.  This was a problem only
91258         on systems with losing getline functions -- HP-UX 10.20 is one.
91259         Reported by Bjorn Helgaas.
91260
91261 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
91262
91263         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
91264
91265 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
91266
91267         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
91268
91269         * m4/const.m4: New file.  Use an initializer in this declaration
91270         typedef int charset[2]; const charset x;
91271         Reported by Bob Glickstein.
91272
91273 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
91274
91275         * m4/chown.m4: Fix reversed types on -1 args to chown.
91276         From Kaveh Ghazi.
91277
91278 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
91279
91280         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
91281         Add lseek and memchr.
91282
91283         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
91284         T.E.Dickey <dickey@clark.net> said that some older preprocessors
91285         have a 20-character limit on names.
91286
91287 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
91288
91289         * m4/inttypes_h.m4: New file.
91290         * m4/uintmax_t.m4: New file.
91291         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
91292
91293
91294         -----
91295
91296         Local Variables:
91297         coding: utf-8
91298         End:
91299
91300         Copyright (C) 1997-2012 Free Software Foundation, Inc.
91301
91302         Copying and distribution of this file, with or without
91303         modification, are permitted provided the copyright notice
91304         and this notice are preserved.